1 diff -urN Src/C64.cpp Src/C64.cpp
2 --- Src/C64.cpp 2002-01-02 22:18:46.000000000 +0100
3 +++ Src/C64.cpp 2002-11-21 17:07:04.000000000 +0100
6 long vicptr; // File offset of VIC data
11 c = fgetc(f); // Shouldn't be necessary
19 +# include "C64_Qtopia.i"
26 diff -urN Src/C64.h Src/C64.h
27 --- Src/C64.h 2002-01-02 22:15:10.000000000 +0100
28 +++ Src/C64.h 2002-11-21 17:07:02.000000000 +0100
34 // false: Frodo, true: FrodoSC
35 extern bool IsFrodoSC;
43 + static CmdPipe *staticGUI;
45 + static void StartGUI();
46 + static void StopGUI();
51 void CheckTimerChange();
52 diff -urN Src/C64_Qtopia.i Src/C64_Qtopia.i
53 --- Src/C64_Qtopia.i 1970-01-01 01:00:00.000000000 +0100
54 +++ Src/C64_Qtopia.i 2002-11-21 17:07:04.000000000 +0100
57 + * C64_Qtopia.i - Put the pieces together, X specific stuff
59 + * Frodo (C) 1994-1997,2002 Christian Bauer
60 + * Unix stuff by Bernd Schmidt/Lutz Vieweg
61 + * Qtopia changes (against C64_x.i) from Bernd Lachner
67 +static struct timeval tv_start;
72 + * usleep -- This is the precision timer for Test Set
73 + * Automation. It uses the select(2) system
74 + * call to delay for the desired number of
75 + * micro-seconds. This call returns ZERO
76 + * (which is usually ignored) on successful
77 + * completion, -1 otherwise.
80 + * 1) We range check the passed in microseconds and log a
81 + * warning message if appropriate. We then return without
82 + * delay, flagging an error.
83 + * 2) Load the Seconds and micro-seconds portion of the
84 + * interval timer structure.
85 + * 3) Call select(2) with no file descriptors set, just the
86 + * timer, this results in either delaying the proper
87 + * ammount of time or being interupted early by a signal.
90 + * Added when the need for a subsecond timer was evident.
93 + * Michael J. Dyer Telephone: AT&T 414.647.4044
94 + * General Electric Medical Systems GE DialComm 8 *767.4044
95 + * P.O. Box 414 Mail Stop 12-27 Sect'y AT&T 414.647.4584
96 + * Milwaukee, Wisconsin USA 53201 8 *767.4584
97 + * internet: mike@sherlock.med.ge.com GEMS WIZARD e-mail: DYER
105 +#include <sys/time.h>
106 +#include <sys/param.h>
107 +#include <sys/types.h>
109 +int usleep(unsigned long int microSeconds)
111 + unsigned int Seconds, uSec;
112 + int nfds, readfds, writefds, exceptfds;
113 + struct timeval Timer;
115 + nfds = readfds = writefds = exceptfds = 0;
117 + if( (microSeconds == (unsigned long) 0)
118 + || microSeconds > (unsigned long) 4000000 )
120 + errno = ERANGE; /* value out of range */
121 + perror( "usleep time out of range ( 0 -> 4000000 ) " );
125 + Seconds = microSeconds / (unsigned long) 1000000;
126 + uSec = microSeconds % (unsigned long) 1000000;
128 + Timer.tv_sec = Seconds;
129 + Timer.tv_usec = uSec;
131 + if( select( nfds, &readfds, &writefds, &exceptfds, &Timer ) < 0 )
133 + perror( "usleep (select) failed" );
141 +CmdPipe *C64::staticGUI = 0;
144 + * Static StartGUI method to start gui before SDL initilization
147 +void C64::StartGUI()
149 + // we need to create a potential GUI subprocess here, because we don't want
150 + // it to inherit file-descriptors (such as for the audio-device and alike..)
153 + // try to start up FrodoGUI.
154 + staticGUI = new CmdPipe("frodogui", "");
157 + if (staticGUI->fail)
163 + // wait until the GUI process responds (if it does...)
166 + if (5 != staticGUI->ewrite("ping\n",5))
176 + FD_SET(staticGUI->get_read_fd(), &set);
180 + if (select(FD_SETSIZE, &set, NULL, NULL, &tv) <= 0)
187 + if (1 != staticGUI->eread(&c, 1))
207 + * Static StopGUI method
214 + staticGUI->ewrite("quit\n",5);
220 + * Constructor, system-dependent things
223 +void C64::c64_ctor1(void)
225 + // Initialize joystick variables
226 + joyfd[0] = joyfd[1] = -1;
227 + joy_minx = joy_miny = 32767;
228 + joy_maxx = joy_maxy = -32768;
233 +void C64::c64_ctor2(void)
237 + fprintf(stderr,"Alas, master, no preferences window will be available.\n"
238 + "If you wish to see one, make sure the 'wish' interpreter\n"
239 + "(Tk version >= 4.1) is installed in your path.\n"
240 + "You can still use Frodo, though. Use F10 to quit, \n"
241 + "F11 to cause an NMI and F12 to reset the C64.\n"
242 + "You can change the preferences by editing ~/.frodorc\n");
246 + gettimeofday(&tv_start, NULL);
251 + * Destructor, system-dependent things
254 +void C64::c64_dtor(void)
260 + * Start main emulation thread
270 + TheCPU1541->Reset();
272 + // Patch kernal IEC routines
273 + orig_kernal_1d84 = Kernal[0x1d84];
274 + orig_kernal_1d85 = Kernal[0x1d85];
275 + PatchKernal(ThePrefs.FastReset, ThePrefs.Emul1541Proc);
277 + quit_thyself = false;
283 + * Vertical blank: Poll keyboard and joysticks, update window
286 +void C64::VBlank(bool draw_frame)
289 + TheDisplay->PollKeyboard(TheCIA1->KeyMatrix, TheCIA1->RevMatrix, &joykey);
290 + if (TheDisplay->quit_requested)
291 + quit_thyself = true;
294 + TheCIA1->Joystick1 = poll_joystick(0);
295 + TheCIA1->Joystick2 = poll_joystick(1);
297 + if (ThePrefs.JoystickSwap) {
298 + uint8 tmp = TheCIA1->Joystick1;
299 + TheCIA1->Joystick1 = TheCIA1->Joystick2;
300 + TheCIA1->Joystick2 = tmp;
303 + // Joystick keyboard emulation
304 + if (TheDisplay->NumLock())
305 + TheCIA1->Joystick1 &= joykey;
307 + TheCIA1->Joystick2 &= joykey;
309 + // Count TOD clocks
310 + TheCIA1->CountTOD();
311 + TheCIA2->CountTOD();
313 + // Update window if needed
315 + TheDisplay->Update();
317 + // Calculate time between VBlanks, display speedometer
319 + gettimeofday(&tv, NULL);
320 + if ((tv.tv_usec -= tv_start.tv_usec) < 0) {
321 + tv.tv_usec += 1000000;
324 + tv.tv_sec -= tv_start.tv_sec;
325 + double elapsed_time = (double)tv.tv_sec * 1000000 + tv.tv_usec;
326 + speed_index = 20000 / (elapsed_time + 1) * ThePrefs.SkipFrames * 100;
328 + // Limit speed to 100% if desired
329 + if ((speed_index > 100) && ThePrefs.LimitSpeed) {
330 + usleep((unsigned long)(ThePrefs.SkipFrames * 20000 - elapsed_time));
334 + gettimeofday(&tv_start, NULL);
336 + TheDisplay->Speedometer((int)speed_index);
342 + * Open/close joystick drivers given old and new state of
343 + * joystick preferences
346 +void C64::open_close_joysticks(bool oldjoy1, bool oldjoy2, bool newjoy1, bool newjoy2)
348 +#ifdef HAVE_LINUX_JOYSTICK_H
349 + if (oldjoy1 != newjoy1) {
350 + joy_minx = joy_miny = 32767; // Reset calibration
351 + joy_maxx = joy_maxy = -32768;
353 + joyfd[0] = open("/dev/js0", O_RDONLY);
355 + fprintf(stderr, "Couldn't open joystick 1\n");
362 + if (oldjoy2 != newjoy2) {
363 + joy_minx = joy_miny = 32767; // Reset calibration
364 + joy_maxx = joy_maxy = -32768;
366 + joyfd[1] = open("/dev/js1", O_RDONLY);
368 + fprintf(stderr, "Couldn't open joystick 2\n");
379 + * Poll joystick port, return CIA mask
382 +uint8 C64::poll_joystick(int port)
384 +#ifdef HAVE_LINUX_JOYSTICK_H
388 + if (joyfd[port] >= 0) {
389 + if (read(joyfd[port], &js, JS_RETURN) == JS_RETURN) {
390 + if (js.x > joy_maxx)
392 + if (js.x < joy_minx)
394 + if (js.y > joy_maxy)
396 + if (js.y < joy_miny)
399 + if (joy_maxx-joy_minx < 100 || joy_maxy-joy_miny < 100)
402 + if (js.x < (joy_minx + (joy_maxx-joy_minx)/3))
404 + else if (js.x > (joy_minx + 2*(joy_maxx-joy_minx)/3))
405 + j &= 0xf7; // Right
407 + if (js.y < (joy_miny + (joy_maxy-joy_miny)/3))
409 + else if (js.y > (joy_miny + 2*(joy_maxy-joy_miny)/3))
412 + if (js.buttons & 1)
413 + j &= 0xef; // Button
424 + * The emulation's main loop
427 +void C64::thread_func(void)
432 + while (!quit_thyself) {
434 + // The order of calls is important here
435 + if (TheVIC->EmulateCycle())
436 + TheSID->EmulateLine();
437 + TheCIA1->CheckIRQs();
438 + TheCIA2->CheckIRQs();
439 + TheCIA1->EmulateCycle();
440 + TheCIA2->EmulateCycle();
441 + TheCPU->EmulateCycle();
443 + if (ThePrefs.Emul1541Proc) {
444 + TheCPU1541->CountVIATimers(1);
445 + if (!TheCPU1541->Idle)
446 + TheCPU1541->EmulateCycle();
450 + while (!quit_thyself) {
452 + // The order of calls is important here
453 + int cycles = TheVIC->EmulateLine();
454 + TheSID->EmulateLine();
455 +#if !PRECISE_CIA_CYCLES
456 + TheCIA1->EmulateLine(ThePrefs.CIACycles);
457 + TheCIA2->EmulateLine(ThePrefs.CIACycles);
460 + if (ThePrefs.Emul1541Proc) {
461 + int cycles_1541 = ThePrefs.FloppyCycles;
462 + TheCPU1541->CountVIATimers(cycles_1541);
464 + if (!TheCPU1541->Idle) {
465 + // 1541 processor active, alternately execute
466 + // 6502 and 6510 instructions until both have
467 + // used up their cycles
468 + while (cycles >= 0 || cycles_1541 >= 0)
469 + if (cycles > cycles_1541)
470 + cycles -= TheCPU->EmulateLine(1);
472 + cycles_1541 -= TheCPU1541->EmulateLine(1);
474 + TheCPU->EmulateLine(cycles);
476 + // 1541 processor disabled, only emulate 6510
477 + TheCPU->EmulateLine(cycles);
480 +#if !defined(__svgalib__)
481 + if ((linecnt & 0xfff) == 0 && gui) {
483 + // check for command from GUI process
484 + // fprintf(stderr,":");
485 + while (gui->probe()) {
487 + if (gui->eread(&c, 1) != 1) {
490 + fprintf(stderr,"Oops, GUI process died...\n");
492 + // fprintf(stderr,"%c",c);
495 + quit_thyself = true;
501 + Prefs *np = Frodo::reload_prefs();
515 diff -urN Src/configarm Src/configarm
516 --- Src/configarm 1970-01-01 01:00:00.000000000 +0100
517 +++ Src/configarm 2002-11-21 17:07:02.000000000 +0100
519 +configure --host=i386-linux --x-includes=/opt/Qtopia/sharp/include/ --x-libraries=/opt/Qtopia/sharp/lib/ --with-sdl-prefix=/opt/Qtopia/sharp/ --enable-qtopia
521 diff -urN Src/configure Src/configure
522 --- Src/configure 2002-01-02 17:44:11.000000000 +0100
523 +++ Src/configure 2002-11-21 17:07:03.000000000 +0100
526 # Guess values for system-dependent variables and create Makefiles.
527 -# Generated by Autoconf 2.52d.
528 +# Generated by GNU Autoconf 2.53.
530 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
531 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
532 # Free Software Foundation, Inc.
533 # This configure script is free software; the Free Software Foundation
534 # gives unlimited permission to copy, distribute and modify it.
536 -# Avoid depending upon Character Ranges.
537 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
538 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
539 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
540 -as_cr_digits='0123456789'
541 -as_cr_alnum=$as_cr_Letters$as_cr_digits
543 -# Sed expression to map a string onto a valid variable name.
544 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
545 +if expr a : '\(a\)' >/dev/null 2>&1; then
551 -# Sed expression to map a string onto a valid CPP name.
552 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
554 ## --------------------- ##
555 ## M4sh Initialization. ##
561 +# Support unset when possible.
562 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
568 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
569 + { $as_unset LANG || test "${LANG+set}" != set; } ||
570 + { LANG=C; export LANG; }
571 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
572 + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
573 + { LC_ALL=C; export LC_ALL; }
574 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
575 + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
576 + { LC_TIME=C; export LC_TIME; }
577 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
578 + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
579 + { LC_CTYPE=C; export LC_CTYPE; }
580 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
581 + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
582 + { LANGUAGE=C; export LANGUAGE; }
583 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
584 + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
585 + { LC_COLLATE=C; export LC_COLLATE; }
586 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
587 + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
588 + { LC_NUMERIC=C; export LC_NUMERIC; }
589 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
590 + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
591 + { LC_MESSAGES=C; export LC_MESSAGES; }
594 # Name of the executable.
595 -as_me=`echo "$0" |sed 's,.*[\\/],,'`
596 +as_me=`(basename "$0") 2>/dev/null ||
597 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
598 + X"$0" : 'X\(//\)$' \| \
599 + X"$0" : 'X\(/\)$' \| \
600 + . : '\(.\)' 2>/dev/null ||
602 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
603 + /^X\/\(\/\/\)$/{ s//\1/; q; }
604 + /^X\/\(\/\).*/{ s//\1/; q; }
607 +# PATH needs CR, and LINENO needs CR and PATH.
608 +# Avoid depending upon Character Ranges.
609 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
610 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
611 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
612 +as_cr_digits='0123456789'
613 +as_cr_alnum=$as_cr_Letters$as_cr_digits
615 +# The user is always right.
616 +if test "${PATH_SEPARATOR+set}" != set; then
617 + echo "#! /bin/sh" >conftest.sh
618 + echo "exit 0" >>conftest.sh
619 + chmod +x conftest.sh
620 + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
629 + as_lineno_1=$LINENO
630 + as_lineno_2=$LINENO
631 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
632 + test "x$as_lineno_1" != "x$as_lineno_2" &&
633 + test "x$as_lineno_3" = "x$as_lineno_2" || {
634 + # Find who we are. Look in the path if we contain no path at all
637 + *[\\/]* ) as_myself=$0 ;;
638 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
642 + test -z "$as_dir" && as_dir=.
643 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
648 + # We did not find ourselves, most probably we were run as `sh COMMAND'
649 + # in which case we are not to be found in the path.
650 + if test "x$as_myself" = x; then
653 + if test ! -f "$as_myself"; then
654 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
655 + { (exit 1); exit 1; }; }
657 + case $CONFIG_SHELL in
659 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
660 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
663 + test -z "$as_dir" && as_dir=.
664 + for as_base in sh bash ksh sh5; do
667 + if ("$as_dir/$as_base" -c '
668 + as_lineno_1=$LINENO
669 + as_lineno_2=$LINENO
670 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
671 + test "x$as_lineno_1" != "x$as_lineno_2" &&
672 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
673 + CONFIG_SHELL=$as_dir/$as_base
674 + export CONFIG_SHELL
675 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
683 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
684 + # uniformly replaced by the line number. The first 'sed' inserts a
685 + # line-number line before each line; the second 'sed' does the real
686 + # work. The second script uses 'N' to pair each line-number line
687 + # with the numbered line, and appends trailing '-' during
688 + # substitution so that $LINENO is not a special case at line end.
689 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
690 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
691 + sed '=' <$as_myself |
696 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
699 + s,^['$as_cr_digits']*\n,,
700 + ' >$as_me.lineno &&
701 + chmod +x $as_me.lineno ||
702 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
703 + { (exit 1); exit 1; }; }
705 + # Don't try to exec as it changes $[0], causing all sort of problems
706 + # (the dirname of $[0] is not the place where we might find the
707 + # original and so on. Autoconf is especially sensible to this).
709 + # Exit status is that of the last command.
714 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
715 + *c*,-n*) ECHO_N= ECHO_C='
717 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
718 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
721 if expr a : '\(a\)' >/dev/null 2>&1; then
725 as_executable_p="test -f"
727 -# Support unset when possible.
728 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
733 +# Sed expression to map a string onto a valid CPP name.
734 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
736 +# Sed expression to map a string onto a valid variable name.
737 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
740 -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
741 -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
742 -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
743 -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
744 -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
745 -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
746 -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
747 -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
750 # We need space, tab and new line, in precisely that order.
755 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
756 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
760 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
762 ac_default_prefix=/usr/local
768 SHELL=${CONFIG_SHELL-/bin/sh}
770 # Maximum number of lines to put in a shell here document.
772 # only ac_max_sed_lines should be used.
773 : ${ac_max_here_lines=38}
775 +# Identity of this package.
782 ac_unique_file="VIC.cpp"
783 # Factoring default headers for most tests.
784 ac_includes_default="\
790 # Initialize some variables set by options.
792 ac_init_version=false
794 infodir='${prefix}/info'
795 mandir='${prefix}/man'
797 -# Identity of this package.
810 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
811 - | --no-cr | --no-c)
812 + | --no-cr | --no-c | -n)
815 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
821 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
825 @@ -514,18 +658,19 @@
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
830 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 +# FIXME: To remove some day.
842 -# FIXME: should be removed in autoconf 3.0.
843 +# FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 @@ -541,13 +686,23 @@
849 test "$silent" = yes && exec 6>/dev/null
852 # Find the source files, if location was not specified.
853 if test -z "$srcdir"; then
854 ac_srcdir_defaulted=yes
855 # Try the directory containing this script, then its parent.
857 - ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
858 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
859 + ac_confdir=`(dirname "$0") 2>/dev/null ||
860 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 + X"$0" : 'X\(//\)[^/]' \| \
862 + X"$0" : 'X\(//\)$' \| \
863 + X"$0" : 'X\(/\)' \| \
864 + . : '\(.\)' 2>/dev/null ||
866 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 + /^X\(\/\/\)$/{ s//\1/; q; }
869 + /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
875 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
876 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
877 --disable-sdltest Do not try to compile and run a test SDL program
878 + --enable-qtopia Make a Qtopia Version (Sharp Zaurus) of Frodo
879 --enable-kbd-lang-de Use german keyboard layout
880 --enable-kbd-lang-us Use american keyboard layout
882 @@ -711,11 +867,13 @@
883 # If there are subdirs, report their specific --help.
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 - if test "$ac_dir" != .; then
888 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
889 + test -d $ac_dir || continue
892 +if test "$ac_dir" != .; then
893 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
896 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 ac_dir_suffix= ac_top_builddir=
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907 +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
908 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912 # Check for guested configure; otherwise get Cygnus style configure.
913 if test -f $ac_srcdir/configure.gnu; then
916 if $ac_init_version; then
919 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
920 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
921 Free Software Foundation, Inc.
922 This configure script is free software; the Free Software Foundation
923 gives unlimited permission to copy, distribute and modify it.
925 running configure, to aid debugging if configure makes a mistake.
927 It was created by $as_me, which was
928 -generated by GNU Autoconf 2.52d. Invocation command line was
929 +generated by GNU Autoconf 2.53. Invocation command line was
933 @@ -799,18 +964,28 @@
934 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
935 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
941 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
945 + test -z "$as_dir" && as_dir=.
946 + echo "PATH: $as_dir"
961 # Keep a trace of the command line.
962 # Strip out --no-create and --no-recursion so they do not pile up.
963 # Also quote any args containing shell meta-characters.
964 @@ -820,15 +995,17 @@
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 - | --no-cr | --no-c) ;;
969 + | --no-cr | --no-c | -n ) continue ;;
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
972 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
975 - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
976 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
978 - *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
980 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
982 + case " $ac_configure_args " in
983 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
984 + *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
987 # Get rid of the leading space.
990 echo "$as_me: caught signal $ac_signal"
991 echo "$as_me: exit $exit_status"
993 - rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
994 + rm -f core core.* *.core &&
995 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
998 for ac_signal in 1 2 13 15; do
999 @@ -891,6 +1069,33 @@
1000 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1003 +# Predefined preprocessor variables.
1005 +cat >>confdefs.h <<_ACEOF
1006 +#define PACKAGE_NAME "$PACKAGE_NAME"
1010 +cat >>confdefs.h <<_ACEOF
1011 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1015 +cat >>confdefs.h <<_ACEOF
1016 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1020 +cat >>confdefs.h <<_ACEOF
1021 +#define PACKAGE_STRING "$PACKAGE_STRING"
1025 +cat >>confdefs.h <<_ACEOF
1026 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1030 # Let the site file select an alternate cache file if it wants to.
1031 # Prefer explicitly selected file to automatically selected ones.
1032 if test -z "$CONFIG_SITE"; then
1033 @@ -902,7 +1107,7 @@
1035 for ac_site_file in $CONFIG_SITE; do
1036 if test -r "$ac_site_file"; then
1037 - { echo "$as_me:905: loading site script $ac_site_file" >&5
1038 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1039 echo "$as_me: loading site script $ac_site_file" >&6;}
1040 sed 's/^/| /' "$ac_site_file" >&5
1042 @@ -913,7 +1118,7 @@
1043 # Some versions of bash will fail to source /dev/null (special
1044 # files actually), so we avoid doing that.
1045 if test -f "$cache_file"; then
1046 - { echo "$as_me:916: loading cache $cache_file" >&5
1047 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1048 echo "$as_me: loading cache $cache_file" >&6;}
1050 [\\/]* | ?:[\\/]* ) . $cache_file;;
1051 @@ -921,7 +1126,7 @@
1055 - { echo "$as_me:924: creating cache $cache_file" >&5
1056 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1057 echo "$as_me: creating cache $cache_file" >&6;}
1060 @@ -937,42 +1142,42 @@
1061 eval ac_new_val="\$ac_env_${ac_var}_value"
1062 case $ac_old_set,$ac_new_set in
1064 - { echo "$as_me:940: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1065 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1066 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1067 ac_cache_corrupted=: ;;
1069 - { echo "$as_me:944: error: \`$ac_var' was not set in the previous run" >&5
1070 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1071 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1072 ac_cache_corrupted=: ;;
1075 if test "x$ac_old_val" != "x$ac_new_val"; then
1076 - { echo "$as_me:950: error: \`$ac_var' has changed since the previous run:" >&5
1077 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1078 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1079 - { echo "$as_me:952: former value: $ac_old_val" >&5
1080 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1081 echo "$as_me: former value: $ac_old_val" >&2;}
1082 - { echo "$as_me:954: current value: $ac_new_val" >&5
1083 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 - # Pass precious variables to config.status. It doesn't matter if
1089 - # we pass some twice (in addition to the command line arguments).
1090 + # Pass precious variables to config.status.
1091 if test "$ac_new_set" = set; then
1093 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1095 - ac_configure_args="$ac_configure_args '$ac_arg'"
1097 - *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1099 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 + *) ac_arg=$ac_var=$ac_new_val ;;
1102 + case " $ac_configure_args " in
1103 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1104 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1108 if $ac_cache_corrupted; then
1109 - { echo "$as_me:973: error: changes in the environment can compromise the build" >&5
1110 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1111 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1112 - { { echo "$as_me:975: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1113 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1114 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1115 { (exit 1); exit 1; }; }
1117 @@ -983,26 +1188,25 @@
1118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1121 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1122 - *c*,-n*) ECHO_N= ECHO_C='
1124 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1125 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1127 -echo "#! $SHELL" >conftest.sh
1128 -echo "exit 0" >>conftest.sh
1129 -chmod +x conftest.sh
1130 -if { (echo "$as_me:995: PATH=\".;.\"; conftest.sh") >&5
1131 - (PATH=".;."; conftest.sh) 2>&5
1133 - echo "$as_me:998: \$? = $ac_status" >&5
1134 - (exit $ac_status); }; then
1135 - ac_path_separator=';'
1137 - ac_path_separator=:
1139 -PATH_SEPARATOR="$ac_path_separator"
1162 ac_cpp='$CPP $CPPFLAGS'
1163 @@ -1012,7 +1216,7 @@
1164 if test -n "$ac_tool_prefix"; then
1165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1167 -echo "$as_me:1015: checking for $ac_word" >&5
1168 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1170 if test "${ac_cv_prog_CC+set}" = set; then
1171 echo $ECHO_N "(cached) $ECHO_C" >&6
1172 @@ -1020,25 +1224,28 @@
1173 if test -n "$CC"; then
1174 ac_cv_prog_CC="$CC" # Let the user override the test.
1176 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1178 -for ac_dir in $ac_dummy; do
1180 - test -z "$ac_dir" && ac_dir=.
1181 - $as_executable_p "$ac_dir/$ac_word" || continue
1182 -ac_cv_prog_CC="${ac_tool_prefix}gcc"
1183 -echo "$as_me:1030: found $ac_dir/$ac_word" >&5
1185 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 +for as_dir in $PATH
1189 + test -z "$as_dir" && as_dir=.
1190 + for ac_exec_ext in '' $ac_executable_extensions; do
1191 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1192 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1193 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1202 if test -n "$CC"; then
1203 - echo "$as_me:1038: result: $CC" >&5
1204 + echo "$as_me:$LINENO: result: $CC" >&5
1205 echo "${ECHO_T}$CC" >&6
1207 - echo "$as_me:1041: result: no" >&5
1208 + echo "$as_me:$LINENO: result: no" >&5
1209 echo "${ECHO_T}no" >&6
1212 @@ -1047,7 +1254,7 @@
1214 # Extract the first word of "gcc", so it can be a program name with args.
1215 set dummy gcc; ac_word=$2
1216 -echo "$as_me:1050: checking for $ac_word" >&5
1217 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1221 @@ -1055,25 +1262,28 @@
1222 if test -n "$ac_ct_CC"; then
1223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 -for ac_dir in $ac_dummy; do
1229 - test -z "$ac_dir" && ac_dir=.
1230 - $as_executable_p "$ac_dir/$ac_word" || continue
1231 -ac_cv_prog_ac_ct_CC="gcc"
1232 -echo "$as_me:1065: found $ac_dir/$ac_word" >&5
1234 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 +for as_dir in $PATH
1238 + test -z "$as_dir" && as_dir=.
1239 + for ac_exec_ext in '' $ac_executable_extensions; do
1240 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1241 + ac_cv_prog_ac_ct_CC="gcc"
1242 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1251 if test -n "$ac_ct_CC"; then
1252 - echo "$as_me:1073: result: $ac_ct_CC" >&5
1253 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1254 echo "${ECHO_T}$ac_ct_CC" >&6
1256 - echo "$as_me:1076: result: no" >&5
1257 + echo "$as_me:$LINENO: result: no" >&5
1258 echo "${ECHO_T}no" >&6
1261 @@ -1086,7 +1296,7 @@
1262 if test -n "$ac_tool_prefix"; then
1263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}cc; ac_word=$2
1265 -echo "$as_me:1089: checking for $ac_word" >&5
1266 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268 if test "${ac_cv_prog_CC+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1270 @@ -1094,25 +1304,28 @@
1271 if test -n "$CC"; then
1272 ac_cv_prog_CC="$CC" # Let the user override the test.
1274 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1276 -for ac_dir in $ac_dummy; do
1278 - test -z "$ac_dir" && ac_dir=.
1279 - $as_executable_p "$ac_dir/$ac_word" || continue
1280 -ac_cv_prog_CC="${ac_tool_prefix}cc"
1281 -echo "$as_me:1104: found $ac_dir/$ac_word" >&5
1283 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 +for as_dir in $PATH
1287 + test -z "$as_dir" && as_dir=.
1288 + for ac_exec_ext in '' $ac_executable_extensions; do
1289 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1290 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1291 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1300 if test -n "$CC"; then
1301 - echo "$as_me:1112: result: $CC" >&5
1302 + echo "$as_me:$LINENO: result: $CC" >&5
1303 echo "${ECHO_T}$CC" >&6
1305 - echo "$as_me:1115: result: no" >&5
1306 + echo "$as_me:$LINENO: result: no" >&5
1307 echo "${ECHO_T}no" >&6
1310 @@ -1121,7 +1334,7 @@
1312 # Extract the first word of "cc", so it can be a program name with args.
1313 set dummy cc; ac_word=$2
1314 -echo "$as_me:1124: checking for $ac_word" >&5
1315 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 @@ -1129,25 +1342,28 @@
1320 if test -n "$ac_ct_CC"; then
1321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1323 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1325 -for ac_dir in $ac_dummy; do
1327 - test -z "$ac_dir" && ac_dir=.
1328 - $as_executable_p "$ac_dir/$ac_word" || continue
1329 -ac_cv_prog_ac_ct_CC="cc"
1330 -echo "$as_me:1139: found $ac_dir/$ac_word" >&5
1332 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 +for as_dir in $PATH
1336 + test -z "$as_dir" && as_dir=.
1337 + for ac_exec_ext in '' $ac_executable_extensions; do
1338 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 + ac_cv_prog_ac_ct_CC="cc"
1340 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1349 if test -n "$ac_ct_CC"; then
1350 - echo "$as_me:1147: result: $ac_ct_CC" >&5
1351 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1352 echo "${ECHO_T}$ac_ct_CC" >&6
1354 - echo "$as_me:1150: result: no" >&5
1355 + echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1359 @@ -1160,7 +1376,7 @@
1360 if test -z "$CC"; then
1361 # Extract the first word of "cc", so it can be a program name with args.
1362 set dummy cc; ac_word=$2
1363 -echo "$as_me:1163: checking for $ac_word" >&5
1364 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 @@ -1169,19 +1385,22 @@
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1372 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1374 -for ac_dir in $ac_dummy; do
1376 - test -z "$ac_dir" && ac_dir=.
1377 - $as_executable_p "$ac_dir/$ac_word" || continue
1378 -if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1379 - ac_prog_rejected=yes
1383 -echo "$as_me:1183: found $ac_dir/$ac_word" >&5
1385 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 +for as_dir in $PATH
1389 + test -z "$as_dir" && as_dir=.
1390 + for ac_exec_ext in '' $ac_executable_extensions; do
1391 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1393 + ac_prog_rejected=yes
1396 + ac_cv_prog_CC="cc"
1397 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 if test $ac_prog_rejected = yes; then
1404 @@ -1193,7 +1412,7 @@
1405 # However, it has the same basename, so the bogon will be chosen
1406 # first if we set CC to just the basename; use the full file name.
1408 - set dummy "$ac_dir/$ac_word" ${1+"$@"}
1409 + set dummy "$as_dir/$ac_word" ${1+"$@"}
1413 @@ -1202,10 +1421,10 @@
1416 if test -n "$CC"; then
1417 - echo "$as_me:1205: result: $CC" >&5
1418 + echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 - echo "$as_me:1208: result: no" >&5
1422 + echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1426 @@ -1216,7 +1435,7 @@
1428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1430 -echo "$as_me:1219: checking for $ac_word" >&5
1431 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 @@ -1224,25 +1443,28 @@
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1439 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1441 -for ac_dir in $ac_dummy; do
1443 - test -z "$ac_dir" && ac_dir=.
1444 - $as_executable_p "$ac_dir/$ac_word" || continue
1445 -ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1446 -echo "$as_me:1234: found $ac_dir/$ac_word" >&5
1448 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 +for as_dir in $PATH
1452 + test -z "$as_dir" && as_dir=.
1453 + for ac_exec_ext in '' $ac_executable_extensions; do
1454 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1456 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 if test -n "$CC"; then
1466 - echo "$as_me:1242: result: $CC" >&5
1467 + echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1470 - echo "$as_me:1245: result: no" >&5
1471 + echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1475 @@ -1255,7 +1477,7 @@
1477 # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 -echo "$as_me:1258: checking for $ac_word" >&5
1480 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 @@ -1263,25 +1485,28 @@
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1490 -for ac_dir in $ac_dummy; do
1492 - test -z "$ac_dir" && ac_dir=.
1493 - $as_executable_p "$ac_dir/$ac_word" || continue
1494 -ac_cv_prog_ac_ct_CC="$ac_prog"
1495 -echo "$as_me:1273: found $ac_dir/$ac_word" >&5
1497 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 +for as_dir in $PATH
1501 + test -z "$as_dir" && as_dir=.
1502 + for ac_exec_ext in '' $ac_executable_extensions; do
1503 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 + ac_cv_prog_ac_ct_CC="$ac_prog"
1505 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1514 if test -n "$ac_ct_CC"; then
1515 - echo "$as_me:1281: result: $ac_ct_CC" >&5
1516 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1517 echo "${ECHO_T}$ac_ct_CC" >&6
1519 - echo "$as_me:1284: result: no" >&5
1520 + echo "$as_me:$LINENO: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1524 @@ -1293,32 +1518,33 @@
1528 -test -z "$CC" && { { echo "$as_me:1296: error: no acceptable cc found in \$PATH" >&5
1529 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1531 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1532 +echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1533 { (exit 1); exit 1; }; }
1535 # Provide some information about the compiler.
1536 -echo "$as_me:1301:" \
1537 +echo "$as_me:$LINENO:" \
1538 "checking for C compiler version" >&5
1539 ac_compiler=`set X $ac_compile; echo $2`
1540 -{ (eval echo "$as_me:1304: \"$ac_compiler --version </dev/null >&5\"") >&5
1541 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1542 (eval $ac_compiler --version </dev/null >&5) 2>&5
1544 - echo "$as_me:1307: \$? = $ac_status" >&5
1545 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1546 (exit $ac_status); }
1547 -{ (eval echo "$as_me:1309: \"$ac_compiler -v </dev/null >&5\"") >&5
1548 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1549 (eval $ac_compiler -v </dev/null >&5) 2>&5
1551 - echo "$as_me:1312: \$? = $ac_status" >&5
1552 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1553 (exit $ac_status); }
1554 -{ (eval echo "$as_me:1314: \"$ac_compiler -V </dev/null >&5\"") >&5
1555 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1556 (eval $ac_compiler -V </dev/null >&5) 2>&5
1558 - echo "$as_me:1317: \$? = $ac_status" >&5
1559 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1560 (exit $ac_status); }
1562 cat >conftest.$ac_ext <<_ACEOF
1563 -#line 1321 "configure"
1564 +#line $LINENO "configure"
1565 #include "confdefs.h"
1567 #ifdef F77_DUMMY_MAIN
1568 @@ -1340,18 +1566,22 @@
1569 # Try to create an executable without -o first, disregard a.out.
1570 # It will help us diagnose broken compilers, and finding out an intuition
1572 -echo "$as_me:1343: checking for C compiler default output" >&5
1573 +echo "$as_me:$LINENO: checking for C compiler default output" >&5
1574 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1575 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1576 -if { (eval echo "$as_me:1346: \"$ac_link_default\"") >&5
1577 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1578 (eval $ac_link_default) 2>&5
1580 - echo "$as_me:1349: \$? = $ac_status" >&5
1581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1582 (exit $ac_status); }; then
1583 # Find the output, starting from the most likely. This scheme is
1584 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1586 -for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1588 +# Be careful to initialize this variable, since it used to be cached.
1589 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1591 +for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1592 ls a.out conftest 2>/dev/null;
1593 ls a.* conftest.* 2>/dev/null`; do
1595 @@ -1369,34 +1599,34 @@
1597 echo "$as_me: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1599 -{ { echo "$as_me:1372: error: C compiler cannot create executables" >&5
1600 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1601 echo "$as_me: error: C compiler cannot create executables" >&2;}
1602 { (exit 77); exit 77; }; }
1605 ac_exeext=$ac_cv_exeext
1606 -echo "$as_me:1378: result: $ac_file" >&5
1607 +echo "$as_me:$LINENO: result: $ac_file" >&5
1608 echo "${ECHO_T}$ac_file" >&6
1610 # Check the compiler produces executables we can run. If not, either
1611 # the compiler is broken, or we cross compile.
1612 -echo "$as_me:1383: checking whether the C compiler works" >&5
1613 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1614 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1615 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1616 # If not cross compiling, check that we can run a simple program.
1617 if test "$cross_compiling" != yes; then
1618 if { ac_try='./$ac_file'
1619 - { (eval echo "$as_me:1389: \"$ac_try\"") >&5
1620 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1623 - echo "$as_me:1392: \$? = $ac_status" >&5
1624 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }; }; then
1628 if test "$cross_compiling" = maybe; then
1631 - { { echo "$as_me:1399: error: cannot run C compiled programs.
1632 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1633 If you meant to cross compile, use \`--host'." >&5
1634 echo "$as_me: error: cannot run C compiled programs.
1635 If you meant to cross compile, use \`--host'." >&2;}
1636 @@ -1404,24 +1634,24 @@
1640 -echo "$as_me:1407: result: yes" >&5
1641 +echo "$as_me:$LINENO: result: yes" >&5
1642 echo "${ECHO_T}yes" >&6
1644 rm -f a.out a.exe conftest$ac_cv_exeext
1645 ac_clean_files=$ac_clean_files_save
1646 # Check the compiler produces executables we can run. If not, either
1647 # the compiler is broken, or we cross compile.
1648 -echo "$as_me:1414: checking whether we are cross compiling" >&5
1649 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1650 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1651 -echo "$as_me:1416: result: $cross_compiling" >&5
1652 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
1653 echo "${ECHO_T}$cross_compiling" >&6
1655 -echo "$as_me:1419: checking for executable suffix" >&5
1656 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1657 -if { (eval echo "$as_me:1421: \"$ac_link\"") >&5
1658 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
1659 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1660 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1661 (eval $ac_link) 2>&5
1663 - echo "$as_me:1424: \$? = $ac_status" >&5
1664 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665 (exit $ac_status); }; then
1666 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1667 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1668 @@ -1437,25 +1667,25 @@
1672 - { { echo "$as_me:1440: error: cannot compute EXEEXT: cannot compile and link" >&5
1673 -echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1674 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1675 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1676 { (exit 1); exit 1; }; }
1679 rm -f conftest$ac_cv_exeext
1680 -echo "$as_me:1446: result: $ac_cv_exeext" >&5
1681 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1682 echo "${ECHO_T}$ac_cv_exeext" >&6
1684 rm -f conftest.$ac_ext
1685 EXEEXT=$ac_cv_exeext
1687 -echo "$as_me:1452: checking for object suffix" >&5
1688 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1689 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
1690 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1691 if test "${ac_cv_objext+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 cat >conftest.$ac_ext <<_ACEOF
1695 -#line 1458 "configure"
1696 +#line $LINENO "configure"
1697 #include "confdefs.h"
1699 #ifdef F77_DUMMY_MAIN
1700 @@ -1473,10 +1703,10 @@
1703 rm -f conftest.o conftest.obj
1704 -if { (eval echo "$as_me:1476: \"$ac_compile\"") >&5
1705 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1706 (eval $ac_compile) 2>&5
1708 - echo "$as_me:1479: \$? = $ac_status" >&5
1709 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }; then
1711 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1713 @@ -1488,24 +1718,24 @@
1715 echo "$as_me: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 -{ { echo "$as_me:1491: error: cannot compute OBJEXT: cannot compile" >&5
1718 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1719 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1720 +echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1721 { (exit 1); exit 1; }; }
1724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1726 -echo "$as_me:1498: result: $ac_cv_objext" >&5
1727 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1728 echo "${ECHO_T}$ac_cv_objext" >&6
1729 OBJEXT=$ac_cv_objext
1731 -echo "$as_me:1502: checking whether we are using the GNU C compiler" >&5
1732 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 cat >conftest.$ac_ext <<_ACEOF
1738 -#line 1508 "configure"
1739 +#line $LINENO "configure"
1740 #include "confdefs.h"
1742 #ifdef F77_DUMMY_MAIN
1743 @@ -1526,16 +1756,16 @@
1746 rm -f conftest.$ac_objext
1747 -if { (eval echo "$as_me:1529: \"$ac_compile\"") >&5
1748 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1749 (eval $ac_compile) 2>&5
1751 - echo "$as_me:1532: \$? = $ac_status" >&5
1752 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); } &&
1754 { ac_try='test -s conftest.$ac_objext'
1755 - { (eval echo "$as_me:1535: \"$ac_try\"") >&5
1756 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1759 - echo "$as_me:1538: \$? = $ac_status" >&5
1760 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 @@ -1547,19 +1777,19 @@
1765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1768 -echo "$as_me:1550: result: $ac_cv_c_compiler_gnu" >&5
1769 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1770 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1771 GCC=`test $ac_compiler_gnu = yes && echo yes`
1772 ac_test_CFLAGS=${CFLAGS+set}
1773 ac_save_CFLAGS=$CFLAGS
1775 -echo "$as_me:1556: checking whether $CC accepts -g" >&5
1776 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1777 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1778 if test "${ac_cv_prog_cc_g+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 cat >conftest.$ac_ext <<_ACEOF
1782 -#line 1562 "configure"
1783 +#line $LINENO "configure"
1784 #include "confdefs.h"
1786 #ifdef F77_DUMMY_MAIN
1787 @@ -1577,16 +1807,16 @@
1790 rm -f conftest.$ac_objext
1791 -if { (eval echo "$as_me:1580: \"$ac_compile\"") >&5
1792 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1793 (eval $ac_compile) 2>&5
1795 - echo "$as_me:1583: \$? = $ac_status" >&5
1796 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); } &&
1798 { ac_try='test -s conftest.$ac_objext'
1799 - { (eval echo "$as_me:1586: \"$ac_try\"") >&5
1800 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1803 - echo "$as_me:1589: \$? = $ac_status" >&5
1804 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 @@ -1596,7 +1826,7 @@
1810 rm -f conftest.$ac_objext conftest.$ac_ext
1812 -echo "$as_me:1599: result: $ac_cv_prog_cc_g" >&5
1813 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1815 if test "$ac_test_CFLAGS" = set; then
1816 CFLAGS=$ac_save_CFLAGS
1817 @@ -1623,16 +1853,16 @@
1820 rm -f conftest.$ac_objext
1821 -if { (eval echo "$as_me:1626: \"$ac_compile\"") >&5
1822 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>&5
1825 - echo "$as_me:1629: \$? = $ac_status" >&5
1826 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); } &&
1828 { ac_try='test -s conftest.$ac_objext'
1829 - { (eval echo "$as_me:1632: \"$ac_try\"") >&5
1830 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 - echo "$as_me:1635: \$? = $ac_status" >&5
1834 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; }; then
1836 for ac_declaration in \
1838 @@ -1644,7 +1874,7 @@
1841 cat >conftest.$ac_ext <<_ACEOF
1842 -#line 1647 "configure"
1843 +#line $LINENO "configure"
1844 #include "confdefs.h"
1847 @@ -1663,16 +1893,16 @@
1850 rm -f conftest.$ac_objext
1851 -if { (eval echo "$as_me:1666: \"$ac_compile\"") >&5
1852 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1855 - echo "$as_me:1669: \$? = $ac_status" >&5
1856 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); } &&
1858 { ac_try='test -s conftest.$ac_objext'
1859 - { (eval echo "$as_me:1672: \"$ac_try\"") >&5
1860 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863 - echo "$as_me:1675: \$? = $ac_status" >&5
1864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }; }; then
1868 @@ -1682,7 +1912,7 @@
1870 rm -f conftest.$ac_objext conftest.$ac_ext
1871 cat >conftest.$ac_ext <<_ACEOF
1872 -#line 1685 "configure"
1873 +#line $LINENO "configure"
1874 #include "confdefs.h"
1876 #ifdef F77_DUMMY_MAIN
1877 @@ -1700,16 +1930,16 @@
1880 rm -f conftest.$ac_objext
1881 -if { (eval echo "$as_me:1703: \"$ac_compile\"") >&5
1882 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1883 (eval $ac_compile) 2>&5
1885 - echo "$as_me:1706: \$? = $ac_status" >&5
1886 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try='test -s conftest.$ac_objext'
1889 - { (eval echo "$as_me:1709: \"$ac_try\"") >&5
1890 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 - echo "$as_me:1712: \$? = $ac_status" >&5
1894 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 @@ -1746,7 +1976,7 @@
1900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1902 -echo "$as_me:1749: checking for $ac_word" >&5
1903 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CXX+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 @@ -1754,25 +1984,28 @@
1908 if test -n "$CXX"; then
1909 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1911 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1913 -for ac_dir in $ac_dummy; do
1915 - test -z "$ac_dir" && ac_dir=.
1916 - $as_executable_p "$ac_dir/$ac_word" || continue
1917 -ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1918 -echo "$as_me:1764: found $ac_dir/$ac_word" >&5
1920 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 +for as_dir in $PATH
1924 + test -z "$as_dir" && as_dir=.
1925 + for ac_exec_ext in '' $ac_executable_extensions; do
1926 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1928 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 if test -n "$CXX"; then
1938 - echo "$as_me:1772: result: $CXX" >&5
1939 + echo "$as_me:$LINENO: result: $CXX" >&5
1940 echo "${ECHO_T}$CXX" >&6
1942 - echo "$as_me:1775: result: no" >&5
1943 + echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1947 @@ -1785,7 +2018,7 @@
1949 # Extract the first word of "$ac_prog", so it can be a program name with args.
1950 set dummy $ac_prog; ac_word=$2
1951 -echo "$as_me:1788: checking for $ac_word" >&5
1952 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 @@ -1793,25 +2026,28 @@
1957 if test -n "$ac_ct_CXX"; then
1958 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1960 - ac_save_IFS=$IFS; IFS=$ac_path_separator
1962 -for ac_dir in $ac_dummy; do
1964 - test -z "$ac_dir" && ac_dir=.
1965 - $as_executable_p "$ac_dir/$ac_word" || continue
1966 -ac_cv_prog_ac_ct_CXX="$ac_prog"
1967 -echo "$as_me:1803: found $ac_dir/$ac_word" >&5
1969 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 +for as_dir in $PATH
1973 + test -z "$as_dir" && as_dir=.
1974 + for ac_exec_ext in '' $ac_executable_extensions; do
1975 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 + ac_cv_prog_ac_ct_CXX="$ac_prog"
1977 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1986 if test -n "$ac_ct_CXX"; then
1987 - echo "$as_me:1811: result: $ac_ct_CXX" >&5
1988 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1989 echo "${ECHO_T}$ac_ct_CXX" >&6
1991 - echo "$as_me:1814: result: no" >&5
1992 + echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1996 @@ -1822,33 +2058,34 @@
2001 # Provide some information about the compiler.
2002 -echo "$as_me:1826:" \
2003 +echo "$as_me:$LINENO:" \
2004 "checking for C++ compiler version" >&5
2005 ac_compiler=`set X $ac_compile; echo $2`
2006 -{ (eval echo "$as_me:1829: \"$ac_compiler --version </dev/null >&5\"") >&5
2007 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2008 (eval $ac_compiler --version </dev/null >&5) 2>&5
2010 - echo "$as_me:1832: \$? = $ac_status" >&5
2011 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 -{ (eval echo "$as_me:1834: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2015 (eval $ac_compiler -v </dev/null >&5) 2>&5
2017 - echo "$as_me:1837: \$? = $ac_status" >&5
2018 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020 -{ (eval echo "$as_me:1839: \"$ac_compiler -V </dev/null >&5\"") >&5
2021 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022 (eval $ac_compiler -V </dev/null >&5) 2>&5
2024 - echo "$as_me:1842: \$? = $ac_status" >&5
2025 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2028 -echo "$as_me:1845: checking whether we are using the GNU C++ compiler" >&5
2029 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2030 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2031 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 cat >conftest.$ac_ext <<_ACEOF
2035 -#line 1851 "configure"
2036 +#line $LINENO "configure"
2037 #include "confdefs.h"
2039 #ifdef F77_DUMMY_MAIN
2040 @@ -1869,16 +2106,16 @@
2043 rm -f conftest.$ac_objext
2044 -if { (eval echo "$as_me:1872: \"$ac_compile\"") >&5
2045 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2048 - echo "$as_me:1875: \$? = $ac_status" >&5
2049 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 - { (eval echo "$as_me:1878: \"$ac_try\"") >&5
2053 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 - echo "$as_me:1881: \$? = $ac_status" >&5
2057 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 @@ -1890,19 +2127,19 @@
2062 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2065 -echo "$as_me:1893: result: $ac_cv_cxx_compiler_gnu" >&5
2066 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2068 GXX=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CXXFLAGS=${CXXFLAGS+set}
2070 ac_save_CXXFLAGS=$CXXFLAGS
2072 -echo "$as_me:1899: checking whether $CXX accepts -g" >&5
2073 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cxx_g+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 cat >conftest.$ac_ext <<_ACEOF
2079 -#line 1905 "configure"
2080 +#line $LINENO "configure"
2081 #include "confdefs.h"
2083 #ifdef F77_DUMMY_MAIN
2084 @@ -1920,16 +2157,16 @@
2087 rm -f conftest.$ac_objext
2088 -if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
2089 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>&5
2092 - echo "$as_me:1926: \$? = $ac_status" >&5
2093 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); } &&
2095 { ac_try='test -s conftest.$ac_objext'
2096 - { (eval echo "$as_me:1929: \"$ac_try\"") >&5
2097 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 - echo "$as_me:1932: \$? = $ac_status" >&5
2101 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_cv_prog_cxx_g=yes
2105 @@ -1939,7 +2176,7 @@
2107 rm -f conftest.$ac_objext conftest.$ac_ext
2109 -echo "$as_me:1942: result: $ac_cv_prog_cxx_g" >&5
2110 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2111 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2112 if test "$ac_test_CXXFLAGS" = set; then
2113 CXXFLAGS=$ac_save_CXXFLAGS
2114 @@ -1966,7 +2203,7 @@
2117 cat >conftest.$ac_ext <<_ACEOF
2118 -#line 1969 "configure"
2119 +#line $LINENO "configure"
2120 #include "confdefs.h"
2123 @@ -1985,16 +2222,16 @@
2126 rm -f conftest.$ac_objext
2127 -if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
2128 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>&5
2131 - echo "$as_me:1991: \$? = $ac_status" >&5
2132 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); } &&
2134 { ac_try='test -s conftest.$ac_objext'
2135 - { (eval echo "$as_me:1994: \"$ac_try\"") >&5
2136 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 - echo "$as_me:1997: \$? = $ac_status" >&5
2140 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 @@ -2004,7 +2241,7 @@
2146 rm -f conftest.$ac_objext conftest.$ac_ext
2147 cat >conftest.$ac_ext <<_ACEOF
2148 -#line 2007 "configure"
2149 +#line $LINENO "configure"
2150 #include "confdefs.h"
2152 #ifdef F77_DUMMY_MAIN
2153 @@ -2022,16 +2259,16 @@
2156 rm -f conftest.$ac_objext
2157 -if { (eval echo "$as_me:2025: \"$ac_compile\"") >&5
2158 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>&5
2161 - echo "$as_me:2028: \$? = $ac_status" >&5
2162 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 - { (eval echo "$as_me:2031: \"$ac_try\"") >&5
2166 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 - echo "$as_me:2034: \$? = $ac_status" >&5
2170 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 @@ -2058,7 +2295,7 @@
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 -echo "$as_me:2061: checking how to run the C preprocessor" >&5
2179 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2180 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2181 # On Suns, sometimes $CPP names a directory.
2182 if test -n "$CPP" && test -d "$CPP"; then
2183 @@ -2079,18 +2316,18 @@
2184 # On the NeXT, cc -E runs the code through the compiler's parser,
2185 # not just through cpp. "Syntax error" is here to catch this case.
2186 cat >conftest.$ac_ext <<_ACEOF
2187 -#line 2082 "configure"
2188 +#line $LINENO "configure"
2189 #include "confdefs.h"
2193 -if { (eval echo "$as_me:2087: \"$ac_cpp conftest.$ac_ext\"") >&5
2194 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2197 egrep -v '^ *\+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 - echo "$as_me:2093: \$? = $ac_status" >&5
2201 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } >/dev/null; then
2203 if test -s conftest.err; then
2204 ac_cpp_err=$ac_c_preproc_warn_flag
2205 @@ -2113,17 +2350,17 @@
2206 # OK, works on sane cases. Now check whether non-existent headers
2207 # can be detected and how.
2208 cat >conftest.$ac_ext <<_ACEOF
2209 -#line 2116 "configure"
2210 +#line $LINENO "configure"
2211 #include "confdefs.h"
2212 #include <ac_nonexistent.h>
2214 -if { (eval echo "$as_me:2120: \"$ac_cpp conftest.$ac_ext\"") >&5
2215 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2218 egrep -v '^ *\+' conftest.er1 >conftest.err
2220 cat conftest.err >&5
2221 - echo "$as_me:2126: \$? = $ac_status" >&5
2222 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } >/dev/null; then
2224 if test -s conftest.err; then
2225 ac_cpp_err=$ac_c_preproc_warn_flag
2226 @@ -2160,7 +2397,7 @@
2230 -echo "$as_me:2163: result: $CPP" >&5
2231 +echo "$as_me:$LINENO: result: $CPP" >&5
2232 echo "${ECHO_T}$CPP" >&6
2234 for ac_c_preproc_warn_flag in '' yes
2235 @@ -2170,18 +2407,18 @@
2236 # On the NeXT, cc -E runs the code through the compiler's parser,
2237 # not just through cpp. "Syntax error" is here to catch this case.
2238 cat >conftest.$ac_ext <<_ACEOF
2239 -#line 2173 "configure"
2240 +#line $LINENO "configure"
2241 #include "confdefs.h"
2245 -if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2246 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2249 egrep -v '^ *\+' conftest.er1 >conftest.err
2251 cat conftest.err >&5
2252 - echo "$as_me:2184: \$? = $ac_status" >&5
2253 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); } >/dev/null; then
2255 if test -s conftest.err; then
2256 ac_cpp_err=$ac_c_preproc_warn_flag
2257 @@ -2204,17 +2441,17 @@
2258 # OK, works on sane cases. Now check whether non-existent headers
2259 # can be detected and how.
2260 cat >conftest.$ac_ext <<_ACEOF
2261 -#line 2207 "configure"
2262 +#line $LINENO "configure"
2263 #include "confdefs.h"
2264 #include <ac_nonexistent.h>
2266 -if { (eval echo "$as_me:2211: \"$ac_cpp conftest.$ac_ext\"") >&5
2267 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2270 egrep -v '^ *\+' conftest.er1 >conftest.err
2272 cat conftest.err >&5
2273 - echo "$as_me:2217: \$? = $ac_status" >&5
2274 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } >/dev/null; then
2276 if test -s conftest.err; then
2277 ac_cpp_err=$ac_c_preproc_warn_flag
2278 @@ -2242,7 +2479,7 @@
2279 if $ac_preproc_ok; then
2282 - { { echo "$as_me:2245: error: C preprocessor \"$CPP\" fails sanity check" >&5
2283 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2285 { (exit 1); exit 1; }; }
2287 @@ -2253,7 +2490,7 @@
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291 -echo "$as_me:2256: checking whether ${MAKE-make} sets \${MAKE}" >&5
2292 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2293 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2294 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2295 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2296 @@ -2273,15 +2510,16 @@
2299 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2300 - echo "$as_me:2276: result: yes" >&5
2301 + echo "$as_me:$LINENO: result: yes" >&5
2302 echo "${ECHO_T}yes" >&6
2305 - echo "$as_me:2280: result: no" >&5
2306 + echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2308 SET_MAKE="MAKE=${MAKE-make}"
2312 if [ x"$GXX" = "xyes" ]; then
2313 CFLAGS="-O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format"
2315 @@ -2294,10 +2532,13 @@
2316 HPUX_REV=`echo $UNAME_RELEASE | sed -e 's/^.*.0B*//' -e 's/\..*$//'`
2319 -echo "$as_me:2297: checking for AIX" >&5
2323 +echo "$as_me:$LINENO: checking for AIX" >&5
2324 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2325 cat >conftest.$ac_ext <<_ACEOF
2326 -#line 2300 "configure"
2327 +#line $LINENO "configure"
2328 #include "confdefs.h"
2331 @@ -2306,44 +2547,130 @@
2333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2334 egrep "yes" >/dev/null 2>&1; then
2335 - echo "$as_me:2309: result: yes" >&5
2336 + echo "$as_me:$LINENO: result: yes" >&5
2337 echo "${ECHO_T}yes" >&6
2338 cat >>confdefs.h <<\_ACEOF
2339 #define _ALL_SOURCE 1
2343 - echo "$as_me:2316: result: no" >&5
2344 + echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2349 -echo "$as_me:2321: checking for POSIXized ISC" >&5
2350 -echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2351 -if test -d /etc/conf/kconfig.d &&
2352 - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2354 - echo "$as_me:2326: result: yes" >&5
2355 -echo "${ECHO_T}yes" >&6
2356 - ISC=yes # If later tests want to check for ISC.
2358 -cat >>confdefs.h <<\_ACEOF
2359 -#define _POSIX_SOURCE 1
2360 +echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362 +if test "${ac_cv_search_strerror+set}" = set; then
2363 + echo $ECHO_N "(cached) $ECHO_C" >&6
2365 + ac_func_search_save_LIBS=$LIBS
2366 +ac_cv_search_strerror=no
2367 +cat >conftest.$ac_ext <<_ACEOF
2368 +#line $LINENO "configure"
2369 +#include "confdefs.h"
2371 +/* Override any gcc2 internal prototype to avoid an error. */
2375 +/* We use char because int might match the return type of a gcc2
2376 + builtin and then its argument prototype would still apply. */
2378 +#ifdef F77_DUMMY_MAIN
2379 +# ifdef __cplusplus
2382 + int F77_DUMMY_MAIN() { return 1; }
2392 +rm -f conftest.$ac_objext conftest$ac_exeext
2393 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 + (eval $ac_link) 2>&5
2396 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 + (exit $ac_status); } &&
2398 + { ac_try='test -s conftest$ac_exeext'
2399 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 + (eval $ac_try) 2>&5
2402 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 + (exit $ac_status); }; }; then
2404 + ac_cv_search_strerror="none required"
2406 + echo "$as_me: failed program was:" >&5
2407 +cat conftest.$ac_ext >&5
2409 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2410 +if test "$ac_cv_search_strerror" = no; then
2411 + for ac_lib in cposix; do
2412 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2413 + cat >conftest.$ac_ext <<_ACEOF
2414 +#line $LINENO "configure"
2415 +#include "confdefs.h"
2417 - if test "$GCC" = yes; then
2422 +/* Override any gcc2 internal prototype to avoid an error. */
2426 +/* We use char because int might match the return type of a gcc2
2427 + builtin and then its argument prototype would still apply. */
2429 +#ifdef F77_DUMMY_MAIN
2430 +# ifdef __cplusplus
2433 + int F77_DUMMY_MAIN() { return 1; }
2443 +rm -f conftest.$ac_objext conftest$ac_exeext
2444 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 + (eval $ac_link) 2>&5
2447 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 + (exit $ac_status); } &&
2449 + { ac_try='test -s conftest$ac_exeext'
2450 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 + (eval $ac_try) 2>&5
2453 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 + (exit $ac_status); }; }; then
2455 + ac_cv_search_strerror="-l$ac_lib"
2458 - echo "$as_me:2340: result: no" >&5
2459 -echo "${ECHO_T}no" >&6
2461 + echo "$as_me: failed program was:" >&5
2462 +cat conftest.$ac_ext >&5
2464 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2467 +LIBS=$ac_func_search_save_LIBS
2469 +echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2470 +echo "${ECHO_T}$ac_cv_search_strerror" >&6
2471 +if test "$ac_cv_search_strerror" != no; then
2472 + test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2478 -echo "$as_me:2346: checking for OpenLibrary in -lamiga" >&5
2479 +echo "$as_me:$LINENO: checking for OpenLibrary in -lamiga" >&5
2480 echo $ECHO_N "checking for OpenLibrary in -lamiga... $ECHO_C" >&6
2481 if test "${ac_cv_lib_amiga_OpenLibrary+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 @@ -2351,7 +2678,7 @@
2484 ac_check_lib_save_LIBS=$LIBS
2485 LIBS="-lamiga $LIBS"
2486 cat >conftest.$ac_ext <<_ACEOF
2487 -#line 2354 "configure"
2488 +#line $LINENO "configure"
2489 #include "confdefs.h"
2491 /* Override any gcc2 internal prototype to avoid an error. */
2492 @@ -2376,16 +2703,16 @@
2495 rm -f conftest.$ac_objext conftest$ac_exeext
2496 -if { (eval echo "$as_me:2379: \"$ac_link\"") >&5
2497 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2498 (eval $ac_link) 2>&5
2500 - echo "$as_me:2382: \$? = $ac_status" >&5
2501 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -s conftest$ac_exeext'
2504 - { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2505 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 - echo "$as_me:2388: \$? = $ac_status" >&5
2509 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_lib_amiga_OpenLibrary=yes
2513 @@ -2396,7 +2723,7 @@
2514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2515 LIBS=$ac_check_lib_save_LIBS
2517 -echo "$as_me:2399: result: $ac_cv_lib_amiga_OpenLibrary" >&5
2518 +echo "$as_me:$LINENO: result: $ac_cv_lib_amiga_OpenLibrary" >&5
2519 echo "${ECHO_T}$ac_cv_lib_amiga_OpenLibrary" >&6
2520 if test $ac_cv_lib_amiga_OpenLibrary = yes; then
2522 @@ -2404,7 +2731,7 @@
2526 -echo "$as_me:2407: checking for vga_setmode in -lvga" >&5
2527 +echo "$as_me:$LINENO: checking for vga_setmode in -lvga" >&5
2528 echo $ECHO_N "checking for vga_setmode in -lvga... $ECHO_C" >&6
2529 if test "${ac_cv_lib_vga_vga_setmode+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 @@ -2412,7 +2739,7 @@
2532 ac_check_lib_save_LIBS=$LIBS
2534 cat >conftest.$ac_ext <<_ACEOF
2535 -#line 2415 "configure"
2536 +#line $LINENO "configure"
2537 #include "confdefs.h"
2539 /* Override any gcc2 internal prototype to avoid an error. */
2540 @@ -2437,16 +2764,16 @@
2543 rm -f conftest.$ac_objext conftest$ac_exeext
2544 -if { (eval echo "$as_me:2440: \"$ac_link\"") >&5
2545 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2548 - echo "$as_me:2443: \$? = $ac_status" >&5
2549 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest$ac_exeext'
2552 - { (eval echo "$as_me:2446: \"$ac_try\"") >&5
2553 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 - echo "$as_me:2449: \$? = $ac_status" >&5
2557 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_lib_vga_vga_setmode=yes
2561 @@ -2457,7 +2784,7 @@
2562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2563 LIBS=$ac_check_lib_save_LIBS
2565 -echo "$as_me:2460: result: $ac_cv_lib_vga_vga_setmode" >&5
2566 +echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_setmode" >&5
2567 echo "${ECHO_T}$ac_cv_lib_vga_vga_setmode" >&6
2568 if test $ac_cv_lib_vga_vga_setmode = yes; then
2570 @@ -2465,6 +2792,7 @@
2575 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
2576 if test "${with_sdl_prefix+set}" = set; then
2577 withval="$with_sdl_prefix"
2578 @@ -2503,7 +2831,7 @@
2580 # Extract the first word of "sdl-config", so it can be a program name with args.
2581 set dummy sdl-config; ac_word=$2
2582 -echo "$as_me:2506: checking for $ac_word" >&5
2583 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 @@ -2513,16 +2841,18 @@
2588 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2591 - ac_save_IFS=$IFS; IFS=$ac_path_separator
2593 -for ac_dir in $ac_dummy; do
2595 - test -z "$ac_dir" && ac_dir=.
2596 - if $as_executable_p "$ac_dir/$ac_word"; then
2597 - ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
2598 - echo "$as_me:2523: found $ac_dir/$ac_word" >&5
2601 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 +for as_dir in $PATH
2605 + test -z "$as_dir" && as_dir=.
2606 + for ac_exec_ext in '' $ac_executable_extensions; do
2607 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608 + ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2609 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2616 @@ -2532,15 +2862,15 @@
2617 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2619 if test -n "$SDL_CONFIG"; then
2620 - echo "$as_me:2535: result: $SDL_CONFIG" >&5
2621 + echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2622 echo "${ECHO_T}$SDL_CONFIG" >&6
2624 - echo "$as_me:2538: result: no" >&5
2625 + echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2629 min_sdl_version=1.2.0
2630 - echo "$as_me:2543: checking for SDL - version >= $min_sdl_version" >&5
2631 + echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2632 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
2634 if test "$SDL_CONFIG" = "no" ; then
2635 @@ -2565,7 +2895,7 @@
2636 echo $ac_n "cross compiling; assumed OK... $ac_c"
2638 cat >conftest.$ac_ext <<_ACEOF
2639 -#line 2568 "configure"
2640 +#line $LINENO "configure"
2641 #include "confdefs.h"
2644 @@ -2624,23 +2954,25 @@
2650 rm -f conftest$ac_exeext
2651 -if { (eval echo "$as_me:2629: \"$ac_link\"") >&5
2652 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>&5
2655 - echo "$as_me:2632: \$? = $ac_status" >&5
2656 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2658 - { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2659 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 - echo "$as_me:2637: \$? = $ac_status" >&5
2663 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: program exited with status $ac_status" >&5
2668 echo "$as_me: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2670 +( exit $ac_status )
2673 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2674 @@ -2650,11 +2982,11 @@
2677 if test "x$no_sdl" = x ; then
2678 - echo "$as_me:2653: result: yes" >&5
2679 + echo "$as_me:$LINENO: result: yes" >&5
2680 echo "${ECHO_T}yes" >&6
2683 - echo "$as_me:2657: result: no" >&5
2684 + echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2686 if test "$SDL_CONFIG" = "no" ; then
2687 echo "*** The sdl-config script installed by SDL could not be found"
2688 @@ -2669,7 +3001,7 @@
2689 CFLAGS="$CFLAGS $SDL_CFLAGS"
2690 LIBS="$LIBS $SDL_LIBS"
2691 cat >conftest.$ac_ext <<_ACEOF
2692 -#line 2672 "configure"
2693 +#line $LINENO "configure"
2694 #include "confdefs.h"
2697 @@ -2690,16 +3022,16 @@
2700 rm -f conftest.$ac_objext conftest$ac_exeext
2701 -if { (eval echo "$as_me:2693: \"$ac_link\"") >&5
2702 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2703 (eval $ac_link) 2>&5
2705 - echo "$as_me:2696: \$? = $ac_status" >&5
2706 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -s conftest$ac_exeext'
2709 - { (eval echo "$as_me:2699: \"$ac_try\"") >&5
2710 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 - echo "$as_me:2702: \$? = $ac_status" >&5
2714 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 echo "*** The test program compiled, but did not run. This usually means"
2717 echo "*** that the run-time linker is not finding SDL or finding the wrong"
2718 @@ -2728,11 +3060,14 @@
2725 -echo "$as_me:2733: checking for X" >&5
2727 +echo "$as_me:$LINENO: checking for X" >&5
2728 echo $ECHO_N "checking for X... $ECHO_C" >&6
2731 # Check whether --with-x or --without-x was given.
2732 if test "${with_x+set}" = set; then
2734 @@ -2827,17 +3162,17 @@
2735 # Guess where to find include files, by looking for Intrinsic.h.
2736 # First, try using that file with no special directory specified.
2737 cat >conftest.$ac_ext <<_ACEOF
2738 -#line 2830 "configure"
2739 +#line $LINENO "configure"
2740 #include "confdefs.h"
2741 #include <X11/Intrinsic.h>
2743 -if { (eval echo "$as_me:2834: \"$ac_cpp conftest.$ac_ext\"") >&5
2744 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2747 egrep -v '^ *\+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 - echo "$as_me:2840: \$? = $ac_status" >&5
2751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } >/dev/null; then
2753 if test -s conftest.err; then
2754 ac_cpp_err=$ac_c_preproc_warn_flag
2755 @@ -2870,7 +3205,7 @@
2758 cat >conftest.$ac_ext <<_ACEOF
2759 -#line 2873 "configure"
2760 +#line $LINENO "configure"
2761 #include "confdefs.h"
2762 #include <X11/Intrinsic.h>
2763 #ifdef F77_DUMMY_MAIN
2764 @@ -2888,16 +3223,16 @@
2767 rm -f conftest.$ac_objext conftest$ac_exeext
2768 -if { (eval echo "$as_me:2891: \"$ac_link\"") >&5
2769 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2770 (eval $ac_link) 2>&5
2772 - echo "$as_me:2894: \$? = $ac_status" >&5
2773 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -s conftest$ac_exeext'
2776 - { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2777 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 - echo "$as_me:2900: \$? = $ac_status" >&5
2781 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2784 # We can link X programs with no special library path.
2785 @@ -2935,7 +3270,7 @@
2788 if test "$have_x" != yes; then
2789 - echo "$as_me:2938: result: $have_x" >&5
2790 + echo "$as_me:$LINENO: result: $have_x" >&5
2791 echo "${ECHO_T}$have_x" >&6
2794 @@ -2945,7 +3280,7 @@
2795 # Update the cache value to reflect the command line values.
2796 ac_cv_have_x="have_x=yes \
2797 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2798 - echo "$as_me:2948: result: libraries $x_libraries, headers $x_includes" >&5
2799 + echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2800 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2803 @@ -2969,11 +3304,11 @@
2804 # others require no space. Words are not sufficient . . . .
2805 case `(uname -sr) 2>/dev/null` in
2807 - echo "$as_me:2972: checking whether -R must be followed by a space" >&5
2808 + echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2809 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2810 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2811 cat >conftest.$ac_ext <<_ACEOF
2812 -#line 2976 "configure"
2813 +#line $LINENO "configure"
2814 #include "confdefs.h"
2816 #ifdef F77_DUMMY_MAIN
2817 @@ -2991,16 +3326,16 @@
2820 rm -f conftest.$ac_objext conftest$ac_exeext
2821 -if { (eval echo "$as_me:2994: \"$ac_link\"") >&5
2822 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823 (eval $ac_link) 2>&5
2825 - echo "$as_me:2997: \$? = $ac_status" >&5
2826 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -s conftest$ac_exeext'
2829 - { (eval echo "$as_me:3000: \"$ac_try\"") >&5
2830 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 - echo "$as_me:3003: \$? = $ac_status" >&5
2834 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2838 @@ -3010,13 +3345,13 @@
2840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2841 if test $ac_R_nospace = yes; then
2842 - echo "$as_me:3013: result: no" >&5
2843 + echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 X_LIBS="$X_LIBS -R$x_libraries"
2847 LIBS="$ac_xsave_LIBS -R $x_libraries"
2848 cat >conftest.$ac_ext <<_ACEOF
2849 -#line 3019 "configure"
2850 +#line $LINENO "configure"
2851 #include "confdefs.h"
2853 #ifdef F77_DUMMY_MAIN
2854 @@ -3034,16 +3369,16 @@
2857 rm -f conftest.$ac_objext conftest$ac_exeext
2858 -if { (eval echo "$as_me:3037: \"$ac_link\"") >&5
2859 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2860 (eval $ac_link) 2>&5
2862 - echo "$as_me:3040: \$? = $ac_status" >&5
2863 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest$ac_exeext'
2866 - { (eval echo "$as_me:3043: \"$ac_try\"") >&5
2867 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 - echo "$as_me:3046: \$? = $ac_status" >&5
2871 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2875 @@ -3053,11 +3388,11 @@
2877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2878 if test $ac_R_space = yes; then
2879 - echo "$as_me:3056: result: yes" >&5
2880 + echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6
2882 X_LIBS="$X_LIBS -R $x_libraries"
2884 - echo "$as_me:3060: result: neither works" >&5
2885 + echo "$as_me:$LINENO: result: neither works" >&5
2886 echo "${ECHO_T}neither works" >&6
2889 @@ -3077,7 +3412,7 @@
2890 # the Alpha needs dnet_stub (dnet does not exist).
2891 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2892 cat >conftest.$ac_ext <<_ACEOF
2893 -#line 3080 "configure"
2894 +#line $LINENO "configure"
2895 #include "confdefs.h"
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 @@ -3102,22 +3437,22 @@
2901 rm -f conftest.$ac_objext conftest$ac_exeext
2902 -if { (eval echo "$as_me:3105: \"$ac_link\"") >&5
2903 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904 (eval $ac_link) 2>&5
2906 - echo "$as_me:3108: \$? = $ac_status" >&5
2907 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest$ac_exeext'
2910 - { (eval echo "$as_me:3111: \"$ac_try\"") >&5
2911 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 - echo "$as_me:3114: \$? = $ac_status" >&5
2915 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2921 -echo "$as_me:3120: checking for dnet_ntoa in -ldnet" >&5
2922 +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2923 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2924 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 @@ -3125,7 +3460,7 @@
2927 ac_check_lib_save_LIBS=$LIBS
2929 cat >conftest.$ac_ext <<_ACEOF
2930 -#line 3128 "configure"
2931 +#line $LINENO "configure"
2932 #include "confdefs.h"
2934 /* Override any gcc2 internal prototype to avoid an error. */
2935 @@ -3150,16 +3485,16 @@
2938 rm -f conftest.$ac_objext conftest$ac_exeext
2939 -if { (eval echo "$as_me:3153: \"$ac_link\"") >&5
2940 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2941 (eval $ac_link) 2>&5
2943 - echo "$as_me:3156: \$? = $ac_status" >&5
2944 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -s conftest$ac_exeext'
2947 - { (eval echo "$as_me:3159: \"$ac_try\"") >&5
2948 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 - echo "$as_me:3162: \$? = $ac_status" >&5
2952 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 ac_cv_lib_dnet_dnet_ntoa=yes
2956 @@ -3170,14 +3505,14 @@
2957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2958 LIBS=$ac_check_lib_save_LIBS
2960 -echo "$as_me:3173: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2961 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2962 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2963 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2964 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2967 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2968 - echo "$as_me:3180: checking for dnet_ntoa in -ldnet_stub" >&5
2969 + echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2970 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2971 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 @@ -3185,7 +3520,7 @@
2974 ac_check_lib_save_LIBS=$LIBS
2975 LIBS="-ldnet_stub $LIBS"
2976 cat >conftest.$ac_ext <<_ACEOF
2977 -#line 3188 "configure"
2978 +#line $LINENO "configure"
2979 #include "confdefs.h"
2981 /* Override any gcc2 internal prototype to avoid an error. */
2982 @@ -3210,16 +3545,16 @@
2985 rm -f conftest.$ac_objext conftest$ac_exeext
2986 -if { (eval echo "$as_me:3213: \"$ac_link\"") >&5
2987 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988 (eval $ac_link) 2>&5
2990 - echo "$as_me:3216: \$? = $ac_status" >&5
2991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest$ac_exeext'
2994 - { (eval echo "$as_me:3219: \"$ac_try\"") >&5
2995 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 - echo "$as_me:3222: \$? = $ac_status" >&5
2999 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3003 @@ -3230,7 +3565,7 @@
3004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3005 LIBS=$ac_check_lib_save_LIBS
3007 -echo "$as_me:3233: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3008 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3009 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3010 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3012 @@ -3249,13 +3584,13 @@
3013 # on Irix 5.2, according to T.E. Dickey.
3014 # The functions gethostbyname, getservbyname, and inet_addr are
3015 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3016 - echo "$as_me:3252: checking for gethostbyname" >&5
3017 + echo "$as_me:$LINENO: checking for gethostbyname" >&5
3018 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3019 if test "${ac_cv_func_gethostbyname+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3023 -#line 3258 "configure"
3024 +#line $LINENO "configure"
3025 #include "confdefs.h"
3026 /* System header to define __stub macros and hopefully few prototypes,
3027 which can conflict with char gethostbyname (); below. */
3028 @@ -3292,16 +3627,16 @@
3031 rm -f conftest.$ac_objext conftest$ac_exeext
3032 -if { (eval echo "$as_me:3295: \"$ac_link\"") >&5
3033 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3034 (eval $ac_link) 2>&5
3036 - echo "$as_me:3298: \$? = $ac_status" >&5
3037 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest$ac_exeext'
3040 - { (eval echo "$as_me:3301: \"$ac_try\"") >&5
3041 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 - echo "$as_me:3304: \$? = $ac_status" >&5
3045 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_func_gethostbyname=yes
3049 @@ -3311,11 +3646,11 @@
3051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053 -echo "$as_me:3314: result: $ac_cv_func_gethostbyname" >&5
3054 +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3055 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3057 if test $ac_cv_func_gethostbyname = no; then
3058 - echo "$as_me:3318: checking for gethostbyname in -lnsl" >&5
3059 + echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3060 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3061 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 @@ -3323,7 +3658,7 @@
3064 ac_check_lib_save_LIBS=$LIBS
3066 cat >conftest.$ac_ext <<_ACEOF
3067 -#line 3326 "configure"
3068 +#line $LINENO "configure"
3069 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 @@ -3348,16 +3683,16 @@
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 -if { (eval echo "$as_me:3351: \"$ac_link\"") >&5
3077 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3080 - echo "$as_me:3354: \$? = $ac_status" >&5
3081 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest$ac_exeext'
3084 - { (eval echo "$as_me:3357: \"$ac_try\"") >&5
3085 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 - echo "$as_me:3360: \$? = $ac_status" >&5
3089 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_lib_nsl_gethostbyname=yes
3093 @@ -3368,14 +3703,14 @@
3094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095 LIBS=$ac_check_lib_save_LIBS
3097 -echo "$as_me:3371: result: $ac_cv_lib_nsl_gethostbyname" >&5
3098 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3099 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3100 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3104 if test $ac_cv_lib_nsl_gethostbyname = no; then
3105 - echo "$as_me:3378: checking for gethostbyname in -lbsd" >&5
3106 + echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3107 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3108 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 @@ -3383,7 +3718,7 @@
3111 ac_check_lib_save_LIBS=$LIBS
3113 cat >conftest.$ac_ext <<_ACEOF
3114 -#line 3386 "configure"
3115 +#line $LINENO "configure"
3116 #include "confdefs.h"
3118 /* Override any gcc2 internal prototype to avoid an error. */
3119 @@ -3408,16 +3743,16 @@
3122 rm -f conftest.$ac_objext conftest$ac_exeext
3123 -if { (eval echo "$as_me:3411: \"$ac_link\"") >&5
3124 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125 (eval $ac_link) 2>&5
3127 - echo "$as_me:3414: \$? = $ac_status" >&5
3128 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest$ac_exeext'
3131 - { (eval echo "$as_me:3417: \"$ac_try\"") >&5
3132 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 - echo "$as_me:3420: \$? = $ac_status" >&5
3136 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 ac_cv_lib_bsd_gethostbyname=yes
3140 @@ -3428,7 +3763,7 @@
3141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142 LIBS=$ac_check_lib_save_LIBS
3144 -echo "$as_me:3431: result: $ac_cv_lib_bsd_gethostbyname" >&5
3145 +echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3146 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3147 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3149 @@ -3444,13 +3779,13 @@
3150 # variants that don't use the nameserver (or something). -lsocket
3151 # must be given before -lnsl if both are needed. We assume that
3152 # if connect needs -lnsl, so does gethostbyname.
3153 - echo "$as_me:3447: checking for connect" >&5
3154 + echo "$as_me:$LINENO: checking for connect" >&5
3155 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3156 if test "${ac_cv_func_connect+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 cat >conftest.$ac_ext <<_ACEOF
3160 -#line 3453 "configure"
3161 +#line $LINENO "configure"
3162 #include "confdefs.h"
3163 /* System header to define __stub macros and hopefully few prototypes,
3164 which can conflict with char connect (); below. */
3165 @@ -3487,16 +3822,16 @@
3168 rm -f conftest.$ac_objext conftest$ac_exeext
3169 -if { (eval echo "$as_me:3490: \"$ac_link\"") >&5
3170 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3173 - echo "$as_me:3493: \$? = $ac_status" >&5
3174 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -s conftest$ac_exeext'
3177 - { (eval echo "$as_me:3496: \"$ac_try\"") >&5
3178 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 - echo "$as_me:3499: \$? = $ac_status" >&5
3182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_func_connect=yes
3186 @@ -3506,11 +3841,11 @@
3188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3190 -echo "$as_me:3509: result: $ac_cv_func_connect" >&5
3191 +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3192 echo "${ECHO_T}$ac_cv_func_connect" >&6
3194 if test $ac_cv_func_connect = no; then
3195 - echo "$as_me:3513: checking for connect in -lsocket" >&5
3196 + echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3197 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3198 if test "${ac_cv_lib_socket_connect+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 @@ -3518,7 +3853,7 @@
3201 ac_check_lib_save_LIBS=$LIBS
3202 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3203 cat >conftest.$ac_ext <<_ACEOF
3204 -#line 3521 "configure"
3205 +#line $LINENO "configure"
3206 #include "confdefs.h"
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 @@ -3543,16 +3878,16 @@
3212 rm -f conftest.$ac_objext conftest$ac_exeext
3213 -if { (eval echo "$as_me:3546: \"$ac_link\"") >&5
3214 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3215 (eval $ac_link) 2>&5
3217 - echo "$as_me:3549: \$? = $ac_status" >&5
3218 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -s conftest$ac_exeext'
3221 - { (eval echo "$as_me:3552: \"$ac_try\"") >&5
3222 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 - echo "$as_me:3555: \$? = $ac_status" >&5
3226 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 ac_cv_lib_socket_connect=yes
3230 @@ -3563,7 +3898,7 @@
3231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3232 LIBS=$ac_check_lib_save_LIBS
3234 -echo "$as_me:3566: result: $ac_cv_lib_socket_connect" >&5
3235 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3236 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3237 if test $ac_cv_lib_socket_connect = yes; then
3238 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3239 @@ -3572,13 +3907,13 @@
3242 # Guillermo Gomez says -lposix is necessary on A/UX.
3243 - echo "$as_me:3575: checking for remove" >&5
3244 + echo "$as_me:$LINENO: checking for remove" >&5
3245 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3246 if test "${ac_cv_func_remove+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3250 -#line 3581 "configure"
3251 +#line $LINENO "configure"
3252 #include "confdefs.h"
3253 /* System header to define __stub macros and hopefully few prototypes,
3254 which can conflict with char remove (); below. */
3255 @@ -3615,16 +3950,16 @@
3258 rm -f conftest.$ac_objext conftest$ac_exeext
3259 -if { (eval echo "$as_me:3618: \"$ac_link\"") >&5
3260 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3261 (eval $ac_link) 2>&5
3263 - echo "$as_me:3621: \$? = $ac_status" >&5
3264 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -s conftest$ac_exeext'
3267 - { (eval echo "$as_me:3624: \"$ac_try\"") >&5
3268 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 - echo "$as_me:3627: \$? = $ac_status" >&5
3272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_func_remove=yes
3276 @@ -3634,11 +3969,11 @@
3278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3280 -echo "$as_me:3637: result: $ac_cv_func_remove" >&5
3281 +echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3282 echo "${ECHO_T}$ac_cv_func_remove" >&6
3284 if test $ac_cv_func_remove = no; then
3285 - echo "$as_me:3641: checking for remove in -lposix" >&5
3286 + echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3287 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3288 if test "${ac_cv_lib_posix_remove+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 @@ -3646,7 +3981,7 @@
3291 ac_check_lib_save_LIBS=$LIBS
3292 LIBS="-lposix $LIBS"
3293 cat >conftest.$ac_ext <<_ACEOF
3294 -#line 3649 "configure"
3295 +#line $LINENO "configure"
3296 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 @@ -3671,16 +4006,16 @@
3302 rm -f conftest.$ac_objext conftest$ac_exeext
3303 -if { (eval echo "$as_me:3674: \"$ac_link\"") >&5
3304 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>&5
3307 - echo "$as_me:3677: \$? = $ac_status" >&5
3308 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -s conftest$ac_exeext'
3311 - { (eval echo "$as_me:3680: \"$ac_try\"") >&5
3312 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 - echo "$as_me:3683: \$? = $ac_status" >&5
3316 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 ac_cv_lib_posix_remove=yes
3320 @@ -3691,7 +4026,7 @@
3321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3322 LIBS=$ac_check_lib_save_LIBS
3324 -echo "$as_me:3694: result: $ac_cv_lib_posix_remove" >&5
3325 +echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3326 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3327 if test $ac_cv_lib_posix_remove = yes; then
3328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3329 @@ -3700,13 +4035,13 @@
3332 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3333 - echo "$as_me:3703: checking for shmat" >&5
3334 + echo "$as_me:$LINENO: checking for shmat" >&5
3335 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3336 if test "${ac_cv_func_shmat+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 cat >conftest.$ac_ext <<_ACEOF
3340 -#line 3709 "configure"
3341 +#line $LINENO "configure"
3342 #include "confdefs.h"
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char shmat (); below. */
3345 @@ -3743,16 +4078,16 @@
3348 rm -f conftest.$ac_objext conftest$ac_exeext
3349 -if { (eval echo "$as_me:3746: \"$ac_link\"") >&5
3350 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351 (eval $ac_link) 2>&5
3353 - echo "$as_me:3749: \$? = $ac_status" >&5
3354 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -s conftest$ac_exeext'
3357 - { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3358 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 - echo "$as_me:3755: \$? = $ac_status" >&5
3362 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_func_shmat=yes
3366 @@ -3762,11 +4097,11 @@
3368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3370 -echo "$as_me:3765: result: $ac_cv_func_shmat" >&5
3371 +echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3372 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3374 if test $ac_cv_func_shmat = no; then
3375 - echo "$as_me:3769: checking for shmat in -lipc" >&5
3376 + echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3377 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3378 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 @@ -3774,7 +4109,7 @@
3381 ac_check_lib_save_LIBS=$LIBS
3383 cat >conftest.$ac_ext <<_ACEOF
3384 -#line 3777 "configure"
3385 +#line $LINENO "configure"
3386 #include "confdefs.h"
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 @@ -3799,16 +4134,16 @@
3392 rm -f conftest.$ac_objext conftest$ac_exeext
3393 -if { (eval echo "$as_me:3802: \"$ac_link\"") >&5
3394 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3397 - echo "$as_me:3805: \$? = $ac_status" >&5
3398 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest$ac_exeext'
3401 - { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3402 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 - echo "$as_me:3811: \$? = $ac_status" >&5
3406 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 ac_cv_lib_ipc_shmat=yes
3410 @@ -3819,7 +4154,7 @@
3411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3412 LIBS=$ac_check_lib_save_LIBS
3414 -echo "$as_me:3822: result: $ac_cv_lib_ipc_shmat" >&5
3415 +echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3416 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3417 if test $ac_cv_lib_ipc_shmat = yes; then
3418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3419 @@ -3837,7 +4172,7 @@
3420 # These have to be linked with before -lX11, unlike the other
3421 # libraries we check for below, so use a different variable.
3422 # John Interrante, Karl Berry
3423 - echo "$as_me:3840: checking for IceConnectionNumber in -lICE" >&5
3424 + echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3425 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3426 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 @@ -3845,7 +4180,7 @@
3429 ac_check_lib_save_LIBS=$LIBS
3430 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3431 cat >conftest.$ac_ext <<_ACEOF
3432 -#line 3848 "configure"
3433 +#line $LINENO "configure"
3434 #include "confdefs.h"
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 @@ -3870,16 +4205,16 @@
3440 rm -f conftest.$ac_objext conftest$ac_exeext
3441 -if { (eval echo "$as_me:3873: \"$ac_link\"") >&5
3442 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
3445 - echo "$as_me:3876: \$? = $ac_status" >&5
3446 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -s conftest$ac_exeext'
3449 - { (eval echo "$as_me:3879: \"$ac_try\"") >&5
3450 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 - echo "$as_me:3882: \$? = $ac_status" >&5
3454 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_lib_ICE_IceConnectionNumber=yes
3458 @@ -3890,7 +4225,7 @@
3459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3460 LIBS=$ac_check_lib_save_LIBS
3462 -echo "$as_me:3893: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3463 +echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3464 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3465 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3466 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3467 @@ -3902,16 +4237,22 @@
3469 ac_config_headers="$ac_config_headers sysconfig.h"
3478 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3479 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3480 -echo "$as_me:3908: checking for $ac_hdr that defines DIR" >&5
3481 +echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3482 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 cat >conftest.$ac_ext <<_ACEOF
3487 -#line 3914 "configure"
3488 +#line $LINENO "configure"
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3492 @@ -3932,16 +4273,16 @@
3495 rm -f conftest.$ac_objext
3496 -if { (eval echo "$as_me:3935: \"$ac_compile\"") >&5
3497 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>&5
3500 - echo "$as_me:3938: \$? = $ac_status" >&5
3501 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 - { (eval echo "$as_me:3941: \"$ac_try\"") >&5
3505 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 - echo "$as_me:3944: \$? = $ac_status" >&5
3509 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 eval "$as_ac_Header=yes"
3513 @@ -3951,7 +4292,7 @@
3515 rm -f conftest.$ac_objext conftest.$ac_ext
3517 -echo "$as_me:3954: result: `eval echo '${'$as_ac_Header'}'`" >&5
3518 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3521 cat >>confdefs.h <<_ACEOF
3522 @@ -3964,15 +4305,15 @@
3524 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3525 if test $ac_header_dirent = dirent.h; then
3526 - echo "$as_me:3967: checking for opendir in -ldir" >&5
3527 -echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3528 -if test "${ac_cv_lib_dir_opendir+set}" = set; then
3529 + echo "$as_me:$LINENO: checking for library containing opendir" >&5
3530 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3531 +if test "${ac_cv_search_opendir+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 - ac_check_lib_save_LIBS=$LIBS
3536 + ac_func_search_save_LIBS=$LIBS
3537 +ac_cv_search_opendir=no
3538 cat >conftest.$ac_ext <<_ACEOF
3539 -#line 3975 "configure"
3540 +#line $LINENO "configure"
3541 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 @@ -3997,42 +4338,91 @@
3547 rm -f conftest.$ac_objext conftest$ac_exeext
3548 -if { (eval echo "$as_me:4000: \"$ac_link\"") >&5
3549 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550 (eval $ac_link) 2>&5
3552 - echo "$as_me:4003: \$? = $ac_status" >&5
3553 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -s conftest$ac_exeext'
3556 - { (eval echo "$as_me:4006: \"$ac_try\"") >&5
3557 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 - echo "$as_me:4009: \$? = $ac_status" >&5
3561 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 - ac_cv_lib_dir_opendir=yes
3564 + ac_cv_search_opendir="none required"
3566 echo "$as_me: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3568 -ac_cv_lib_dir_opendir=no
3570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3571 -LIBS=$ac_check_lib_save_LIBS
3572 +if test "$ac_cv_search_opendir" = no; then
3573 + for ac_lib in dir; do
3574 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3575 + cat >conftest.$ac_ext <<_ACEOF
3576 +#line $LINENO "configure"
3577 +#include "confdefs.h"
3579 +/* Override any gcc2 internal prototype to avoid an error. */
3583 +/* We use char because int might match the return type of a gcc2
3584 + builtin and then its argument prototype would still apply. */
3586 +#ifdef F77_DUMMY_MAIN
3587 +# ifdef __cplusplus
3590 + int F77_DUMMY_MAIN() { return 1; }
3600 +rm -f conftest.$ac_objext conftest$ac_exeext
3601 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602 + (eval $ac_link) 2>&5
3604 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 + (exit $ac_status); } &&
3606 + { ac_try='test -s conftest$ac_exeext'
3607 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 + (eval $ac_try) 2>&5
3610 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 + (exit $ac_status); }; }; then
3612 + ac_cv_search_opendir="-l$ac_lib"
3615 + echo "$as_me: failed program was:" >&5
3616 +cat conftest.$ac_ext >&5
3618 -echo "$as_me:4020: result: $ac_cv_lib_dir_opendir" >&5
3619 -echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3620 -if test $ac_cv_lib_dir_opendir = yes; then
3621 - LIBS="$LIBS -ldir"
3622 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3625 +LIBS=$ac_func_search_save_LIBS
3627 +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3628 +echo "${ECHO_T}$ac_cv_search_opendir" >&6
3629 +if test "$ac_cv_search_opendir" != no; then
3630 + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3635 - echo "$as_me:4027: checking for opendir in -lx" >&5
3636 -echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3637 -if test "${ac_cv_lib_x_opendir+set}" = set; then
3638 + echo "$as_me:$LINENO: checking for library containing opendir" >&5
3639 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3640 +if test "${ac_cv_search_opendir+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 - ac_check_lib_save_LIBS=$LIBS
3645 + ac_func_search_save_LIBS=$LIBS
3646 +ac_cv_search_opendir=no
3647 cat >conftest.$ac_ext <<_ACEOF
3648 -#line 4035 "configure"
3649 +#line $LINENO "configure"
3650 #include "confdefs.h"
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 @@ -4057,41 +4447,90 @@
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 -if { (eval echo "$as_me:4060: \"$ac_link\"") >&5
3658 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>&5
3661 - echo "$as_me:4063: \$? = $ac_status" >&5
3662 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -s conftest$ac_exeext'
3665 - { (eval echo "$as_me:4066: \"$ac_try\"") >&5
3666 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 - echo "$as_me:4069: \$? = $ac_status" >&5
3670 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 - ac_cv_lib_x_opendir=yes
3673 + ac_cv_search_opendir="none required"
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 -ac_cv_lib_x_opendir=no
3679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680 -LIBS=$ac_check_lib_save_LIBS
3681 +if test "$ac_cv_search_opendir" = no; then
3682 + for ac_lib in x; do
3683 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3684 + cat >conftest.$ac_ext <<_ACEOF
3685 +#line $LINENO "configure"
3686 +#include "confdefs.h"
3688 +/* Override any gcc2 internal prototype to avoid an error. */
3692 +/* We use char because int might match the return type of a gcc2
3693 + builtin and then its argument prototype would still apply. */
3695 +#ifdef F77_DUMMY_MAIN
3696 +# ifdef __cplusplus
3699 + int F77_DUMMY_MAIN() { return 1; }
3709 +rm -f conftest.$ac_objext conftest$ac_exeext
3710 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711 + (eval $ac_link) 2>&5
3713 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 + (exit $ac_status); } &&
3715 + { ac_try='test -s conftest$ac_exeext'
3716 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 + (eval $ac_try) 2>&5
3719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 + (exit $ac_status); }; }; then
3721 + ac_cv_search_opendir="-l$ac_lib"
3724 + echo "$as_me: failed program was:" >&5
3725 +cat conftest.$ac_ext >&5
3727 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730 -echo "$as_me:4080: result: $ac_cv_lib_x_opendir" >&5
3731 -echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
3732 -if test $ac_cv_lib_x_opendir = yes; then
3734 +LIBS=$ac_func_search_save_LIBS
3736 +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3737 +echo "${ECHO_T}$ac_cv_search_opendir" >&6
3738 +if test "$ac_cv_search_opendir" != no; then
3739 + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3745 -echo "$as_me:4088: checking for ANSI C header files" >&5
3746 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748 if test "${ac_cv_header_stdc+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.$ac_ext <<_ACEOF
3752 -#line 4094 "configure"
3753 +#line $LINENO "configure"
3754 #include "confdefs.h"
3757 @@ -4099,13 +4538,13 @@
3761 -if { (eval echo "$as_me:4102: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3765 egrep -v '^ *\+' conftest.er1 >conftest.err
3767 cat conftest.err >&5
3768 - echo "$as_me:4108: \$? = $ac_status" >&5
3769 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } >/dev/null; then
3771 if test -s conftest.err; then
3772 ac_cpp_err=$ac_c_preproc_warn_flag
3773 @@ -4127,7 +4566,7 @@
3774 if test $ac_cv_header_stdc = yes; then
3775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 -#line 4130 "configure"
3778 +#line $LINENO "configure"
3779 #include "confdefs.h"
3782 @@ -4145,7 +4584,7 @@
3783 if test $ac_cv_header_stdc = yes; then
3784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3785 cat >conftest.$ac_ext <<_ACEOF
3786 -#line 4148 "configure"
3787 +#line $LINENO "configure"
3788 #include "confdefs.h"
3791 @@ -4166,7 +4605,7 @@
3794 cat >conftest.$ac_ext <<_ACEOF
3795 -#line 4169 "configure"
3796 +#line $LINENO "configure"
3797 #include "confdefs.h"
3799 #if ((' ' & 0x0FF) == 0x020)
3800 @@ -4192,28 +4631,29 @@
3803 rm -f conftest$ac_exeext
3804 -if { (eval echo "$as_me:4195: \"$ac_link\"") >&5
3805 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>&5
3808 - echo "$as_me:4198: \$? = $ac_status" >&5
3809 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3811 - { (eval echo "$as_me:4200: \"$ac_try\"") >&5
3812 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 - echo "$as_me:4203: \$? = $ac_status" >&5
3816 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3820 echo "$as_me: program exited with status $ac_status" >&5
3821 echo "$as_me: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3823 +( exit $ac_status )
3824 ac_cv_header_stdc=no
3826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3830 -echo "$as_me:4216: result: $ac_cv_header_stdc" >&5
3831 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3832 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3833 if test $ac_cv_header_stdc = yes; then
3835 @@ -4225,33 +4665,41 @@
3837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 -echo "$as_me:4232: checking for $ac_header" >&5
3852 +echo "$as_me:$LINENO: checking for $ac_header" >&5
3853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3858 -#line 4238 "configure"
3859 +#line $LINENO "configure"
3860 #include "confdefs.h"
3861 $ac_includes_default
3863 #include <$ac_header>
3865 rm -f conftest.$ac_objext
3866 -if { (eval echo "$as_me:4245: \"$ac_compile\"") >&5
3867 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3870 - echo "$as_me:4248: \$? = $ac_status" >&5
3871 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 - { (eval echo "$as_me:4251: \"$ac_try\"") >&5
3875 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 - echo "$as_me:4254: \$? = $ac_status" >&5
3879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 eval "$as_ac_Header=yes"
3883 @@ -4261,7 +4709,7 @@
3885 rm -f conftest.$ac_objext conftest.$ac_ext
3887 -echo "$as_me:4264: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3891 cat >>confdefs.h <<_ACEOF
3892 @@ -4272,38 +4720,48 @@
3906 for ac_header in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h
3908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3910 - echo "$as_me:4279: checking for $ac_header" >&5
3911 + echo "$as_me:$LINENO: checking for $ac_header" >&5
3912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 -echo "$as_me:4284: result: `eval echo '${'$as_ac_Header'}'`" >&5
3917 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3920 # Is the header compilable?
3921 -echo "$as_me:4288: checking $ac_header usability" >&5
3922 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
3923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3924 cat >conftest.$ac_ext <<_ACEOF
3925 -#line 4291 "configure"
3926 +#line $LINENO "configure"
3927 #include "confdefs.h"
3928 $ac_includes_default
3929 #include <$ac_header>
3931 rm -f conftest.$ac_objext
3932 -if { (eval echo "$as_me:4297: \"$ac_compile\"") >&5
3933 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>&5
3936 - echo "$as_me:4300: \$? = $ac_status" >&5
3937 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 - { (eval echo "$as_me:4303: \"$ac_try\"") >&5
3941 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 - echo "$as_me:4306: \$? = $ac_status" >&5
3945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_header_compiler=yes
3949 @@ -4312,24 +4770,24 @@
3950 ac_header_compiler=no
3952 rm -f conftest.$ac_objext conftest.$ac_ext
3953 -echo "$as_me:4315: result: $ac_header_compiler" >&5
3954 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3955 echo "${ECHO_T}$ac_header_compiler" >&6
3957 # Is the header present?
3958 -echo "$as_me:4319: checking $ac_header presence" >&5
3959 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
3960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3961 cat >conftest.$ac_ext <<_ACEOF
3962 -#line 4322 "configure"
3963 +#line $LINENO "configure"
3964 #include "confdefs.h"
3965 #include <$ac_header>
3967 -if { (eval echo "$as_me:4326: \"$ac_cpp conftest.$ac_ext\"") >&5
3968 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971 egrep -v '^ *\+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 - echo "$as_me:4332: \$? = $ac_status" >&5
3975 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null; then
3977 if test -s conftest.err; then
3978 ac_cpp_err=$ac_c_preproc_warn_flag
3979 @@ -4347,32 +4805,32 @@
3980 ac_header_preproc=no
3982 rm -f conftest.err conftest.$ac_ext
3983 -echo "$as_me:4350: result: $ac_header_preproc" >&5
3984 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3985 echo "${ECHO_T}$ac_header_preproc" >&6
3987 # So? What about this header?
3988 case $ac_header_compiler:$ac_header_preproc in
3990 - { echo "$as_me:4356: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3991 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3993 - { echo "$as_me:4358: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3994 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3997 - { echo "$as_me:4361: WARNING: $ac_header: present but cannot be compiled." >&5
3998 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3999 - { echo "$as_me:4363: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4000 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4001 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4002 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4004 - { echo "$as_me:4365: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4005 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4008 -echo "$as_me:4368: checking for $ac_header" >&5
4009 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 eval "$as_ac_Header=$ac_header_preproc"
4016 -echo "$as_me:4375: result: `eval echo '${'$as_ac_Header'}'`" >&5
4017 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4021 @@ -4385,38 +4843,46 @@
4033 for ac_header in sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h linux/joystick.h
4035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037 - echo "$as_me:4392: checking for $ac_header" >&5
4038 + echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 -echo "$as_me:4397: result: `eval echo '${'$as_ac_Header'}'`" >&5
4044 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047 # Is the header compilable?
4048 -echo "$as_me:4401: checking $ac_header usability" >&5
4049 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
4050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4052 -#line 4404 "configure"
4053 +#line $LINENO "configure"
4054 #include "confdefs.h"
4055 $ac_includes_default
4056 #include <$ac_header>
4058 rm -f conftest.$ac_objext
4059 -if { (eval echo "$as_me:4410: \"$ac_compile\"") >&5
4060 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4063 - echo "$as_me:4413: \$? = $ac_status" >&5
4064 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 - { (eval echo "$as_me:4416: \"$ac_try\"") >&5
4068 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 - echo "$as_me:4419: \$? = $ac_status" >&5
4072 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_header_compiler=yes
4076 @@ -4425,24 +4891,24 @@
4077 ac_header_compiler=no
4079 rm -f conftest.$ac_objext conftest.$ac_ext
4080 -echo "$as_me:4428: result: $ac_header_compiler" >&5
4081 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4082 echo "${ECHO_T}$ac_header_compiler" >&6
4084 # Is the header present?
4085 -echo "$as_me:4432: checking $ac_header presence" >&5
4086 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
4087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4089 -#line 4435 "configure"
4090 +#line $LINENO "configure"
4091 #include "confdefs.h"
4092 #include <$ac_header>
4094 -if { (eval echo "$as_me:4439: \"$ac_cpp conftest.$ac_ext\"") >&5
4095 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098 egrep -v '^ *\+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 - echo "$as_me:4445: \$? = $ac_status" >&5
4102 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null; then
4104 if test -s conftest.err; then
4105 ac_cpp_err=$ac_c_preproc_warn_flag
4106 @@ -4460,32 +4926,32 @@
4107 ac_header_preproc=no
4109 rm -f conftest.err conftest.$ac_ext
4110 -echo "$as_me:4463: result: $ac_header_preproc" >&5
4111 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4112 echo "${ECHO_T}$ac_header_preproc" >&6
4114 # So? What about this header?
4115 case $ac_header_compiler:$ac_header_preproc in
4117 - { echo "$as_me:4469: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4118 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4120 - { echo "$as_me:4471: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4121 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4124 - { echo "$as_me:4474: WARNING: $ac_header: present but cannot be compiled." >&5
4125 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4126 - { echo "$as_me:4476: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4127 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4128 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4129 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4131 - { echo "$as_me:4478: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4132 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4135 -echo "$as_me:4481: checking for $ac_header" >&5
4136 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 eval "$as_ac_Header=$ac_header_preproc"
4143 -echo "$as_me:4488: result: `eval echo '${'$as_ac_Header'}'`" >&5
4144 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4148 @@ -4498,13 +4964,14 @@
4152 -echo "$as_me:4501: checking for char" >&5
4154 +echo "$as_me:$LINENO: checking for char" >&5
4155 echo $ECHO_N "checking for char... $ECHO_C" >&6
4156 if test "${ac_cv_type_char+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 cat >conftest.$ac_ext <<_ACEOF
4160 -#line 4507 "configure"
4161 +#line $LINENO "configure"
4162 #include "confdefs.h"
4163 $ac_includes_default
4164 #ifdef F77_DUMMY_MAIN
4165 @@ -4525,16 +4992,16 @@
4168 rm -f conftest.$ac_objext
4169 -if { (eval echo "$as_me:4528: \"$ac_compile\"") >&5
4170 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 - echo "$as_me:4531: \$? = $ac_status" >&5
4174 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 - { (eval echo "$as_me:4534: \"$ac_try\"") >&5
4178 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 - echo "$as_me:4537: \$? = $ac_status" >&5
4182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4186 @@ -4544,19 +5011,23 @@
4188 rm -f conftest.$ac_objext conftest.$ac_ext
4190 -echo "$as_me:4547: result: $ac_cv_type_char" >&5
4191 +echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4192 echo "${ECHO_T}$ac_cv_type_char" >&6
4194 -echo "$as_me:4550: checking size of char" >&5
4195 +echo "$as_me:$LINENO: checking size of char" >&5
4196 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4197 if test "${ac_cv_sizeof_char+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test "$ac_cv_type_char" = yes; then
4201 + # The cast to unsigned long works around a bug in the HP C Compiler
4202 + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4203 + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4204 + # This bug is HP SR number 8606223364.
4205 if test "$cross_compiling" = yes; then
4206 # Depending upon the size, compute the lo and hi bounds.
4207 cat >conftest.$ac_ext <<_ACEOF
4208 -#line 4559 "configure"
4209 +#line $LINENO "configure"
4210 #include "confdefs.h"
4211 $ac_includes_default
4212 #ifdef F77_DUMMY_MAIN
4213 @@ -4568,27 +5039,29 @@
4217 -int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
4218 +static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4225 rm -f conftest.$ac_objext
4226 -if { (eval echo "$as_me:4577: \"$ac_compile\"") >&5
4227 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4230 - echo "$as_me:4580: \$? = $ac_status" >&5
4231 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 - { (eval echo "$as_me:4583: \"$ac_try\"") >&5
4235 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 - echo "$as_me:4586: \$? = $ac_status" >&5
4239 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4243 cat >conftest.$ac_ext <<_ACEOF
4244 -#line 4591 "configure"
4245 +#line $LINENO "configure"
4246 #include "confdefs.h"
4247 $ac_includes_default
4248 #ifdef F77_DUMMY_MAIN
4249 @@ -4600,38 +5073,77 @@
4253 -int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
4254 +static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4261 rm -f conftest.$ac_objext
4262 -if { (eval echo "$as_me:4609: \"$ac_compile\"") >&5
4263 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>&5
4266 - echo "$as_me:4612: \$? = $ac_status" >&5
4267 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 - { (eval echo "$as_me:4615: \"$ac_try\"") >&5
4271 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 - echo "$as_me:4618: \$? = $ac_status" >&5
4275 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_hi=$ac_mid; break
4279 echo "$as_me: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4282 +ac_lo=`expr $ac_mid + 1`
4283 + if test $ac_lo -le $ac_mid; then
4287 + ac_mid=`expr 2 '*' $ac_mid + 1`
4289 rm -f conftest.$ac_objext conftest.$ac_ext
4292 echo "$as_me: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 +cat >conftest.$ac_ext <<_ACEOF
4296 +#line $LINENO "configure"
4297 +#include "confdefs.h"
4298 +$ac_includes_default
4299 +#ifdef F77_DUMMY_MAIN
4300 +# ifdef __cplusplus
4303 + int F77_DUMMY_MAIN() { return 1; }
4308 +static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4315 +rm -f conftest.$ac_objext
4316 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 + (eval $ac_compile) 2>&5
4319 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 + (exit $ac_status); } &&
4321 + { ac_try='test -s conftest.$ac_objext'
4322 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 + (eval $ac_try) 2>&5
4325 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 + (exit $ac_status); }; }; then
4327 + ac_hi=-1 ac_mid=-1
4329 cat >conftest.$ac_ext <<_ACEOF
4330 -#line 4634 "configure"
4331 +#line $LINENO "configure"
4332 #include "confdefs.h"
4333 $ac_includes_default
4334 #ifdef F77_DUMMY_MAIN
4335 @@ -4643,38 +5155,51 @@
4339 -int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
4340 +static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4347 rm -f conftest.$ac_objext
4348 -if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5
4349 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
4352 - echo "$as_me:4655: \$? = $ac_status" >&5
4353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 - { (eval echo "$as_me:4658: \"$ac_try\"") >&5
4357 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 - echo "$as_me:4661: \$? = $ac_status" >&5
4361 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_lo=$ac_mid; break
4365 echo "$as_me: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4367 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4368 +ac_hi=`expr '(' $ac_mid ')' - 1`
4369 + if test $ac_mid -le $ac_hi; then
4373 + ac_mid=`expr 2 '*' $ac_mid`
4375 rm -f conftest.$ac_objext conftest.$ac_ext
4378 + echo "$as_me: failed program was:" >&5
4379 +cat conftest.$ac_ext >&5
4382 +rm -f conftest.$ac_objext conftest.$ac_ext
4384 rm -f conftest.$ac_objext conftest.$ac_ext
4385 # Binary search between lo and hi bounds.
4386 while test "x$ac_lo" != "x$ac_hi"; do
4387 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4388 cat >conftest.$ac_ext <<_ACEOF
4389 -#line 4677 "configure"
4390 +#line $LINENO "configure"
4391 #include "confdefs.h"
4392 $ac_includes_default
4393 #ifdef F77_DUMMY_MAIN
4394 @@ -4686,42 +5211,53 @@
4398 -int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
4399 +static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4406 rm -f conftest.$ac_objext
4407 -if { (eval echo "$as_me:4695: \"$ac_compile\"") >&5
4408 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4411 - echo "$as_me:4698: \$? = $ac_status" >&5
4412 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 - { (eval echo "$as_me:4701: \"$ac_try\"") >&5
4416 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 - echo "$as_me:4704: \$? = $ac_status" >&5
4420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4424 echo "$as_me: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4426 -ac_lo=`expr $ac_mid + 1`
4427 +ac_lo=`expr '(' $ac_mid ')' + 1`
4429 rm -f conftest.$ac_objext conftest.$ac_ext
4431 -ac_cv_sizeof_char=$ac_lo
4433 +?*) ac_cv_sizeof_char=$ac_lo;;
4434 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4435 +echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4436 + { (exit 1); exit 1; }; } ;;
4439 if test "$cross_compiling" = yes; then
4440 - { { echo "$as_me:4717: error: cannot run test program while cross compiling" >&5
4441 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4442 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4443 { (exit 1); exit 1; }; }
4445 cat >conftest.$ac_ext <<_ACEOF
4446 -#line 4722 "configure"
4447 +#line $LINENO "configure"
4448 #include "confdefs.h"
4449 $ac_includes_default
4450 +long longval () { return (long) (sizeof (char)); }
4451 +unsigned long ulongval () { return (long) (sizeof (char)); }
4453 +#include <stdlib.h>
4454 #ifdef F77_DUMMY_MAIN
4457 @@ -4731,31 +5267,50 @@
4461 -FILE *f = fopen ("conftest.val", "w");
4464 -fprintf (f, "%d", (sizeof (char)));
4467 + FILE *f = fopen ("conftest.val", "w");
4470 + if (((long) (sizeof (char))) < 0)
4472 + long i = longval ();
4473 + if (i != ((long) (sizeof (char))))
4475 + fprintf (f, "%ld\n", i);
4479 + unsigned long i = ulongval ();
4480 + if (i != ((long) (sizeof (char))))
4482 + fprintf (f, "%lu\n", i);
4484 + exit (ferror (f) || fclose (f) != 0);
4490 rm -f conftest$ac_exeext
4491 -if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
4492 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4493 (eval $ac_link) 2>&5
4495 - echo "$as_me:4747: \$? = $ac_status" >&5
4496 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4498 - { (eval echo "$as_me:4749: \"$ac_try\"") >&5
4499 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 - echo "$as_me:4752: \$? = $ac_status" >&5
4503 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_cv_sizeof_char=`cat conftest.val`
4507 echo "$as_me: program exited with status $ac_status" >&5
4508 echo "$as_me: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4510 +( exit $ac_status )
4511 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4512 +echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4513 + { (exit 1); exit 1; }; }
4515 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4517 @@ -4765,19 +5320,20 @@
4521 -echo "$as_me:4768: result: $ac_cv_sizeof_char" >&5
4522 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4523 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4524 cat >>confdefs.h <<_ACEOF
4525 #define SIZEOF_CHAR $ac_cv_sizeof_char
4528 -echo "$as_me:4774: checking for short" >&5
4530 +echo "$as_me:$LINENO: checking for short" >&5
4531 echo $ECHO_N "checking for short... $ECHO_C" >&6
4532 if test "${ac_cv_type_short+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cat >conftest.$ac_ext <<_ACEOF
4536 -#line 4780 "configure"
4537 +#line $LINENO "configure"
4538 #include "confdefs.h"
4539 $ac_includes_default
4540 #ifdef F77_DUMMY_MAIN
4541 @@ -4798,16 +5354,16 @@
4544 rm -f conftest.$ac_objext
4545 -if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5
4546 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4549 - echo "$as_me:4804: \$? = $ac_status" >&5
4550 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 - { (eval echo "$as_me:4807: \"$ac_try\"") >&5
4554 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 - echo "$as_me:4810: \$? = $ac_status" >&5
4558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_type_short=yes
4562 @@ -4817,19 +5373,23 @@
4564 rm -f conftest.$ac_objext conftest.$ac_ext
4566 -echo "$as_me:4820: result: $ac_cv_type_short" >&5
4567 +echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4568 echo "${ECHO_T}$ac_cv_type_short" >&6
4570 -echo "$as_me:4823: checking size of short" >&5
4571 +echo "$as_me:$LINENO: checking size of short" >&5
4572 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4573 if test "${ac_cv_sizeof_short+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test "$ac_cv_type_short" = yes; then
4577 + # The cast to unsigned long works around a bug in the HP C Compiler
4578 + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4579 + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4580 + # This bug is HP SR number 8606223364.
4581 if test "$cross_compiling" = yes; then
4582 # Depending upon the size, compute the lo and hi bounds.
4583 cat >conftest.$ac_ext <<_ACEOF
4584 -#line 4832 "configure"
4585 +#line $LINENO "configure"
4586 #include "confdefs.h"
4587 $ac_includes_default
4588 #ifdef F77_DUMMY_MAIN
4589 @@ -4841,27 +5401,29 @@
4593 -int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
4594 +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4601 rm -f conftest.$ac_objext
4602 -if { (eval echo "$as_me:4850: \"$ac_compile\"") >&5
4603 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>&5
4606 - echo "$as_me:4853: \$? = $ac_status" >&5
4607 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 - { (eval echo "$as_me:4856: \"$ac_try\"") >&5
4611 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 - echo "$as_me:4859: \$? = $ac_status" >&5
4615 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4619 cat >conftest.$ac_ext <<_ACEOF
4620 -#line 4864 "configure"
4621 +#line $LINENO "configure"
4622 #include "confdefs.h"
4623 $ac_includes_default
4624 #ifdef F77_DUMMY_MAIN
4625 @@ -4873,38 +5435,77 @@
4629 -int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
4630 +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4637 rm -f conftest.$ac_objext
4638 -if { (eval echo "$as_me:4882: \"$ac_compile\"") >&5
4639 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>&5
4642 - echo "$as_me:4885: \$? = $ac_status" >&5
4643 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -s conftest.$ac_objext'
4646 - { (eval echo "$as_me:4888: \"$ac_try\"") >&5
4647 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 - echo "$as_me:4891: \$? = $ac_status" >&5
4651 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_hi=$ac_mid; break
4655 echo "$as_me: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4657 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4658 +ac_lo=`expr $ac_mid + 1`
4659 + if test $ac_lo -le $ac_mid; then
4663 + ac_mid=`expr 2 '*' $ac_mid + 1`
4665 rm -f conftest.$ac_objext conftest.$ac_ext
4668 echo "$as_me: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4671 +cat >conftest.$ac_ext <<_ACEOF
4672 +#line $LINENO "configure"
4673 +#include "confdefs.h"
4674 +$ac_includes_default
4675 +#ifdef F77_DUMMY_MAIN
4676 +# ifdef __cplusplus
4679 + int F77_DUMMY_MAIN() { return 1; }
4684 +static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4691 +rm -f conftest.$ac_objext
4692 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693 + (eval $ac_compile) 2>&5
4695 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 + (exit $ac_status); } &&
4697 + { ac_try='test -s conftest.$ac_objext'
4698 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 + (eval $ac_try) 2>&5
4701 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 + (exit $ac_status); }; }; then
4703 + ac_hi=-1 ac_mid=-1
4705 cat >conftest.$ac_ext <<_ACEOF
4706 -#line 4907 "configure"
4707 +#line $LINENO "configure"
4708 #include "confdefs.h"
4709 $ac_includes_default
4710 #ifdef F77_DUMMY_MAIN
4711 @@ -4916,38 +5517,51 @@
4715 -int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
4716 +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4723 rm -f conftest.$ac_objext
4724 -if { (eval echo "$as_me:4925: \"$ac_compile\"") >&5
4725 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726 (eval $ac_compile) 2>&5
4728 - echo "$as_me:4928: \$? = $ac_status" >&5
4729 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 - { (eval echo "$as_me:4931: \"$ac_try\"") >&5
4733 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 - echo "$as_me:4934: \$? = $ac_status" >&5
4737 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_lo=$ac_mid; break
4741 echo "$as_me: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4744 +ac_hi=`expr '(' $ac_mid ')' - 1`
4745 + if test $ac_mid -le $ac_hi; then
4749 + ac_mid=`expr 2 '*' $ac_mid`
4751 rm -f conftest.$ac_objext conftest.$ac_ext
4754 + echo "$as_me: failed program was:" >&5
4755 +cat conftest.$ac_ext >&5
4758 +rm -f conftest.$ac_objext conftest.$ac_ext
4760 rm -f conftest.$ac_objext conftest.$ac_ext
4761 # Binary search between lo and hi bounds.
4762 while test "x$ac_lo" != "x$ac_hi"; do
4763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4764 cat >conftest.$ac_ext <<_ACEOF
4765 -#line 4950 "configure"
4766 +#line $LINENO "configure"
4767 #include "confdefs.h"
4768 $ac_includes_default
4769 #ifdef F77_DUMMY_MAIN
4770 @@ -4959,42 +5573,53 @@
4774 -int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
4775 +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4782 rm -f conftest.$ac_objext
4783 -if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
4784 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4787 - echo "$as_me:4971: \$? = $ac_status" >&5
4788 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 - { (eval echo "$as_me:4974: \"$ac_try\"") >&5
4792 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 - echo "$as_me:4977: \$? = $ac_status" >&5
4796 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 -ac_lo=`expr $ac_mid + 1`
4803 +ac_lo=`expr '(' $ac_mid ')' + 1`
4805 rm -f conftest.$ac_objext conftest.$ac_ext
4807 -ac_cv_sizeof_short=$ac_lo
4809 +?*) ac_cv_sizeof_short=$ac_lo;;
4810 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4811 +echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4812 + { (exit 1); exit 1; }; } ;;
4815 if test "$cross_compiling" = yes; then
4816 - { { echo "$as_me:4990: error: cannot run test program while cross compiling" >&5
4817 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4818 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4819 { (exit 1); exit 1; }; }
4821 cat >conftest.$ac_ext <<_ACEOF
4822 -#line 4995 "configure"
4823 +#line $LINENO "configure"
4824 #include "confdefs.h"
4825 $ac_includes_default
4826 +long longval () { return (long) (sizeof (short)); }
4827 +unsigned long ulongval () { return (long) (sizeof (short)); }
4829 +#include <stdlib.h>
4830 #ifdef F77_DUMMY_MAIN
4833 @@ -5004,31 +5629,50 @@
4837 -FILE *f = fopen ("conftest.val", "w");
4840 -fprintf (f, "%d", (sizeof (short)));
4843 + FILE *f = fopen ("conftest.val", "w");
4846 + if (((long) (sizeof (short))) < 0)
4848 + long i = longval ();
4849 + if (i != ((long) (sizeof (short))))
4851 + fprintf (f, "%ld\n", i);
4855 + unsigned long i = ulongval ();
4856 + if (i != ((long) (sizeof (short))))
4858 + fprintf (f, "%lu\n", i);
4860 + exit (ferror (f) || fclose (f) != 0);
4866 rm -f conftest$ac_exeext
4867 -if { (eval echo "$as_me:5017: \"$ac_link\"") >&5
4868 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4869 (eval $ac_link) 2>&5
4871 - echo "$as_me:5020: \$? = $ac_status" >&5
4872 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4874 - { (eval echo "$as_me:5022: \"$ac_try\"") >&5
4875 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 - echo "$as_me:5025: \$? = $ac_status" >&5
4879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_sizeof_short=`cat conftest.val`
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 +( exit $ac_status )
4887 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4888 +echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4889 + { (exit 1); exit 1; }; }
4891 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4893 @@ -5038,19 +5682,20 @@
4894 ac_cv_sizeof_short=0
4897 -echo "$as_me:5041: result: $ac_cv_sizeof_short" >&5
4898 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4899 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4900 cat >>confdefs.h <<_ACEOF
4901 #define SIZEOF_SHORT $ac_cv_sizeof_short
4904 -echo "$as_me:5047: checking for int" >&5
4906 +echo "$as_me:$LINENO: checking for int" >&5
4907 echo $ECHO_N "checking for int... $ECHO_C" >&6
4908 if test "${ac_cv_type_int+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 cat >conftest.$ac_ext <<_ACEOF
4912 -#line 5053 "configure"
4913 +#line $LINENO "configure"
4914 #include "confdefs.h"
4915 $ac_includes_default
4916 #ifdef F77_DUMMY_MAIN
4917 @@ -5071,16 +5716,16 @@
4920 rm -f conftest.$ac_objext
4921 -if { (eval echo "$as_me:5074: \"$ac_compile\"") >&5
4922 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4925 - echo "$as_me:5077: \$? = $ac_status" >&5
4926 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 - { (eval echo "$as_me:5080: \"$ac_try\"") >&5
4930 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 - echo "$as_me:5083: \$? = $ac_status" >&5
4934 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4938 @@ -5090,19 +5735,23 @@
4940 rm -f conftest.$ac_objext conftest.$ac_ext
4942 -echo "$as_me:5093: result: $ac_cv_type_int" >&5
4943 +echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4944 echo "${ECHO_T}$ac_cv_type_int" >&6
4946 -echo "$as_me:5096: checking size of int" >&5
4947 +echo "$as_me:$LINENO: checking size of int" >&5
4948 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4949 if test "${ac_cv_sizeof_int+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test "$ac_cv_type_int" = yes; then
4953 + # The cast to unsigned long works around a bug in the HP C Compiler
4954 + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4955 + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4956 + # This bug is HP SR number 8606223364.
4957 if test "$cross_compiling" = yes; then
4958 # Depending upon the size, compute the lo and hi bounds.
4959 cat >conftest.$ac_ext <<_ACEOF
4960 -#line 5105 "configure"
4961 +#line $LINENO "configure"
4962 #include "confdefs.h"
4963 $ac_includes_default
4964 #ifdef F77_DUMMY_MAIN
4965 @@ -5114,27 +5763,77 @@
4969 -int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
4970 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4977 rm -f conftest.$ac_objext
4978 -if { (eval echo "$as_me:5123: \"$ac_compile\"") >&5
4979 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>&5
4982 - echo "$as_me:5126: \$? = $ac_status" >&5
4983 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 - { (eval echo "$as_me:5129: \"$ac_try\"") >&5
4987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 - echo "$as_me:5132: \$? = $ac_status" >&5
4991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4995 cat >conftest.$ac_ext <<_ACEOF
4996 -#line 5137 "configure"
4997 +#line $LINENO "configure"
4998 +#include "confdefs.h"
4999 +$ac_includes_default
5000 +#ifdef F77_DUMMY_MAIN
5001 +# ifdef __cplusplus
5004 + int F77_DUMMY_MAIN() { return 1; }
5009 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5016 +rm -f conftest.$ac_objext
5017 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 + (eval $ac_compile) 2>&5
5020 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 + (exit $ac_status); } &&
5022 + { ac_try='test -s conftest.$ac_objext'
5023 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 + (eval $ac_try) 2>&5
5026 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 + (exit $ac_status); }; }; then
5028 + ac_hi=$ac_mid; break
5030 + echo "$as_me: failed program was:" >&5
5031 +cat conftest.$ac_ext >&5
5032 +ac_lo=`expr $ac_mid + 1`
5033 + if test $ac_lo -le $ac_mid; then
5037 + ac_mid=`expr 2 '*' $ac_mid + 1`
5039 +rm -f conftest.$ac_objext conftest.$ac_ext
5042 + echo "$as_me: failed program was:" >&5
5043 +cat conftest.$ac_ext >&5
5044 +cat >conftest.$ac_ext <<_ACEOF
5045 +#line $LINENO "configure"
5046 #include "confdefs.h"
5047 $ac_includes_default
5048 #ifdef F77_DUMMY_MAIN
5049 @@ -5146,38 +5845,29 @@
5053 -int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
5054 +static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5061 rm -f conftest.$ac_objext
5062 -if { (eval echo "$as_me:5155: \"$ac_compile\"") >&5
5063 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>&5
5066 - echo "$as_me:5158: \$? = $ac_status" >&5
5067 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 - { (eval echo "$as_me:5161: \"$ac_try\"") >&5
5071 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 - echo "$as_me:5164: \$? = $ac_status" >&5
5075 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 - ac_hi=$ac_mid; break
5079 - echo "$as_me: failed program was:" >&5
5080 -cat conftest.$ac_ext >&5
5081 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
5083 -rm -f conftest.$ac_objext conftest.$ac_ext
5086 - echo "$as_me: failed program was:" >&5
5087 -cat conftest.$ac_ext >&5
5089 + ac_hi=-1 ac_mid=-1
5091 cat >conftest.$ac_ext <<_ACEOF
5092 -#line 5180 "configure"
5093 +#line $LINENO "configure"
5094 #include "confdefs.h"
5095 $ac_includes_default
5096 #ifdef F77_DUMMY_MAIN
5097 @@ -5189,38 +5879,51 @@
5101 -int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
5102 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5109 rm -f conftest.$ac_objext
5110 -if { (eval echo "$as_me:5198: \"$ac_compile\"") >&5
5111 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>&5
5114 - echo "$as_me:5201: \$? = $ac_status" >&5
5115 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 - { (eval echo "$as_me:5204: \"$ac_try\"") >&5
5119 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 - echo "$as_me:5207: \$? = $ac_status" >&5
5123 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_lo=$ac_mid; break
5127 echo "$as_me: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5129 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
5130 +ac_hi=`expr '(' $ac_mid ')' - 1`
5131 + if test $ac_mid -le $ac_hi; then
5135 + ac_mid=`expr 2 '*' $ac_mid`
5137 rm -f conftest.$ac_objext conftest.$ac_ext
5140 + echo "$as_me: failed program was:" >&5
5141 +cat conftest.$ac_ext >&5
5144 +rm -f conftest.$ac_objext conftest.$ac_ext
5146 rm -f conftest.$ac_objext conftest.$ac_ext
5147 # Binary search between lo and hi bounds.
5148 while test "x$ac_lo" != "x$ac_hi"; do
5149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5150 cat >conftest.$ac_ext <<_ACEOF
5151 -#line 5223 "configure"
5152 +#line $LINENO "configure"
5153 #include "confdefs.h"
5154 $ac_includes_default
5155 #ifdef F77_DUMMY_MAIN
5156 @@ -5232,42 +5935,53 @@
5160 -int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
5161 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5168 rm -f conftest.$ac_objext
5169 -if { (eval echo "$as_me:5241: \"$ac_compile\"") >&5
5170 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5173 - echo "$as_me:5244: \$? = $ac_status" >&5
5174 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 - { (eval echo "$as_me:5247: \"$ac_try\"") >&5
5178 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 - echo "$as_me:5250: \$? = $ac_status" >&5
5182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5186 echo "$as_me: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 -ac_lo=`expr $ac_mid + 1`
5189 +ac_lo=`expr '(' $ac_mid ')' + 1`
5191 rm -f conftest.$ac_objext conftest.$ac_ext
5193 -ac_cv_sizeof_int=$ac_lo
5195 +?*) ac_cv_sizeof_int=$ac_lo;;
5196 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5197 +echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5198 + { (exit 1); exit 1; }; } ;;
5201 if test "$cross_compiling" = yes; then
5202 - { { echo "$as_me:5263: error: cannot run test program while cross compiling" >&5
5203 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5204 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5205 { (exit 1); exit 1; }; }
5207 cat >conftest.$ac_ext <<_ACEOF
5208 -#line 5268 "configure"
5209 +#line $LINENO "configure"
5210 #include "confdefs.h"
5211 $ac_includes_default
5212 +long longval () { return (long) (sizeof (int)); }
5213 +unsigned long ulongval () { return (long) (sizeof (int)); }
5215 +#include <stdlib.h>
5216 #ifdef F77_DUMMY_MAIN
5219 @@ -5277,31 +5991,50 @@
5223 -FILE *f = fopen ("conftest.val", "w");
5226 -fprintf (f, "%d", (sizeof (int)));
5229 + FILE *f = fopen ("conftest.val", "w");
5232 + if (((long) (sizeof (int))) < 0)
5234 + long i = longval ();
5235 + if (i != ((long) (sizeof (int))))
5237 + fprintf (f, "%ld\n", i);
5241 + unsigned long i = ulongval ();
5242 + if (i != ((long) (sizeof (int))))
5244 + fprintf (f, "%lu\n", i);
5246 + exit (ferror (f) || fclose (f) != 0);
5252 rm -f conftest$ac_exeext
5253 -if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
5254 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>&5
5257 - echo "$as_me:5293: \$? = $ac_status" >&5
5258 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5260 - { (eval echo "$as_me:5295: \"$ac_try\"") >&5
5261 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 - echo "$as_me:5298: \$? = $ac_status" >&5
5265 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_sizeof_int=`cat conftest.val`
5269 echo "$as_me: program exited with status $ac_status" >&5
5270 echo "$as_me: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5272 +( exit $ac_status )
5273 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5274 +echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5275 + { (exit 1); exit 1; }; }
5277 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5279 @@ -5311,19 +6044,20 @@
5283 -echo "$as_me:5314: result: $ac_cv_sizeof_int" >&5
5284 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5285 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5286 cat >>confdefs.h <<_ACEOF
5287 #define SIZEOF_INT $ac_cv_sizeof_int
5290 -echo "$as_me:5320: checking for long" >&5
5292 +echo "$as_me:$LINENO: checking for long" >&5
5293 echo $ECHO_N "checking for long... $ECHO_C" >&6
5294 if test "${ac_cv_type_long+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 cat >conftest.$ac_ext <<_ACEOF
5298 -#line 5326 "configure"
5299 +#line $LINENO "configure"
5300 #include "confdefs.h"
5301 $ac_includes_default
5302 #ifdef F77_DUMMY_MAIN
5303 @@ -5344,16 +6078,16 @@
5306 rm -f conftest.$ac_objext
5307 -if { (eval echo "$as_me:5347: \"$ac_compile\"") >&5
5308 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>&5
5311 - echo "$as_me:5350: \$? = $ac_status" >&5
5312 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 - { (eval echo "$as_me:5353: \"$ac_try\"") >&5
5316 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 - echo "$as_me:5356: \$? = $ac_status" >&5
5320 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5324 @@ -5363,19 +6097,23 @@
5326 rm -f conftest.$ac_objext conftest.$ac_ext
5328 -echo "$as_me:5366: result: $ac_cv_type_long" >&5
5329 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5330 echo "${ECHO_T}$ac_cv_type_long" >&6
5332 -echo "$as_me:5369: checking size of long" >&5
5333 +echo "$as_me:$LINENO: checking size of long" >&5
5334 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5335 if test "${ac_cv_sizeof_long+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 if test "$ac_cv_type_long" = yes; then
5339 + # The cast to unsigned long works around a bug in the HP C Compiler
5340 + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5341 + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5342 + # This bug is HP SR number 8606223364.
5343 if test "$cross_compiling" = yes; then
5344 # Depending upon the size, compute the lo and hi bounds.
5345 cat >conftest.$ac_ext <<_ACEOF
5346 -#line 5378 "configure"
5347 +#line $LINENO "configure"
5348 #include "confdefs.h"
5349 $ac_includes_default
5350 #ifdef F77_DUMMY_MAIN
5351 @@ -5387,27 +6125,29 @@
5355 -int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
5356 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5363 rm -f conftest.$ac_objext
5364 -if { (eval echo "$as_me:5396: \"$ac_compile\"") >&5
5365 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>&5
5368 - echo "$as_me:5399: \$? = $ac_status" >&5
5369 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 - { (eval echo "$as_me:5402: \"$ac_try\"") >&5
5373 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 - echo "$as_me:5405: \$? = $ac_status" >&5
5377 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5381 cat >conftest.$ac_ext <<_ACEOF
5382 -#line 5410 "configure"
5383 +#line $LINENO "configure"
5384 #include "confdefs.h"
5385 $ac_includes_default
5386 #ifdef F77_DUMMY_MAIN
5387 @@ -5419,38 +6159,77 @@
5391 -int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
5392 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5399 rm -f conftest.$ac_objext
5400 -if { (eval echo "$as_me:5428: \"$ac_compile\"") >&5
5401 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>&5
5404 - echo "$as_me:5431: \$? = $ac_status" >&5
5405 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 - { (eval echo "$as_me:5434: \"$ac_try\"") >&5
5409 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 - echo "$as_me:5437: \$? = $ac_status" >&5
5413 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_hi=$ac_mid; break
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
5420 +ac_lo=`expr $ac_mid + 1`
5421 + if test $ac_lo -le $ac_mid; then
5425 + ac_mid=`expr 2 '*' $ac_mid + 1`
5427 rm -f conftest.$ac_objext conftest.$ac_ext
5430 echo "$as_me: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 +cat >conftest.$ac_ext <<_ACEOF
5434 +#line $LINENO "configure"
5435 +#include "confdefs.h"
5436 +$ac_includes_default
5437 +#ifdef F77_DUMMY_MAIN
5438 +# ifdef __cplusplus
5441 + int F77_DUMMY_MAIN() { return 1; }
5446 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5453 +rm -f conftest.$ac_objext
5454 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 + (eval $ac_compile) 2>&5
5457 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 + (exit $ac_status); } &&
5459 + { ac_try='test -s conftest.$ac_objext'
5460 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 + (eval $ac_try) 2>&5
5463 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 + (exit $ac_status); }; }; then
5465 + ac_hi=-1 ac_mid=-1
5467 cat >conftest.$ac_ext <<_ACEOF
5468 -#line 5453 "configure"
5469 +#line $LINENO "configure"
5470 #include "confdefs.h"
5471 $ac_includes_default
5472 #ifdef F77_DUMMY_MAIN
5473 @@ -5462,38 +6241,51 @@
5477 -int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
5478 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5485 rm -f conftest.$ac_objext
5486 -if { (eval echo "$as_me:5471: \"$ac_compile\"") >&5
5487 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>&5
5490 - echo "$as_me:5474: \$? = $ac_status" >&5
5491 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 - { (eval echo "$as_me:5477: \"$ac_try\"") >&5
5495 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 - echo "$as_me:5480: \$? = $ac_status" >&5
5499 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_lo=$ac_mid; break
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
5506 +ac_hi=`expr '(' $ac_mid ')' - 1`
5507 + if test $ac_mid -le $ac_hi; then
5511 + ac_mid=`expr 2 '*' $ac_mid`
5513 rm -f conftest.$ac_objext conftest.$ac_ext
5516 + echo "$as_me: failed program was:" >&5
5517 +cat conftest.$ac_ext >&5
5520 +rm -f conftest.$ac_objext conftest.$ac_ext
5522 rm -f conftest.$ac_objext conftest.$ac_ext
5523 # Binary search between lo and hi bounds.
5524 while test "x$ac_lo" != "x$ac_hi"; do
5525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5526 cat >conftest.$ac_ext <<_ACEOF
5527 -#line 5496 "configure"
5528 +#line $LINENO "configure"
5529 #include "confdefs.h"
5530 $ac_includes_default
5531 #ifdef F77_DUMMY_MAIN
5532 @@ -5505,42 +6297,53 @@
5536 -int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
5537 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5544 rm -f conftest.$ac_objext
5545 -if { (eval echo "$as_me:5514: \"$ac_compile\"") >&5
5546 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 (eval $ac_compile) 2>&5
5549 - echo "$as_me:5517: \$? = $ac_status" >&5
5550 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 - { (eval echo "$as_me:5520: \"$ac_try\"") >&5
5554 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 - echo "$as_me:5523: \$? = $ac_status" >&5
5558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5562 echo "$as_me: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 -ac_lo=`expr $ac_mid + 1`
5565 +ac_lo=`expr '(' $ac_mid ')' + 1`
5567 rm -f conftest.$ac_objext conftest.$ac_ext
5569 -ac_cv_sizeof_long=$ac_lo
5571 +?*) ac_cv_sizeof_long=$ac_lo;;
5572 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5573 +echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5574 + { (exit 1); exit 1; }; } ;;
5577 if test "$cross_compiling" = yes; then
5578 - { { echo "$as_me:5536: error: cannot run test program while cross compiling" >&5
5579 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5580 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5581 { (exit 1); exit 1; }; }
5583 cat >conftest.$ac_ext <<_ACEOF
5584 -#line 5541 "configure"
5585 +#line $LINENO "configure"
5586 #include "confdefs.h"
5587 $ac_includes_default
5588 +long longval () { return (long) (sizeof (long)); }
5589 +unsigned long ulongval () { return (long) (sizeof (long)); }
5591 +#include <stdlib.h>
5592 #ifdef F77_DUMMY_MAIN
5595 @@ -5550,31 +6353,50 @@
5599 -FILE *f = fopen ("conftest.val", "w");
5602 -fprintf (f, "%d", (sizeof (long)));
5605 + FILE *f = fopen ("conftest.val", "w");
5608 + if (((long) (sizeof (long))) < 0)
5610 + long i = longval ();
5611 + if (i != ((long) (sizeof (long))))
5613 + fprintf (f, "%ld\n", i);
5617 + unsigned long i = ulongval ();
5618 + if (i != ((long) (sizeof (long))))
5620 + fprintf (f, "%lu\n", i);
5622 + exit (ferror (f) || fclose (f) != 0);
5628 rm -f conftest$ac_exeext
5629 -if { (eval echo "$as_me:5563: \"$ac_link\"") >&5
5630 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5633 - echo "$as_me:5566: \$? = $ac_status" >&5
5634 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5636 - { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5637 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 - echo "$as_me:5571: \$? = $ac_status" >&5
5641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_cv_sizeof_long=`cat conftest.val`
5645 echo "$as_me: program exited with status $ac_status" >&5
5646 echo "$as_me: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5648 +( exit $ac_status )
5649 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5650 +echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5651 + { (exit 1); exit 1; }; }
5653 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5655 @@ -5584,19 +6406,20 @@
5659 -echo "$as_me:5587: result: $ac_cv_sizeof_long" >&5
5660 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5661 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5662 cat >>confdefs.h <<_ACEOF
5663 #define SIZEOF_LONG $ac_cv_sizeof_long
5666 -echo "$as_me:5593: checking for long long" >&5
5668 +echo "$as_me:$LINENO: checking for long long" >&5
5669 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5670 if test "${ac_cv_type_long_long+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 cat >conftest.$ac_ext <<_ACEOF
5674 -#line 5599 "configure"
5675 +#line $LINENO "configure"
5676 #include "confdefs.h"
5677 $ac_includes_default
5678 #ifdef F77_DUMMY_MAIN
5679 @@ -5617,16 +6440,16 @@
5682 rm -f conftest.$ac_objext
5683 -if { (eval echo "$as_me:5620: \"$ac_compile\"") >&5
5684 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>&5
5687 - echo "$as_me:5623: \$? = $ac_status" >&5
5688 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -s conftest.$ac_objext'
5691 - { (eval echo "$as_me:5626: \"$ac_try\"") >&5
5692 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 - echo "$as_me:5629: \$? = $ac_status" >&5
5696 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_type_long_long=yes
5700 @@ -5636,19 +6459,23 @@
5702 rm -f conftest.$ac_objext conftest.$ac_ext
5704 -echo "$as_me:5639: result: $ac_cv_type_long_long" >&5
5705 +echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5706 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5708 -echo "$as_me:5642: checking size of long long" >&5
5709 +echo "$as_me:$LINENO: checking size of long long" >&5
5710 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5711 if test "${ac_cv_sizeof_long_long+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 if test "$ac_cv_type_long_long" = yes; then
5715 + # The cast to unsigned long works around a bug in the HP C Compiler
5716 + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5717 + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5718 + # This bug is HP SR number 8606223364.
5719 if test "$cross_compiling" = yes; then
5720 # Depending upon the size, compute the lo and hi bounds.
5721 cat >conftest.$ac_ext <<_ACEOF
5722 -#line 5651 "configure"
5723 +#line $LINENO "configure"
5724 #include "confdefs.h"
5725 $ac_includes_default
5726 #ifdef F77_DUMMY_MAIN
5727 @@ -5660,27 +6487,29 @@
5731 -int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
5732 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5739 rm -f conftest.$ac_objext
5740 -if { (eval echo "$as_me:5669: \"$ac_compile\"") >&5
5741 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5744 - echo "$as_me:5672: \$? = $ac_status" >&5
5745 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
5747 { ac_try='test -s conftest.$ac_objext'
5748 - { (eval echo "$as_me:5675: \"$ac_try\"") >&5
5749 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 - echo "$as_me:5678: \$? = $ac_status" >&5
5753 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5757 cat >conftest.$ac_ext <<_ACEOF
5758 -#line 5683 "configure"
5759 +#line $LINENO "configure"
5760 #include "confdefs.h"
5761 $ac_includes_default
5762 #ifdef F77_DUMMY_MAIN
5763 @@ -5692,38 +6521,77 @@
5767 -int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
5768 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5775 rm -f conftest.$ac_objext
5776 -if { (eval echo "$as_me:5701: \"$ac_compile\"") >&5
5777 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>&5
5780 - echo "$as_me:5704: \$? = $ac_status" >&5
5781 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 - { (eval echo "$as_me:5707: \"$ac_try\"") >&5
5785 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 - echo "$as_me:5710: \$? = $ac_status" >&5
5789 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_hi=$ac_mid; break
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
5796 +ac_lo=`expr $ac_mid + 1`
5797 + if test $ac_lo -le $ac_mid; then
5801 + ac_mid=`expr 2 '*' $ac_mid + 1`
5803 rm -f conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5809 +cat >conftest.$ac_ext <<_ACEOF
5810 +#line $LINENO "configure"
5811 +#include "confdefs.h"
5812 +$ac_includes_default
5813 +#ifdef F77_DUMMY_MAIN
5814 +# ifdef __cplusplus
5817 + int F77_DUMMY_MAIN() { return 1; }
5822 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5829 +rm -f conftest.$ac_objext
5830 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 + (eval $ac_compile) 2>&5
5833 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 + (exit $ac_status); } &&
5835 + { ac_try='test -s conftest.$ac_objext'
5836 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 + (eval $ac_try) 2>&5
5839 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 + (exit $ac_status); }; }; then
5841 + ac_hi=-1 ac_mid=-1
5843 cat >conftest.$ac_ext <<_ACEOF
5844 -#line 5726 "configure"
5845 +#line $LINENO "configure"
5846 #include "confdefs.h"
5847 $ac_includes_default
5848 #ifdef F77_DUMMY_MAIN
5849 @@ -5735,38 +6603,51 @@
5853 -int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
5854 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5861 rm -f conftest.$ac_objext
5862 -if { (eval echo "$as_me:5744: \"$ac_compile\"") >&5
5863 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5866 - echo "$as_me:5747: \$? = $ac_status" >&5
5867 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 - { (eval echo "$as_me:5750: \"$ac_try\"") >&5
5871 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 - echo "$as_me:5753: \$? = $ac_status" >&5
5875 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_lo=$ac_mid; break
5879 echo "$as_me: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5881 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
5882 +ac_hi=`expr '(' $ac_mid ')' - 1`
5883 + if test $ac_mid -le $ac_hi; then
5887 + ac_mid=`expr 2 '*' $ac_mid`
5889 rm -f conftest.$ac_objext conftest.$ac_ext
5892 + echo "$as_me: failed program was:" >&5
5893 +cat conftest.$ac_ext >&5
5896 +rm -f conftest.$ac_objext conftest.$ac_ext
5898 rm -f conftest.$ac_objext conftest.$ac_ext
5899 # Binary search between lo and hi bounds.
5900 while test "x$ac_lo" != "x$ac_hi"; do
5901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5902 cat >conftest.$ac_ext <<_ACEOF
5903 -#line 5769 "configure"
5904 +#line $LINENO "configure"
5905 #include "confdefs.h"
5906 $ac_includes_default
5907 #ifdef F77_DUMMY_MAIN
5908 @@ -5778,42 +6659,53 @@
5912 -int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
5913 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5920 rm -f conftest.$ac_objext
5921 -if { (eval echo "$as_me:5787: \"$ac_compile\"") >&5
5922 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>&5
5925 - echo "$as_me:5790: \$? = $ac_status" >&5
5926 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 - { (eval echo "$as_me:5793: \"$ac_try\"") >&5
5930 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 - echo "$as_me:5796: \$? = $ac_status" >&5
5934 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 -ac_lo=`expr $ac_mid + 1`
5941 +ac_lo=`expr '(' $ac_mid ')' + 1`
5943 rm -f conftest.$ac_objext conftest.$ac_ext
5945 -ac_cv_sizeof_long_long=$ac_lo
5947 +?*) ac_cv_sizeof_long_long=$ac_lo;;
5948 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
5949 +echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
5950 + { (exit 1); exit 1; }; } ;;
5953 if test "$cross_compiling" = yes; then
5954 - { { echo "$as_me:5809: error: cannot run test program while cross compiling" >&5
5955 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5956 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5957 { (exit 1); exit 1; }; }
5959 cat >conftest.$ac_ext <<_ACEOF
5960 -#line 5814 "configure"
5961 +#line $LINENO "configure"
5962 #include "confdefs.h"
5963 $ac_includes_default
5964 +long longval () { return (long) (sizeof (long long)); }
5965 +unsigned long ulongval () { return (long) (sizeof (long long)); }
5967 +#include <stdlib.h>
5968 #ifdef F77_DUMMY_MAIN
5971 @@ -5823,31 +6715,50 @@
5975 -FILE *f = fopen ("conftest.val", "w");
5978 -fprintf (f, "%d", (sizeof (long long)));
5981 + FILE *f = fopen ("conftest.val", "w");
5984 + if (((long) (sizeof (long long))) < 0)
5986 + long i = longval ();
5987 + if (i != ((long) (sizeof (long long))))
5989 + fprintf (f, "%ld\n", i);
5993 + unsigned long i = ulongval ();
5994 + if (i != ((long) (sizeof (long long))))
5996 + fprintf (f, "%lu\n", i);
5998 + exit (ferror (f) || fclose (f) != 0);
6004 rm -f conftest$ac_exeext
6005 -if { (eval echo "$as_me:5836: \"$ac_link\"") >&5
6006 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6009 - echo "$as_me:5839: \$? = $ac_status" >&5
6010 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6012 - { (eval echo "$as_me:5841: \"$ac_try\"") >&5
6013 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 - echo "$as_me:5844: \$? = $ac_status" >&5
6017 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_sizeof_long_long=`cat conftest.val`
6021 echo "$as_me: program exited with status $ac_status" >&5
6022 echo "$as_me: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6024 +( exit $ac_status )
6025 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
6026 +echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
6027 + { (exit 1); exit 1; }; }
6029 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6031 @@ -5857,13 +6768,15 @@
6032 ac_cv_sizeof_long_long=0
6035 -echo "$as_me:5860: result: $ac_cv_sizeof_long_long" >&5
6036 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6037 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6038 cat >>confdefs.h <<_ACEOF
6039 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6042 -echo "$as_me:5866: checking for $CC option to accept ANSI C" >&5
6045 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6046 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6047 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 @@ -5871,7 +6784,7 @@
6050 ac_cv_prog_cc_stdc=no
6052 cat >conftest.$ac_ext <<_ACEOF
6053 -#line 5874 "configure"
6054 +#line $LINENO "configure"
6055 #include "confdefs.h"
6058 @@ -5926,16 +6839,16 @@
6060 CC="$ac_save_CC $ac_arg"
6061 rm -f conftest.$ac_objext
6062 -if { (eval echo "$as_me:5929: \"$ac_compile\"") >&5
6063 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>&5
6066 - echo "$as_me:5932: \$? = $ac_status" >&5
6067 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 - { (eval echo "$as_me:5935: \"$ac_try\"") >&5
6071 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 - echo "$as_me:5938: \$? = $ac_status" >&5
6075 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_prog_cc_stdc=$ac_arg
6079 @@ -5952,21 +6865,21 @@
6081 case "x$ac_cv_prog_cc_stdc" in
6083 - echo "$as_me:5955: result: none needed" >&5
6084 + echo "$as_me:$LINENO: result: none needed" >&5
6085 echo "${ECHO_T}none needed" >&6 ;;
6087 - echo "$as_me:5958: result: $ac_cv_prog_cc_stdc" >&5
6088 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6089 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6090 CC="$CC $ac_cv_prog_cc_stdc" ;;
6093 -echo "$as_me:5963: checking for an ANSI C-conforming const" >&5
6094 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6096 if test "${ac_cv_c_const+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 cat >conftest.$ac_ext <<_ACEOF
6100 -#line 5969 "configure"
6101 +#line $LINENO "configure"
6102 #include "confdefs.h"
6104 #ifdef F77_DUMMY_MAIN
6105 @@ -6030,16 +6943,16 @@
6108 rm -f conftest.$ac_objext
6109 -if { (eval echo "$as_me:6033: \"$ac_compile\"") >&5
6110 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>&5
6113 - echo "$as_me:6036: \$? = $ac_status" >&5
6114 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -s conftest.$ac_objext'
6117 - { (eval echo "$as_me:6039: \"$ac_try\"") >&5
6118 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 - echo "$as_me:6042: \$? = $ac_status" >&5
6122 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6126 @@ -6049,7 +6962,7 @@
6128 rm -f conftest.$ac_objext conftest.$ac_ext
6130 -echo "$as_me:6052: result: $ac_cv_c_const" >&5
6131 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6132 echo "${ECHO_T}$ac_cv_c_const" >&6
6133 if test $ac_cv_c_const = no; then
6135 @@ -6059,7 +6972,7 @@
6139 -echo "$as_me:6062: checking for inline" >&5
6140 +echo "$as_me:$LINENO: checking for inline" >&5
6141 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6142 if test "${ac_cv_c_inline+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 @@ -6067,7 +6980,7 @@
6146 for ac_kw in inline __inline__ __inline; do
6147 cat >conftest.$ac_ext <<_ACEOF
6148 -#line 6070 "configure"
6149 +#line $LINENO "configure"
6150 #include "confdefs.h"
6152 static $ac_kw int static_foo () {return 0; }
6153 @@ -6076,16 +6989,16 @@
6156 rm -f conftest.$ac_objext
6157 -if { (eval echo "$as_me:6079: \"$ac_compile\"") >&5
6158 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 - echo "$as_me:6082: \$? = $ac_status" >&5
6162 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 - { (eval echo "$as_me:6085: \"$ac_try\"") >&5
6166 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 - echo "$as_me:6088: \$? = $ac_status" >&5
6170 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_c_inline=$ac_kw; break
6174 @@ -6096,7 +7009,7 @@
6178 -echo "$as_me:6099: result: $ac_cv_c_inline" >&5
6179 +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6180 echo "${ECHO_T}$ac_cv_c_inline" >&6
6181 case $ac_cv_c_inline in
6183 @@ -6111,13 +7024,13 @@
6187 -echo "$as_me:6114: checking for mode_t" >&5
6188 +echo "$as_me:$LINENO: checking for mode_t" >&5
6189 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6190 if test "${ac_cv_type_mode_t+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 cat >conftest.$ac_ext <<_ACEOF
6194 -#line 6120 "configure"
6195 +#line $LINENO "configure"
6196 #include "confdefs.h"
6197 $ac_includes_default
6198 #ifdef F77_DUMMY_MAIN
6199 @@ -6138,16 +7051,16 @@
6202 rm -f conftest.$ac_objext
6203 -if { (eval echo "$as_me:6141: \"$ac_compile\"") >&5
6204 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>&5
6207 - echo "$as_me:6144: \$? = $ac_status" >&5
6208 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 - { (eval echo "$as_me:6147: \"$ac_try\"") >&5
6212 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 - echo "$as_me:6150: \$? = $ac_status" >&5
6216 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_type_mode_t=yes
6220 @@ -6157,7 +7070,7 @@
6222 rm -f conftest.$ac_objext conftest.$ac_ext
6224 -echo "$as_me:6160: result: $ac_cv_type_mode_t" >&5
6225 +echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6226 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6227 if test $ac_cv_type_mode_t = yes; then
6229 @@ -6169,13 +7082,13 @@
6233 -echo "$as_me:6172: checking for off_t" >&5
6234 +echo "$as_me:$LINENO: checking for off_t" >&5
6235 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6236 if test "${ac_cv_type_off_t+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6240 -#line 6178 "configure"
6241 +#line $LINENO "configure"
6242 #include "confdefs.h"
6243 $ac_includes_default
6244 #ifdef F77_DUMMY_MAIN
6245 @@ -6196,16 +7109,16 @@
6248 rm -f conftest.$ac_objext
6249 -if { (eval echo "$as_me:6199: \"$ac_compile\"") >&5
6250 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>&5
6253 - echo "$as_me:6202: \$? = $ac_status" >&5
6254 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 - { (eval echo "$as_me:6205: \"$ac_try\"") >&5
6258 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 - echo "$as_me:6208: \$? = $ac_status" >&5
6262 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_type_off_t=yes
6266 @@ -6215,7 +7128,7 @@
6268 rm -f conftest.$ac_objext conftest.$ac_ext
6270 -echo "$as_me:6218: result: $ac_cv_type_off_t" >&5
6271 +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6272 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6273 if test $ac_cv_type_off_t = yes; then
6275 @@ -6227,13 +7140,13 @@
6279 -echo "$as_me:6230: checking for pid_t" >&5
6280 +echo "$as_me:$LINENO: checking for pid_t" >&5
6281 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6282 if test "${ac_cv_type_pid_t+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6286 -#line 6236 "configure"
6287 +#line $LINENO "configure"
6288 #include "confdefs.h"
6289 $ac_includes_default
6290 #ifdef F77_DUMMY_MAIN
6291 @@ -6254,16 +7167,16 @@
6294 rm -f conftest.$ac_objext
6295 -if { (eval echo "$as_me:6257: \"$ac_compile\"") >&5
6296 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6299 - echo "$as_me:6260: \$? = $ac_status" >&5
6300 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 - { (eval echo "$as_me:6263: \"$ac_try\"") >&5
6304 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 - echo "$as_me:6266: \$? = $ac_status" >&5
6308 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 ac_cv_type_pid_t=yes
6312 @@ -6273,7 +7186,7 @@
6314 rm -f conftest.$ac_objext conftest.$ac_ext
6316 -echo "$as_me:6276: result: $ac_cv_type_pid_t" >&5
6317 +echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6318 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6319 if test $ac_cv_type_pid_t = yes; then
6321 @@ -6285,13 +7198,13 @@
6325 -echo "$as_me:6288: checking for struct stat.st_blocks" >&5
6326 +echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6327 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6328 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.$ac_ext <<_ACEOF
6332 -#line 6294 "configure"
6333 +#line $LINENO "configure"
6334 #include "confdefs.h"
6335 $ac_includes_default
6336 #ifdef F77_DUMMY_MAIN
6337 @@ -6311,16 +7224,16 @@
6340 rm -f conftest.$ac_objext
6341 -if { (eval echo "$as_me:6314: \"$ac_compile\"") >&5
6342 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>&5
6345 - echo "$as_me:6317: \$? = $ac_status" >&5
6346 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 - { (eval echo "$as_me:6320: \"$ac_try\"") >&5
6350 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 - echo "$as_me:6323: \$? = $ac_status" >&5
6354 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_member_struct_stat_st_blocks=yes
6358 @@ -6330,7 +7243,7 @@
6360 rm -f conftest.$ac_objext conftest.$ac_ext
6362 -echo "$as_me:6333: result: $ac_cv_member_struct_stat_st_blocks" >&5
6363 +echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6365 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6367 @@ -6338,6 +7251,7 @@
6368 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_ST_BLOCKS 1
6375 @@ -6346,13 +7260,14 @@
6376 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6379 -echo "$as_me:6349: checking whether time.h and sys/time.h may both be included" >&5
6381 +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6382 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6383 if test "${ac_cv_header_time+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6387 -#line 6355 "configure"
6388 +#line $LINENO "configure"
6389 #include "confdefs.h"
6390 #include <sys/types.h>
6391 #include <sys/time.h>
6392 @@ -6374,16 +7289,16 @@
6395 rm -f conftest.$ac_objext
6396 -if { (eval echo "$as_me:6377: \"$ac_compile\"") >&5
6397 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398 (eval $ac_compile) 2>&5
6400 - echo "$as_me:6380: \$? = $ac_status" >&5
6401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 - { (eval echo "$as_me:6383: \"$ac_try\"") >&5
6405 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 - echo "$as_me:6386: \$? = $ac_status" >&5
6409 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_cv_header_time=yes
6413 @@ -6393,7 +7308,7 @@
6415 rm -f conftest.$ac_objext conftest.$ac_ext
6417 -echo "$as_me:6396: result: $ac_cv_header_time" >&5
6418 +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6419 echo "${ECHO_T}$ac_cv_header_time" >&6
6420 if test $ac_cv_header_time = yes; then
6422 @@ -6403,13 +7318,13 @@
6426 -echo "$as_me:6406: checking whether struct tm is in sys/time.h or time.h" >&5
6427 +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6428 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6429 if test "${ac_cv_struct_tm+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 cat >conftest.$ac_ext <<_ACEOF
6433 -#line 6412 "configure"
6434 +#line $LINENO "configure"
6435 #include "confdefs.h"
6436 #include <sys/types.h>
6438 @@ -6429,16 +7344,16 @@
6441 rm -f conftest.$ac_objext
6442 -if { (eval echo "$as_me:6432: \"$ac_compile\"") >&5
6443 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444 (eval $ac_compile) 2>&5
6446 - echo "$as_me:6435: \$? = $ac_status" >&5
6447 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 - { (eval echo "$as_me:6438: \"$ac_try\"") >&5
6451 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 - echo "$as_me:6441: \$? = $ac_status" >&5
6455 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_cv_struct_tm=time.h
6459 @@ -6448,7 +7363,7 @@
6461 rm -f conftest.$ac_objext conftest.$ac_ext
6463 -echo "$as_me:6451: result: $ac_cv_struct_tm" >&5
6464 +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6465 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6466 if test $ac_cv_struct_tm = sys/time.h; then
6468 @@ -6458,15 +7373,16 @@
6473 if test $ac_cv_c_compiler_gnu = yes; then
6474 - echo "$as_me:6462: checking whether $CC needs -traditional" >&5
6475 + echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6476 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6477 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 ac_pattern="Autoconf.*'x'"
6481 cat >conftest.$ac_ext <<_ACEOF
6482 -#line 6469 "configure"
6483 +#line $LINENO "configure"
6484 #include "confdefs.h"
6487 @@ -6479,9 +7395,10 @@
6492 if test $ac_cv_prog_gcc_traditional = no; then
6493 cat >conftest.$ac_ext <<_ACEOF
6494 -#line 6484 "configure"
6495 +#line $LINENO "configure"
6496 #include "confdefs.h"
6499 @@ -6494,14 +7411,14 @@
6503 -echo "$as_me:6497: result: $ac_cv_prog_gcc_traditional" >&5
6504 +echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6505 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6506 if test $ac_cv_prog_gcc_traditional = yes; then
6507 CC="$CC -traditional"
6511 -echo "$as_me:6504: checking for working memcmp" >&5
6512 +echo "$as_me:$LINENO: checking for working memcmp" >&5
6513 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6514 if test "${ac_cv_func_memcmp_working+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 @@ -6510,7 +7427,7 @@
6517 ac_cv_func_memcmp_working=no
6519 cat >conftest.$ac_ext <<_ACEOF
6520 -#line 6513 "configure"
6521 +#line $LINENO "configure"
6522 #include "confdefs.h"
6524 #ifdef F77_DUMMY_MAIN
6525 @@ -6552,37 +7469,38 @@
6528 rm -f conftest$ac_exeext
6529 -if { (eval echo "$as_me:6555: \"$ac_link\"") >&5
6530 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>&5
6533 - echo "$as_me:6558: \$? = $ac_status" >&5
6534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6536 - { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6537 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 - echo "$as_me:6563: \$? = $ac_status" >&5
6541 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_func_memcmp_working=yes
6545 echo "$as_me: program exited with status $ac_status" >&5
6546 echo "$as_me: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6548 +( exit $ac_status )
6549 ac_cv_func_memcmp_working=no
6551 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6554 -echo "$as_me:6575: result: $ac_cv_func_memcmp_working" >&5
6555 +echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6556 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
6557 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6559 -echo "$as_me:6579: checking return type of signal handlers" >&5
6560 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6561 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6562 if test "${ac_cv_type_signal+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 -#line 6585 "configure"
6567 +#line $LINENO "configure"
6568 #include "confdefs.h"
6569 #include <sys/types.h>
6571 @@ -6610,16 +7528,16 @@
6574 rm -f conftest.$ac_objext
6575 -if { (eval echo "$as_me:6613: \"$ac_compile\"") >&5
6576 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>&5
6579 - echo "$as_me:6616: \$? = $ac_status" >&5
6580 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 - { (eval echo "$as_me:6619: \"$ac_try\"") >&5
6584 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 - echo "$as_me:6622: \$? = $ac_status" >&5
6588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_type_signal=void
6592 @@ -6629,14 +7547,15 @@
6594 rm -f conftest.$ac_objext conftest.$ac_ext
6596 -echo "$as_me:6632: result: $ac_cv_type_signal" >&5
6597 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6598 echo "${ECHO_T}$ac_cv_type_signal" >&6
6600 cat >>confdefs.h <<_ACEOF
6601 #define RETSIGTYPE $ac_cv_type_signal
6604 -echo "$as_me:6639: checking whether utime accepts a null argument" >&5
6606 +echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
6607 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
6608 if test "${ac_cv_func_utime_null+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 @@ -6647,7 +7566,7 @@
6611 ac_cv_func_utime_null=no
6613 cat >conftest.$ac_ext <<_ACEOF
6614 -#line 6650 "configure"
6615 +#line $LINENO "configure"
6616 #include "confdefs.h"
6617 $ac_includes_default
6618 #ifdef F77_DUMMY_MAIN
6619 @@ -6670,28 +7589,29 @@
6622 rm -f conftest$ac_exeext
6623 -if { (eval echo "$as_me:6673: \"$ac_link\"") >&5
6624 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6627 - echo "$as_me:6676: \$? = $ac_status" >&5
6628 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6630 - { (eval echo "$as_me:6678: \"$ac_try\"") >&5
6631 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 - echo "$as_me:6681: \$? = $ac_status" >&5
6635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_func_utime_null=yes
6639 echo "$as_me: program exited with status $ac_status" >&5
6640 echo "$as_me: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 +( exit $ac_status )
6643 ac_cv_func_utime_null=no
6645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6647 rm -f core core.* *.core
6649 -echo "$as_me:6694: result: $ac_cv_func_utime_null" >&5
6650 +echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
6651 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
6652 if test $ac_cv_func_utime_null = yes; then
6654 @@ -6702,16 +7622,25 @@
6667 for ac_func in gettimeofday sigaction mkdir rmdir select strerror strstr statfs usleep
6669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6670 -echo "$as_me:6708: checking for $ac_func" >&5
6671 +echo "$as_me:$LINENO: checking for $ac_func" >&5
6672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_var+set}\" = set"; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6677 -#line 6714 "configure"
6678 +#line $LINENO "configure"
6679 #include "confdefs.h"
6680 /* System header to define __stub macros and hopefully few prototypes,
6681 which can conflict with char $ac_func (); below. */
6682 @@ -6748,16 +7677,16 @@
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 -if { (eval echo "$as_me:6751: \"$ac_link\"") >&5
6687 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>&5
6690 - echo "$as_me:6754: \$? = $ac_status" >&5
6691 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 - { (eval echo "$as_me:6757: \"$ac_try\"") >&5
6695 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 - echo "$as_me:6760: \$? = $ac_status" >&5
6699 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 eval "$as_ac_var=yes"
6703 @@ -6767,7 +7696,7 @@
6705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6707 -echo "$as_me:6770: result: `eval echo '${'$as_ac_var'}'`" >&5
6708 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6710 if test `eval echo '${'$as_ac_var'}'` = yes; then
6711 cat >>confdefs.h <<_ACEOF
6712 @@ -6777,6 +7706,14 @@
6718 +# Check whether --enable-qtopia or --disable-qtopia was given.
6719 +if test "${enable_qtopia+set}" = set; then
6720 + enableval="$enable_qtopia"
6725 # Check whether --enable-kbd-lang-de or --disable-kbd-lang-de was given.
6726 if test "${enable_kbd_lang_de+set}" = set; then
6727 @@ -6789,44 +7726,48 @@
6731 -echo "$as_me:6792: checking which target to use" >&5
6732 +echo "$as_me:$LINENO: checking which target to use" >&5
6733 echo $ECHO_N "checking which target to use... $ECHO_C" >&6
6734 if [ x"$HAVE_BEBOX" = "xyes" ]; then
6735 - echo "$as_me:6795: result: BeBox" >&5
6736 + echo "$as_me:$LINENO: result: BeBox" >&5
6737 echo "${ECHO_T}BeBox" >&6
6739 elif [ x"$HAVE_AMIGA_LIB" = "xyes" ]; then
6740 - echo "$as_me:6799: result: AmigaOS" >&5
6741 + echo "$as_me:$LINENO: result: AmigaOS" >&5
6742 echo "${ECHO_T}AmigaOS" >&6
6744 elif [ x"$no_x" = "xyes" ]; then
6745 if [ x"$HAVE_SVGA_LIB" = "xyes" ]; then
6746 - echo "$as_me:6804: result: SVGAlib" >&5
6747 + echo "$as_me:$LINENO: result: SVGAlib" >&5
6748 echo "${ECHO_T}SVGAlib" >&6
6750 CFLAGS="$CFLAGS -D__svgalib__"
6753 - echo "$as_me:6810: result: Ummm..." >&5
6754 + echo "$as_me:$LINENO: result: Ummm..." >&5
6755 echo "${ECHO_T}Ummm..." >&6
6756 - { { echo "$as_me:6812: error: Neither X nor SVGAlib found, don't know what target to use." >&5
6757 + { { echo "$as_me:$LINENO: error: Neither X nor SVGAlib found, don't know what target to use." >&5
6758 echo "$as_me: error: Neither X nor SVGAlib found, don't know what target to use." >&2;}
6759 { (exit 1); exit 1; }; }
6761 elif [ x"$HAVE_SDL" = "xyes" ]; then
6762 - echo "$as_me:6817: result: SDL" >&5
6763 + echo "$as_me:$LINENO: result: SDL" >&5
6764 echo "${ECHO_T}SDL" >&6
6766 CFLAGS="$CFLAGS $SDL_CFLAGS -DHAVE_SDL"
6767 LIBS="$LIBS $SDL_LIBS"
6768 + if [ x"$QTOPIA" = "xyes" ]; then
6769 + CFLAGS="$CFLAGS -DQTOPIA"
6772 - echo "$as_me:6823: result: X Window System" >&5
6773 + echo "$as_me:$LINENO: result: X Window System" >&5
6774 echo "${ECHO_T}X Window System" >&6
6776 CFLAGS="$CFLAGS $X_CFLAGS -I$ac_cv_x_include"
6777 LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
6784 @@ -6889,6 +7830,12 @@
6794 ac_config_files="$ac_config_files Makefile"
6796 cat >confcache <<\_ACEOF
6797 @@ -6967,14 +7914,15 @@
6799 DEFS=-DHAVE_CONFIG_H
6802 : ${CONFIG_STATUS=./config.status}
6803 ac_clean_files_save=$ac_clean_files
6804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6805 -{ echo "$as_me:6973: creating $CONFIG_STATUS" >&5
6806 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6808 cat >$CONFIG_STATUS <<_ACEOF
6810 -# Generated automatically by $as_me.
6811 +# Generated by $as_me.
6812 # Run this file to recreate the current configuration.
6813 # Compiler output produced by configure, useful for debugging
6814 # configure, is in config.log if it exists.
6815 @@ -6997,8 +7945,167 @@
6820 +# Support unset when possible.
6821 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6827 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6828 + { $as_unset LANG || test "${LANG+set}" != set; } ||
6829 + { LANG=C; export LANG; }
6830 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6831 + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6832 + { LC_ALL=C; export LC_ALL; }
6833 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6834 + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6835 + { LC_TIME=C; export LC_TIME; }
6836 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6837 + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6838 + { LC_CTYPE=C; export LC_CTYPE; }
6839 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6840 + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6841 + { LANGUAGE=C; export LANGUAGE; }
6842 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6843 + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6844 + { LC_COLLATE=C; export LC_COLLATE; }
6845 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6846 + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6847 + { LC_NUMERIC=C; export LC_NUMERIC; }
6848 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6849 + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6850 + { LC_MESSAGES=C; export LC_MESSAGES; }
6853 # Name of the executable.
6854 -as_me=`echo "$0" |sed 's,.*[\\/],,'`
6855 +as_me=`(basename "$0") 2>/dev/null ||
6856 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6857 + X"$0" : 'X\(//\)$' \| \
6858 + X"$0" : 'X\(/\)$' \| \
6859 + . : '\(.\)' 2>/dev/null ||
6861 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6862 + /^X\/\(\/\/\)$/{ s//\1/; q; }
6863 + /^X\/\(\/\).*/{ s//\1/; q; }
6866 +# PATH needs CR, and LINENO needs CR and PATH.
6867 +# Avoid depending upon Character Ranges.
6868 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6869 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6870 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6871 +as_cr_digits='0123456789'
6872 +as_cr_alnum=$as_cr_Letters$as_cr_digits
6874 +# The user is always right.
6875 +if test "${PATH_SEPARATOR+set}" != set; then
6876 + echo "#! /bin/sh" >conftest.sh
6877 + echo "exit 0" >>conftest.sh
6878 + chmod +x conftest.sh
6879 + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6880 + PATH_SEPARATOR=';'
6888 + as_lineno_1=$LINENO
6889 + as_lineno_2=$LINENO
6890 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6891 + test "x$as_lineno_1" != "x$as_lineno_2" &&
6892 + test "x$as_lineno_3" = "x$as_lineno_2" || {
6893 + # Find who we are. Look in the path if we contain no path at all
6894 + # relative or not.
6896 + *[\\/]* ) as_myself=$0 ;;
6897 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 +for as_dir in $PATH
6901 + test -z "$as_dir" && as_dir=.
6902 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6907 + # We did not find ourselves, most probably we were run as `sh COMMAND'
6908 + # in which case we are not to be found in the path.
6909 + if test "x$as_myself" = x; then
6912 + if test ! -f "$as_myself"; then
6913 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6914 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6915 + { (exit 1); exit 1; }; }
6917 + case $CONFIG_SHELL in
6919 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6923 + test -z "$as_dir" && as_dir=.
6924 + for as_base in sh bash ksh sh5; do
6927 + if ("$as_dir/$as_base" -c '
6928 + as_lineno_1=$LINENO
6929 + as_lineno_2=$LINENO
6930 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6931 + test "x$as_lineno_1" != "x$as_lineno_2" &&
6932 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6933 + CONFIG_SHELL=$as_dir/$as_base
6934 + export CONFIG_SHELL
6935 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6943 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6944 + # uniformly replaced by the line number. The first 'sed' inserts a
6945 + # line-number line before each line; the second 'sed' does the real
6946 + # work. The second script uses 'N' to pair each line-number line
6947 + # with the numbered line, and appends trailing '-' during
6948 + # substitution so that $LINENO is not a special case at line end.
6949 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6950 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6951 + sed '=' <$as_myself |
6956 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6959 + s,^['$as_cr_digits']*\n,,
6960 + ' >$as_me.lineno &&
6961 + chmod +x $as_me.lineno ||
6962 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6963 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6964 + { (exit 1); exit 1; }; }
6966 + # Don't try to exec as it changes $[0], causing all sort of problems
6967 + # (the dirname of $[0] is not the place where we might find the
6968 + # original and so on. Autoconf is especially sensible to this).
6970 + # Exit status is that of the last command.
6975 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6976 + *c*,-n*) ECHO_N= ECHO_C='
6978 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6979 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6982 if expr a : '\(a\)' >/dev/null 2>&1; then
6984 @@ -7026,22 +8133,12 @@
6986 as_executable_p="test -f"
6988 -# Support unset when possible.
6989 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6994 +# Sed expression to map a string onto a valid CPP name.
6995 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6997 +# Sed expression to map a string onto a valid variable name.
6998 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7001 -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7002 -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7003 -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7004 -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7005 -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7006 -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7007 -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7008 -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7011 # We need space, tab and new line, in precisely that order.
7012 @@ -7050,7 +8147,7 @@
7016 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7017 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
7021 @@ -7061,19 +8158,19 @@
7024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7025 -## Running \$as_me. ##
7026 +## Running $as_me. ##
7031 This file was extended by $as_me, which was
7032 -generated by GNU Autoconf 2.52d. Invocation command line was
7033 +generated by GNU Autoconf 2.53. Invocation command line was
7035 CONFIG_FILES = $CONFIG_FILES
7036 CONFIG_HEADERS = $CONFIG_HEADERS
7037 CONFIG_LINKS = $CONFIG_LINKS
7038 CONFIG_COMMANDS = $CONFIG_COMMANDS
7043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7044 @@ -7126,7 +8223,7 @@
7045 cat >>$CONFIG_STATUS <<_ACEOF
7048 -configured by $0, generated by GNU Autoconf 2.52d,
7049 +configured by $0, generated by GNU Autoconf 2.53,
7050 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7052 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7053 @@ -7169,7 +8266,7 @@
7054 echo "$ac_cs_version"; exit 0 ;;
7056 # Conflict between --help and --header
7057 - { { echo "$as_me:7172: error: ambiguous option: $1
7058 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
7059 Try \`$0 --help' for more information." >&5
7060 echo "$as_me: error: ambiguous option: $1
7061 Try \`$0 --help' for more information." >&2;}
7062 @@ -7188,7 +8285,7 @@
7063 ac_need_defaults=false;;
7066 - -*) { { echo "$as_me:7191: error: unrecognized option: $1
7067 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7068 Try \`$0 --help' for more information." >&5
7069 echo "$as_me: error: unrecognized option: $1
7070 Try \`$0 --help' for more information." >&2;}
7071 @@ -7202,6 +8299,10 @@
7079 cat >>$CONFIG_STATUS <<\_ACEOF
7080 for ac_config_target in $ac_config_targets
7082 @@ -7209,7 +8310,7 @@
7083 # Handling of arguments.
7084 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7085 "sysconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sysconfig.h" ;;
7086 - *) { { echo "$as_me:7212: error: invalid argument: $ac_config_target" >&5
7087 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7089 { (exit 1); exit 1; }; };;
7091 @@ -7261,6 +8362,12 @@
7092 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7093 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7094 s,@SHELL@,$SHELL,;t t
7095 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7096 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7097 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7098 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7099 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7100 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7101 s,@exec_prefix@,$exec_prefix,;t t
7102 s,@prefix@,$prefix,;t t
7103 s,@program_transform_name@,$program_transform_name,;t t
7104 @@ -7276,19 +8383,13 @@
7105 s,@oldincludedir@,$oldincludedir,;t t
7106 s,@infodir@,$infodir,;t t
7107 s,@mandir@,$mandir,;t t
7108 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7109 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7110 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7111 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7112 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7113 s,@build_alias@,$build_alias,;t t
7114 s,@host_alias@,$host_alias,;t t
7115 s,@target_alias@,$target_alias,;t t
7116 +s,@DEFS@,$DEFS,;t t
7117 s,@ECHO_C@,$ECHO_C,;t t
7118 s,@ECHO_N@,$ECHO_N,;t t
7119 s,@ECHO_T@,$ECHO_T,;t t
7120 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7121 -s,@DEFS@,$DEFS,;t t
7124 s,@CFLAGS@,$CFLAGS,;t t
7125 @@ -7372,7 +8473,8 @@
7128 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7129 - ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7130 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7131 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7132 X"$ac_file" : 'X\(//\)[^/]' \| \
7133 X"$ac_file" : 'X\(//\)$' \| \
7134 X"$ac_file" : 'X\(/\)' \| \
7135 @@ -7396,17 +8498,19 @@
7136 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7137 test -d "$as_incr_dir" ||
7138 mkdir "$as_incr_dir" ||
7139 - { { echo "$as_me:7399: error: cannot create \"$ac_dir\"" >&5
7140 + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7141 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7142 { (exit 1); exit 1; }; }
7147 - if test "$ac_dir" != .; then
7148 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
7151 +if test "$ac_dir" != .; then
7152 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7153 # A "../" for each directory in $ac_dir_suffix.
7154 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7155 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7157 ac_dir_suffix= ac_top_builddir=
7159 @@ -7426,17 +8530,30 @@
7160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7163 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7165 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7166 +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7167 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7168 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7172 if test x"$ac_file" != x-; then
7173 - { echo "$as_me:7431: creating $ac_file" >&5
7174 + { echo "$as_me:$LINENO: creating $ac_file" >&5
7175 echo "$as_me: creating $ac_file" >&6;}
7178 # Let's still pretend it is `configure' which instantiates (i.e., don't
7179 # use $as_me), people would be surprised to read:
7180 - # /* config.h. Generated automatically by config.status. */
7181 - configure_input="Generated automatically from `echo $ac_file_in |
7182 - sed 's,.*/,,'` by configure."
7183 + # /* config.h. Generated by config.status. */
7184 + if test x"$ac_file" = x-; then
7187 + configure_input="$ac_file. "
7189 + configure_input=$configure_input"Generated from `echo $ac_file_in |
7190 + sed 's,.*/,,'` by configure."
7192 # First look for the input files in the build tree, otherwise in the
7194 @@ -7446,7 +8563,7 @@
7195 -) echo $tmp/stdin ;;
7197 # Absolute (can't be DOS-style, as IFS=:)
7198 - test -f "$f" || { { echo "$as_me:7449: error: cannot find input file: $f" >&5
7199 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7200 echo "$as_me: error: cannot find input file: $f" >&2;}
7201 { (exit 1); exit 1; }; }
7203 @@ -7459,7 +8576,7 @@
7207 - { { echo "$as_me:7462: error: cannot find input file: $f" >&5
7208 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7209 echo "$as_me: error: cannot find input file: $f" >&2;}
7210 { (exit 1); exit 1; }; }
7212 @@ -7475,7 +8592,13 @@
7213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7214 s,@configure_input@,$configure_input,;t t
7215 s,@srcdir@,$ac_srcdir,;t t
7216 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
7217 s,@top_srcdir@,$ac_top_srcdir,;t t
7218 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7219 +s,@builddir@,$ac_builddir,;t t
7220 +s,@abs_builddir@,$ac_abs_builddir,;t t
7221 +s,@top_builddir@,$ac_top_builddir,;t t
7222 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7223 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7225 if test x"$ac_file" != x-; then
7226 @@ -7519,7 +8642,7 @@
7227 * ) ac_file_in=$ac_file.in ;;
7230 - test x"$ac_file" != x- && { echo "$as_me:7522: creating $ac_file" >&5
7231 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7232 echo "$as_me: creating $ac_file" >&6;}
7234 # First look for the input files in the build tree, otherwise in the
7235 @@ -7530,7 +8653,7 @@
7236 -) echo $tmp/stdin ;;
7238 # Absolute (can't be DOS-style, as IFS=:)
7239 - test -f "$f" || { { echo "$as_me:7533: error: cannot find input file: $f" >&5
7240 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7241 echo "$as_me: error: cannot find input file: $f" >&2;}
7242 { (exit 1); exit 1; }; }
7244 @@ -7543,7 +8666,7 @@
7248 - { { echo "$as_me:7546: error: cannot find input file: $f" >&5
7249 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7250 echo "$as_me: error: cannot find input file: $f" >&2;}
7251 { (exit 1); exit 1; }; }
7253 @@ -7573,7 +8696,7 @@
7257 -s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7258 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7260 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7262 @@ -7650,20 +8773,21 @@
7263 cat >>$CONFIG_STATUS <<\_ACEOF
7264 # Let's still pretend it is `configure' which instantiates (i.e., don't
7265 # use $as_me), people would be surprised to read:
7266 - # /* config.h. Generated automatically by config.status. */
7267 + # /* config.h. Generated by config.status. */
7268 if test x"$ac_file" = x-; then
7269 - echo "/* Generated automatically by configure. */" >$tmp/config.h
7270 + echo "/* Generated by configure. */" >$tmp/config.h
7272 - echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7273 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7275 cat $tmp/in >>$tmp/config.h
7277 if test x"$ac_file" != x-; then
7278 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7279 - { echo "$as_me:7663: $ac_file is unchanged" >&5
7280 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7281 echo "$as_me: $ac_file is unchanged" >&6;}
7283 - ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7284 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7285 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7286 X"$ac_file" : 'X\(//\)[^/]' \| \
7287 X"$ac_file" : 'X\(//\)$' \| \
7288 X"$ac_file" : 'X\(/\)' \| \
7289 @@ -7687,7 +8811,7 @@
7290 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7291 test -d "$as_incr_dir" ||
7292 mkdir "$as_incr_dir" ||
7293 - { { echo "$as_me:7690: error: cannot create \"$ac_dir\"" >&5
7294 + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7295 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7296 { (exit 1); exit 1; }; }
7298 @@ -7711,6 +8835,7 @@
7299 chmod +x $CONFIG_STATUS
7300 ac_clean_files=$ac_clean_files_save
7303 # configure is writing to config.log, and then calls config.status.
7304 # config.status does its own redirection, appending to config.log.
7305 # Unfortunately, on DOS this fails, as config.log is still kept open
7306 @@ -7729,5 +8854,6 @@
7307 $ac_cs_success || { (exit 1); exit 1; }
7312 echo "Configuration done. Now type \"make\"."
7313 diff -urN Src/configure.in Src/configure.in
7314 --- Src/configure.in 2002-01-02 17:43:53.000000000 +0100
7315 +++ Src/configure.in 2002-11-21 17:07:04.000000000 +0100
7318 AC_CHECK_FUNCS(gettimeofday sigaction mkdir rmdir select strerror strstr statfs usleep)
7321 +AC_ARG_ENABLE(qtopia,[ --enable-qtopia Make a Qtopia Version (Sharp Zaurus) of Frodo],[QTOPIA=yes],[])
7324 AC_ARG_ENABLE(kbd-lang-de,[ --enable-kbd-lang-de Use german keyboard layout],[KBD_LANG=1],[])
7325 AC_ARG_ENABLE(kbd-lang-us,[ --enable-kbd-lang-us Use american keyboard layout],[KBD_LANG=0],[])
7328 CFLAGS="$CFLAGS $SDL_CFLAGS -DHAVE_SDL"
7329 LIBS="$LIBS $SDL_LIBS"
7330 + if [[ x"$QTOPIA" = "xyes" ]]; then
7331 + CFLAGS="$CFLAGS -DQTOPIA"
7334 AC_MSG_RESULT([X Window System])
7337 LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7340 -dnl Find out some things about the system
7341 +dnl Find out some things about the system
7342 dnl - whether we have GCC 2.7 or better.
7343 dnl - what CPU we have (to use some assembly hacks on the x86)
7353 AC_SUBST(top_srcdir)
7354 diff -urN Src/Display.cpp Src/Display.cpp
7355 --- Src/Display.cpp 2002-01-02 22:19:10.000000000 +0100
7356 +++ Src/Display.cpp 2002-11-21 17:07:04.000000000 +0100
7364 LED_ON, // LED on (green)
7365 LED_ERROR_ON, // LED blinking (red), currently on
7367 const uint8 palette_red[16] = {
7368 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0x80, 0xff, 0x40, 0x80, 0x80, 0x80, 0xc0
7372 const uint8 palette_green[16] = {
7373 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x80, 0x40, 0x80, 0x40, 0x80, 0xff, 0x80, 0xc0
7376 #elif defined(AMIGA)
7377 #include "Display_Amiga.i"
7378 #elif defined(HAVE_SDL)
7379 -#include "Display_SDL.i"
7381 +# include "Display_QtopiaSDL.i"
7383 +# include "Display_SDL.i"
7385 #elif defined(__unix)
7387 # include "Display_svga.i"
7388 diff -urN Src/Display_QtopiaSDL.i Src/Display_QtopiaSDL.i
7389 --- Src/Display_QtopiaSDL.i 1970-01-01 01:00:00.000000000 +0100
7390 +++ Src/Display_QtopiaSDL.i 2003-04-03 19:10:35.000000000 +0200
7393 + * Display_QtopiaSDL.i - C64 graphics display, emulator window handling,
7394 + * SDL specific stuff
7396 + * Frodo (C) 1994-1997,2002 Christian Bauer
7397 + * Qtopia changes (against Display_SDL.i) from Bernd Lachner
7402 +#include "Version.h"
7409 +static SDL_Surface *screen = NULL;
7411 +// Mode of Joystick emulation. 0 = none, 1 = Joyport 1, 2 = Joyport 2
7412 +static short joy_emu = 0;
7415 +static bool tab_pressed = false;
7417 +// For LED error blinking
7418 +static C64Display *c64_disp;
7419 +static struct sigaction pulse_sa;
7420 +static itimerval pulse_tv;
7422 +// Colors for speedometer/drive LEDs
7436 + C64 keyboard matrix:
7438 + Bit 7 6 5 4 3 2 1 0
7439 + 0 CUD F5 F3 F1 F7 CLR RET DEL
7440 + 1 SHL E S Z 4 A W 3
7445 + 6 / ^ = SHR HOM ; * £
7446 + 7 R/S Q C= SPC 2 CTL <- 1
7449 +#define MATRIX(a,b) (((a) << 3) | (b))
7454 + 'ß9087654 12q3w4eruiopü+#*/
7458 +int init_graphics(void)
7461 + fprintf(stderr, "Init SDL\n");
7462 + if (SDL_Init(SDL_INIT_VIDEO) < 0)
7464 + fprintf(stderr, "Couldn't initialize SDL (%s)\n", SDL_GetError());
7468 + buffer = new char[DISPLAY_X*DISPLAY_Y];
7470 + SDL_WM_SetCaption(VERSION_STRING, "Frodo");
7471 + screen = SDL_SetVideoMode(320, 240, 8, SDL_DOUBLEBUF);
7472 + if (screen == NULL)
7474 + fprintf(stderr, "SDL Couldn't set video mode to %d x %d\n", DISPLAY_X, DISPLAY_Y+17);
7478 + fprintf(stderr, "SDL Set video mode to %d x %d\n", DISPLAY_X, DISPLAY_Y+17);
7486 + * Display constructor
7489 +C64Display::C64Display(C64 *the_c64) : TheC64(the_c64)
7491 + quit_requested = false;
7492 + speedometer_string[0] = 0;
7495 + for (int i=0; i<4; i++)
7496 + led_state[i] = old_led_state[i] = LED_OFF;
7498 + // Start timer for LED error blinking
7500 + pulse_sa.sa_handler = (void (*)(int))pulse_handler;
7501 + pulse_sa.sa_flags = 0;
7502 + sigemptyset(&pulse_sa.sa_mask);
7503 + sigaction(SIGALRM, &pulse_sa, NULL);
7504 + pulse_tv.it_interval.tv_sec = 0;
7505 + pulse_tv.it_interval.tv_usec = 400000;
7506 + pulse_tv.it_value.tv_sec = 0;
7507 + pulse_tv.it_value.tv_usec = 400000;
7508 + setitimer(ITIMER_REAL, &pulse_tv, NULL);
7513 + * Display destructor
7516 +C64Display::~C64Display()
7524 + * Prefs may have changed
7527 +void C64Display::NewPrefs(Prefs *prefs)
7536 +void C64Display::Update(void)
7538 + if (screen == NULL)
7540 + int iOffsetX = (DISPLAY_X - screen->w) / 2;
7541 + int iOffsetY = (DISPLAY_Y - screen->h) / 2;
7542 + for (int j=0; j < screen->h - 17; j++)
7544 + memcpy(static_cast<char*>(screen->pixels)+screen->w*j, buffer+iOffsetX+DISPLAY_X*(j+iOffsetY), screen->w);
7546 + // Draw speedometer/LEDs
7547 + SDL_Rect r = {0, (screen->h - 17), DISPLAY_X, 15};
7548 + SDL_FillRect(screen, &r, fill_gray);
7549 + r.w = DISPLAY_X; r.h = 1;
7550 + SDL_FillRect(screen, &r, shine_gray);
7551 + r.y = (screen->h - 17) + 14;
7552 + SDL_FillRect(screen, &r, shadow_gray);
7554 + for (int i=2; i<5; i++)
7556 + r.x = DISPLAY_X * i/5 - 24; r.y = (screen->h - 17) + 4;
7557 + SDL_FillRect(screen, &r, shadow_gray);
7558 + r.y = (screen->h - 17) + 10;
7559 + SDL_FillRect(screen, &r, shine_gray);
7561 + r.y = (screen->h - 17); r.w = 1; r.h = 15;
7562 + for (int i=0; i<4; i++)
7564 + r.x = DISPLAY_X * i / 5;
7565 + SDL_FillRect(screen, &r, shine_gray);
7566 + r.x = DISPLAY_X * (i+1) / 5 - 1;
7567 + SDL_FillRect(screen, &r, shadow_gray);
7569 + r.y = (screen->h - 17) + 4; r.h = 7;
7570 + for (int i=2; i<5; i++)
7572 + r.x = DISPLAY_X * i/5 - 24;
7573 + SDL_FillRect(screen, &r, shadow_gray);
7574 + r.x = DISPLAY_X * i/5 - 9;
7575 + SDL_FillRect(screen, &r, shine_gray);
7577 + r.y = (screen->h - 17) + 5; r.w = 14; r.h = 5;
7578 + for (int i=0; i<3; i++)
7580 + r.x = DISPLAY_X * (i+2) / 5 - 23;
7582 + switch (led_state[i])
7587 + case LED_ERROR_ON:
7594 + SDL_FillRect(screen, &r, c);
7597 + draw_string(screen, DISPLAY_X * 1/5 + 8, (screen->h - 17) + 4, "D\x12 8", black, fill_gray);
7598 + draw_string(screen, DISPLAY_X * 2/5 + 8, (screen->h - 17) + 4, "D\x12 9", black, fill_gray);
7599 + draw_string(screen, DISPLAY_X * 3/5 + 8, (screen->h - 17) + 4, "D\x12 10", black, fill_gray);
7601 + draw_string(screen, DISPLAY_X * 4/5 + 2, (screen->h - 17) + 4, "1", black, fill_gray);
7602 + else if (joy_emu == 2)
7603 + draw_string(screen, DISPLAY_X * 4/5 + 2, (screen->h - 17) + 4, "2", black, fill_gray);
7604 + draw_string(screen, 24, (screen->h - 17) + 4, speedometer_string, black, fill_gray);
7612 + * Draw string into surface using the C64 ROM font
7615 +void C64Display::draw_string(SDL_Surface *s, int x, int y, const char *str, uint8 front_color, uint8 back_color)
7617 + uint8 *pb = (uint8 *)s->pixels + s->pitch*y + x;
7619 + while ((c = *str++) != 0)
7621 + uint8 *q = TheC64->Char + c*8 + 0x800;
7623 + for (int y=0; y<8; y++)
7626 + p[0] = (v & 0x80) ? front_color : back_color;
7627 + p[1] = (v & 0x40) ? front_color : back_color;
7628 + p[2] = (v & 0x20) ? front_color : back_color;
7629 + p[3] = (v & 0x10) ? front_color : back_color;
7630 + p[4] = (v & 0x08) ? front_color : back_color;
7631 + p[5] = (v & 0x04) ? front_color : back_color;
7632 + p[6] = (v & 0x02) ? front_color : back_color;
7633 + p[7] = (v & 0x01) ? front_color : back_color;
7645 +void C64Display::pulse_handler(...)
7647 + for (int i=0; i<4; i++)
7648 + switch (c64_disp->led_state[i])
7650 + case LED_ERROR_ON:
7651 + c64_disp->led_state[i] = LED_ERROR_OFF;
7653 + case LED_ERROR_OFF:
7654 + c64_disp->led_state[i] = LED_ERROR_ON;
7661 + * Draw speedometer
7664 +void C64Display::Speedometer(int speed)
7666 + static int delay = 0;
7671 + sprintf(speedometer_string, "%d%%", speed);
7679 + * Return pointer to bitmap data
7682 +uint8 *C64Display::BitmapBase(void)
7684 + //return (uint8 *)screen->pixels;
7685 + return (uint8 *)buffer;
7690 + * Return number of bytes per row
7693 +int C64Display::BitmapXMod(void)
7695 + //return screen->pitch;
7701 + * Poll the keyboard
7704 +static void translate_key(SDLKey key, bool key_up, uint8 *key_matrix, uint8 *rev_matrix, uint8 *joystick)
7709 + // Function and run/stop key emulation on Zaurus keyboard
7712 + case SDLK_q: c64_key = MATRIX(0,4); break;
7713 + case SDLK_w: c64_key = MATRIX(0,4) | 0x80; break;
7714 + case SDLK_e: c64_key = MATRIX(0,5); break;
7715 + case SDLK_r: c64_key = MATRIX(0,5) | 0x80; break;
7716 + case SDLK_t: c64_key = MATRIX(0,6); break;
7717 + case SDLK_z: c64_key = MATRIX(0,6) | 0x80; break;
7718 + case SDLK_u: c64_key = MATRIX(0,3); break;
7719 + case SDLK_i: c64_key = MATRIX(0,3) | 0x80; break;
7720 + case SDLK_o: c64_key = MATRIX(7,7); break;
7727 + case SDLK_a: c64_key = MATRIX(1,2); break;
7728 + case SDLK_b: c64_key = MATRIX(3,4); break;
7729 + case SDLK_c: c64_key = MATRIX(2,4); break;
7730 + case SDLK_d: c64_key = MATRIX(2,2); break;
7731 + case SDLK_e: c64_key = MATRIX(1,6); break;
7732 + case SDLK_f: c64_key = MATRIX(2,5); break;
7733 + case SDLK_g: c64_key = MATRIX(3,2); break;
7734 + case SDLK_h: c64_key = MATRIX(3,5); break;
7735 + case SDLK_i: c64_key = MATRIX(4,1); break;
7736 + case SDLK_j: c64_key = MATRIX(4,2); break;
7737 + case SDLK_k: c64_key = MATRIX(4,5); break;
7738 + case SDLK_l: c64_key = MATRIX(5,2); break;
7739 + case SDLK_m: c64_key = MATRIX(4,4); break;
7740 + case SDLK_n: c64_key = MATRIX(4,7); break;
7741 + case SDLK_o: c64_key = MATRIX(4,6); break;
7742 + case SDLK_p: c64_key = MATRIX(5,1); break;
7743 + case SDLK_q: c64_key = MATRIX(7,6); break;
7744 + case SDLK_r: c64_key = MATRIX(2,1); break;
7745 + case SDLK_s: c64_key = MATRIX(1,5); break;
7746 + case SDLK_t: c64_key = MATRIX(2,6); break;
7747 + case SDLK_u: c64_key = MATRIX(3,6); break;
7748 + case SDLK_v: c64_key = MATRIX(3,7); break;
7749 + case SDLK_w: c64_key = MATRIX(1,1); break;
7750 + case SDLK_x: c64_key = MATRIX(2,7); break;
7751 + case SDLK_y: c64_key = MATRIX(3,1); break;
7752 + case SDLK_z: c64_key = MATRIX(1,4); break;
7754 + case SDLK_0: c64_key = MATRIX(4,3); break;
7755 + case SDLK_1: c64_key = MATRIX(7,0); break;
7756 + case SDLK_2: c64_key = MATRIX(7,3); break;
7757 + case SDLK_3: c64_key = MATRIX(1,0); break;
7758 + case SDLK_4: c64_key = MATRIX(1,3); break;
7759 + case SDLK_5: c64_key = MATRIX(2,0); break;
7760 + case SDLK_6: c64_key = MATRIX(2,3); break;
7761 + case SDLK_7: c64_key = MATRIX(3,0); break;
7762 + case SDLK_8: c64_key = MATRIX(3,3); break;
7763 + case SDLK_9: c64_key = MATRIX(4,0); break;
7765 + case SDLK_SPACE: c64_key = MATRIX(7,4); break;
7766 + case SDLK_BACKQUOTE: c64_key = MATRIX(7,1); break;
7767 + case SDLK_BACKSLASH: c64_key = MATRIX(6,6); break;
7768 + case SDLK_COMMA: c64_key = MATRIX(5,7); break;
7769 + case SDLK_PERIOD: c64_key = MATRIX(5,4); break;
7770 + case SDLK_MINUS: c64_key = MATRIX(5,0); break;
7771 + case SDLK_EQUALS: c64_key = MATRIX(5,3); break;
7772 + case SDLK_LEFTBRACKET: c64_key = MATRIX(5,6); break;
7773 + case SDLK_RIGHTBRACKET: c64_key = MATRIX(6,1); break;
7774 + case SDLK_SEMICOLON: c64_key = MATRIX(5,5); break;
7775 + case SDLK_QUOTE: c64_key = MATRIX(6,2); break;
7776 + case SDLK_SLASH: c64_key = MATRIX(6,7); break;
7778 + case SDLK_ESCAPE: c64_key = MATRIX(7,7); break;
7779 + case SDLK_RETURN: c64_key = MATRIX(0,1); break;
7780 + case SDLK_BACKSPACE: case SDLK_DELETE: c64_key = MATRIX(0,0); break;
7781 + case SDLK_INSERT: c64_key = MATRIX(6,3); break;
7782 + case SDLK_HOME: c64_key = MATRIX(6,3); break;
7783 + case SDLK_END: c64_key = MATRIX(6,0); break;
7784 + case SDLK_PAGEUP: c64_key = MATRIX(6,0); break;
7785 + case SDLK_PAGEDOWN: c64_key = MATRIX(6,5); break;
7787 + case SDLK_LCTRL: c64_key = MATRIX(7,2); break;
7788 + case SDLK_RCTRL: c64_key = MATRIX(7,5); break;
7789 + case SDLK_LSHIFT: c64_key = MATRIX(1,7); break;
7790 + case SDLK_RSHIFT: c64_key = MATRIX(6,4); break;
7791 + case SDLK_LALT: case SDLK_LMETA: c64_key = MATRIX(7,5); break;
7792 + case SDLK_RALT: case SDLK_RMETA: c64_key = MATRIX(7,5); break;
7794 + case SDLK_UP: c64_key = MATRIX(0,7)| 0x80; break;
7795 + case SDLK_DOWN: c64_key = MATRIX(0,7); break;
7796 + case SDLK_LEFT: c64_key = MATRIX(0,2) | 0x80; break;
7797 + case SDLK_RIGHT: c64_key = MATRIX(0,2); break;
7799 + case SDLK_F1: c64_key = MATRIX(0,4); break;
7800 + case SDLK_F2: c64_key = MATRIX(0,4) | 0x80; break;
7801 + case SDLK_F3: c64_key = MATRIX(0,5); break;
7802 + case SDLK_F4: c64_key = MATRIX(0,5) | 0x80; break;
7803 + case SDLK_F5: c64_key = MATRIX(0,6); break;
7804 + case SDLK_F6: c64_key = MATRIX(0,6) | 0x80; break;
7805 + case SDLK_F7: c64_key = MATRIX(0,3); break;
7806 + case SDLK_F8: c64_key = MATRIX(0,3) | 0x80; break;
7808 + case SDLK_KP0: case SDLK_KP5: c64_key = 0x10 | 0x40; break;
7809 + case SDLK_KP1: c64_key = 0x06 | 0x40; break;
7810 + case SDLK_KP2: c64_key = 0x02 | 0x40; break;
7811 + case SDLK_KP3: c64_key = 0x0a | 0x40; break;
7812 + case SDLK_KP4: c64_key = 0x04 | 0x40; break;
7813 + case SDLK_KP6: c64_key = 0x08 | 0x40; break;
7814 + case SDLK_KP7: c64_key = 0x05 | 0x40; break;
7815 + case SDLK_KP8: c64_key = 0x01 | 0x40; break;
7816 + case SDLK_KP9: c64_key = 0x09 | 0x40; break;
7818 + case SDLK_KP_DIVIDE: c64_key = MATRIX(6,7); break;
7819 + case SDLK_KP_ENTER: c64_key = MATRIX(0,1); break;
7821 + // Support for Zaurus/Qtopia
7822 + case SDLK_QUOTEDBL: c64_key = MATRIX(7,3) | 0x80; break;
7823 + case SDLK_ASTERISK: c64_key = MATRIX(6,1); break;
7824 + case SDLK_DOLLAR: c64_key = MATRIX(1,3) | 0x80; break;
7825 + case SDLK_COLON: c64_key = MATRIX(5,5); break;
7826 + case SDLK_AT: c64_key = MATRIX(5,6); break;
7832 + // Zaurus/Qtopia joystick emulation
7837 + case SDLK_SPACE: c64_key = 0x10 | 0x40; break;
7838 + case SDLK_UP: c64_key = 0x01 | 0x40; break;
7839 + case SDLK_DOWN: c64_key = 0x02 | 0x40; break;
7840 + case SDLK_LEFT: c64_key = 0x04 | 0x40; break;
7841 + case SDLK_RIGHT: c64_key = 0x08 | 0x40; break;
7845 + // Handle joystick emulation
7846 + if (c64_key & 0x40)
7850 + *joystick |= c64_key;
7852 + *joystick &= ~c64_key;
7856 + // Handle other keys
7857 + bool shifted = c64_key & 0x80;
7858 + int c64_byte = (c64_key >> 3) & 7;
7859 + int c64_bit = c64_key & 7;
7864 + key_matrix[6] |= 0x10;
7865 + rev_matrix[4] |= 0x40;
7867 + key_matrix[c64_byte] |= (1 << c64_bit);
7868 + rev_matrix[c64_bit] |= (1 << c64_byte);
7874 + key_matrix[6] &= 0xef;
7875 + rev_matrix[4] &= 0xbf;
7877 + key_matrix[c64_byte] &= ~(1 << c64_bit);
7878 + rev_matrix[c64_bit] &= ~(1 << c64_byte);
7882 +void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joystick)
7885 + while (SDL_PollEvent(&event))
7887 + switch (event.type)
7891 +// fprintf(stderr, "SDL-Key: %d\n", event.key.keysym.sym);
7892 + if (tab_pressed && event.key.keysym.sym == SDLK_j)
7899 + if (tab_pressed && event.key.keysym.sym == SDLK_p)
7906 + switch (event.key.keysym.sym)
7909 + tab_pressed = true;
7912 + case SDLK_F9: // F9: Invoke SAM
7916 + case SDLK_F11: // F10: Quit
7917 + // Iconify not implemented in Qtopia SDL yet. Quit instead show gui.
7918 + //SDL_WM_IconifyWindow();
7919 + quit_requested = true;
7922 + case SDLK_F12: // F12: Reset
7926 + case SDLK_KP_PLUS: // '+' on keypad: Increase SkipFrames
7927 + ThePrefs.SkipFrames++;
7930 + case SDLK_KP_MINUS: // '-' on keypad: Decrease SkipFrames
7931 + if (ThePrefs.SkipFrames > 1)
7932 + ThePrefs.SkipFrames--;
7935 + case SDLK_KP_MULTIPLY: // '*' on keypad: Toggle speed limiter
7936 + ThePrefs.LimitSpeed = !ThePrefs.LimitSpeed;
7940 + translate_key(event.key.keysym.sym, false, key_matrix, rev_matrix, joystick);
7948 + if (event.key.keysym.sym == SDLK_TAB)
7949 + tab_pressed = false;
7951 + translate_key(event.key.keysym.sym, true, key_matrix, rev_matrix, joystick);
7956 + quit_requested = true;
7964 + * Check if NumLock is down (for switching the joystick keyboard emulation)
7967 +bool C64Display::NumLock(void)
7976 + * Allocate C64 colors
7979 +void C64Display::InitColors(uint8 *colors)
7981 + SDL_Color palette[PALETTE_SIZE];
7982 + for (int i=0; i<16; i++)
7984 + palette[i].r = palette_red[i];
7985 + palette[i].g = palette_green[i];
7986 + palette[i].b = palette_blue[i];
7988 + palette[fill_gray].r = palette[fill_gray].g = palette[fill_gray].b = 0xd0;
7989 + palette[shine_gray].r = palette[shine_gray].g = palette[shine_gray].b = 0xf0;
7990 + palette[shadow_gray].r = palette[shadow_gray].g = palette[shadow_gray].b = 0x80;
7991 + palette[red].r = 0xf0;
7992 + palette[red].g = palette[red].b = 0;
7993 + palette[green].g = 0xf0;
7994 + palette[green].r = palette[green].b = 0;
7995 + SDL_SetColors(screen, palette, 0, PALETTE_SIZE);
7997 + for (int i=0; i<256; i++)
7998 + colors[i] = i & 0x0f;
8003 + * Show a requester (error message)
8006 +long int ShowRequester(char *a,char *b,char *)
8008 + printf("%s: %s\n", a, b);
8011 diff -urN Src/main.cpp Src/main.cpp
8012 --- Src/main.cpp 2002-01-02 22:19:06.000000000 +0100
8013 +++ Src/main.cpp 2002-11-21 17:07:04.000000000 +0100
8015 * Frodo (C) 1994-1997,2002 Christian Bauer
8018 + extern "C" int main(int argc, char *argv[]);
8020 #include "sysdeps.h"
8029 char AppDirPath[1024]; // Path of application directory
8034 ShowRequester("Can't find 'Kernal ROM'.", "Quit");
8040 @@ -102,7 +105,11 @@
8044 -#include "main_x.i"
8046 +# include "main_Qtopia.i"
8048 +# include "main_x.i"
8055 #include "main_PSX.i"
8058 diff -urN Src/main_Qtopia.i Src/main_Qtopia.i
8059 --- Src/main_Qtopia.i 1970-01-01 01:00:00.000000000 +0100
8060 +++ Src/main_Qtopia.i 2002-11-21 17:07:04.000000000 +0100
8063 + * main_Qtopia.i - Main program, X specific stuff
8065 + * Frodo (C) 1994-1997,2002 Christian Bauer
8066 + * Qtopia changes (against main_x.i) from Bernd Lachner
8069 +#include "Version.h"
8071 + extern "C" int main(int argc, char *argv[]);
8072 +extern int init_graphics(void);
8075 +// Global variables
8076 +char Frodo::prefs_path[256] = "";
8080 + * Create application object and start it
8083 +int main(int argc, char *argv[])
8088 + gettimeofday(&tv, NULL);
8089 + srand(tv.tv_usec);
8091 + printf("%s by Christian Bauer\n", VERSION_STRING);
8092 +// Disabled because switching eumlator <-> gui with current SDl not possible
8093 +// C64::StartGUI();
8095 + if (!init_graphics())
8099 + the_app = new Frodo();
8100 + the_app->ArgvReceived(argc, argv);
8101 + the_app->ReadyToRun();
8110 + * Constructor: Initialize member variables
8120 + * Process command line arguments
8123 +void Frodo::ArgvReceived(int argc, char **argv)
8126 + strncpy(prefs_path, argv[1], 255);
8131 + * Arguments processed, run emulation
8134 +void Frodo::ReadyToRun(void)
8136 + getcwd(AppDirPath, 256);
8138 + // Load preferences
8139 + if (!prefs_path[0]) {
8140 + char *home = getenv("HOME");
8141 + if (home != NULL && strlen(home) < 240) {
8142 + strncpy(prefs_path, home, 200);
8143 + strcat(prefs_path, "/");
8145 + strcat(prefs_path, ".frodorc");
8147 + ThePrefs.Load(prefs_path);
8149 + // Create and start C64
8151 + if (load_rom_files())
8157 +Prefs *Frodo::reload_prefs(void)
8159 + static Prefs newprefs;
8160 + newprefs.Load(prefs_path);
8163 diff -urN Src/setarmenv Src/setarmenv
8164 --- Src/setarmenv 1970-01-01 01:00:00.000000000 +0100
8165 +++ Src/setarmenv 2002-11-21 17:07:03.000000000 +0100
8167 +export CXX=arm-linux-g++
8168 +export CC=arm-linux-gcc
8169 +export LD=arm-linux-ld
8170 +export LDFLAGS="-L/opt/Qtopia/sharp/lib/ -L/opt/Embedix/tools/arm-linux/lib"
8171 +export CPPFLAGS="-DQTOPIA"