diff --git a/README.1ST b/README.1ST index e449a33..2327b00 100644 --- a/README.1ST +++ b/README.1ST @@ -1,3 +1,22 @@ +This Version includes an in-game mapping of SELECT and START keys to Joystick (XBox One Wireless) buttons. + + +The logging has been enhanced. A log file location can be configured. +An additional logging option in atari800.cfg can be used to find the right joystick button IDs to use. + +Configuration: +Atari 800 Emulator, Version 3.1.0 +LOGFILE=/home/retrouser/.emulationstation/atari800.log +LOG_DEBUG_SDL_BUTTONS=0 <-- put in "1" for log output of the pressed joystick buttons +... +... +SDL_JOY_0_SELECT=6 <-- these are my IDs for SELECT and START +SDL_JOY_0_START=7 +... +... + + + RPI version for Atari 5200 emulation ------------------------------------ diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..4dbae8b --- /dev/null +++ b/src/Makefile @@ -0,0 +1,158 @@ +CC = gcc +RC = windres + +DEFS = -DHAVE_CONFIG_H +LIBS = -lreadline -ltermcap -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL +TARGET_BASE_NAME = atari800 +TARGET = $(TARGET_BASE_NAME) +CONFIGURE_TARGET = +CONFIGURE_HOST = linux +ifeq (linux, javanvm) + FINALTARGET = $(TARGET_BASE_NAME).jar + JAVAFLAGS = + JAVA = java + JAVACFLAGS = + JAVAC = javac +else + ifeq (,android) + FINALTARGET = android + else + FINALTARGET = $(TARGET) + endif +endif + +CFLAGS = -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT +LDFLAGS = + +INSTALL = /usr/bin/install -c +INSTALL_PROGRAM = ${INSTALL} -s +INSTALL_DATA = ${INSTALL} -m 644 + +BIN_DIR = /usr/local/bin +MAN_DIR = /usr/local/share/man/man1 +DOC_DIR = /usr/local/share/doc/atari800 + +DESTDIR = + +OBJS = \ + afile.o \ + antic.o \ + atari.o \ + binload.o \ + cartridge.o \ + cassette.o \ + compfile.o \ + cfg.o \ + cpu.o \ + crc32.o \ + devices.o \ + emuos.o \ + esc.o \ + gtia.o \ + img_tape.o \ + log.o \ + memory.o \ + monitor.o \ + pbi.o \ + pia.o \ + pokey.o \ + rtime.o \ + sio.o \ + sysrom.o \ + util.o \ + sdl/init.o videomode.o sdl/main.o sdl/video.o sdl/video_sw.o sdl/input.o sdl/palette.o pbi_proto80.o af80.o input.o statesav.o ui_basic.o ui.o artifact.o colours.o colours_ntsc.o colours_pal.o colours_external.o screen.o cycle_map.o pbi_mio.o pbi_bb.o pbi_scsi.o sdl/sound.o pokeysnd.o mzpokeysnd.o remez.o sndsave.o sound.o pbi_xld.o voicebox.o votrax.o votraxsnd.o ide.o sdl/video_gl.o xep80.o xep80_fonts.o filter_ntsc.o atari_ntsc/atari_ntsc.o pal_blending.o + + + +all: $(FINALTARGET) + +# A special rule for SDL_win32_main.c to suppress warnings since this file is +# from SDL and should not have to be modified +SDL_win32_main.o: SDL_win32_main.c + $(CC) -c -o $@ $(DEFS) -I. $(CFLAGS) -Wno-missing-declarations -Wno-missing-prototypes $< + +# A special rule for win32 to not compile with -ansi -pedantic +win32/%.o: win32/%.c + $(CC) -c -o $@ $(DEFS) -I. $(patsubst -pedantic,,$(patsubst -ansi,,$(CFLAGS))) $< + +ide.o: ide.c ide.h ide_internal.h + $(CC) -c -o $@ $(DEFS) -I. $(CFLAGS:-ansi=) $< + +%.o: %.c + $(CC) -c -o $@ $(DEFS) -I. $(CFLAGS) $< + +%.ro: %.rc + $(RC) --define WIN32 --define __MINGW32__ --include-dir . $< $@ + +%.o: %.cpp + $(CC) -c -o $@ $(DEFS) -I. $(CFLAGS) $< + +%.o: %.S + $(CC) -c -o $@ $(DEFS) -I. $(CFLAGS) $< + +ifeq ($(CONFIGURE_HOST),javanvm) +$(TARGET_BASE_NAME).class: javanvm/$(TARGET_BASE_NAME).java | $(TARGET_BASE_NAME)_runtime.class + $(JAVAC) -d . $(JAVACFLAGS) javanvm/$(TARGET_BASE_NAME).java +RUNTIME = _runtime +else +RUNTIME = +endif + +$(TARGET_BASE_NAME)$(RUNTIME).class: $(TARGET) +#To compile using java bytecode directly: +# $(JAVA) $(JAVAFLAGS) org.ibex.nestedvm.Compiler -o UnixRuntime -outfile $@ $(TARGET_BASE_NAME)$(RUNTIME) $(TARGET) + $(JAVA) $(JAVAFLAGS) org.ibex.nestedvm.Compiler -o UnixRuntime -outformat javasource -outfile $(TARGET_BASE_NAME)$(RUNTIME).java $(TARGET_BASE_NAME)$(RUNTIME) $(TARGET) + $(JAVAC) -d . $(JAVACFLAGS) -J-Xmx256m $(TARGET_BASE_NAME)$(RUNTIME).java +##Also, -o UnixRuntime fixes directory browsing but requires /c:/-style paths + +$(TARGET_BASE_NAME).jar: $(TARGET_BASE_NAME).class $(TARGET_BASE_NAME)$(RUNTIME).class + printf "Manifest-Version: 1.0\nMain-Class: $(TARGET_BASE_NAME)\nClass-Path: unix_runtime.jar\n" > .manifest + jar cfm $(TARGET_BASE_NAME).jar .manifest *.class + +# Allow parallel execution in sub-make with '+' +android: + + ndk-build -C android + ant -f android/build.xml debug +.PHONY: android + +$(TARGET): $(OBJS) + $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) + +dep: + @if ! makedepend -Y $(DEFS) -I. ${OBJS:.o=.c} 2>/dev/null; \ + then echo warning: makedepend failed; fi + +clean: + rm -f *.o *.class .manifest $(TARGET) $(TARGET_BASE_NAME).jar $(TARGET_BASE_NAME)_runtime.java core *.bak *~ + rm -f dos/*.o dos/*.bak dos/*~ + rm -f falcon/*.o falcon/*.bak falcon/*~ + rm -f sdl/*.o sdl/*.bak sdl/*~ + rm -f win32/*.o win32/*.ro win32/*.bak win32/*~ + rm -f javanvm/*.o javanvm/*.bak javanvm/*~ + rm -f atari_ntsc/*.o atari_ntsc/*.bak atari_ntsc/*~ + rm -rf android/libs android/obj android/bin android/gen + + +distclean: clean + -rm -f Makefile configure config.log config.status config.h android/jni/Android.mk + -rm -rf autom4te.cache + +install: $(TARGET) installdirs + $(INSTALL_PROGRAM) $(TARGET) ${DESTDIR}${BIN_DIR}/$(TARGET) + $(INSTALL_DATA) atari800.man ${DESTDIR}${MAN_DIR}/atari800.1 +# install also the documentation + $(INSTALL_DATA) ../COPYING ${DESTDIR}${DOC_DIR}/COPYING + $(INSTALL_DATA) ../README.1ST ${DESTDIR}${DOC_DIR}/README.1ST + $(INSTALL_DATA) ../DOC/README ${DESTDIR}${DOC_DIR}/README + $(INSTALL_DATA) ../DOC/INSTALL ${DESTDIR}${DOC_DIR}/INSTALL + $(INSTALL_DATA) ../DOC/USAGE ${DESTDIR}${DOC_DIR}/USAGE + $(INSTALL_DATA) ../DOC/NEWS ${DESTDIR}${DOC_DIR}/NEWS + +readme.html: $(TARGET) + ./$(TARGET) -help $@ + +doc: readme.html + +installdirs: + mkdir -p $(DESTDIR)$(BIN_DIR) $(DESTDIR)$(MAN_DIR) $(DESTDIR)$(DOC_DIR) diff --git a/src/af80.c b/src/af80.c index 9947e90..79ec606 100644 --- a/src/af80.c +++ b/src/af80.c @@ -126,7 +126,7 @@ int AF80_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-af80 Emulate the Austin Franklin 80 column board"); + Log_println("\t-af80 Emulate the Austin Franklin 80 column board"); } argv[j++] = argv[i]; } @@ -137,17 +137,17 @@ int AF80_Initialise(int *argc, char *argv[]) return TRUE; if (AF80_enabled) { - Log_print("Austin Franklin 80 enabled"); + Log_println("Austin Franklin 80 enabled"); af80_rom = (UBYTE *)Util_malloc(0x1000); if (!Atari800_LoadImage(af80_rom_filename, af80_rom, 0x1000)) { free(af80_rom); af80_rom = NULL; AF80_enabled = FALSE; - Log_print("Couldn't load Austin Franklin ROM image"); + Log_println("Couldn't load Austin Franklin ROM image"); return FALSE; } else { - Log_print("loaded Austin Franklin rom image"); + Log_println("loaded Austin Franklin rom image"); } af80_charset = (UBYTE *)Util_malloc(0x1000); if (!Atari800_LoadImage(af80_charset_filename, af80_charset, 0x1000)) { @@ -155,11 +155,11 @@ int AF80_Initialise(int *argc, char *argv[]) free(af80_rom); af80_charset = af80_rom = NULL; AF80_enabled = FALSE; - Log_print("Couldn't load Austin Franklin charset image"); + Log_println("Couldn't load Austin Franklin charset image"); return FALSE; } else { - Log_print("loaded Austin Franklin charset image"); + Log_println("loaded Austin Franklin charset image"); } af80_screen = (UBYTE *)Util_malloc(0x800); af80_attrib = (UBYTE *)Util_malloc(0x800); diff --git a/src/af80.o b/src/af80.o new file mode 100644 index 0000000..351f2f2 Binary files /dev/null and b/src/af80.o differ diff --git a/src/afile.o b/src/afile.o new file mode 100644 index 0000000..bf3b8c0 Binary files /dev/null and b/src/afile.o differ diff --git a/src/antic.c b/src/antic.c index 4a9f9f8..6beaf1f 100644 --- a/src/antic.c +++ b/src/antic.c @@ -956,7 +956,7 @@ int ANTIC_Initialise(int *argc, char *argv[]) if (i_a) { ANTIC_artif_mode = Util_sscandec(argv[++i]); if (ANTIC_artif_mode < 0 || ANTIC_artif_mode > 4) { - Log_print("Invalid artifacting mode, using default."); + Log_println("Invalid artifacting mode, using default."); ANTIC_artif_mode = 0; } } @@ -964,13 +964,13 @@ int ANTIC_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-artif Set artifacting mode 0-4 (0 = disable)"); + Log_println("\t-artif Set artifacting mode 0-4 (0 = disable)"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/antic.o b/src/antic.o new file mode 100644 index 0000000..bac019e Binary files /dev/null and b/src/antic.o differ diff --git a/src/artifact.c b/src/artifact.c index 884c734..9855557 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -176,7 +176,7 @@ int ARTIFACT_Initialise(int *argc, char *argv[]) if (i_a) { int idx = CFG_MatchTextParameter(argv[++i], mode_cfg_strings, ARTIFACT_SIZE); if (idx < 0) { - Log_print("Invalid value for -ntsc-artif"); + Log_println("Invalid value for -ntsc-artif"); return FALSE; } mode_ntsc = idx; @@ -186,7 +186,7 @@ int ARTIFACT_Initialise(int *argc, char *argv[]) if (i_a) { int idx = CFG_MatchTextParameter(argv[++i], mode_cfg_strings, ARTIFACT_SIZE); if (idx < 0) { - Log_print("Invalid value for -pal-artif"); + Log_println("Invalid value for -pal-artif"); return FALSE; } mode_pal = idx; @@ -195,16 +195,16 @@ int ARTIFACT_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-ntsc-artif none|ntsc-old|ntsc-new|ntsc-full"); - Log_print("\t Select video artifacts for NTSC"); - Log_print("\t-pal-artif none|pal-simple|pal-accu"); - Log_print("\t Select video artifacts for PAL"); + Log_println("\t-ntsc-artif none|ntsc-old|ntsc-new|ntsc-full"); + Log_println("\t Select video artifacts for NTSC"); + Log_println("\t-pal-artif none|pal-simple|pal-accu"); + Log_println("\t Select video artifacts for PAL"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/artifact.o b/src/artifact.o new file mode 100644 index 0000000..b166736 Binary files /dev/null and b/src/artifact.o differ diff --git a/src/atari.c b/src/atari.c index 7ee5bc3..d339c15 100644 --- a/src/atari.c +++ b/src/atari.c @@ -270,13 +270,13 @@ int Atari800_LoadImage(const char *filename, UBYTE *buffer, int nbytes) f = fopen(filename, "rb"); if (f == NULL) { - Log_print("Error loading ROM image: %s", filename); + Log_println("Error loading ROM image: %s", filename); return FALSE; } len = fread(buffer, 1, nbytes, f); fclose(f); if (len != nbytes) { - Log_print("Error reading %s", filename); + Log_println("Error reading %s", filename); return FALSE; } return TRUE; @@ -393,7 +393,7 @@ int Atari800_Initialise(int *argc, char *argv[]) if (i + 1 < *argc) rtconfig_filename = argv[++i]; else { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -594,7 +594,7 @@ int Atari800_Initialise(int *argc, char *argv[]) int total_ram = Util_sscandec(argv[++i]); MEMORY_mosaic_num_banks = (total_ram - 48)/4; if ((total_ram - 48) % 4 != 0 || MEMORY_mosaic_num_banks >= 0x40 || MEMORY_mosaic_num_banks < 0) { - Log_print("Invalid Mosaic total RAM size"); + Log_println("Invalid Mosaic total RAM size"); return FALSE; } } @@ -605,7 +605,7 @@ int Atari800_Initialise(int *argc, char *argv[]) int total_ram = Util_sscandec(argv[++i]); MEMORY_axlon_num_banks = ((total_ram) - 32) / 16; if ((total_ram - 32) % 16 != 0 || (MEMORY_axlon_num_banks != 0 && MEMORY_axlon_num_banks != 8 && MEMORY_axlon_num_banks != 16 && MEMORY_axlon_num_banks != 32 && MEMORY_axlon_num_banks != 64 && MEMORY_axlon_num_banks != 128 && MEMORY_axlon_num_banks != 256)) { - Log_print("Invalid Axlon total RAM size"); + Log_println("Invalid Axlon total RAM size"); return FALSE; } } @@ -628,7 +628,7 @@ int Atari800_Initialise(int *argc, char *argv[]) if (i_a) { Atari800_refresh_rate = Util_sscandec(argv[++i]); if (Atari800_refresh_rate < 1) { - Log_print("Invalid refresh rate, using 1"); + Log_println("Invalid refresh rate, using 1"); Atari800_refresh_rate = 1; } } @@ -646,41 +646,41 @@ int Atari800_Initialise(int *argc, char *argv[]) if (strcmp(argv[i], "-help") == 0) { #ifndef __PLUS help_only = TRUE; - Log_print("\t-config Specify alternate configuration file"); -#endif - Log_print("\t-autosave-config Automatically save configuration on emulator exit"); - Log_print("\t-no-autosave-config"); - Log_print("\t Disable automatic saving of configuration"); - Log_print("\t-atari Emulate Atari 800"); - Log_print("\t-1200 Emulate Atari 1200XL"); - Log_print("\t-xl Emulate Atari 800XL"); - Log_print("\t-xe Emulate Atari 130XE"); - Log_print("\t-320xe Emulate Atari 320XE (Compy-Shop)"); - Log_print("\t-rambo Emulate Atari 320XE (Rambo XL)"); - Log_print("\t-xegs Emulate Atari XEGS"); - Log_print("\t-5200 Emulate Atari 5200 Games System"); - Log_print("\t-nobasic Turn off Atari BASIC ROM"); - Log_print("\t-basic Turn on Atari BASIC ROM"); - Log_print("\t-pal Enable PAL TV mode"); - Log_print("\t-ntsc Enable NTSC TV mode"); - Log_print("\t-run Run Atari program (COM, EXE, XEX, BAS, LST)"); + Log_println("\t-config Specify alternate configuration file"); +#endif + Log_println("\t-autosave-config Automatically save configuration on emulator exit"); + Log_println("\t-no-autosave-config"); + Log_println("\t Disable automatic saving of configuration"); + Log_println("\t-atari Emulate Atari 800"); + Log_println("\t-1200 Emulate Atari 1200XL"); + Log_println("\t-xl Emulate Atari 800XL"); + Log_println("\t-xe Emulate Atari 130XE"); + Log_println("\t-320xe Emulate Atari 320XE (Compy-Shop)"); + Log_println("\t-rambo Emulate Atari 320XE (Rambo XL)"); + Log_println("\t-xegs Emulate Atari XEGS"); + Log_println("\t-5200 Emulate Atari 5200 Games System"); + Log_println("\t-nobasic Turn off Atari BASIC ROM"); + Log_println("\t-basic Turn on Atari BASIC ROM"); + Log_println("\t-pal Enable PAL TV mode"); + Log_println("\t-ntsc Enable NTSC TV mode"); + Log_println("\t-run Run Atari program (COM, EXE, XEX, BAS, LST)"); #ifndef BASIC - Log_print("\t-state Load saved-state file"); - Log_print("\t-refresh Specify screen refresh rate"); -#endif - Log_print("\t-nopatch Don't patch SIO routine in OS"); - Log_print("\t-nopatchall Don't patch OS at all, H: device won't work"); - Log_print("\t-c Enable RAM between 0xc000 and 0xcfff in Atari 800"); - Log_print("\t-axlon Use Atari 800 Axlon memory expansion: k total RAM"); - Log_print("\t-axlon0f Use Axlon shadow at 0x0fc0-0x0fff"); - Log_print("\t-mosaic Use 400/800 Mosaic memory expansion: k total RAM"); - Log_print("\t-mapram Enable MapRAM for Atari XL/XE"); - Log_print("\t-no-mapram Disable MapRAM"); + Log_println("\t-state Load saved-state file"); + Log_println("\t-refresh Specify screen refresh rate"); +#endif + Log_println("\t-nopatch Don't patch SIO routine in OS"); + Log_println("\t-nopatchall Don't patch OS at all, H: device won't work"); + Log_println("\t-c Enable RAM between 0xc000 and 0xcfff in Atari 800"); + Log_println("\t-axlon Use Atari 800 Axlon memory expansion: k total RAM"); + Log_println("\t-axlon0f Use Axlon shadow at 0x0fc0-0x0fff"); + Log_println("\t-mosaic Use 400/800 Mosaic memory expansion: k total RAM"); + Log_println("\t-mapram Enable MapRAM for Atari XL/XE"); + Log_println("\t-no-mapram Disable MapRAM"); #ifdef R_IO_DEVICE - Log_print("\t-rdevice [] Enable R: emulation (using serial device )"); + Log_println("\t-rdevice [] Enable R: emulation (using serial device )"); #endif - Log_print("\t-turbo Run emulated Atari as fast as possible"); - Log_print("\t-v Show version/release number"); + Log_println("\t-turbo Run emulated Atari as fast as possible"); + Log_println("\t-v Show version/release number"); } /* copy this option for platform/module specific evaluation */ @@ -695,7 +695,7 @@ int Atari800_Initialise(int *argc, char *argv[]) } } if (MEMORY_mosaic_num_banks > 0 && MEMORY_axlon_num_banks > 0) { - Log_print("Axlon and Mosaic RAM can not both be enabled, because they are incompatible"); + Log_println("Axlon and Mosaic RAM can not both be enabled, because they are incompatible"); return FALSE; } @@ -795,12 +795,12 @@ int Atari800_Initialise(int *argc, char *argv[]) for (i = 1; i < *argc; i++) { if (j > 8) { /* The remaining arguments are not necessary disk images, but ignore them... */ - Log_print("Too many disk image filenames on the command line (max. 8)."); + Log_println("Too many disk image filenames on the command line (max. 8)."); break; } switch (AFILE_OpenFile(argv[i], i == 1, j, FALSE)) { case AFILE_ERROR: - Log_print("Error opening \"%s\"", argv[i]); + Log_println("Error opening \"%s\"", argv[i]); break; case AFILE_ATR: case AFILE_XFD: @@ -818,7 +818,7 @@ int Atari800_Initialise(int *argc, char *argv[]) /* Install requested ROM cartridge */ if (CARTRIDGE_main.type == CARTRIDGE_UNKNOWN) { #ifdef BASIC - Log_print("Raw cartridge images not supported in BASIC version!"); + Log_println("Raw cartridge images not supported in BASIC version!"); #else /* BASIC */ UI_is_active = TRUE; CARTRIDGE_SetType(&CARTRIDGE_main, UI_SelectCartType(CARTRIDGE_main.size)); @@ -829,7 +829,7 @@ int Atari800_Initialise(int *argc, char *argv[]) /* Install requested second ROM cartridge, if first is SpartaX */ if (CARTRIDGE_piggyback.type == CARTRIDGE_UNKNOWN) { #ifdef BASIC - Log_print("Raw cartridge images not supported in BASIC version!"); + Log_println("Raw cartridge images not supported in BASIC version!"); #else /* BASIC */ UI_is_active = TRUE; CARTRIDGE_SetType(&CARTRIDGE_piggyback, UI_SelectCartType(CARTRIDGE_piggyback.size)); @@ -1363,7 +1363,7 @@ void Atari800_StateRead(UBYTE version) StateSav_ReadUBYTE(&temp, 1); if (temp < 0 || temp >= Atari800_MACHINE_SIZE) { temp = Atari800_MACHINE_XLXE; - Log_print("Warning: Bad machine type read in from state save, defaulting to XL/XE"); + Log_println("Warning: Bad machine type read in from state save, defaulting to XL/XE"); } Atari800_SetMachineType(temp); if (Atari800_machine_type == Atari800_MACHINE_XLXE) { @@ -1442,7 +1442,7 @@ void Atari800_StateRead(UBYTE version) default: Atari800_machine_type = Atari800_MACHINE_XLXE; MEMORY_ram_size = 64; - Log_print("Warning: Bad machine type read in from state save, defaulting to 800 XL"); + Log_println("Warning: Bad machine type read in from state save, defaulting to 800 XL"); break; } diff --git a/src/atari.o b/src/atari.o new file mode 100644 index 0000000..8171456 Binary files /dev/null and b/src/atari.o differ diff --git a/src/atari800 b/src/atari800 new file mode 100755 index 0000000..12628bf Binary files /dev/null and b/src/atari800 differ diff --git a/src/atari_ntsc/atari_ntsc.o b/src/atari_ntsc/atari_ntsc.o new file mode 100644 index 0000000..4375056 Binary files /dev/null and b/src/atari_ntsc/atari_ntsc.o differ diff --git a/src/autom4te.cache/output.0 b/src/autom4te.cache/output.0 new file mode 100644 index 0000000..50ab98f --- /dev/null +++ b/src/autom4te.cache/output.0 @@ -0,0 +1,10990 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.69 for Atari800 3.1.0. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: pstehlik@sophics.cz about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Atari800' +PACKAGE_TARNAME='atari800' +PACKAGE_VERSION='3.1.0' +PACKAGE_STRING='Atari800 3.1.0' +PACKAGE_BUGREPORT='pstehlik@sophics.cz' +PACKAGE_URL='' + +ac_unique_file="atari.c" +ac_no_link=no +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='LTLIBOBJS +CONFIGURE_HOST +CONFIGURE_TARGET +JAVACFLAGS +JAVAFLAGS +OBJS +SDL_LIBS +SDL_CFLAGS +SDL_CONFIG +LIB@&t@OBJS +EGREP +GREP +CPP +XMKMF +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +runstatedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_x +enable_unalignedwords +with_video +with_sdl_prefix +with_sdl_exec_prefix +enable_sdltest +enable_cursesbasic +enable_newcycleexact +enable_veryslow +enable_crashmenu +enable_pagedattrib +enable_bufferedlog +enable_monitorasm +enable_monitorbreak +enable_monitorbreakpoints +enable_monitorhints +enable_monitorprofile +enable_monitortrace +enable_eventrecording +enable_pbi_mio +enable_pbi_bb +with_sound +enable_synchronized_sound +enable_nonlinear_mixing +enable_interpolatesound +enable_stereosound +enable_volonlysound +enable_consolesound +enable_seriosound +enable_clipsound +enable_pbi_xld +enable_voicebox +enable_ide +enable_largefile +enable_onscreenkeyboard +with_readline +with_opengl +enable_falconcpuasm +enable_linuxjoystick +enable_cursorblock +enable_riodevice +enable_rnetwork +enable_rserial +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +XMKMF +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir runstatedir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Atari800 3.1.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/atari800@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +X features: + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Atari800 3.1.0:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-unalignedwords Override usage of unaligned words + --disable-sdltest Do not try to compile and run a test SDL program + --enable-cursesbasic No bitmap graphics emulation (curses targets only) + (default=ON) + --enable-newcycleexact Allow color changes inside a scanline (default=ON) + --enable-veryslow Use very slow computer support (use with the + -refresh option) (default=OFF) + --enable-crashmenu Display a menu after a CIM instruction (default=ON) + --enable-pagedattrib Use page-based attribute array (default=OFF) + --enable-bufferedlog Use buffered debug output (until the graphics mode + switches back to text mode) (default=OFF) + --enable-monitorasm Provide an assembler in the monitor (default=ON) + --enable-monitorbreak Support code breakpoints and execution history + (slower emulation) (default=ON) + --enable-monitorbreakpoints + Support user-defined breakpoints (default=OFF) + --enable-monitorhints Provide hints in the disassembler (human-readable + address labels) (default=ON) + --enable-monitorprofile 6502 opcode profiling (default=OFF) + --enable-monitortrace Support TRACE command in the monitor (default=OFF) + --enable-eventrecording Support event recording (default=ON) + --enable-pbi_mio Emulate the MIO board (default=ON) + --enable-pbi_bb Emulate the Black Box (default=ON) + --enable-synchronized_sound + Use synchronized sound (default=ON) + --enable-nonlinear_mixing + Use nonlinear POKEY mixing (default=ON) + --enable-nonlinear_mixing + Use nonlinear POKEY mixing (default=OFF) + --enable-interpolatesound + Use sound interpolation (default=ON) + --enable-stereosound Use stereo sound (default=ON) + --enable-volonlysound Use volume only sound (digitized sound effects) + (default=ON) + --enable-consolesound Use console sound (keyboard clicks) (default=ON) + --enable-seriosound Use serial in/out sound (default=OFF) + --enable-clipsound Use sound clipping (default=OFF) + --enable-pbi_xld Emulate 1450XLD (default=ON) + --enable-voicebox Emulate the Alien Group Voice Box (default=ON) + --enable-ide Provide IDE emulation (default=ON) + --disable-largefile omit support for large files + --enable-onscreenkeyboard + Enable on-screen keyboard (default=OFF) + --enable-falconcpuasm Use m68k assembler CPU core for Falcon target + (default=OFF) + --enable-linuxjoystick Use LINUX joystick (linux x11 targets only) + (default=ON) + --enable-cursorblock Using cursor/ctrl keys for keyboard joystick (windx + targets only) (default=OFF) + --enable-riodevice Use the R: networking device (Linux/Unix/Win32) + (default=OFF) + --enable-rnetwork Use IP network connection with the R: networking + device (Linux/Unix/Win32) (default=ON) + --enable-rserial Use the host serial port with the R: networking + device (Linux/Unix only) (default=ON) + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-x use the X Window System + --with-video@<:@=no|yes|curses|ncurses|pdcurses|dosvga|sdl|javanvm@:>@ + Select video interface to use @<:@default=check@:>@ + --with-sdl-prefix=PFX Prefix where SDL is installed (optional) + --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) + --with-sound@<:@=no|yes|dossb|oss|falcon|win|sdl|javanvm@:>@ + Select sound interface to use @<:@default=check@:>@ + --with-readline Use libreadline for input in monitor @<:@default=check@:>@ + --with-opengl Use OpenGL for graphics - only in SDL target + @<:@default=check@:>@ + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + XMKMF Path to xmkmf, Makefile generator for X Window System + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Atari800 configure 3.1.0 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ---------------------------------- ## +## Report this to pstehlik@sophics.cz ## +## ---------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES +@%:@ ------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_type + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Atari800 $as_me 3.1.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_config_headers="$ac_config_headers config.h" + + + + +case "$target" in + default | falcon | ps2 | rpi | android | windx | x11 | x11-shm | x11-motif | x11-xview | x11-xview-shm) + a8_target="$target" + ;; + shm | motif | xview | xview-shm) + a8_target="x11-$target" + ;; + "") + a8_target=default + ;; + *) + echo + echo "Usage: configure --target= " + echo + echo "The '--target' option, if not given, defaults to 'default'. Use '--help'" + echo "to see other available options, including Atari800 specific '--enable' options." + echo "Possible values for the '--target' option are:" + echo " default (autodetect available graphics and sound libraries)" + echo " android (Android devices)" + echo " falcon (Atari Falcon systems only)" + echo " ps2 (Sony PlayStation 2)" + echo " rpi (Raspberry Pi: set --host=arm-linux)" + echo " windx (Windows with DirectX only)" + echo " x11 (Standard X11)" + echo " (x11-)motif (Motif on X11)" + echo " (x11-)shm (Standard X11 with shared memory extensions)" + echo " (x11-)xview (XView on X11)" + echo " (x11-)xview-shm (XView on X11, with shared memory extensions)" + echo + exit 1; + ;; +esac + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + + +WANT_IDE="yes" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + + +if [ "$host_os" = "cygwin" ]; then + CC="gcc -mno-cygwin" + echo + echo "Using CC=\"$CC\" to disable cygwin library..."; + echo + host_os="mingw32" +fi + +case $host_os in + i386-pc-os2-emx) + a8_host="os/2" + ;; + mingw32*) + a8_host="win" + +$as_echo "@%:@define DIR_SEP_BACKSLASH 1" >>confdefs.h + + +$as_echo "@%:@define DOS_DRIVES 1" >>confdefs.h + + ;; + msdosdjgpp) + a8_host="dos" + +$as_echo "@%:@define DIR_SEP_BACKSLASH 1" >>confdefs.h + + +$as_echo "@%:@define DEFAULT_CFG_NAME \"atari800.cfg\"" >>confdefs.h + + +$as_echo "@%:@define DOS_DRIVES 1" >>confdefs.h + + +$as_echo "@%:@define SYSTEM_WIDE_CFG_FILE \"c:\\\\atari800.cfg\"" >>confdefs.h + + ;; + linux | linux-gnu) + a8_host="linux" + ;; + mint) + a8_host="falcon" + +$as_echo "@%:@define DIR_SEP_BACKSLASH 1" >>confdefs.h + + +$as_echo "@%:@define DEFAULT_CFG_NAME \"atari800.cfg\"" >>confdefs.h + + +$as_echo "@%:@define DOS_DRIVES 1" >>confdefs.h + + +$as_echo "@%:@define SYSTEM_WIDE_CFG_FILE \"c:\\\\atari800.cfg\"" >>confdefs.h + + WANT_IDE="no" + ;; + beos) + a8_host="beos" + ;; + *unix*) + a8_host="unix" + ;; + *) + a8_host="$host_os" + ;; +esac + + + +if [ "X_$CFLAGS" = "X_" ]; then + CFLAGS="-O2 -Wall" +fi +if [ "X_$LDFLAGS" = "X_" ]; then + LDFLAGS="" +fi +if [ "$a8_target" = "ps2" ]; then + CC="ee-gcc" + CFLAGS="$CFLAGS -D_EE -G0 -mno-crt0 -fno-builtin-printf -nostartfiles" + CFLAGS="$CFLAGS -I${PS2SDK}/common/include -I${PS2SDK}/ee/include" + CFLAGS="$CFLAGS -I${GSKIT}/ee/dma/include -I${GSKIT}/ee/gs/include" + CFLAGS="$CFLAGS -I${PS2DEV}/ee/lib/gcc-lib/ee/3.2.2/include" + CFLAGS="$CFLAGS -I${PS2SDK}/ports/include" + LDFLAGS="$LDFLAGS -T${PS2SDK}/ee/startup/linkfile" + LDFLAGS="$LDFLAGS -L${PS2SDK}/ee/lib -L${GSKITSRC}/lib -L${PS2DEV}/ee/lib/gcc-lib/ee/3.2.2" + LDFLAGS="$LDFLAGS -L${PS2SDK}/ports/lib" +fi +if [ "$a8_target" = "rpi" ]; then + [ -z "$RPI_SDK" ] && RPI_SDK="/opt/vc" + CC="gcc" + CFLAGS="$CFLAGS -I${RPI_SDK}/include -I${RPI_SDK}/include/SDL -I${RPI_SDK}/include/interface/vmcs_host/linux -I${RPI_SDK}/include/interface/vcos/pthreads" + LDFLAGS="$LDFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs -L${RPI_SDK}/lib" +fi +if [ "$a8_target" = "android" ]; then + CC="arm-eabi-gcc" + CPP="arm-eabi-cpp" + + CPPFLAGS="$CPPFLAGS -I$ANDROID_NDK_ROOT/build/platforms/android-8/arch-arm/usr/include" + WANT_IDE=no + with_readline=no + WANT_EVENT_RECORDING=no + $as_echo "@%:@define HAVE_GETTIMEOFDAY 1" >>confdefs.h + +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + ac_no_link=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save + +else + rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.o conftest.obj conftest.dSYM + ac_no_link=yes + # Setting cross_compile will disable run tests; it will + # also disable AC_CHECK_FILE but that's generally + # correct if we can't link. + cross_compiling=yes + EXEEXT= + # Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + +a8_use_sdl=no + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host is Java NestedVM" >&5 +$as_echo_n "checking whether host is Java NestedVM... " >&6; } +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern int _call_java(int a, int b, int c, int d); +int +main () +{ +_call_java(0, 0, 0, 0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + a8_host=javanvm + EXEEXT=".mips" + enable_unalignedwords=no + if [ "$build_os" = "cygwin" ]; then + JAVAFLAGS="-classpath '""`cygpath -wp $CLASSPATH`'" + JAVACFLAGS="-source 1.4 -classpath '""`cygpath -wp $CLASSPATH`'" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +if [ "$a8_target" != "android" ]; then + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 +$as_echo_n "checking for X... " >&6; } + + +@%:@ Check whether --with-x was given. +if test "${with_x+set}" = set; then : + withval=$with_x; +fi + +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + case $x_includes,$x_libraries in #( + *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( + *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : + $as_echo_n "(cached) " >&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=no ac_x_libraries=no +rm -f -r conftest.dir +if mkdir conftest.dir; then + cd conftest.dir + cat >Imakefile <<'_ACEOF' +incroot: + @echo incroot='${INCROOT}' +usrlibdir: + @echo usrlibdir='${USRLIBDIR}' +libdir: + @echo libdir='${LIBDIR}' +_ACEOF + if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. + for ac_var in incroot usrlibdir libdir; do + eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" + done + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl dylib la dll; do + if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && + test -f "$ac_im_libdir/libX11.$ac_extension"; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case $ac_im_incroot in + /usr/include) ac_x_includes= ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; + esac + case $ac_im_usrlibdir in + /usr/lib | /usr/lib64 | /lib | /lib64) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; + esac + fi + cd .. + rm -f -r conftest.dir +fi + +# Standard set of common directories for X headers. +# Check X11 before X11Rn because it is often a symlink to the current release. +ac_x_header_dirs=' +/usr/X11/include +/usr/X11R7/include +/usr/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R7 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R7/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/usr/local/include/X11R7 +/usr/local/include/X11R6 +/usr/local/include/X11R5 +/usr/local/include/X11R4 + +/usr/X386/include +/usr/x386/include +/usr/XFree86/include/X11 + +/usr/include +/usr/local/include +/usr/unsupported/include +/usr/athena/include +/usr/local/x11r5/include +/usr/lpp/Xamples/include + +/usr/openwin/include +/usr/openwin/share/include' + +if test "$ac_x_includes" = no; then + # Guess where to find include files, by looking for Xlib.h. + # First, try using that file with no special directory specified. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # We can compile using X headers with no special include directory. +ac_x_includes= +else + for ac_dir in $ac_x_header_dirs; do + if test -r "$ac_dir/X11/Xlib.h"; then + ac_x_includes=$ac_dir + break + fi +done +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi # $ac_x_includes = no + +if test "$ac_x_libraries" = no; then + # Check for the libraries. + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS=$LIBS + LIBS="-lX11 $LIBS" + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + LIBS=$ac_save_LIBS +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +do + # Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl dylib la dll; do + if test -r "$ac_dir/libX11.$ac_extension"; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi # $ac_x_libraries = no + +case $ac_x_includes,$ac_x_libraries in #( + no,* | *,no | *\'*) + # Didn't find X, or a directory has "'" in its name. + ac_cv_have_x="have_x=no";; #( + *) + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$ac_x_includes'\ + ac_x_libraries='$ac_x_libraries'" +esac +fi +;; #( + *) have_x=yes;; + esac + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 +$as_echo "$have_x" >&6; } + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes\ + ac_x_includes='$x_includes'\ + ac_x_libraries='$x_libraries'" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; } +fi + +fi +case "$a8_target" in + x11*) + if [ "X_$x_includes" != "X_" ]; then + CFLAGS="$CFLAGS -I$x_includes" + fi + if [ "X_$x_libraries" != "X_" ]; then + LDFLAGS="$LDFLAGS -L$x_libraries" + fi + ;; +esac +if [ "$a8_target" = "android" ]; then + echo "hardcoding dirent.h header" + $as_echo "@%:@define HAVE_DIRENT_H 1" >>confdefs.h + +else + ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } +if eval \${$as_ac_Header+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include <$ac_hdr> + +int +main () +{ +if ((DIR *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_ac_Header=yes" +else + eval "$as_ac_Header=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_ac_Header + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 +_ACEOF + +ac_header_dirent=$ac_hdr; break +fi + +done +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. +if test $ac_header_dirent = dirent.h; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +$as_echo_n "checking for library containing opendir... " >&6; } +if ${ac_cv_search_opendir+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (); +int +main () +{ +return opendir (); + ; + return 0; +} +_ACEOF +for ac_lib in '' dir; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_opendir+:} false; then : + break +fi +done +if ${ac_cv_search_opendir+:} false; then : + +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +$as_echo "$ac_cv_search_opendir" >&6; } +ac_res=$ac_cv_search_opendir +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +$as_echo_n "checking for library containing opendir... " >&6; } +if ${ac_cv_search_opendir+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char opendir (); +int +main () +{ +return opendir (); + ; + return 0; +} +_ACEOF +for ac_lib in '' x; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_opendir=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_opendir+:} false; then : + break +fi +done +if ${ac_cv_search_opendir+:} false; then : + +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +$as_echo "$ac_cv_search_opendir" >&6; } +ac_res=$ac_cv_search_opendir +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if ${ac_cv_header_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in direct.h errno.h file.h signal.h sys/time.h time.h unistd.h unixio.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +SUPPORTS_SOUND_OSS=yes +for ac_header in fcntl.h sys/ioctl.h sys/soundcard.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +else + SUPPORTS_SOUND_OSS=no +fi + +done + +SUPPORTS_RDEVICE=yes +if [ "$a8_host" = "win" ]; then + for ac_header in windows.h winsock2.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +else + SUPPORTS_RDEVICE=no +fi + +done + +else + for ac_header in arpa/inet.h netdb.h netinet/in.h sys/socket.h termios.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +else + SUPPORTS_RDEVICE=no +fi + +done + +fi + + + + +if [ "$a8_target" = "android" ]; then + echo "hardcoding libz" + LIBS="-lz $LIBS" + $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 +$as_echo_n "checking for gzopen in -lz... " >&6; } +if ${ac_cv_lib_z_gzopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gzopen (); +int +main () +{ +return gzopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_z_gzopen=yes +else + ac_cv_lib_z_gzopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 +$as_echo "$ac_cv_lib_z_gzopen" >&6; } +if test "x$ac_cv_lib_z_gzopen" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_libpng_ver in -lpng" >&5 +$as_echo_n "checking for png_get_libpng_ver in -lpng... " >&6; } +if ${ac_cv_lib_png_png_get_libpng_ver+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char png_get_libpng_ver (); +int +main () +{ +return png_get_libpng_ver (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_png_png_get_libpng_ver=yes +else + ac_cv_lib_png_png_get_libpng_ver=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_libpng_ver" >&5 +$as_echo "$ac_cv_lib_png_png_get_libpng_ver" >&6; } +if test "x$ac_cv_lib_png_png_get_libpng_ver" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBPNG 1 +_ACEOF + + LIBS="-lpng $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +$as_echo_n "checking for cos in -lm... " >&6; } +if ${ac_cv_lib_m_cos+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cos (); +int +main () +{ +return cos (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cos=yes +else + ac_cv_lib_m_cos=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +$as_echo "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes; then : + LIBS="-lm $LIBS" +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 +$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } +if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lossaudio $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char _oss_ioctl (); +int +main () +{ +return _oss_ioctl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ossaudio__oss_ioctl=yes +else + ac_cv_lib_ossaudio__oss_ioctl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 +$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } +if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : + LIBS="-lossaudio $LIBS" +fi + +fi + + +OBJS= +case "$a8_target" in + default) + if [ "$a8_host" != "dos" ]; then + CFLAGS="$CFLAGS -ansi" + fi + CFLAGS="$CFLAGS -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline" + if [ "$a8_host" != "beos" ]; then + CFLAGS="$CFLAGS -Wredundant-decls" + fi + ;; + falcon) + +$as_echo "@%:@define FALCON 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appl_init in -lgem" >&5 +$as_echo_n "checking for appl_init in -lgem... " >&6; } +if ${ac_cv_lib_gem_appl_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgem $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char appl_init (); +int +main () +{ +return appl_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gem_appl_init=yes +else + ac_cv_lib_gem_appl_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gem_appl_init" >&5 +$as_echo "$ac_cv_lib_gem_appl_init" >&6; } +if test "x$ac_cv_lib_gem_appl_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_LIBGEM 1 +_ACEOF + + LIBS="-lgem $LIBS" + +fi + + OBJS="atari_falcon.o falcon/c2p_uni.o falcon/c2p_unid.o falcon/videl.o falcon/ikbd.o" + ;; + ps2) + +$as_echo "@%:@define PS2 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_SLEEP 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_TIME 1" >>confdefs.h + + +$as_echo "@%:@define DEFAULT_CFG_NAME \"mc0:/ATARI/ATARI800.CFG\"" >>confdefs.h + + as_ac_Lib=`$as_echo "ac_cv_lib_kernel''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel" >&5 +$as_echo_n "checking for main in -lkernel... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lkernel $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBkernel" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lkernel $LIBS" + +else + as_fn_error $? "\"kernel library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_audsrv''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laudsrv" >&5 +$as_echo_n "checking for main in -laudsrv... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laudsrv $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBaudsrv" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-laudsrv $LIBS" + +else + as_fn_error $? "\"audsrv library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_debug''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldebug" >&5 +$as_echo_n "checking for main in -ldebug... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldebug $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBdebug" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-ldebug $LIBS" + +else + as_fn_error $? "\"debug library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_syscall''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsyscall" >&5 +$as_echo_n "checking for main in -lsyscall... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsyscall $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBsyscall" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lsyscall $LIBS" + +else + as_fn_error $? "\"syscall library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_dmakit''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmakit" >&5 +$as_echo_n "checking for main in -ldmakit... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldmakit $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBdmakit" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-ldmakit $LIBS" + +else + as_fn_error $? "\"dmakit library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_gskit''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgskit" >&5 +$as_echo_n "checking for main in -lgskit... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgskit $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBgskit" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lgskit $LIBS" + +else + as_fn_error $? "\"gskit library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_pad''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpad" >&5 +$as_echo_n "checking for main in -lpad... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpad $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBpad" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lpad $LIBS" + +else + as_fn_error $? "\"pad library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_kbd''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkbd" >&5 +$as_echo_n "checking for main in -lkbd... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lkbd $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBkbd" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lkbd $LIBS" + +else + as_fn_error $? "\"kbd library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_mc''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmc" >&5 +$as_echo_n "checking for main in -lmc... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmc $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBmc" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lmc $LIBS" + +else + as_fn_error $? "\"mc library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_g''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5 +$as_echo_n "checking for main in -lg... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lg $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBg" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lg $LIBS" + +else + as_fn_error $? "\"g library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_z''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 +$as_echo_n "checking for main in -lz... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBz" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lz $LIBS" + +else + as_fn_error $? "\"z library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_c''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 +$as_echo_n "checking for main in -lc... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBc" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lc $LIBS" + +else + as_fn_error $? "\"c library not found!\"" "$LINENO" 5 +fi + + OBJS="atari_ps2.o ps2kbd.s usbd.s audsrv.s" + ;; + rpi) + +$as_echo "@%:@define RPI 1" >>confdefs.h + + +$as_echo "@%:@define GUI_SDL 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGURE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGSAVE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + + +$as_echo "@%:@define PLATFORM_MAP_PALETTE 1" >>confdefs.h + + as_ac_Lib=`$as_echo "ac_cv_lib_GLESv2''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLESv2" >&5 +$as_echo_n "checking for main in -lGLESv2... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lGLESv2 $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBGLESv2" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lGLESv2 $LIBS" + +else + as_fn_error $? "\"GLESv2 library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_EGL''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lEGL" >&5 +$as_echo_n "checking for main in -lEGL... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lEGL $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBEGL" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lEGL $LIBS" + +else + as_fn_error $? "\"EGL library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_SDL''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL" >&5 +$as_echo_n "checking for main in -lSDL... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lSDL $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBSDL" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lSDL $LIBS" + +else + as_fn_error $? "\"SDL library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_bcm_host''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbcm_host" >&5 +$as_echo_n "checking for main in -lbcm_host... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbcm_host $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBbcm_host" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lbcm_host $LIBS" + +else + as_fn_error $? "\"bcm_host library not found!\"" "$LINENO" 5 +fi + + OBJS="atari_rpi.o gles2/video.o sdl/main.o sdl/input.o" + ;; + android) + +$as_echo "@%:@define ANDROID 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + + +$as_echo "@%:@define DIRTYRECT 1" >>confdefs.h + + ;; + windx) + +$as_echo "@%:@define DIRECTX 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGURE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGSAVE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_SOUND_REINIT 1" >>confdefs.h + + as_ac_Lib=`$as_echo "ac_cv_lib_ddraw''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lddraw" >&5 +$as_echo_n "checking for main in -lddraw... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lddraw $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBddraw" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lddraw $LIBS" + +else + as_fn_error $? "\"ddraw library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_dinput''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldinput" >&5 +$as_echo_n "checking for main in -ldinput... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldinput $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBdinput" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-ldinput $LIBS" + +else + as_fn_error $? "\"dinput library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_dsound''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldsound" >&5 +$as_echo_n "checking for main in -ldsound... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldsound $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBdsound" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-ldsound $LIBS" + +else + as_fn_error $? "\"dsound library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_dxguid''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldxguid" >&5 +$as_echo_n "checking for main in -ldxguid... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldxguid $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBdxguid" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-ldxguid $LIBS" + +else + as_fn_error $? "\"dxguid library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_d3d9''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ld3d9" >&5 +$as_echo_n "checking for main in -ld3d9... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ld3d9 $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBd3d9" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-ld3d9 $LIBS" + +else + as_fn_error $? "\"d3d9 library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_gdiplus''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdiplus" >&5 +$as_echo_n "checking for main in -lgdiplus... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdiplus $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBgdiplus" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lgdiplus $LIBS" + +else + as_fn_error $? "\"gdiplus library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_stdc++''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 +$as_echo_n "checking for main in -lstdc++... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lstdc++ $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBstdc++" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lstdc++ $LIBS" + +else + as_fn_error $? "\"stdc++ library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_ws2_32''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBws2_32" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lws2_32 $LIBS" + +else + as_fn_error $? "\"ws2_32 library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_gdi32''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 +$as_echo_n "checking for main in -lgdi32... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgdi32 $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBgdi32" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lgdi32 $LIBS" + +else + as_fn_error $? "\"gdi32 library not found!\"" "$LINENO" 5 +fi + + OBJS="win32/atari_win32.o win32/screen_win32.o win32/render_direct3d.o win32/render_directdraw.o win32/render_gdi.o win32/render_gdiplus.o win32/main.o win32/keyboard.o win32/joystick.o win32/atari.ro" + CFLAGS="$CFLAGS -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wstrict-prototypes -Winline" + LDFLAGS="$LDFLAGS -mwindows" + ;; + x11*) + +$as_echo "@%:@define X11 1" >>confdefs.h + + as_ac_Lib=`$as_echo "ac_cv_lib_X11''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5 +$as_echo_n "checking for main in -lX11... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lX11 $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBX11" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lX11 $LIBS" + +else + as_fn_error $? "\"X11 library not found!\"" "$LINENO" 5 +fi + + case "$a8_target" in + *-shm) + +$as_echo "@%:@define SHM 1" >>confdefs.h + + as_ac_Lib=`$as_echo "ac_cv_lib_Xext''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 +$as_echo_n "checking for main in -lXext... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXext $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBXext" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lXext $LIBS" + +else + as_fn_error $? "\"Xext library not found!\"" "$LINENO" 5 +fi + + ;; + esac + case "$a8_target" in + x11-xview*) + +$as_echo "@%:@define XVIEW 1" >>confdefs.h + + CFLAGS="$CFLAGS -I/usr/openwin/include" + as_ac_Lib=`$as_echo "ac_cv_lib_olgx''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lolgx" >&5 +$as_echo_n "checking for main in -lolgx... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lolgx $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBolgx" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lolgx $LIBS" + +else + as_fn_error $? "\"olgx library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_xview''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxview" >&5 +$as_echo_n "checking for main in -lxview... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lxview $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBxview" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lxview $LIBS" + +else + as_fn_error $? "\"xview library not found!\"" "$LINENO" 5 +fi + + ;; + x11-motif) + +$as_echo "@%:@define MOTIF 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 +$as_echo_n "checking for main in -lsocket... " >&6; } +if ${ac_cv_lib_socket_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_main=yes +else + ac_cv_lib_socket_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 +$as_echo "$ac_cv_lib_socket_main" >&6; } +if test "x$ac_cv_lib_socket_main" = xyes; then : + LIBS="-lsocket $LIBS" +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5 +$as_echo_n "checking for main in -lgen... " >&6; } +if ${ac_cv_lib_gen_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgen $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gen_main=yes +else + ac_cv_lib_gen_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5 +$as_echo "$ac_cv_lib_gen_main" >&6; } +if test "x$ac_cv_lib_gen_main" = xyes; then : + LIBS="-lgen $LIBS" +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_Xt''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXt" >&5 +$as_echo_n "checking for main in -lXt... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXt $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBXt" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lXt $LIBS" + +else + as_fn_error $? "\"Xt library not found!\"" "$LINENO" 5 +fi + + as_ac_Lib=`$as_echo "ac_cv_lib_Xm''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5 +$as_echo_n "checking for main in -lXm... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXm $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBXm" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lXm $LIBS" + +else + as_fn_error $? "\"Xm library not found!\"" "$LINENO" 5 +fi + + ;; + esac + OBJS="atari_x11.o" + ;; +esac + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "@%:@define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 +$as_echo_n "checking for working volatile... " >&6; } +if ${ac_cv_c_volatile+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +volatile int x; +int * volatile y = (int *) 0; +return !x && !y; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_volatile=yes +else + ac_cv_c_volatile=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 +$as_echo "$ac_cv_c_volatile" >&6; } +if test $ac_cv_c_volatile = no; then + +$as_echo "@%:@define volatile /**/" >>confdefs.h + +fi + +if test $ac_cv_c_compiler_gnu = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 +$as_echo_n "checking whether $CC needs -traditional... " >&6; } +if ${ac_cv_prog_gcc_traditional+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_pattern="Autoconf.*'x'" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +Autoconf TIOCGETP +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1; then : + ac_cv_prog_gcc_traditional=yes +else + ac_cv_prog_gcc_traditional=no +fi +rm -f conftest* + + + if test $ac_cv_prog_gcc_traditional = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +Autoconf TCGETA +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1; then : + ac_cv_prog_gcc_traditional=yes +fi +rm -f conftest* + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 +$as_echo "$ac_cv_prog_gcc_traditional" >&6; } + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 +$as_echo_n "checking return type of signal handlers... " >&6; } +if ${ac_cv_type_signal+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +return *(signal (0, 0)) (0) == 1; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_signal=int +else + ac_cv_type_signal=void +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 +$as_echo "$ac_cv_type_signal" >&6; } + +cat >>confdefs.h <<_ACEOF +@%:@define RETSIGTYPE $ac_cv_type_signal +_ACEOF + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define size_t unsigned int +_ACEOF + +fi + + + + +@%:@ Check whether --enable-unalignedwords was given. +if test "${enable_unalignedwords+set}" = set; then : + enableval=$enable_unalignedwords; +fi + +if [ "$enable_unalignedwords" != "yes" -a "$enable_unalignedwords" != "no" ]; then + case $host_cpu in + alpha* | arm* | hppa* | ia64 | mips* | sparc*) + enable_unalignedwords=no + ;; + i*86 | m68* | powerpc* | x86_64) + enable_unalignedwords=yes + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $host_cpu architecture is unknown to this script." >&5 +$as_echo "$as_me: WARNING: $host_cpu architecture is unknown to this script." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Performance may be sub-optimal. Please contact Atari800 developers." >&5 +$as_echo "$as_me: WARNING: Performance may be sub-optimal. Please contact Atari800 developers." >&2;} + enable_unalignedwords=no + ;; + esac +fi + +if [ "$enable_unalignedwords" = "yes" ]; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unaligned word access validity" >&5 +$as_echo_n "checking for unaligned word access validity... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped because cross-compiling" >&5 +$as_echo "skipped because cross-compiling" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + unsigned char test_data[] = "Hello, I test unaligned word access validity."; + unsigned char *p; + /* step through test_data as far as 4 bytes are available via p */ + for (p = test_data; p[2] != '\0'; p++) { + unsigned int word_read = *(unsigned short *) p; + if (word_read != (p[0] + (p[1] << 8)) + && word_read != (p[1] + (p[0] << 8))) { + printf("16-bit access at address %p yields bad data!\n" + "Bytes: %02X %02X; Value read: %04X\n", + p, p[0], p[1], word_read); + return 1; + } + word_read = *(unsigned int *) p; + if (word_read != (p[0] + (p[1] << 8) + (p[2] << 16) + (p[3] << 24)) + && word_read != (p[3] + (p[2] << 8) + (p[1] << 16) + (p[0] << 24))) { + printf("32-bit access at address %p yields bad data!\n" + "Bytes: %02X %02X %02X %02X; Value read: %08X\n", + p, p[0], p[1], p[2], p[3], word_read); + return 1; + } + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + enable_unalignedwords=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed! disabling unaligned word access" >&5 +$as_echo "failed! disabling unaligned word access" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + if [ "$enable_unalignedwords" = "yes" ]; then + +$as_echo "@%:@define WORDS_UNALIGNED_OK 1" >>confdefs.h + + fi +fi + + + +# from "Autoconf Archive": + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 +$as_echo_n "checking whether closedir returns void... " >&6; } +if ${ac_cv_func_closedir_void+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_closedir_void=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header_dirent> +#ifndef __cplusplus +int closedir (); +#endif + +int +main () +{ +return closedir (opendir (".")) != 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_closedir_void=no +else + ac_cv_func_closedir_void=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 +$as_echo "$ac_cv_func_closedir_void" >&6; } +if test $ac_cv_func_closedir_void = yes; then + +$as_echo "@%:@define CLOSEDIR_VOID 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 +$as_echo_n "checking for working memcmp... " >&6; } +if ${ac_cv_func_memcmp_working+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_memcmp_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Some versions of memcmp are not 8-bit clean. */ + char c0 = '\100', c1 = '\200', c2 = '\201'; + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) + return 1; + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + char foo[21]; + char bar[21]; + int i; + for (i = 0; i < 4; i++) + { + char *a = foo + i; + char *b = bar + i; + strcpy (a, "--------01111111"); + strcpy (b, "--------10000000"); + if (memcmp (a, b, 16) >= 0) + return 1; + } + return 0; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_memcmp_working=yes +else + ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 +$as_echo "$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" + ;; +esac + + +for ac_header in sys/select.h sys/socket.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 +$as_echo_n "checking types of arguments for select... " >&6; } +if ${ac_cv_func_select_args+:} false; then : + $as_echo_n "(cached) " >&6 +else + for ac_arg234 in 'fd_set *' 'int *' 'void *'; do + for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do + for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +#ifdef HAVE_SYS_SELECT_H +# include +#endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif + +int +main () +{ +extern int select ($ac_arg1, + $ac_arg234, $ac_arg234, $ac_arg234, + $ac_arg5); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + done +done +# Provide a safe default value. +: "${ac_cv_func_select_args=int,int *,struct timeval *}" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 +$as_echo "$ac_cv_func_select_args" >&6; } +ac_save_IFS=$IFS; IFS=',' +set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` +IFS=$ac_save_IFS +shift + +cat >>confdefs.h <<_ACEOF +@%:@define SELECT_TYPE_ARG1 $1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define SELECT_TYPE_ARG234 ($2) +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define SELECT_TYPE_ARG5 ($3) +_ACEOF + +rm -f conftest* + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f conftest.sym conftest.file +echo >conftest.file +if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then + if test "$cross_compiling" = yes; then : + ac_cv_func_lstat_dereferences_slashed_symlink=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +struct stat sbuf; + /* Linux will dereference the symlink and fail, as required by POSIX. + That is better in the sense that it means we will not + have to compile and use the lstat wrapper. */ + return lstat ("conftest.sym/", &sbuf) == 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_lstat_dereferences_slashed_symlink=yes +else + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + # If the `ln -s' command failed, then we probably don't even + # have an lstat function. + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f conftest.sym conftest.file + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } + +test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && + +cat >>confdefs.h <<_ACEOF +@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +_ACEOF + + +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then + case " $LIB@&t@OBJS " in + *" lstat.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" + ;; +esac + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 +$as_echo_n "checking whether stat accepts an empty string... " >&6; } +if ${ac_cv_func_stat_empty_string_bug+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_stat_empty_string_bug=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +struct stat sbuf; + return stat ("", &sbuf) == 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_stat_empty_string_bug=no +else + ac_cv_func_stat_empty_string_bug=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 +$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } +if test $ac_cv_func_stat_empty_string_bug = yes; then + case " $LIB@&t@OBJS " in + *" stat.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" + ;; +esac + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_STAT_EMPTY_STRING_BUG 1 +_ACEOF + +fi + +if [ "$a8_target" = "android" ]; then + echo "hardcoding libc funcs" + $as_echo "@%:@define HAVE_VPRINTF 1" >>confdefs.h + $as_echo "@%:@define HAVE_ATEXIT 1" >>confdefs.h + $as_echo "@%:@define HAVE_CHMOD 1" >>confdefs.h + $as_echo "@%:@define HAVE_FDOPEN 1" >>confdefs.h + + $as_echo "@%:@define HAVE_FFLUSH 1" >>confdefs.h + $as_echo "@%:@define HAVE_FLOOR 1" >>confdefs.h + $as_echo "@%:@define HAVE_FSTAT 1" >>confdefs.h + $as_echo "@%:@define HAVE_GETCWD 1" >>confdefs.h + + $as_echo "@%:@define HAVE_GETTIMEOFDAY 1" >>confdefs.h + $as_echo "@%:@define HAVE_LOCALTIME 1" >>confdefs.h + $as_echo "@%:@define HAVE_MEMMOVE 1" >>confdefs.h + $as_echo "@%:@define HAVE_MEMSET 1" >>confdefs.h + + $as_echo "@%:@define HAVE_MKSTEMP 1" >>confdefs.h + $as_echo "@%:@define HAVE_MKTEMP 1" >>confdefs.h + $as_echo "@%:@define HAVE_MODF 1" >>confdefs.h + $as_echo "@%:@define HAVE_NANOSLEEP 1" >>confdefs.h + + $as_echo "@%:@define HAVE_OPENDIR 1" >>confdefs.h + $as_echo "@%:@define HAVE_RENAME 1" >>confdefs.h + $as_echo "@%:@define HAVE_REWIND 1" >>confdefs.h + $as_echo "@%:@define HAVE_RMDIR 1" >>confdefs.h + + $as_echo "@%:@define HAVE_SIGNAL 1" >>confdefs.h + $as_echo "@%:@define HAVE_SNPRINTF 1" >>confdefs.h + $as_echo "@%:@define HAVE_STAT 1" >>confdefs.h + $as_echo "@%:@define HAVE_STRCASECMP 1" >>confdefs.h + + $as_echo "@%:@define HAVE_STRCHR 1" >>confdefs.h + $as_echo "@%:@define HAVE_STRDUP 1" >>confdefs.h + $as_echo "@%:@define HAVE_STRERROR 1" >>confdefs.h + $as_echo "@%:@define HAVE_STRRCHR 1" >>confdefs.h + + $as_echo "@%:@define HAVE_STRSTR 1" >>confdefs.h + $as_echo "@%:@define HAVE_STRTOL 1" >>confdefs.h + $as_echo "@%:@define HAVE_SYSTEM 1" >>confdefs.h + $as_echo "@%:@define HAVE_TIME 1" >>confdefs.h + + $as_echo "@%:@define HAVE_TMPNAM 1" >>confdefs.h + $as_echo "@%:@define HAVE_UCLOCK 1" >>confdefs.h + $as_echo "@%:@define HAVE_UNLINK 1" >>confdefs.h + + $as_echo "@%:@define HAVE_VSNPRINTF 1" >>confdefs.h + $as_echo "@%:@define HAVE_MKDIR 1" >>confdefs.h + + $as_echo "@%:@define HAVE_SELECT 1" >>confdefs.h + $as_echo "@%:@define HAVE_USLEEP 1" >>confdefs.h + $as_echo "@%:@define HAVE_STRNCPY 1" >>confdefs.h + + else + for ac_func in vprintf +do : + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" +if test "x$ac_cv_func_vprintf" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VPRINTF 1 +_ACEOF + +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" +if test "x$ac_cv_func__doprnt" = xyes; then : + +$as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h + +fi + +fi +done + + + for ac_func in atexit chmod clock fdopen fflush floor fstat getcwd +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_func in gettimeofday localtime memmove memset mkstemp mktemp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_func in modf nanosleep opendir rename rewind rmdir signal snprintf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_func in stat strcasecmp strchr strdup strerror strrchr strstr +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_func in strtol system time tmpfile tmpnam uclock unlink vsnprintf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + for ac_func in mkdir _mkdir +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes one argument" >&5 +$as_echo_n "checking whether mkdir takes one argument... " >&6; } +if ${ac_cv_mkdir_takes_one_arg+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if HAVE_UNISTD_H +# include +#endif + +int +main () +{ +mkdir ("."); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_mkdir_takes_one_arg=yes +else + ac_cv_mkdir_takes_one_arg=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_takes_one_arg" >&5 +$as_echo "$ac_cv_mkdir_takes_one_arg" >&6; } +if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then + +$as_echo "@%:@define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h + +fi + + if test "x$a8_host" != xjavanvm ; then + for ac_func in select usleep strncpy +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + fi +fi +if [ "$a8_host" != "win" -a "$a8_target" != "android" ]; then + for ac_func in gethostbyaddr gethostbyname inet_ntoa socket +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +else + SUPPORTS_RDEVICE=no +fi +done + +fi + + + +@%:@ Check whether --with-video was given. +if test "${with_video+set}" = set; then : + withval=$with_video; + case "$withval" in + no | yes | check | curses | ncurses | pdcurses | dosvga | sdl | javanvm) + ;; + *) + as_fn_error $? "unrecognized value for --with-video: \"$withval\"" "$LINENO" 5 + ;; + esac + +else + with_video=check +fi + + +if [ "$a8_target" = default ]; then + if [ "$with_video" != no ]; then + if [ "$with_video" = check -o "$with_video" = yes -o "$with_video" = javanvm ]; then + if [ "$a8_host" = javanvm ]; then + with_video=javanvm + elif [ "$with_video" = javanvm ]; then + as_fn_error $? "--with-video=javanvm was given, but host system is not NestedVM!" "$LINENO" 5 + fi + fi + if [ "$with_video" = check -o "$with_video" = yes -o "$with_video" = dosvga ]; then + if [ "$a8_host" = dos ]; then + with_video=dosvga + elif [ "$with_video" = dosvga ]; then + as_fn_error $? "--with-video=dosvga was given, but host system is not DOS!" "$LINENO" 5 + fi + fi + if [ "$with_video" = check -o "$with_video" = yes -o "$with_video" = sdl ]; then + + if [ "$a8_use_sdl" = no ]; then + SDL_VERSION=1.2.0 + +@%:@ Check whether --with-sdl-prefix was given. +if test "${with_sdl_prefix+set}" = set; then : + withval=$with_sdl_prefix; sdl_prefix="$withval" +else + sdl_prefix="" +fi + + +@%:@ Check whether --with-sdl-exec-prefix was given. +if test "${with_sdl_exec_prefix+set}" = set; then : + withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" +else + sdl_exec_prefix="" +fi + +@%:@ Check whether --enable-sdltest was given. +if test "${enable_sdltest+set}" = set; then : + enableval=$enable_sdltest; +else + enable_sdltest=yes +fi + + + if test x$sdl_exec_prefix != x ; then + sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config + fi + fi + if test x$sdl_prefix != x ; then + sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + as_save_PATH="$PATH" + if test "x$prefix" != xNONE; then + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + fi + # Extract the first word of "sdl-config", so it can be a program name with args. +set dummy sdl-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SDL_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SDL_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" + ;; +esac +fi +SDL_CONFIG=$ac_cv_path_SDL_CONFIG +if test -n "$SDL_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 +$as_echo "$SDL_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + PATH="$as_save_PATH" + min_sdl_version=$SDL_VERSION + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 +$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_sdltest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_CXXFLAGS="$CXXFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + rm -f conf.sdltest + if test "$cross_compiling" = yes; then : + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include "SDL.h" + +char* +my_strdup (char *str) +{ + char *new_str; + + if (str) + { + new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); + strcpy (new_str, str); + } + else + new_str = NULL; + + return new_str; +} + +int main (int argc, char *argv[]) +{ + int major, minor, micro; + char *tmp_version; + + /* This hangs on some systems (?) + system ("touch conf.sdltest"); + */ + { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = my_strdup("$min_sdl_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_sdl_version"); + exit(1); + } + + if (($sdl_major_version > major) || + (($sdl_major_version == major) && ($sdl_minor_version > minor)) || + (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); + printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); + printf("*** best to upgrade to the required version.\n"); + printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); + printf("*** to point to the correct copy of sdl-config, and remove the file\n"); + printf("*** config.cache before re-running configure\n"); + return 1; + } +} + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + no_sdl=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + OBJS="$OBJS sdl/init.o" + +$as_echo "@%:@define SDL 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_TIME 1" >>confdefs.h + + LIBS="$LIBS $SDL_LIBS" + CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" + if [ "$a8_host" = "win" ]; then + CPPFLAGS=${CPPFLAGS/-Dmain=SDL_main/} + LIBS=${LIBS/-lSDLmain/} + OBJS="$OBJS SDL_win32_main.o" + CPPFLAGS="$CPPFLAGS -DNO_STDIO_REDIRECT" + LIBS=${LIBS/-mwindows/} + fi + a8_use_sdl=yes + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test "$SDL_CONFIG" = "no" ; then + echo "*** The sdl-config script installed by SDL could not be found" + echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the SDL_CONFIG environment variable to the" + echo "*** full path to sdl-config." + else + if test -f conf.sdltest ; then + : + else + echo "*** Could not run SDL test program, checking why..." + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include "SDL.h" + +int main(int argc, char *argv[]) +{ return 0; } +#undef main +#define main K_and_R_C_main + +int +main () +{ + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding SDL or finding the wrong" + echo "*** version of SDL. If it is not finding SDL, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +else + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means SDL was incorrectly installed" + echo "*** or that you have moved SDL since it was installed. In the latter case, you" + echo "*** may want to edit the sdl-config script: $SDL_CONFIG" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_LIBS="" + : + fi + + + rm -f conf.sdltest + + fi + + if [ "$a8_use_sdl" = yes ]; then + with_video=sdl + elif [ "$with_video" = sdl ]; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "--with-video=sdl was given, but SDL library not found! +See \`config.log' for more details" "$LINENO" 5; } + fi + fi + if [ "$with_video" = check -o "$with_video" = yes -o "$with_video" = curses ]; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 +$as_echo_n "checking for initscr in -lcurses... " >&6; } +if ${ac_cv_lib_curses_initscr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurses $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char initscr (); +int +main () +{ +return initscr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curses_initscr=yes +else + ac_cv_lib_curses_initscr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 +$as_echo "$ac_cv_lib_curses_initscr" >&6; } +if test "x$ac_cv_lib_curses_initscr" = xyes; then : + LIBS="-lcurses $LIBS" + with_video=curses + +else + if [ "$with_video" = curses ]; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "--with-video=curses was given, but curses library not found! +See \`config.log' for more details" "$LINENO" 5; } + fi + +fi + + fi + if [ "$with_video" = check -o "$with_video" = yes -o "$with_video" = ncurses ]; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 +$as_echo_n "checking for initscr in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_initscr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char initscr (); +int +main () +{ +return initscr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_initscr=yes +else + ac_cv_lib_ncurses_initscr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 +$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } +if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : + LIBS="-lncurses $LIBS" + with_video=ncurses + +$as_echo "@%:@define USE_NCURSES 1" >>confdefs.h + + +else + if [ "$with_video" = ncurses ]; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "--with-video=ncurses was given, but ncurses library not found! +See \`config.log' for more details" "$LINENO" 5; } + fi + +fi + + fi + if [ "$with_video" = check -o "$with_video" = yes -o "$with_video" = pdcurses ]; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lpdcurses" >&5 +$as_echo_n "checking for initscr in -lpdcurses... " >&6; } +if ${ac_cv_lib_pdcurses_initscr+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpdcurses $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char initscr (); +int +main () +{ +return initscr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pdcurses_initscr=yes +else + ac_cv_lib_pdcurses_initscr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdcurses_initscr" >&5 +$as_echo "$ac_cv_lib_pdcurses_initscr" >&6; } +if test "x$ac_cv_lib_pdcurses_initscr" = xyes; then : + LIBS="-lpdcurses $LIBS" + with_video=pdcurses + +else + if [ "$with_video" = pdcurses ]; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "--with-video=pdcurses was given, but pdcurses library not found! +See \`config.log' for more details" "$LINENO" 5; } + fi + +fi + + fi + fi + if [ "$with_video" = check ]; then + with_video=no + fi + case "$with_video" in + javanvm) + +$as_echo "@%:@define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_SLEEP 1" >>confdefs.h + + OBJS="javanvm/main.o javanvm/video.o javanvm/input.o" + ;; + sdl) + +$as_echo "@%:@define GUI_SDL 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGURE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGSAVE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_CHANGE_VIDEOMODE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_ROTATE_VIDEOMODE 1" >>confdefs.h + + +$as_echo "@%:@define PLATFORM_MAP_PALETTE 1" >>confdefs.h + + WANT_XEP80_EMULATION=yes + WANT_NTSC_FILTER=yes + WANT_PAL_BLENDING=yes + OBJS="$OBJS videomode.o sdl/main.o sdl/video.o sdl/video_sw.o sdl/input.o sdl/palette.o" + +$as_echo "@%:@define PBI_PROTO80 1" >>confdefs.h + + OBJS="$OBJS pbi_proto80.o" + +$as_echo "@%:@define AF80 1" >>confdefs.h + + OBJS="$OBJS af80.o" + ;; + dosvga) + +$as_echo "@%:@define DOSVGA 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_CONFIGURE 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + + OBJS="$OBJS dos/atari_vga.o dos/vga_gfx.o dos/vga_asm.o" + ;; + curses | ncurses | pdcurses) + +$as_echo "@%:@define USE_CURSES 1" >>confdefs.h + + OBJS="$OBJS atari_curses.o" + WANT_EVENT_RECORDING=no + ;; + no) + +$as_echo "@%:@define BASIC 1" >>confdefs.h + + OBJS="$OBJS atari_basic.o" + WANT_EVENT_RECORDING=no + ;; + *) + as_fn_error $? "--with-video=$with_video was given, but no video/input library found!" "$LINENO" 5 + ;; + esac +fi + + + + +if [ "$a8_target" != "default" -o "$with_video" != no ]; then + + OBJS="$OBJS input.o statesav.o ui_basic.o ui.o" + + case "$with_video" in + *curses) + + @%:@ Check whether --enable-cursesbasic was given. +if test "${enable_cursesbasic+set}" = set; then : + enableval=$enable_cursesbasic; WANT_CURSES_BASIC=$enableval +else + WANT_CURSES_BASIC=yes +fi + + if [ "$WANT_CURSES_BASIC" = "yes" ]; then + +$as_echo "@%:@define CURSES_BASIC 1" >>confdefs.h + + fi + + ;; + esac + + if [ "$WANT_CURSES_BASIC" != "yes" ]; then + + OBJS="$OBJS artifact.o colours.o colours_ntsc.o colours_pal.o colours_external.o screen.o" + + + @%:@ Check whether --enable-newcycleexact was given. +if test "${enable_newcycleexact+set}" = set; then : + enableval=$enable_newcycleexact; WANT_NEW_CYCLE_EXACT=$enableval +else + WANT_NEW_CYCLE_EXACT=yes +fi + + if [ "$WANT_NEW_CYCLE_EXACT" = "yes" ]; then + +$as_echo "@%:@define NEW_CYCLE_EXACT 1" >>confdefs.h + + fi + + if [ "$WANT_NEW_CYCLE_EXACT" = "yes" ]; then + OBJS="$OBJS cycle_map.o" + fi + + + @%:@ Check whether --enable-veryslow was given. +if test "${enable_veryslow+set}" = set; then : + enableval=$enable_veryslow; WANT_VERY_SLOW=$enableval +else + WANT_VERY_SLOW=no +fi + + if [ "$WANT_VERY_SLOW" = "yes" ]; then + +$as_echo "@%:@define VERY_SLOW 1" >>confdefs.h + + fi + + + fi + + + @%:@ Check whether --enable-crashmenu was given. +if test "${enable_crashmenu+set}" = set; then : + enableval=$enable_crashmenu; WANT_CRASH_MENU=$enableval +else + WANT_CRASH_MENU=yes +fi + + if [ "$WANT_CRASH_MENU" = "yes" ]; then + +$as_echo "@%:@define CRASH_MENU 1" >>confdefs.h + + fi + +fi + + + @%:@ Check whether --enable-pagedattrib was given. +if test "${enable_pagedattrib+set}" = set; then : + enableval=$enable_pagedattrib; WANT_PAGED_ATTRIB=$enableval +else + WANT_PAGED_ATTRIB=no +fi + + if [ "$WANT_PAGED_ATTRIB" = "yes" ]; then + +$as_echo "@%:@define PAGED_ATTRIB 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-bufferedlog was given. +if test "${enable_bufferedlog+set}" = set; then : + enableval=$enable_bufferedlog; WANT_BUFFERED_LOG=$enableval +else + WANT_BUFFERED_LOG=no +fi + + if [ "$WANT_BUFFERED_LOG" = "yes" ]; then + +$as_echo "@%:@define BUFFERED_LOG 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-monitorasm was given. +if test "${enable_monitorasm+set}" = set; then : + enableval=$enable_monitorasm; WANT_MONITOR_ASSEMBLER=$enableval +else + WANT_MONITOR_ASSEMBLER=yes +fi + + if [ "$WANT_MONITOR_ASSEMBLER" = "yes" ]; then + +$as_echo "@%:@define MONITOR_ASSEMBLER 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-monitorbreak was given. +if test "${enable_monitorbreak+set}" = set; then : + enableval=$enable_monitorbreak; WANT_MONITOR_BREAK=$enableval +else + WANT_MONITOR_BREAK=yes +fi + + if [ "$WANT_MONITOR_BREAK" = "yes" ]; then + +$as_echo "@%:@define MONITOR_BREAK 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-monitorbreakpoints was given. +if test "${enable_monitorbreakpoints+set}" = set; then : + enableval=$enable_monitorbreakpoints; WANT_MONITOR_BREAKPOINTS=$enableval +else + WANT_MONITOR_BREAKPOINTS=no +fi + + if [ "$WANT_MONITOR_BREAKPOINTS" = "yes" ]; then + +$as_echo "@%:@define MONITOR_BREAKPOINTS 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-monitorhints was given. +if test "${enable_monitorhints+set}" = set; then : + enableval=$enable_monitorhints; WANT_MONITOR_HINTS=$enableval +else + WANT_MONITOR_HINTS=yes +fi + + if [ "$WANT_MONITOR_HINTS" = "yes" ]; then + +$as_echo "@%:@define MONITOR_HINTS 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-monitorprofile was given. +if test "${enable_monitorprofile+set}" = set; then : + enableval=$enable_monitorprofile; WANT_MONITOR_PROFILE=$enableval +else + WANT_MONITOR_PROFILE=no +fi + + if [ "$WANT_MONITOR_PROFILE" = "yes" ]; then + +$as_echo "@%:@define MONITOR_PROFILE 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-monitortrace was given. +if test "${enable_monitortrace+set}" = set; then : + enableval=$enable_monitortrace; WANT_MONITOR_TRACE=$enableval +else + WANT_MONITOR_TRACE=no +fi + + if [ "$WANT_MONITOR_TRACE" = "yes" ]; then + +$as_echo "@%:@define MONITOR_TRACE 1" >>confdefs.h + + fi + + +if [ "$WANT_EVENT_RECORDING" != "no" ]; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for adler32 in -lz" >&5 +$as_echo_n "checking for adler32 in -lz... " >&6; } +if ${ac_cv_lib_z_adler32+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char adler32 (); +int +main () +{ +return adler32 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_z_adler32=yes +else + ac_cv_lib_z_adler32=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_adler32" >&5 +$as_echo "$ac_cv_lib_z_adler32" >&6; } +if test "x$ac_cv_lib_z_adler32" = xyes; then : + + @%:@ Check whether --enable-eventrecording was given. +if test "${enable_eventrecording+set}" = set; then : + enableval=$enable_eventrecording; WANT_EVENT_RECORDING=$enableval +else + WANT_EVENT_RECORDING=yes +fi + + if [ "$WANT_EVENT_RECORDING" = "yes" ]; then + +$as_echo "@%:@define EVENT_RECORDING 1" >>confdefs.h + + fi + +else + WANT_EVENT_RECORDING="no" + +fi + +fi + + + @%:@ Check whether --enable-pbi_mio was given. +if test "${enable_pbi_mio+set}" = set; then : + enableval=$enable_pbi_mio; WANT_PBI_MIO=$enableval +else + WANT_PBI_MIO=yes +fi + + if [ "$WANT_PBI_MIO" = "yes" ]; then + +$as_echo "@%:@define PBI_MIO 1" >>confdefs.h + + fi + + +if [ "$WANT_PBI_MIO" = "yes" ]; then + OBJS="$OBJS pbi_mio.o" +fi + + + @%:@ Check whether --enable-pbi_bb was given. +if test "${enable_pbi_bb+set}" = set; then : + enableval=$enable_pbi_bb; WANT_PBI_BB=$enableval +else + WANT_PBI_BB=yes +fi + + if [ "$WANT_PBI_BB" = "yes" ]; then + +$as_echo "@%:@define PBI_BB 1" >>confdefs.h + + fi + + +if [ "$WANT_PBI_BB" = "yes" ]; then + OBJS="$OBJS pbi_bb.o" +fi + +if [ "$WANT_PBI_BB" = "yes" -o "$WANT_PBI_MIO" = "yes" ]; then + OBJS="$OBJS pbi_scsi.o" +fi + + + +@%:@ Check whether --with-sound was given. +if test "${with_sound+set}" = set; then : + withval=$with_sound; + case "$withval" in + no | yes | check | dossb | oss | falcon | win | sdl | javanvm) + ;; + *) + as_fn_error $? "unrecognized value for --with-sound: \"$withval\"" "$LINENO" 5 + ;; + esac + +else + with_sound=check +fi + + +if [ "$a8_target" != "ps2" -a "$a8_target" != "android" ]; then + if [ "$with_sound" != no ]; then + if [ "$with_sound" = check -o "$with_sound" = yes -o "$with_sound" = javanvm ]; then + if [ "$a8_host" = javanvm ]; then + with_sound=javanvm + elif [ "$with_sound" = javanvm ]; then + as_fn_error $? "--with-sound=javanvm was given, but host system is not NestedVM!" "$LINENO" 5 + fi + fi + if [ "$with_sound" = check -o "$with_sound" = yes -o "$with_sound" = win ]; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwinmm" >&5 +$as_echo_n "checking for main in -lwinmm... " >&6; } +if ${ac_cv_lib_winmm_main+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lwinmm $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_winmm_main=yes +else + ac_cv_lib_winmm_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_main" >&5 +$as_echo "$ac_cv_lib_winmm_main" >&6; } +if test "x$ac_cv_lib_winmm_main" = xyes; then : + LIBS="-lwinmm $LIBS" + with_sound=win + +else + if [ "$with_sound" = win ]; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "--with-sound=win was given, but WinMM library not found! +See \`config.log' for more details" "$LINENO" 5; } + fi + +fi + + fi + if [ "$with_sound" = check -o "$with_sound" = yes -o "$with_sound" = falcon ]; then + if [ "$a8_host" = falcon ]; then + with_sound=falcon + elif [ "$with_sound" = falcon ]; then + as_fn_error $? "--with-sound=falcon was given, but host system is not Falcon!" "$LINENO" 5 + fi + fi + if [ "$with_sound" = check -o "$with_sound" = yes -o "$with_sound" = dossb ]; then + if [ "$a8_host" = dos ]; then + with_sound=dossb + elif [ "$with_sound" = dossb ]; then + as_fn_error $? "--with-sound=dossb was given, but host system is not DOS!" "$LINENO" 5 + fi + fi + if [ "$with_sound" = check -o "$with_sound" = yes -o "$with_sound" = sdl ]; then + + if [ "$a8_use_sdl" = no ]; then + SDL_VERSION=1.2.0 + +@%:@ Check whether --with-sdl-prefix was given. +if test "${with_sdl_prefix+set}" = set; then : + withval=$with_sdl_prefix; sdl_prefix="$withval" +else + sdl_prefix="" +fi + + +@%:@ Check whether --with-sdl-exec-prefix was given. +if test "${with_sdl_exec_prefix+set}" = set; then : + withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" +else + sdl_exec_prefix="" +fi + +@%:@ Check whether --enable-sdltest was given. +if test "${enable_sdltest+set}" = set; then : + enableval=$enable_sdltest; +else + enable_sdltest=yes +fi + + + if test x$sdl_exec_prefix != x ; then + sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config + fi + fi + if test x$sdl_prefix != x ; then + sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + as_save_PATH="$PATH" + if test "x$prefix" != xNONE; then + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + fi + # Extract the first word of "sdl-config", so it can be a program name with args. +set dummy sdl-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SDL_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SDL_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" + ;; +esac +fi +SDL_CONFIG=$ac_cv_path_SDL_CONFIG +if test -n "$SDL_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 +$as_echo "$SDL_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + PATH="$as_save_PATH" + min_sdl_version=$SDL_VERSION + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 +$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_sdltest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_CXXFLAGS="$CXXFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + rm -f conf.sdltest + if test "$cross_compiling" = yes; then : + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#include "SDL.h" + +char* +my_strdup (char *str) +{ + char *new_str; + + if (str) + { + new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); + strcpy (new_str, str); + } + else + new_str = NULL; + + return new_str; +} + +int main (int argc, char *argv[]) +{ + int major, minor, micro; + char *tmp_version; + + /* This hangs on some systems (?) + system ("touch conf.sdltest"); + */ + { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = my_strdup("$min_sdl_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_sdl_version"); + exit(1); + } + + if (($sdl_major_version > major) || + (($sdl_major_version == major) && ($sdl_minor_version > minor)) || + (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); + printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); + printf("*** best to upgrade to the required version.\n"); + printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); + printf("*** to point to the correct copy of sdl-config, and remove the file\n"); + printf("*** config.cache before re-running configure\n"); + return 1; + } +} + + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + no_sdl=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + OBJS="$OBJS sdl/init.o" + +$as_echo "@%:@define SDL 1" >>confdefs.h + + +$as_echo "@%:@define SUPPORTS_PLATFORM_TIME 1" >>confdefs.h + + LIBS="$LIBS $SDL_LIBS" + CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" + if [ "$a8_host" = "win" ]; then + CPPFLAGS=${CPPFLAGS/-Dmain=SDL_main/} + LIBS=${LIBS/-lSDLmain/} + OBJS="$OBJS SDL_win32_main.o" + CPPFLAGS="$CPPFLAGS -DNO_STDIO_REDIRECT" + LIBS=${LIBS/-mwindows/} + fi + a8_use_sdl=yes + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test "$SDL_CONFIG" = "no" ; then + echo "*** The sdl-config script installed by SDL could not be found" + echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the SDL_CONFIG environment variable to the" + echo "*** full path to sdl-config." + else + if test -f conf.sdltest ; then + : + else + echo "*** Could not run SDL test program, checking why..." + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include "SDL.h" + +int main(int argc, char *argv[]) +{ return 0; } +#undef main +#define main K_and_R_C_main + +int +main () +{ + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding SDL or finding the wrong" + echo "*** version of SDL. If it is not finding SDL, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +else + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means SDL was incorrectly installed" + echo "*** or that you have moved SDL since it was installed. In the latter case, you" + echo "*** may want to edit the sdl-config script: $SDL_CONFIG" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_LIBS="" + : + fi + + + rm -f conf.sdltest + + fi + + if [ "$a8_use_sdl" = yes ]; then + with_sound=sdl + elif [ "$with_sound" = sdl ]; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "--with-sound=sdl was given, but SDL library not found! +See \`config.log' for more details" "$LINENO" 5; } + fi + fi + if [ "$with_sound" = check -o "$with_sound" = yes -o "$with_sound" = oss ]; then + if [ "$SUPPORTS_SOUND_OSS" = yes ]; then + with_sound=oss + elif [ "$with_sound" = oss ]; then + as_fn_error $? "--with-sound=oss was given, but OSS is not supported!" "$LINENO" 5 + fi + fi + fi + if [ "$with_sound" = check ]; then + with_sound=no + fi + case "$with_sound" in + javanvm) + WANT_SOUND_THIN_API=yes + OBJS="$OBJS javanvm/sound.o" + ;; + sdl) + WANT_SOUND_THIN_API=yes + WANT_SOUND_CALLBACK=yes + OBJS="$OBJS sdl/sound.o" + ;; + win) + +$as_echo "@%:@define SUPPORTS_SOUND_REINIT 1" >>confdefs.h + + OBJS="$OBJS win32/sound.o" + ;; + falcon) + OBJS="$OBJS sound_falcon.o falcon/sound_dma.o" + ;; + oss) + WANT_SOUND_THIN_API=yes + OBJS="$OBJS sound_oss.o" + ;; + dossb) + WANT_SOUND_THIN_API=yes + WANT_SOUND_CALLBACK=yes + OBJS="$OBJS dos/sound_dos.o dos/dos_sb.o" + ;; + no) + ;; + *) + as_fn_error $? "--with-sound=$with_sound was given, but no sound library found!" "$LINENO" 5 + ;; + esac +fi + + +if [ "$with_sound" != no ]; then + + +$as_echo "@%:@define SOUND 1" >>confdefs.h + + OBJS="$OBJS pokeysnd.o mzpokeysnd.o remez.o sndsave.o" + + if [ "$WANT_SOUND_THIN_API" = "yes" ]; then + +$as_echo "@%:@define SOUND_THIN_API 1" >>confdefs.h + + OBJS="$OBJS sound.o" + + @%:@ Check whether --enable-synchronized_sound was given. +if test "${enable_synchronized_sound+set}" = set; then : + enableval=$enable_synchronized_sound; WANT_SYNCHRONIZED_SOUND=$enableval +else + WANT_SYNCHRONIZED_SOUND=yes +fi + + if [ "$WANT_SYNCHRONIZED_SOUND" = "yes" ]; then + +$as_echo "@%:@define SYNCHRONIZED_SOUND 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-nonlinear_mixing was given. +if test "${enable_nonlinear_mixing+set}" = set; then : + enableval=$enable_nonlinear_mixing; WANT_NONLINEAR_MIXING=$enableval +else + WANT_NONLINEAR_MIXING=yes +fi + + if [ "$WANT_NONLINEAR_MIXING" = "yes" ]; then + +$as_echo "@%:@define NONLINEAR_MIXING 1" >>confdefs.h + + fi + + if [ "$WANT_SOUND_CALLBACK" = "yes" ]; then + +$as_echo "@%:@define SOUND_CALLBACK 1" >>confdefs.h + + fi + else + + + @%:@ Check whether --enable-nonlinear_mixing was given. +if test "${enable_nonlinear_mixing+set}" = set; then : + enableval=$enable_nonlinear_mixing; WANT_NONLINEAR_MIXING=$enableval +else + WANT_NONLINEAR_MIXING=no +fi + + if [ "$WANT_NONLINEAR_MIXING" = "yes" ]; then + +$as_echo "@%:@define NONLINEAR_MIXING 1" >>confdefs.h + + fi + + WANT_SYNCHRONIZED_SOUND="no" + fi + + + @%:@ Check whether --enable-interpolatesound was given. +if test "${enable_interpolatesound+set}" = set; then : + enableval=$enable_interpolatesound; WANT_INTERPOLATE_SOUND=$enableval +else + WANT_INTERPOLATE_SOUND=yes +fi + + if [ "$WANT_INTERPOLATE_SOUND" = "yes" ]; then + +$as_echo "@%:@define INTERPOLATE_SOUND 1" >>confdefs.h + + fi + + + + @%:@ Check whether --enable-stereosound was given. +if test "${enable_stereosound+set}" = set; then : + enableval=$enable_stereosound; WANT_STEREO_SOUND=$enableval +else + WANT_STEREO_SOUND=yes +fi + + if [ "$WANT_STEREO_SOUND" = "yes" ]; then + +$as_echo "@%:@define STEREO_SOUND 1" >>confdefs.h + + fi + + + if [ "$WANT_SYNCHRONIZED_SOUND" != "yes" ]; then + + @%:@ Check whether --enable-volonlysound was given. +if test "${enable_volonlysound+set}" = set; then : + enableval=$enable_volonlysound; WANT_VOL_ONLY_SOUND=$enableval +else + WANT_VOL_ONLY_SOUND=yes +fi + + if [ "$WANT_VOL_ONLY_SOUND" = "yes" ]; then + +$as_echo "@%:@define VOL_ONLY_SOUND 1" >>confdefs.h + + fi + + fi + if [ "$WANT_SYNCHRONIZED_SOUND" = "yes" -o "$WANT_VOL_ONLY_SOUND" = "yes" ]; then + + @%:@ Check whether --enable-consolesound was given. +if test "${enable_consolesound+set}" = set; then : + enableval=$enable_consolesound; WANT_CONSOLE_SOUND=$enableval +else + WANT_CONSOLE_SOUND=yes +fi + + if [ "$WANT_CONSOLE_SOUND" = "yes" ]; then + +$as_echo "@%:@define CONSOLE_SOUND 1" >>confdefs.h + + fi + + + @%:@ Check whether --enable-seriosound was given. +if test "${enable_seriosound+set}" = set; then : + enableval=$enable_seriosound; WANT_SERIO_SOUND=$enableval +else + WANT_SERIO_SOUND=no +fi + + if [ "$WANT_SERIO_SOUND" = "yes" ]; then + +$as_echo "@%:@define SERIO_SOUND 1" >>confdefs.h + + fi + + else + WANT_CONSOLE_SOUND="no" + WANT_SERIO_SOUND="no" + fi + + + @%:@ Check whether --enable-clipsound was given. +if test "${enable_clipsound+set}" = set; then : + enableval=$enable_clipsound; WANT_CLIP_SOUND=$enableval +else + WANT_CLIP_SOUND=no +fi + + if [ "$WANT_CLIP_SOUND" = "yes" ]; then + +$as_echo "@%:@define CLIP_SOUND 1" >>confdefs.h + + fi + + + @%:@ Check whether --enable-pbi_xld was given. +if test "${enable_pbi_xld+set}" = set; then : + enableval=$enable_pbi_xld; WANT_PBI_XLD=$enableval +else + WANT_PBI_XLD=yes +fi + + if [ "$WANT_PBI_XLD" = "yes" ]; then + +$as_echo "@%:@define PBI_XLD 1" >>confdefs.h + + fi + + + @%:@ Check whether --enable-voicebox was given. +if test "${enable_voicebox+set}" = set; then : + enableval=$enable_voicebox; WANT_VOICEBOX=$enableval +else + WANT_VOICEBOX=yes +fi + + if [ "$WANT_VOICEBOX" = "yes" ]; then + +$as_echo "@%:@define VOICEBOX 1" >>confdefs.h + + fi + + if [ "$WANT_PBI_XLD" = "yes" ]; then + OBJS="$OBJS pbi_xld.o" + fi + if [ "$WANT_VOICEBOX" = "yes" ]; then + OBJS="$OBJS voicebox.o" + fi + if [ "$WANT_PBI_XLD" = "yes" -o "$WANT_VOICEBOX" = "yes" ]; then + OBJS="$OBJS votrax.o votraxsnd.o" + fi +else + WANT_NONLINEAR_MIXING="no" + WANT_SYNCHRONIZED_SOUND="no" + WANT_INTERPOLATE_SOUND="no" + WANT_STEREO_SOUND="no" + WANT_VOL_ONLY_SOUND="no" + WANT_CONSOLE_SOUND="no" + WANT_SERIO_SOUND="no" + WANT_CLIP_SOUND="no" + WANT_PBI_XLD_SOUND="no" +fi + + + @%:@ Check whether --enable-ide was given. +if test "${enable_ide+set}" = set; then : + enableval=$enable_ide; WANT_IDE=$enableval +else + WANT_IDE=$WANT_IDE +fi + + if [ "$WANT_IDE" = "yes" ]; then + +$as_echo "@%:@define IDE 1" >>confdefs.h + + fi + +if [ "$WANT_IDE" == "yes" ]; then + @%:@ Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if ${ac_cv_sys_largefile_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if ${ac_cv_sys_file_offset_bits+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _FILE_OFFSET_BITS 64 +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if ${ac_cv_sys_large_files+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _LARGE_FILES 1 +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* + fi + + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } +if ${ac_cv_sys_largefile_source+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include /* for off_t */ + #include +int +main () +{ +int (*fp) (FILE *, off_t, int) = fseeko; + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_sys_largefile_source=no; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _LARGEFILE_SOURCE 1 +#include /* for off_t */ + #include +int +main () +{ +int (*fp) (FILE *, off_t, int) = fseeko; + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_sys_largefile_source=1; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_cv_sys_largefile_source=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 +$as_echo "$ac_cv_sys_largefile_source" >&6; } +case $ac_cv_sys_largefile_source in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source +_ACEOF +;; +esac +rm -rf conftest* + +# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug +# in glibc 2.1.3, but that breaks too many other things. +# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. +if test $ac_cv_sys_largefile_source != unknown; then + +$as_echo "@%:@define HAVE_FSEEKO 1" >>confdefs.h + +fi + + OBJS="$OBJS ide.o" +fi + +if [ "$a8_use_sdl" = yes ]; then + + @%:@ Check whether --enable-onscreenkeyboard was given. +if test "${enable_onscreenkeyboard+set}" = set; then : + enableval=$enable_onscreenkeyboard; WANT_USE_UI_BASIC_ONSCREEN_KEYBOARD=$enableval +else + WANT_USE_UI_BASIC_ONSCREEN_KEYBOARD=no +fi + + if [ "$WANT_USE_UI_BASIC_ONSCREEN_KEYBOARD" = "yes" ]; then + +$as_echo "@%:@define USE_UI_BASIC_ONSCREEN_KEYBOARD 1" >>confdefs.h + + fi + +fi + + + +@%:@ Check whether --with-readline was given. +if test "${with_readline+set}" = set; then : + withval=$with_readline; +else + with_readline=check +fi + + +if [ "$with_readline" != no ]; then + have_readline=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 +$as_echo_n "checking for library containing tgetent... " >&6; } +if ${ac_cv_search_tgetent+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tgetent (); +int +main () +{ +return tgetent (); + ; + return 0; +} +_ACEOF +for ac_lib in '' readline termcap ncursesw ncurses curses; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_tgetent=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_tgetent+:} false; then : + break +fi +done +if ${ac_cv_search_tgetent+:} false; then : + +else + ac_cv_search_tgetent=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 +$as_echo "$ac_cv_search_tgetent" >&6; } +ac_res=$ac_cv_search_tgetent +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 +$as_echo_n "checking for library containing readline... " >&6; } +if ${ac_cv_search_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +for ac_lib in '' readline; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_readline=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_readline+:} false; then : + break +fi +done +if ${ac_cv_search_readline+:} false; then : + +else + ac_cv_search_readline=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 +$as_echo "$ac_cv_search_readline" >&6; } +ac_res=$ac_cv_search_readline +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" +if test "x$ac_cv_header_readline_readline_h" = xyes; then : + + have_readline=yes + +else + + if [ "$with_readline" = yes ]; then + as_fn_error $? "unable to use libreadline - readline/readline.h not found or not compilable." "$LINENO" 5 + fi + +fi + + + +else + + if [ "$with_readline" = yes ]; then + as_fn_error $? "unable to link libreadline - the library is not installed on this system." "$LINENO" 5 + fi + +fi + + +else + + if [ "$with_readline" = yes ]; then + as_fn_error $? "unable to properly link libreadline - a library \ +providing termcap functionality is not found. Try installing one of ncursew, \ +ncurses, curses, termcap." "$LINENO" 5 + fi + +fi + + with_readline=$have_readline +fi + +if [ "$with_readline" = yes ]; then + +$as_echo "@%:@define MONITOR_READLINE 1" >>confdefs.h + +fi + + +@%:@ Check whether --with-opengl was given. +if test "${with_opengl+set}" = set; then : + withval=$with_opengl; +else + with_opengl=check +fi + + +if [ "$a8_target" != default -o "$with_video" != sdl ]; then + if [ "$with_opengl" = "yes" ]; then + as_fn_error $? "option --with-opengl only supported with --target=default --with-video=sdl!" "$LINENO" 5 + fi + with_opengl=no +fi + +if [ "$with_opengl" != no ]; then + have_opengl=no + ac_fn_c_check_header_mongrel "$LINENO" "SDL_opengl.h" "ac_cv_header_SDL_opengl_h" "$ac_includes_default" +if test "x$ac_cv_header_SDL_opengl_h" = xyes; then : + + have_opengl=yes + +else + + if [ "$with_opengl" = yes ]; then + as_fn_error $? "unable to use OpenGL - SDL_opengl.h not found or not compilable." "$LINENO" 5 + fi + +fi + + + with_opengl=$have_opengl +fi + +if [ "$with_opengl" = "yes" ]; then + +$as_echo "@%:@define HAVE_OPENGL 1" >>confdefs.h + + OBJS="$OBJS sdl/video_gl.o" +fi + + +if [ "$a8_host" = "falcon" -a "$a8_target" = "falcon" ]; then + + @%:@ Check whether --enable-falconcpuasm was given. +if test "${enable_falconcpuasm+set}" = set; then : + enableval=$enable_falconcpuasm; WANT_FALCON_CPUASM=$enableval +else + WANT_FALCON_CPUASM=no +fi + + if [ "$WANT_FALCON_CPUASM" = "yes" ]; then + +$as_echo "@%:@define FALCON_CPUASM 1" >>confdefs.h + + fi + + if [ "$WANT_FALCON_CPUASM" = "yes" ]; then + OBJS="$OBJS cpu_m68k.o" + fi +fi + +if [ "$a8_host" = "linux" ]; then + case "$a8_target" in + x11*) + + @%:@ Check whether --enable-linuxjoystick was given. +if test "${enable_linuxjoystick+set}" = set; then : + enableval=$enable_linuxjoystick; WANT_LINUX_JOYSTICK=$enableval +else + WANT_LINUX_JOYSTICK=yes +fi + + if [ "$WANT_LINUX_JOYSTICK" = "yes" ]; then + +$as_echo "@%:@define LINUX_JOYSTICK 1" >>confdefs.h + + fi + + esac +fi + +if [ "$a8_target" = "windx" ]; then + + @%:@ Check whether --enable-cursorblock was given. +if test "${enable_cursorblock+set}" = set; then : + enableval=$enable_cursorblock; WANT_USE_CURSORBLOCK=$enableval +else + WANT_USE_CURSORBLOCK=no +fi + + if [ "$WANT_USE_CURSORBLOCK" = "yes" ]; then + +$as_echo "@%:@define USE_CURSORBLOCK 1" >>confdefs.h + + fi + +fi + +if [ "$WANT_XEP80_EMULATION" = "yes" ]; then + +$as_echo "@%:@define XEP80_EMULATION 1" >>confdefs.h + + OBJS="$OBJS xep80.o xep80_fonts.o" +fi + +if [ "$WANT_NTSC_FILTER" = "yes" ]; then + +$as_echo "@%:@define NTSC_FILTER 1" >>confdefs.h + + OBJS="$OBJS filter_ntsc.o atari_ntsc/atari_ntsc.o" +fi + +if [ "$WANT_PAL_BLENDING" = "yes" ]; then + +$as_echo "@%:@define PAL_BLENDING 1" >>confdefs.h + + OBJS="$OBJS pal_blending.o" + +fi + +if [ "$SUPPORTS_RDEVICE" = "yes" ]; then + + @%:@ Check whether --enable-riodevice was given. +if test "${enable_riodevice+set}" = set; then : + enableval=$enable_riodevice; WANT_R_IO_DEVICE=$enableval +else + WANT_R_IO_DEVICE=no +fi + + if [ "$WANT_R_IO_DEVICE" = "yes" ]; then + +$as_echo "@%:@define R_IO_DEVICE 1" >>confdefs.h + + fi + + if [ "$WANT_R_IO_DEVICE" = "yes" ]; then + OBJS="$OBJS rdevice.o" + + @%:@ Check whether --enable-rnetwork was given. +if test "${enable_rnetwork+set}" = set; then : + enableval=$enable_rnetwork; WANT_R_NETWORK=$enableval +else + WANT_R_NETWORK=yes +fi + + if [ "$WANT_R_NETWORK" = "yes" ]; then + +$as_echo "@%:@define R_NETWORK 1" >>confdefs.h + + fi + + if [ "$a8_host" != "win" ]; then + + @%:@ Check whether --enable-rserial was given. +if test "${enable_rserial+set}" = set; then : + enableval=$enable_rserial; WANT_R_SERIAL=$enableval +else + WANT_R_SERIAL=yes +fi + + if [ "$WANT_R_SERIAL" = "yes" ]; then + +$as_echo "@%:@define R_SERIAL 1" >>confdefs.h + + fi + + else + as_ac_Lib=`$as_echo "ac_cv_lib_ws2_32''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 +$as_echo_n "checking for main in -lws2_32... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lws2_32 $LIBS" +if test x$ac_no_link = xyes; then + as_fn_error $? "link tests are not allowed after AC@&t@_NO_EXECUTABLES" "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_LIBws2_32" | $as_tr_cpp` 1 +_ACEOF + + LIBS="-lws2_32 $LIBS" + +else + as_fn_error $? "\"ws2_32 library not found!\"" "$LINENO" 5 +fi + + WANT_R_SERIAL="no" + fi + fi +fi + + + + + +CONFIGURE_TARGET="$target" + +CONFIGURE_HOST="$a8_host" + +ac_config_files="$ac_config_files Makefile" + +if [ "$a8_target" = "android" ]; then + ac_config_files="$ac_config_files android/jni/Android.mk" + +fi +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +@%:@ as_fn_executable_p FILE +@%:@ ----------------------- +@%:@ Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} @%:@ as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Atari800 $as_me 3.1.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Atari800 config.status 3.1.0 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "android/jni/Android.mk") CONFIG_FILES="$CONFIG_FILES android/jni/Android.mk" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + + + +echo "-------------------------------------------------------" +echo " CONFIGURATION RESULTS:" +echo "-------------------------------------------------------" +echo "Host OS...............................: $a8_host" +echo "Target ...............................: $a8_target" +echo +if [ "$a8_target" = default ]; then + echo "Interface for video...................: $with_video" + case "$with_video" in + *curses) + echo "Using no bitmap graphics emulation?...: $WANT_CURSES_BASIC" + ;; + esac +fi +if [ "$a8_target" != "default" -o "$with_video" != no ]; then + if [ "$WANT_CURSES_BASIC" != "yes" ]; then + echo "Using cycle exact?....................: $WANT_NEW_CYCLE_EXACT" + echo "Using the very slow computer support?.: $WANT_VERY_SLOW" + fi + echo "Using the crash menu?.................: $WANT_CRASH_MENU" +fi +echo "Using the paged attribute array?......: $WANT_PAGED_ATTRIB" +echo "Using the buffered log?...............: $WANT_BUFFERED_LOG" +echo "Using the monitor assembler?..........: $WANT_MONITOR_ASSEMBLER" +echo "Using code breakpoints and history?...: $WANT_MONITOR_BREAK" +echo "Using user-defined breakpoints?.......: $WANT_MONITOR_BREAKPOINTS" +echo "Using monitor hints?..................: $WANT_MONITOR_HINTS" +echo "Using 6502 opcode profiling?..........: $WANT_MONITOR_PROFILE" +echo "Using TRACE monitor command?..........: $WANT_MONITOR_TRACE" +echo "Using readline support in monitor?....: $with_readline" +echo "Using event recording?................: $WANT_EVENT_RECORDING" +echo "Using MIO emulation?..................: $WANT_PBI_MIO" +echo "Using Black Box emulation?............: $WANT_PBI_BB" +echo "Using IDE emulation?..................: $WANT_IDE" +echo "Interface for sound...................: $with_sound" +if [ "$with_sound" != no ]; then + echo " Using nonlinear mixing?...........: $WANT_NONLINEAR_MIXING" + echo " Using synchronized sound?.........: $WANT_SYNCHRONIZED_SOUND" + echo " Using sound interpolation?........: $WANT_INTERPOLATE_SOUND" + echo " Using stereo sound?...............: $WANT_STEREO_SOUND" + echo " Using volume only sound?..........: $WANT_VOL_ONLY_SOUND" + if [ "$WANT_VOL_ONLY_SOUND" = "yes" ]; then + echo " Using console sound?..........: $WANT_CONSOLE_SOUND" + echo " Using serial I/O sound?.......: $WANT_SERIO_SOUND" + else + echo " (Volume only sound sub-options disabled)" + fi + echo " Using 1400XL/1450XLD emulation?...: $WANT_PBI_XLD" + echo " Using sound clipping?.............: $WANT_CLIP_SOUND" +else + echo " (Sound sub-options disabled)" +fi +if [ "$a8_target" = "falcon" ]; then + echo "Using M68K assembler CPU core?........: $WANT_FALCON_CPUASM" +fi +if [ "$a8_host" = "linux" ]; then + case "$a8_target" in + x11*) + echo "Using Linux joystick?.................: $WANT_LINUX_JOYSTICK" + esac +fi +if [ "$a8_target" = "windx" ]; then + echo "Using cursor/ctrl keys?...............: $WANT_USE_CURSORBLOCK" +fi +if [ "$SUPPORTS_RDEVICE" = "yes" ]; then + echo "Using R: device?......................: $WANT_R_IO_DEVICE" + if [ "$a8_host" != "win" -a "$WANT_R_IO_DEVICE" = "yes" ]; then + echo "Using R: with the host serial port?...: $WANT_R_SERIAL" + echo "Using R: with IP network support......: $WANT_R_NETWORK" + fi +fi +if [ "$a8_target" = default -a "$with_video" = sdl ]; then + echo "Using on-screen keyboard?.............: $WANT_USE_UI_BASIC_ONSCREEN_KEYBOARD" + echo "Using OpenGL?.........................: $with_opengl" +fi +echo +echo "Main build variables:" +echo " CC......: \"$CC\"" +echo " CFLAGS..: \"$CFLAGS\"" +echo " CPPFLAGS: \"$CPPFLAGS\"" +echo " LDFLAGS.: \"$LDFLAGS\"" +echo " OBJS....: \"$OBJS\"" +echo " LIBS....: \"$LIBS\"" +echo "-------------------------------------------------------" + +if [ "$WANT_VERY_SLOW" = "yes" ]; then + echo + echo "IMPORTANT: --enable-veryslow provides a bit better performance" + echo "only when the compiled atari800 is run with the -refresh option." + if [ "$WANT_MONITOR_BREAK" = "yes" ]; then + echo "It is better to use --disable-monitorbreak." + fi + if [ "$with_sound" != "no" ]; then + echo "Try --without-sound, too." + fi + if [ "$WANT_PAGED_ATTRIB" != "yes" ]; then + echo "Have you tried --enable-pagedattrib ?" + fi +fi + +echo +echo "Now run \"gmake\" or \"make\"." +echo diff --git a/src/autom4te.cache/requests b/src/autom4te.cache/requests new file mode 100644 index 0000000..7e89f89 --- /dev/null +++ b/src/autom4te.cache/requests @@ -0,0 +1,79 @@ +# This file was generated by Autom4te Sun Aug 20 23:09:08 UTC 2017. +# It contains the lists of macros which have been traced. +# It can be safely removed. + +@request = ( + bless( [ + '0', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + 'aclocal.m4', + 'configure.ac' + ], + { + 'AM_PROG_CXX_C_O' => 1, + '_AM_COND_ELSE' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AM_GNU_GETTEXT' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AC_SUBST_TRACE' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AM_CONDITIONAL' => 1, + 'AM_PATH_GUILE' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'AM_PROG_MOC' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AC_FC_FREEFORM' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AH_OUTPUT' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'm4_sinclude' => 1, + 'AM_POT_TOOLS' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'sinclude' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_CONFIG_FILES' => 1, + '_AM_COND_ENDIF' => 1, + 'AM_NLS' => 1, + 'include' => 1, + 'AM_PROG_AR' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'm4_include' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_SUBST' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AM_INIT_AUTOMAKE' => 1, + '_AM_COND_IF' => 1, + 'AC_INIT' => 1, + '_m4_warn' => 1, + 'LT_INIT' => 1, + 'm4_pattern_forbid' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'm4_pattern_allow' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AC_FC_SRCEXT' => 1 + } + ], 'Autom4te::Request' ) + ); + diff --git a/src/autom4te.cache/traces.0 b/src/autom4te.cache/traces.0 new file mode 100644 index 0000000..5a925a0 --- /dev/null +++ b/src/autom4te.cache/traces.0 @@ -0,0 +1,1253 @@ +m4trace:configure.ac:24: -1- AC_INIT([Atari800], [3.1.0], [pstehlik@sophics.cz]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:24: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:24: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:24: -1- AC_SUBST([SHELL]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([SHELL]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:24: -1- AC_SUBST([PATH_SEPARATOR]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:24: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PACKAGE_NAME]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:24: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:24: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:24: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PACKAGE_STRING]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:24: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:24: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([PACKAGE_URL]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:24: -1- AC_SUBST([exec_prefix], [NONE]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([exec_prefix]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:24: -1- AC_SUBST([prefix], [NONE]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:24: -1- AC_SUBST([program_transform_name], [s,x,x,]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([program_transform_name]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:24: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([bindir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:24: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([sbindir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:24: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([libexecdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([datarootdir], ['${prefix}/share']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([datarootdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([datadir], ['${datarootdir}']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([datadir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:24: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([sysconfdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([sharedstatedir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:24: -1- AC_SUBST([localstatedir], ['${prefix}/var']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([localstatedir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:24: -1- AC_SUBST([runstatedir], ['${localstatedir}/run']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([runstatedir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^runstatedir$]) +m4trace:configure.ac:24: -1- AC_SUBST([includedir], ['${prefix}/include']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([includedir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:24: -1- AC_SUBST([oldincludedir], ['/usr/include']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([oldincludedir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:24: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], + ['${datarootdir}/doc/${PACKAGE}'])]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([docdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([infodir], ['${datarootdir}/info']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([infodir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:24: -1- AC_SUBST([htmldir], ['${docdir}']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([htmldir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:24: -1- AC_SUBST([dvidir], ['${docdir}']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([dvidir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:24: -1- AC_SUBST([pdfdir], ['${docdir}']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([pdfdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([psdir], ['${docdir}']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([psdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([libdir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:24: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([localedir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:24: -1- AC_SUBST([mandir], ['${datarootdir}/man']) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([mandir]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:24: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:24: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ +@%:@undef PACKAGE_TARNAME]) +m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:24: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:24: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:24: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:24: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:24: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:24: -1- AC_SUBST([ECHO_C]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([ECHO_C]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:24: -1- AC_SUBST([ECHO_N]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([ECHO_N]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:24: -1- AC_SUBST([ECHO_T]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([ECHO_T]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:24: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:24: -1- AC_SUBST([build_alias]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([build_alias]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:24: -1- AC_SUBST([host_alias]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([host_alias]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:24: -1- AC_SUBST([target_alias]) +m4trace:configure.ac:24: -1- AC_SUBST_TRACE([target_alias]) +m4trace:configure.ac:24: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:26: -1- AC_CONFIG_HEADERS([config.h]) +m4trace:configure.ac:64: -1- AC_CANONICAL_BUILD +m4trace:configure.ac:64: -1- AC_REQUIRE_AUX_FILE([config.sub]) +m4trace:configure.ac:64: -1- AC_REQUIRE_AUX_FILE([config.guess]) +m4trace:configure.ac:64: -1- AC_SUBST([build], [$ac_cv_build]) +m4trace:configure.ac:64: -1- AC_SUBST_TRACE([build]) +m4trace:configure.ac:64: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:64: -1- AC_SUBST([build_cpu], [$[1]]) +m4trace:configure.ac:64: -1- AC_SUBST_TRACE([build_cpu]) +m4trace:configure.ac:64: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:64: -1- AC_SUBST([build_vendor], [$[2]]) +m4trace:configure.ac:64: -1- AC_SUBST_TRACE([build_vendor]) +m4trace:configure.ac:64: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:64: -1- AC_SUBST([build_os]) +m4trace:configure.ac:64: -1- AC_SUBST_TRACE([build_os]) +m4trace:configure.ac:64: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:70: -1- AC_CANONICAL_HOST +m4trace:configure.ac:70: -1- AC_SUBST([host], [$ac_cv_host]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([host]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:70: -1- AC_SUBST([host_cpu], [$[1]]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([host_cpu]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:70: -1- AC_SUBST([host_vendor], [$[2]]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([host_vendor]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:70: -1- AC_SUBST([host_os]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([host_os]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:86: -1- AC_DEFINE_TRACE_LITERAL([DIR_SEP_BACKSLASH]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^DIR_SEP_BACKSLASH$]) +m4trace:configure.ac:86: -1- AH_OUTPUT([DIR_SEP_BACKSLASH], [/* Define to use back slash as directory separator. */ +@%:@undef DIR_SEP_BACKSLASH]) +m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([DOS_DRIVES]) +m4trace:configure.ac:87: -1- m4_pattern_allow([^DOS_DRIVES$]) +m4trace:configure.ac:87: -1- AH_OUTPUT([DOS_DRIVES], [/* Define to enable DOS style drives support. */ +@%:@undef DOS_DRIVES]) +m4trace:configure.ac:91: -1- AC_DEFINE_TRACE_LITERAL([DIR_SEP_BACKSLASH]) +m4trace:configure.ac:91: -1- m4_pattern_allow([^DIR_SEP_BACKSLASH$]) +m4trace:configure.ac:91: -1- AH_OUTPUT([DIR_SEP_BACKSLASH], [/* Define to use back slash as directory separator. */ +@%:@undef DIR_SEP_BACKSLASH]) +m4trace:configure.ac:92: -1- AC_DEFINE_TRACE_LITERAL([DEFAULT_CFG_NAME]) +m4trace:configure.ac:92: -1- m4_pattern_allow([^DEFAULT_CFG_NAME$]) +m4trace:configure.ac:92: -1- AH_OUTPUT([DEFAULT_CFG_NAME], [/* Alternate config filename due to 8+3 fs limit. */ +@%:@undef DEFAULT_CFG_NAME]) +m4trace:configure.ac:93: -1- AC_DEFINE_TRACE_LITERAL([DOS_DRIVES]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^DOS_DRIVES$]) +m4trace:configure.ac:93: -1- AH_OUTPUT([DOS_DRIVES], [/* Define to enable DOS style drives support. */ +@%:@undef DOS_DRIVES]) +m4trace:configure.ac:94: -1- AC_DEFINE_TRACE_LITERAL([SYSTEM_WIDE_CFG_FILE]) +m4trace:configure.ac:94: -1- m4_pattern_allow([^SYSTEM_WIDE_CFG_FILE$]) +m4trace:configure.ac:94: -1- AH_OUTPUT([SYSTEM_WIDE_CFG_FILE], [/* Alternate system-wide config file for non-Unix OS. */ +@%:@undef SYSTEM_WIDE_CFG_FILE]) +m4trace:configure.ac:101: -1- AC_DEFINE_TRACE_LITERAL([DIR_SEP_BACKSLASH]) +m4trace:configure.ac:101: -1- m4_pattern_allow([^DIR_SEP_BACKSLASH$]) +m4trace:configure.ac:101: -1- AH_OUTPUT([DIR_SEP_BACKSLASH], [/* Define to use back slash as directory separator. */ +@%:@undef DIR_SEP_BACKSLASH]) +m4trace:configure.ac:102: -1- AC_DEFINE_TRACE_LITERAL([DEFAULT_CFG_NAME]) +m4trace:configure.ac:102: -1- m4_pattern_allow([^DEFAULT_CFG_NAME$]) +m4trace:configure.ac:102: -1- AH_OUTPUT([DEFAULT_CFG_NAME], [/* Alternate config filename due to 8+3 fs limit. */ +@%:@undef DEFAULT_CFG_NAME]) +m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([DOS_DRIVES]) +m4trace:configure.ac:103: -1- m4_pattern_allow([^DOS_DRIVES$]) +m4trace:configure.ac:103: -1- AH_OUTPUT([DOS_DRIVES], [/* Define to enable DOS style drives support. */ +@%:@undef DOS_DRIVES]) +m4trace:configure.ac:104: -1- AC_DEFINE_TRACE_LITERAL([SYSTEM_WIDE_CFG_FILE]) +m4trace:configure.ac:104: -1- m4_pattern_allow([^SYSTEM_WIDE_CFG_FILE$]) +m4trace:configure.ac:104: -1- AH_OUTPUT([SYSTEM_WIDE_CFG_FILE], [/* Alternate system-wide config file for non-Unix OS. */ +@%:@undef SYSTEM_WIDE_CFG_FILE]) +m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETTIMEOFDAY]) +m4trace:configure.ac:152: -1- m4_pattern_allow([^HAVE_GETTIMEOFDAY$]) +m4trace:configure.ac:158: -1- AC_SUBST([CC]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:158: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:158: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:158: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:158: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:158: -1- AC_SUBST([CC]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:158: -1- AC_SUBST([CC]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:158: -1- AC_SUBST([CC]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:158: -1- AC_SUBST([CC]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:158: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:158: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:158: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:158: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:158: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:159: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:159: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:159: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:159: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:159: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:159: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:159: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:159: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:159: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:159: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:220: -1- AC_SUBST([XMKMF]) +m4trace:configure.ac:220: -1- AC_SUBST_TRACE([XMKMF]) +m4trace:configure.ac:220: -1- m4_pattern_allow([^XMKMF$]) +m4trace:configure.ac:220: -1- AC_SUBST([CPP]) +m4trace:configure.ac:220: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:220: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:220: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:220: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:220: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:220: -1- AC_SUBST([CPP]) +m4trace:configure.ac:220: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:220: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:234: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DIRENT_H]) +m4trace:configure.ac:234: -1- m4_pattern_allow([^HAVE_DIRENT_H$]) +m4trace:configure.ac:236: -1- AH_OUTPUT([HAVE_DIRENT_H], [/* Define to 1 if you have the header file, and it defines `DIR\'. + */ +@%:@undef HAVE_DIRENT_H]) +m4trace:configure.ac:236: -1- AH_OUTPUT([HAVE_SYS_NDIR_H], [/* Define to 1 if you have the header file, and it defines `DIR\'. + */ +@%:@undef HAVE_SYS_NDIR_H]) +m4trace:configure.ac:236: -1- AH_OUTPUT([HAVE_SYS_DIR_H], [/* Define to 1 if you have the header file, and it defines `DIR\'. + */ +@%:@undef HAVE_SYS_DIR_H]) +m4trace:configure.ac:236: -1- AH_OUTPUT([HAVE_NDIR_H], [/* Define to 1 if you have the header file, and it defines `DIR\'. */ +@%:@undef HAVE_NDIR_H]) +m4trace:configure.ac:238: -1- AC_SUBST([GREP]) +m4trace:configure.ac:238: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:238: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:238: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:238: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:238: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME]) +m4trace:configure.ac:239: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) +m4trace:configure.ac:239: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both and . */ +@%:@undef TIME_WITH_SYS_TIME]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_DIRECT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_DIRECT_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_ERRNO_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_ERRNO_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_FILE_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_FILE_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_SIGNAL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SIGNAL_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TIME_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_TIME_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_TIME_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_UNIXIO_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNIXIO_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TYPES_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_STAT_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_MEMORY_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_INTTYPES_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDINT_H]) +m4trace:configure.ac:240: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:242: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_FCNTL_H]) +m4trace:configure.ac:242: -1- AH_OUTPUT([HAVE_SYS_IOCTL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_IOCTL_H]) +m4trace:configure.ac:242: -1- AH_OUTPUT([HAVE_SYS_SOUNDCARD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SOUNDCARD_H]) +m4trace:configure.ac:245: -1- AH_OUTPUT([HAVE_WINDOWS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_WINDOWS_H]) +m4trace:configure.ac:245: -1- AH_OUTPUT([HAVE_WINSOCK2_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_WINSOCK2_H]) +m4trace:configure.ac:247: -1- AH_OUTPUT([HAVE_ARPA_INET_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_ARPA_INET_H]) +m4trace:configure.ac:247: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_NETDB_H]) +m4trace:configure.ac:247: -1- AH_OUTPUT([HAVE_NETINET_IN_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_NETINET_IN_H]) +m4trace:configure.ac:247: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SOCKET_H]) +m4trace:configure.ac:247: -1- AH_OUTPUT([HAVE_TERMIOS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_TERMIOS_H]) +m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_LIBZ$]) +m4trace:configure.ac:260: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the `z\' library (-lz). */ +@%:@undef HAVE_LIBZ]) +m4trace:configure.ac:260: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ]) +m4trace:configure.ac:260: -1- m4_pattern_allow([^HAVE_LIBZ$]) +m4trace:configure.ac:261: -1- AH_OUTPUT([HAVE_LIBPNG], [/* Define to 1 if you have the `png\' library (-lpng). */ +@%:@undef HAVE_LIBPNG]) +m4trace:configure.ac:261: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPNG]) +m4trace:configure.ac:261: -1- m4_pattern_allow([^HAVE_LIBPNG$]) +m4trace:configure.ac:284: -1- AC_DEFINE_TRACE_LITERAL([FALCON]) +m4trace:configure.ac:284: -1- m4_pattern_allow([^FALCON$]) +m4trace:configure.ac:284: -1- AH_OUTPUT([FALCON], [/* Target: Atari Falcon system. */ +@%:@undef FALCON]) +m4trace:configure.ac:285: -1- AH_OUTPUT([HAVE_LIBGEM], [/* Define to 1 if you have the `gem\' library (-lgem). */ +@%:@undef HAVE_LIBGEM]) +m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBGEM]) +m4trace:configure.ac:285: -1- m4_pattern_allow([^HAVE_LIBGEM$]) +m4trace:configure.ac:289: -1- AC_DEFINE_TRACE_LITERAL([PS2]) +m4trace:configure.ac:289: -1- m4_pattern_allow([^PS2$]) +m4trace:configure.ac:289: -1- AH_OUTPUT([PS2], [/* Target: Sony PlayStation 2. */ +@%:@undef PS2]) +m4trace:configure.ac:290: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_SLEEP]) +m4trace:configure.ac:290: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_SLEEP$]) +m4trace:configure.ac:290: -1- AH_OUTPUT([SUPPORTS_PLATFORM_SLEEP], [/* Platform-specific sleep function. */ +@%:@undef SUPPORTS_PLATFORM_SLEEP]) +m4trace:configure.ac:291: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_TIME]) +m4trace:configure.ac:291: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_TIME$]) +m4trace:configure.ac:291: -1- AH_OUTPUT([SUPPORTS_PLATFORM_TIME], [/* Platform-specific time function. */ +@%:@undef SUPPORTS_PLATFORM_TIME]) +m4trace:configure.ac:292: -1- AC_DEFINE_TRACE_LITERAL([DEFAULT_CFG_NAME]) +m4trace:configure.ac:292: -1- m4_pattern_allow([^DEFAULT_CFG_NAME$]) +m4trace:configure.ac:292: -1- AH_OUTPUT([DEFAULT_CFG_NAME], [/* Alternate config filename due to 8+3 fs limit. */ +@%:@undef DEFAULT_CFG_NAME]) +m4trace:configure.ac:308: -1- AC_DEFINE_TRACE_LITERAL([RPI]) +m4trace:configure.ac:308: -1- m4_pattern_allow([^RPI$]) +m4trace:configure.ac:308: -1- AH_OUTPUT([RPI], [/* Target: Raspberry Pi. */ +@%:@undef RPI]) +m4trace:configure.ac:309: -1- AC_DEFINE_TRACE_LITERAL([GUI_SDL]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^GUI_SDL$]) +m4trace:configure.ac:309: -1- AH_OUTPUT([GUI_SDL], [/* Use SDL for graphics and input. */ +@%:@undef GUI_SDL]) +m4trace:configure.ac:310: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:310: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGURE$]) +m4trace:configure.ac:310: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGURE], [/* Additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:311: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGSAVE]) +m4trace:configure.ac:311: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGSAVE$]) +m4trace:configure.ac:311: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGSAVE], [/* Save additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGSAVE]) +m4trace:configure.ac:312: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:312: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_PALETTEUPDATE$]) +m4trace:configure.ac:312: -1- AH_OUTPUT([SUPPORTS_PLATFORM_PALETTEUPDATE], [/* Update the Palette if it changed. */ +@%:@undef SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:313: -1- AC_DEFINE_TRACE_LITERAL([PLATFORM_MAP_PALETTE]) +m4trace:configure.ac:313: -1- m4_pattern_allow([^PLATFORM_MAP_PALETTE$]) +m4trace:configure.ac:313: -1- AH_OUTPUT([PLATFORM_MAP_PALETTE], [/* Platform-specific mapping of RGB palette to display surface. */ +@%:@undef PLATFORM_MAP_PALETTE]) +m4trace:configure.ac:321: -1- AC_DEFINE_TRACE_LITERAL([ANDROID]) +m4trace:configure.ac:321: -1- m4_pattern_allow([^ANDROID$]) +m4trace:configure.ac:321: -1- AH_OUTPUT([ANDROID], [/* Target: Android */ +@%:@undef ANDROID]) +m4trace:configure.ac:322: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:322: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_PALETTEUPDATE$]) +m4trace:configure.ac:322: -1- AH_OUTPUT([SUPPORTS_PLATFORM_PALETTEUPDATE], [/* Update the Palette if it changed. */ +@%:@undef SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:323: -1- AC_DEFINE_TRACE_LITERAL([DIRTYRECT]) +m4trace:configure.ac:323: -1- m4_pattern_allow([^DIRTYRECT$]) +m4trace:configure.ac:323: -1- AH_OUTPUT([DIRTYRECT], [/* Define to use dirty screen partial repaints. */ +@%:@undef DIRTYRECT]) +m4trace:configure.ac:327: -1- AC_DEFINE_TRACE_LITERAL([DIRECTX]) +m4trace:configure.ac:327: -1- m4_pattern_allow([^DIRECTX$]) +m4trace:configure.ac:327: -1- AH_OUTPUT([DIRECTX], [/* Target: Windows with DirectX. */ +@%:@undef DIRECTX]) +m4trace:configure.ac:328: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:328: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGURE$]) +m4trace:configure.ac:328: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGURE], [/* Additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:329: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGSAVE]) +m4trace:configure.ac:329: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGSAVE$]) +m4trace:configure.ac:329: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGSAVE], [/* Save additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGSAVE]) +m4trace:configure.ac:330: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:330: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_PALETTEUPDATE$]) +m4trace:configure.ac:330: -1- AH_OUTPUT([SUPPORTS_PLATFORM_PALETTEUPDATE], [/* Update the Palette if it changed. */ +@%:@undef SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:331: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_SOUND_REINIT]) +m4trace:configure.ac:331: -1- m4_pattern_allow([^SUPPORTS_SOUND_REINIT$]) +m4trace:configure.ac:331: -1- AH_OUTPUT([SUPPORTS_SOUND_REINIT], [/* Reinitialise the sound system. */ +@%:@undef SUPPORTS_SOUND_REINIT]) +m4trace:configure.ac:346: -1- AC_DEFINE_TRACE_LITERAL([X11]) +m4trace:configure.ac:346: -1- m4_pattern_allow([^X11$]) +m4trace:configure.ac:346: -1- AH_OUTPUT([X11], [/* Target: Standard X11. */ +@%:@undef X11]) +m4trace:configure.ac:350: -1- AC_DEFINE_TRACE_LITERAL([SHM]) +m4trace:configure.ac:350: -1- m4_pattern_allow([^SHM$]) +m4trace:configure.ac:350: -1- AH_OUTPUT([SHM], [/* Target: X11 with shared memory extensions. */ +@%:@undef SHM]) +m4trace:configure.ac:356: -1- AC_DEFINE_TRACE_LITERAL([XVIEW]) +m4trace:configure.ac:356: -1- m4_pattern_allow([^XVIEW$]) +m4trace:configure.ac:356: -1- AH_OUTPUT([XVIEW], [/* Target: X11 with XView. */ +@%:@undef XVIEW]) +m4trace:configure.ac:366: -1- AC_DEFINE_TRACE_LITERAL([MOTIF]) +m4trace:configure.ac:366: -1- m4_pattern_allow([^MOTIF$]) +m4trace:configure.ac:366: -1- AH_OUTPUT([MOTIF], [/* Target: X11 with Motif. */ +@%:@undef MOTIF]) +m4trace:configure.ac:389: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif]) +m4trace:configure.ac:389: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) +m4trace:configure.ac:389: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:389: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD]) +m4trace:configure.ac:389: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:389: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */ +@%:@undef AC_APPLE_UNIVERSAL_BUILD]) +m4trace:configure.ac:390: -1- AC_DEFINE_TRACE_LITERAL([const]) +m4trace:configure.ac:390: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:390: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */ +@%:@undef const]) +m4trace:configure.ac:391: -1- AH_OUTPUT([inline], [/* Define to `__inline__\' or `__inline\' if that\'s what the C compiler + calls it, or to nothing if \'inline\' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif]) +m4trace:configure.ac:392: -1- AC_DEFINE_TRACE_LITERAL([volatile]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^volatile$]) +m4trace:configure.ac:392: -1- AH_OUTPUT([volatile], [/* Define to empty if the keyword `volatile\' does not work. Warning: valid + code using `volatile\' can become incorrect without. Disable with care. */ +@%:@undef volatile]) +m4trace:configure.ac:394: -1- AC_DEFINE_TRACE_LITERAL([TM_IN_SYS_TIME]) +m4trace:configure.ac:394: -1- m4_pattern_allow([^TM_IN_SYS_TIME$]) +m4trace:configure.ac:394: -1- AH_OUTPUT([TM_IN_SYS_TIME], [/* Define to 1 if your declares `struct tm\'. */ +@%:@undef TM_IN_SYS_TIME]) +m4trace:configure.ac:395: -1- _m4_warn([obsolete], [The macro `AC_TYPE_SIGNAL' is obsolete. +You should run autoupdate.], [../../lib/autoconf/types.m4:746: AC_TYPE_SIGNAL is expanded from... +configure.ac:395: the top level]) +m4trace:configure.ac:395: -1- AC_DEFINE_TRACE_LITERAL([RETSIGTYPE]) +m4trace:configure.ac:395: -1- m4_pattern_allow([^RETSIGTYPE$]) +m4trace:configure.ac:395: -1- AH_OUTPUT([RETSIGTYPE], [/* Define as the return type of signal handlers (`int\' or `void\'). */ +@%:@undef RETSIGTYPE]) +m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([size_t]) +m4trace:configure.ac:396: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:396: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ +@%:@undef size_t]) +m4trace:configure.ac:401: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:401: the top level]) +m4trace:configure.ac:450: -1- AC_DEFINE_TRACE_LITERAL([WORDS_UNALIGNED_OK]) +m4trace:configure.ac:450: -1- m4_pattern_allow([^WORDS_UNALIGNED_OK$]) +m4trace:configure.ac:450: -1- AH_OUTPUT([WORDS_UNALIGNED_OK], [/* Define if unaligned word access is ok. */ +@%:@undef WORDS_UNALIGNED_OK]) +m4trace:configure.ac:475: -1- AC_DEFINE_TRACE_LITERAL([CLOSEDIR_VOID]) +m4trace:configure.ac:475: -1- m4_pattern_allow([^CLOSEDIR_VOID$]) +m4trace:configure.ac:475: -1- AH_OUTPUT([CLOSEDIR_VOID], [/* Define to 1 if the `closedir\' function returns void instead of `int\'. */ +@%:@undef CLOSEDIR_VOID]) +m4trace:configure.ac:476: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS memcmp.$ac_objext"]) +m4trace:configure.ac:476: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:476: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:476: -1- AC_LIBSOURCE([memcmp.c]) +m4trace:configure.ac:477: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SELECT_H]) +m4trace:configure.ac:477: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SOCKET_H]) +m4trace:configure.ac:477: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG1]) +m4trace:configure.ac:477: -1- m4_pattern_allow([^SELECT_TYPE_ARG1$]) +m4trace:configure.ac:477: -1- AH_OUTPUT([SELECT_TYPE_ARG1], [/* Define to the type of arg 1 for `select\'. */ +@%:@undef SELECT_TYPE_ARG1]) +m4trace:configure.ac:477: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG234]) +m4trace:configure.ac:477: -1- m4_pattern_allow([^SELECT_TYPE_ARG234$]) +m4trace:configure.ac:477: -1- AH_OUTPUT([SELECT_TYPE_ARG234], [/* Define to the type of args 2, 3 and 4 for `select\'. */ +@%:@undef SELECT_TYPE_ARG234]) +m4trace:configure.ac:477: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG5]) +m4trace:configure.ac:477: -1- m4_pattern_allow([^SELECT_TYPE_ARG5$]) +m4trace:configure.ac:477: -1- AH_OUTPUT([SELECT_TYPE_ARG5], [/* Define to the type of arg 5 for `select\'. */ +@%:@undef SELECT_TYPE_ARG5]) +m4trace:configure.ac:478: -1- AC_DEFINE_TRACE_LITERAL([LSTAT_FOLLOWS_SLASHED_SYMLINK]) +m4trace:configure.ac:478: -1- m4_pattern_allow([^LSTAT_FOLLOWS_SLASHED_SYMLINK$]) +m4trace:configure.ac:478: -1- AH_OUTPUT([LSTAT_FOLLOWS_SLASHED_SYMLINK], [/* Define to 1 if `lstat\' dereferences a symlink specified with a trailing + slash. */ +@%:@undef LSTAT_FOLLOWS_SLASHED_SYMLINK]) +m4trace:configure.ac:478: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS lstat.$ac_objext"]) +m4trace:configure.ac:478: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:478: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:478: -1- AC_LIBSOURCE([lstat.c]) +m4trace:configure.ac:478: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS stat.$ac_objext"]) +m4trace:configure.ac:478: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:478: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:478: -1- AC_LIBSOURCE([stat.c]) +m4trace:configure.ac:478: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STAT_EMPTY_STRING_BUG]) +m4trace:configure.ac:478: -1- m4_pattern_allow([^HAVE_STAT_EMPTY_STRING_BUG$]) +m4trace:configure.ac:478: -1- AH_OUTPUT([HAVE_STAT_EMPTY_STRING_BUG], [/* Define to 1 if `stat\' has the bug that it succeeds when given the + zero-length file name argument. */ +@%:@undef HAVE_STAT_EMPTY_STRING_BUG]) +m4trace:configure.ac:481: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VPRINTF]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^HAVE_VPRINTF$]) +m4trace:configure.ac:481: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ATEXIT]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^HAVE_ATEXIT$]) +m4trace:configure.ac:481: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CHMOD]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^HAVE_CHMOD$]) +m4trace:configure.ac:481: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FDOPEN]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^HAVE_FDOPEN$]) +m4trace:configure.ac:482: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FFLUSH]) +m4trace:configure.ac:482: -1- m4_pattern_allow([^HAVE_FFLUSH$]) +m4trace:configure.ac:482: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FLOOR]) +m4trace:configure.ac:482: -1- m4_pattern_allow([^HAVE_FLOOR$]) +m4trace:configure.ac:482: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FSTAT]) +m4trace:configure.ac:482: -1- m4_pattern_allow([^HAVE_FSTAT$]) +m4trace:configure.ac:482: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETCWD]) +m4trace:configure.ac:482: -1- m4_pattern_allow([^HAVE_GETCWD$]) +m4trace:configure.ac:483: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETTIMEOFDAY]) +m4trace:configure.ac:483: -1- m4_pattern_allow([^HAVE_GETTIMEOFDAY$]) +m4trace:configure.ac:483: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LOCALTIME]) +m4trace:configure.ac:483: -1- m4_pattern_allow([^HAVE_LOCALTIME$]) +m4trace:configure.ac:483: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MEMMOVE]) +m4trace:configure.ac:483: -1- m4_pattern_allow([^HAVE_MEMMOVE$]) +m4trace:configure.ac:483: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MEMSET]) +m4trace:configure.ac:483: -1- m4_pattern_allow([^HAVE_MEMSET$]) +m4trace:configure.ac:484: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MKSTEMP]) +m4trace:configure.ac:484: -1- m4_pattern_allow([^HAVE_MKSTEMP$]) +m4trace:configure.ac:484: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MKTEMP]) +m4trace:configure.ac:484: -1- m4_pattern_allow([^HAVE_MKTEMP$]) +m4trace:configure.ac:484: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MODF]) +m4trace:configure.ac:484: -1- m4_pattern_allow([^HAVE_MODF$]) +m4trace:configure.ac:484: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NANOSLEEP]) +m4trace:configure.ac:484: -1- m4_pattern_allow([^HAVE_NANOSLEEP$]) +m4trace:configure.ac:485: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OPENDIR]) +m4trace:configure.ac:485: -1- m4_pattern_allow([^HAVE_OPENDIR$]) +m4trace:configure.ac:485: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RENAME]) +m4trace:configure.ac:485: -1- m4_pattern_allow([^HAVE_RENAME$]) +m4trace:configure.ac:485: -1- AC_DEFINE_TRACE_LITERAL([HAVE_REWIND]) +m4trace:configure.ac:485: -1- m4_pattern_allow([^HAVE_REWIND$]) +m4trace:configure.ac:485: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RMDIR]) +m4trace:configure.ac:485: -1- m4_pattern_allow([^HAVE_RMDIR$]) +m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIGNAL]) +m4trace:configure.ac:486: -1- m4_pattern_allow([^HAVE_SIGNAL$]) +m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SNPRINTF]) +m4trace:configure.ac:486: -1- m4_pattern_allow([^HAVE_SNPRINTF$]) +m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STAT]) +m4trace:configure.ac:486: -1- m4_pattern_allow([^HAVE_STAT$]) +m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRCASECMP]) +m4trace:configure.ac:486: -1- m4_pattern_allow([^HAVE_STRCASECMP$]) +m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRCHR]) +m4trace:configure.ac:487: -1- m4_pattern_allow([^HAVE_STRCHR$]) +m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRDUP]) +m4trace:configure.ac:487: -1- m4_pattern_allow([^HAVE_STRDUP$]) +m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRERROR]) +m4trace:configure.ac:487: -1- m4_pattern_allow([^HAVE_STRERROR$]) +m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRRCHR]) +m4trace:configure.ac:487: -1- m4_pattern_allow([^HAVE_STRRCHR$]) +m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRSTR]) +m4trace:configure.ac:488: -1- m4_pattern_allow([^HAVE_STRSTR$]) +m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRTOL]) +m4trace:configure.ac:488: -1- m4_pattern_allow([^HAVE_STRTOL$]) +m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYSTEM]) +m4trace:configure.ac:488: -1- m4_pattern_allow([^HAVE_SYSTEM$]) +m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME]) +m4trace:configure.ac:488: -1- m4_pattern_allow([^HAVE_TIME$]) +m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TMPNAM]) +m4trace:configure.ac:489: -1- m4_pattern_allow([^HAVE_TMPNAM$]) +m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UCLOCK]) +m4trace:configure.ac:489: -1- m4_pattern_allow([^HAVE_UCLOCK$]) +m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UNLINK]) +m4trace:configure.ac:489: -1- m4_pattern_allow([^HAVE_UNLINK$]) +m4trace:configure.ac:490: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VSNPRINTF]) +m4trace:configure.ac:490: -1- m4_pattern_allow([^HAVE_VSNPRINTF$]) +m4trace:configure.ac:490: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MKDIR]) +m4trace:configure.ac:490: -1- m4_pattern_allow([^HAVE_MKDIR$]) +m4trace:configure.ac:491: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SELECT]) +m4trace:configure.ac:491: -1- m4_pattern_allow([^HAVE_SELECT$]) +m4trace:configure.ac:491: -1- AC_DEFINE_TRACE_LITERAL([HAVE_USLEEP]) +m4trace:configure.ac:491: -1- m4_pattern_allow([^HAVE_USLEEP$]) +m4trace:configure.ac:491: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRNCPY]) +m4trace:configure.ac:491: -1- m4_pattern_allow([^HAVE_STRNCPY$]) +m4trace:configure.ac:494: -1- AH_OUTPUT([HAVE_VPRINTF], [/* Define to 1 if you have the `vprintf\' function. */ +@%:@undef HAVE_VPRINTF]) +m4trace:configure.ac:494: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VPRINTF]) +m4trace:configure.ac:494: -1- m4_pattern_allow([^HAVE_VPRINTF$]) +m4trace:configure.ac:494: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DOPRNT]) +m4trace:configure.ac:494: -1- m4_pattern_allow([^HAVE_DOPRNT$]) +m4trace:configure.ac:494: -1- AH_OUTPUT([HAVE_DOPRNT], [/* Define to 1 if you don\'t have `vprintf\' but do have `_doprnt.\' */ +@%:@undef HAVE_DOPRNT]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_ATEXIT], [/* Define to 1 if you have the `atexit\' function. */ +@%:@undef HAVE_ATEXIT]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_CHMOD], [/* Define to 1 if you have the `chmod\' function. */ +@%:@undef HAVE_CHMOD]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_CLOCK], [/* Define to 1 if you have the `clock\' function. */ +@%:@undef HAVE_CLOCK]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_FDOPEN], [/* Define to 1 if you have the `fdopen\' function. */ +@%:@undef HAVE_FDOPEN]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_FFLUSH], [/* Define to 1 if you have the `fflush\' function. */ +@%:@undef HAVE_FFLUSH]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_FLOOR], [/* Define to 1 if you have the `floor\' function. */ +@%:@undef HAVE_FLOOR]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_FSTAT], [/* Define to 1 if you have the `fstat\' function. */ +@%:@undef HAVE_FSTAT]) +m4trace:configure.ac:495: -1- AH_OUTPUT([HAVE_GETCWD], [/* Define to 1 if you have the `getcwd\' function. */ +@%:@undef HAVE_GETCWD]) +m4trace:configure.ac:496: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the `gettimeofday\' function. */ +@%:@undef HAVE_GETTIMEOFDAY]) +m4trace:configure.ac:496: -1- AH_OUTPUT([HAVE_LOCALTIME], [/* Define to 1 if you have the `localtime\' function. */ +@%:@undef HAVE_LOCALTIME]) +m4trace:configure.ac:496: -1- AH_OUTPUT([HAVE_MEMMOVE], [/* Define to 1 if you have the `memmove\' function. */ +@%:@undef HAVE_MEMMOVE]) +m4trace:configure.ac:496: -1- AH_OUTPUT([HAVE_MEMSET], [/* Define to 1 if you have the `memset\' function. */ +@%:@undef HAVE_MEMSET]) +m4trace:configure.ac:496: -1- AH_OUTPUT([HAVE_MKSTEMP], [/* Define to 1 if you have the `mkstemp\' function. */ +@%:@undef HAVE_MKSTEMP]) +m4trace:configure.ac:496: -1- AH_OUTPUT([HAVE_MKTEMP], [/* Define to 1 if you have the `mktemp\' function. */ +@%:@undef HAVE_MKTEMP]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_MODF], [/* Define to 1 if you have the `modf\' function. */ +@%:@undef HAVE_MODF]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_NANOSLEEP], [/* Define to 1 if you have the `nanosleep\' function. */ +@%:@undef HAVE_NANOSLEEP]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_OPENDIR], [/* Define to 1 if you have the `opendir\' function. */ +@%:@undef HAVE_OPENDIR]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_RENAME], [/* Define to 1 if you have the `rename\' function. */ +@%:@undef HAVE_RENAME]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_REWIND], [/* Define to 1 if you have the `rewind\' function. */ +@%:@undef HAVE_REWIND]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_RMDIR], [/* Define to 1 if you have the `rmdir\' function. */ +@%:@undef HAVE_RMDIR]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_SIGNAL], [/* Define to 1 if you have the `signal\' function. */ +@%:@undef HAVE_SIGNAL]) +m4trace:configure.ac:497: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the `snprintf\' function. */ +@%:@undef HAVE_SNPRINTF]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STAT], [/* Define to 1 if you have the `stat\' function. */ +@%:@undef HAVE_STAT]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STRCASECMP], [/* Define to 1 if you have the `strcasecmp\' function. */ +@%:@undef HAVE_STRCASECMP]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STRCHR], [/* Define to 1 if you have the `strchr\' function. */ +@%:@undef HAVE_STRCHR]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STRDUP], [/* Define to 1 if you have the `strdup\' function. */ +@%:@undef HAVE_STRDUP]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the `strerror\' function. */ +@%:@undef HAVE_STRERROR]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STRRCHR], [/* Define to 1 if you have the `strrchr\' function. */ +@%:@undef HAVE_STRRCHR]) +m4trace:configure.ac:498: -1- AH_OUTPUT([HAVE_STRSTR], [/* Define to 1 if you have the `strstr\' function. */ +@%:@undef HAVE_STRSTR]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_STRTOL], [/* Define to 1 if you have the `strtol\' function. */ +@%:@undef HAVE_STRTOL]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_SYSTEM], [/* Define to 1 if you have the `system\' function. */ +@%:@undef HAVE_SYSTEM]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_TIME], [/* Define to 1 if you have the `time\' function. */ +@%:@undef HAVE_TIME]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_TMPFILE], [/* Define to 1 if you have the `tmpfile\' function. */ +@%:@undef HAVE_TMPFILE]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_TMPNAM], [/* Define to 1 if you have the `tmpnam\' function. */ +@%:@undef HAVE_TMPNAM]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_UCLOCK], [/* Define to 1 if you have the `uclock\' function. */ +@%:@undef HAVE_UCLOCK]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_UNLINK], [/* Define to 1 if you have the `unlink\' function. */ +@%:@undef HAVE_UNLINK]) +m4trace:configure.ac:499: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the `vsnprintf\' function. */ +@%:@undef HAVE_VSNPRINTF]) +m4trace:configure.ac:500: -1- AH_OUTPUT([HAVE_MKDIR], [/* Define to 1 if you have the `mkdir\' function. */ +@%:@undef HAVE_MKDIR]) +m4trace:configure.ac:500: -1- AH_OUTPUT([HAVE__MKDIR], [/* Define to 1 if you have the `_mkdir\' function. */ +@%:@undef HAVE__MKDIR]) +m4trace:configure.ac:500: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2625: AC_TRY_COMPILE is expanded from... +../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... +../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from... +../../lib/autoconf/general.m4:2063: AC_CACHE_CHECK is expanded from... +configure.ac:458: AX_FUNC_MKDIR is expanded from... +configure.ac:500: the top level]) +m4trace:configure.ac:500: -1- AC_DEFINE_TRACE_LITERAL([MKDIR_TAKES_ONE_ARG]) +m4trace:configure.ac:500: -1- m4_pattern_allow([^MKDIR_TAKES_ONE_ARG$]) +m4trace:configure.ac:500: -1- AH_OUTPUT([MKDIR_TAKES_ONE_ARG], [/* Define if mkdir takes only one argument. */ +@%:@undef MKDIR_TAKES_ONE_ARG]) +m4trace:configure.ac:503: -1- AH_OUTPUT([HAVE_SELECT], [/* Define to 1 if you have the `select\' function. */ +@%:@undef HAVE_SELECT]) +m4trace:configure.ac:503: -1- AH_OUTPUT([HAVE_USLEEP], [/* Define to 1 if you have the `usleep\' function. */ +@%:@undef HAVE_USLEEP]) +m4trace:configure.ac:503: -1- AH_OUTPUT([HAVE_STRNCPY], [/* Define to 1 if you have the `strncpy\' function. */ +@%:@undef HAVE_STRNCPY]) +m4trace:configure.ac:507: -1- AH_OUTPUT([HAVE_GETHOSTBYADDR], [/* Define to 1 if you have the `gethostbyaddr\' function. */ +@%:@undef HAVE_GETHOSTBYADDR]) +m4trace:configure.ac:507: -1- AH_OUTPUT([HAVE_GETHOSTBYNAME], [/* Define to 1 if you have the `gethostbyname\' function. */ +@%:@undef HAVE_GETHOSTBYNAME]) +m4trace:configure.ac:507: -1- AH_OUTPUT([HAVE_INET_NTOA], [/* Define to 1 if you have the `inet_ntoa\' function. */ +@%:@undef HAVE_INET_NTOA]) +m4trace:configure.ac:507: -1- AH_OUTPUT([HAVE_SOCKET], [/* Define to 1 if you have the `socket\' function. */ +@%:@undef HAVE_SOCKET]) +m4trace:configure.ac:512: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +../../lib/autoconf/general.m4:1492: AC_ARG_WITH is expanded from... +configure.ac:512: the top level]) +m4trace:configure.ac:542: -1- AC_SUBST([SDL_CONFIG]) +m4trace:configure.ac:542: -1- AC_SUBST_TRACE([SDL_CONFIG]) +m4trace:configure.ac:542: -1- m4_pattern_allow([^SDL_CONFIG$]) +m4trace:configure.ac:542: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2775: AC_TRY_RUN is expanded from... +aclocal.m4:15: AM_PATH_SDL is expanded from... +configure.ac:165: TRY_USE_SDL is expanded from... +configure.ac:542: the top level]) +m4trace:configure.ac:542: -1- AC_DEFINE_TRACE_LITERAL([SDL]) +m4trace:configure.ac:542: -1- m4_pattern_allow([^SDL$]) +m4trace:configure.ac:542: -1- AH_OUTPUT([SDL], [/* Target: SDL library. */ +@%:@undef SDL]) +m4trace:configure.ac:542: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_TIME]) +m4trace:configure.ac:542: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_TIME$]) +m4trace:configure.ac:542: -1- AH_OUTPUT([SUPPORTS_PLATFORM_TIME], [/* Platform-specific time function. */ +@%:@undef SUPPORTS_PLATFORM_TIME]) +m4trace:configure.ac:542: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2698: AC_TRY_LINK is expanded from... +aclocal.m4:15: AM_PATH_SDL is expanded from... +configure.ac:165: TRY_USE_SDL is expanded from... +configure.ac:542: the top level]) +m4trace:configure.ac:542: -1- AC_SUBST([SDL_CFLAGS]) +m4trace:configure.ac:542: -1- AC_SUBST_TRACE([SDL_CFLAGS]) +m4trace:configure.ac:542: -1- m4_pattern_allow([^SDL_CFLAGS$]) +m4trace:configure.ac:542: -1- AC_SUBST([SDL_LIBS]) +m4trace:configure.ac:542: -1- AC_SUBST_TRACE([SDL_LIBS]) +m4trace:configure.ac:542: -1- m4_pattern_allow([^SDL_LIBS$]) +m4trace:configure.ac:560: -1- AC_DEFINE_TRACE_LITERAL([USE_NCURSES]) +m4trace:configure.ac:560: -1- m4_pattern_allow([^USE_NCURSES$]) +m4trace:configure.ac:560: -1- AH_OUTPUT([USE_NCURSES], [/* Target: Ncurses library. */ +@%:@undef USE_NCURSES]) +m4trace:configure.ac:586: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:586: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_PALETTEUPDATE$]) +m4trace:configure.ac:586: -1- AH_OUTPUT([SUPPORTS_PLATFORM_PALETTEUPDATE], [/* Update the Palette if it changed. */ +@%:@undef SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:587: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_SLEEP]) +m4trace:configure.ac:587: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_SLEEP$]) +m4trace:configure.ac:587: -1- AH_OUTPUT([SUPPORTS_PLATFORM_SLEEP], [/* Platform-specific sleep function. */ +@%:@undef SUPPORTS_PLATFORM_SLEEP]) +m4trace:configure.ac:591: -1- AC_DEFINE_TRACE_LITERAL([GUI_SDL]) +m4trace:configure.ac:591: -1- m4_pattern_allow([^GUI_SDL$]) +m4trace:configure.ac:591: -1- AH_OUTPUT([GUI_SDL], [/* Use SDL for graphics and input. */ +@%:@undef GUI_SDL]) +m4trace:configure.ac:592: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:592: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGURE$]) +m4trace:configure.ac:592: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGURE], [/* Additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:593: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGSAVE]) +m4trace:configure.ac:593: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGSAVE$]) +m4trace:configure.ac:593: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGSAVE], [/* Save additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGSAVE]) +m4trace:configure.ac:594: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:594: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_PALETTEUPDATE$]) +m4trace:configure.ac:594: -1- AH_OUTPUT([SUPPORTS_PLATFORM_PALETTEUPDATE], [/* Update the Palette if it changed. */ +@%:@undef SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:595: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_CHANGE_VIDEOMODE]) +m4trace:configure.ac:595: -1- m4_pattern_allow([^SUPPORTS_CHANGE_VIDEOMODE$]) +m4trace:configure.ac:595: -1- AH_OUTPUT([SUPPORTS_CHANGE_VIDEOMODE], [/* Can change video modes on the fly. */ +@%:@undef SUPPORTS_CHANGE_VIDEOMODE]) +m4trace:configure.ac:596: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_ROTATE_VIDEOMODE]) +m4trace:configure.ac:596: -1- m4_pattern_allow([^SUPPORTS_ROTATE_VIDEOMODE$]) +m4trace:configure.ac:596: -1- AH_OUTPUT([SUPPORTS_ROTATE_VIDEOMODE], [/* Can display the screen rotated sideways. */ +@%:@undef SUPPORTS_ROTATE_VIDEOMODE]) +m4trace:configure.ac:597: -1- AC_DEFINE_TRACE_LITERAL([PLATFORM_MAP_PALETTE]) +m4trace:configure.ac:597: -1- m4_pattern_allow([^PLATFORM_MAP_PALETTE$]) +m4trace:configure.ac:597: -1- AH_OUTPUT([PLATFORM_MAP_PALETTE], [/* Platform-specific mapping of RGB palette to display surface. */ +@%:@undef PLATFORM_MAP_PALETTE]) +m4trace:configure.ac:602: -1- AC_DEFINE_TRACE_LITERAL([PBI_PROTO80]) +m4trace:configure.ac:602: -1- m4_pattern_allow([^PBI_PROTO80$]) +m4trace:configure.ac:602: -1- AH_OUTPUT([PBI_PROTO80], [/* A prototype 80 column card for the 1090 expansion box. */ +@%:@undef PBI_PROTO80]) +m4trace:configure.ac:604: -1- AC_DEFINE_TRACE_LITERAL([AF80]) +m4trace:configure.ac:604: -1- m4_pattern_allow([^AF80$]) +m4trace:configure.ac:604: -1- AH_OUTPUT([AF80], [/* The Austin Franklin 80 column card. */ +@%:@undef AF80]) +m4trace:configure.ac:608: -1- AC_DEFINE_TRACE_LITERAL([DOSVGA]) +m4trace:configure.ac:608: -1- m4_pattern_allow([^DOSVGA$]) +m4trace:configure.ac:608: -1- AH_OUTPUT([DOSVGA], [/* Target: DOS VGA. */ +@%:@undef DOSVGA]) +m4trace:configure.ac:609: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:609: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_CONFIGURE$]) +m4trace:configure.ac:609: -1- AH_OUTPUT([SUPPORTS_PLATFORM_CONFIGURE], [/* Additional config file options. */ +@%:@undef SUPPORTS_PLATFORM_CONFIGURE]) +m4trace:configure.ac:610: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:610: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_PALETTEUPDATE$]) +m4trace:configure.ac:610: -1- AH_OUTPUT([SUPPORTS_PLATFORM_PALETTEUPDATE], [/* Update the Palette if it changed. */ +@%:@undef SUPPORTS_PLATFORM_PALETTEUPDATE]) +m4trace:configure.ac:614: -1- AC_DEFINE_TRACE_LITERAL([USE_CURSES]) +m4trace:configure.ac:614: -1- m4_pattern_allow([^USE_CURSES$]) +m4trace:configure.ac:614: -1- AH_OUTPUT([USE_CURSES], [/* Target: Curses-compatible library. */ +@%:@undef USE_CURSES]) +m4trace:configure.ac:619: -1- AC_DEFINE_TRACE_LITERAL([BASIC]) +m4trace:configure.ac:619: -1- m4_pattern_allow([^BASIC$]) +m4trace:configure.ac:619: -1- AH_OUTPUT([BASIC], [/* Target: standard I/O. */ +@%:@undef BASIC]) +m4trace:configure.ac:653: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:653: the top level]) +m4trace:configure.ac:653: -1- AC_DEFINE_TRACE_LITERAL([CURSES_BASIC]) +m4trace:configure.ac:653: -1- m4_pattern_allow([^CURSES_BASIC$]) +m4trace:configure.ac:653: -1- AH_OUTPUT([CURSES_BASIC], [/* Define to disable bitmap graphics emulation in CURSES target. */ +@%:@undef CURSES_BASIC]) +m4trace:configure.ac:665: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:665: the top level]) +m4trace:configure.ac:665: -1- AC_DEFINE_TRACE_LITERAL([NEW_CYCLE_EXACT]) +m4trace:configure.ac:665: -1- m4_pattern_allow([^NEW_CYCLE_EXACT$]) +m4trace:configure.ac:665: -1- AH_OUTPUT([NEW_CYCLE_EXACT], [/* Define to allow color changes inside a scanline. */ +@%:@undef NEW_CYCLE_EXACT]) +m4trace:configure.ac:673: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:673: the top level]) +m4trace:configure.ac:673: -1- AC_DEFINE_TRACE_LITERAL([VERY_SLOW]) +m4trace:configure.ac:673: -1- m4_pattern_allow([^VERY_SLOW$]) +m4trace:configure.ac:673: -1- AH_OUTPUT([VERY_SLOW], [/* Define to use very slow computer support (faster -refresh). */ +@%:@undef VERY_SLOW]) +m4trace:configure.ac:680: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:680: the top level]) +m4trace:configure.ac:680: -1- AC_DEFINE_TRACE_LITERAL([CRASH_MENU]) +m4trace:configure.ac:680: -1- m4_pattern_allow([^CRASH_MENU$]) +m4trace:configure.ac:680: -1- AH_OUTPUT([CRASH_MENU], [/* Define to activate crash menu after CIM instruction. */ +@%:@undef CRASH_MENU]) +m4trace:configure.ac:686: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:686: the top level]) +m4trace:configure.ac:686: -1- AC_DEFINE_TRACE_LITERAL([PAGED_ATTRIB]) +m4trace:configure.ac:686: -1- m4_pattern_allow([^PAGED_ATTRIB$]) +m4trace:configure.ac:686: -1- AH_OUTPUT([PAGED_ATTRIB], [/* Define to use page-based attribute array. */ +@%:@undef PAGED_ATTRIB]) +m4trace:configure.ac:691: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:691: the top level]) +m4trace:configure.ac:691: -1- AC_DEFINE_TRACE_LITERAL([BUFFERED_LOG]) +m4trace:configure.ac:691: -1- m4_pattern_allow([^BUFFERED_LOG$]) +m4trace:configure.ac:691: -1- AH_OUTPUT([BUFFERED_LOG], [/* Define to use buffered debug output. */ +@%:@undef BUFFERED_LOG]) +m4trace:configure.ac:696: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:696: the top level]) +m4trace:configure.ac:696: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_ASSEMBLER]) +m4trace:configure.ac:696: -1- m4_pattern_allow([^MONITOR_ASSEMBLER$]) +m4trace:configure.ac:696: -1- AH_OUTPUT([MONITOR_ASSEMBLER], [/* Define to activate assembler in monitor. */ +@%:@undef MONITOR_ASSEMBLER]) +m4trace:configure.ac:701: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:701: the top level]) +m4trace:configure.ac:701: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_BREAK]) +m4trace:configure.ac:701: -1- m4_pattern_allow([^MONITOR_BREAK$]) +m4trace:configure.ac:701: -1- AH_OUTPUT([MONITOR_BREAK], [/* Define to activate code breakpoints and execution history. */ +@%:@undef MONITOR_BREAK]) +m4trace:configure.ac:706: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:706: the top level]) +m4trace:configure.ac:706: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_BREAKPOINTS]) +m4trace:configure.ac:706: -1- m4_pattern_allow([^MONITOR_BREAKPOINTS$]) +m4trace:configure.ac:706: -1- AH_OUTPUT([MONITOR_BREAKPOINTS], [/* Define to activate user-defined breakpoints. */ +@%:@undef MONITOR_BREAKPOINTS]) +m4trace:configure.ac:711: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:711: the top level]) +m4trace:configure.ac:711: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_HINTS]) +m4trace:configure.ac:711: -1- m4_pattern_allow([^MONITOR_HINTS$]) +m4trace:configure.ac:711: -1- AH_OUTPUT([MONITOR_HINTS], [/* Define to activate hints in disassembler. */ +@%:@undef MONITOR_HINTS]) +m4trace:configure.ac:716: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:716: the top level]) +m4trace:configure.ac:716: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_PROFILE]) +m4trace:configure.ac:716: -1- m4_pattern_allow([^MONITOR_PROFILE$]) +m4trace:configure.ac:716: -1- AH_OUTPUT([MONITOR_PROFILE], [/* Define to activate 6502 opcode profiling. */ +@%:@undef MONITOR_PROFILE]) +m4trace:configure.ac:721: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:721: the top level]) +m4trace:configure.ac:721: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_TRACE]) +m4trace:configure.ac:721: -1- m4_pattern_allow([^MONITOR_TRACE$]) +m4trace:configure.ac:721: -1- AH_OUTPUT([MONITOR_TRACE], [/* Define to activate TRACE command in monitor. */ +@%:@undef MONITOR_TRACE]) +m4trace:configure.ac:728: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... +../../lib/autoconf/libs.m4:99: AC_CHECK_LIB is expanded from... +configure.ac:728: the top level]) +m4trace:configure.ac:728: -1- AC_DEFINE_TRACE_LITERAL([EVENT_RECORDING]) +m4trace:configure.ac:728: -1- m4_pattern_allow([^EVENT_RECORDING$]) +m4trace:configure.ac:728: -1- AH_OUTPUT([EVENT_RECORDING], [/* Define to enable event recording. */ +@%:@undef EVENT_RECORDING]) +m4trace:configure.ac:737: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:737: the top level]) +m4trace:configure.ac:737: -1- AC_DEFINE_TRACE_LITERAL([PBI_MIO]) +m4trace:configure.ac:737: -1- m4_pattern_allow([^PBI_MIO$]) +m4trace:configure.ac:737: -1- AH_OUTPUT([PBI_MIO], [/* Define to emulate the MIO board. */ +@%:@undef PBI_MIO]) +m4trace:configure.ac:746: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:746: the top level]) +m4trace:configure.ac:746: -1- AC_DEFINE_TRACE_LITERAL([PBI_BB]) +m4trace:configure.ac:746: -1- m4_pattern_allow([^PBI_BB$]) +m4trace:configure.ac:746: -1- AH_OUTPUT([PBI_BB], [/* Define to emulate the Black Box. */ +@%:@undef PBI_BB]) +m4trace:configure.ac:761: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +../../lib/autoconf/general.m4:1492: AC_ARG_WITH is expanded from... +configure.ac:761: the top level]) +m4trace:configure.ac:808: -1- AC_SUBST([SDL_CONFIG]) +m4trace:configure.ac:808: -1- AC_SUBST_TRACE([SDL_CONFIG]) +m4trace:configure.ac:808: -1- m4_pattern_allow([^SDL_CONFIG$]) +m4trace:configure.ac:808: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2775: AC_TRY_RUN is expanded from... +aclocal.m4:15: AM_PATH_SDL is expanded from... +configure.ac:165: TRY_USE_SDL is expanded from... +configure.ac:808: the top level]) +m4trace:configure.ac:808: -1- AC_DEFINE_TRACE_LITERAL([SDL]) +m4trace:configure.ac:808: -1- m4_pattern_allow([^SDL$]) +m4trace:configure.ac:808: -1- AH_OUTPUT([SDL], [/* Target: SDL library. */ +@%:@undef SDL]) +m4trace:configure.ac:808: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_PLATFORM_TIME]) +m4trace:configure.ac:808: -1- m4_pattern_allow([^SUPPORTS_PLATFORM_TIME$]) +m4trace:configure.ac:808: -1- AH_OUTPUT([SUPPORTS_PLATFORM_TIME], [/* Platform-specific time function. */ +@%:@undef SUPPORTS_PLATFORM_TIME]) +m4trace:configure.ac:808: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2698: AC_TRY_LINK is expanded from... +aclocal.m4:15: AM_PATH_SDL is expanded from... +configure.ac:165: TRY_USE_SDL is expanded from... +configure.ac:808: the top level]) +m4trace:configure.ac:808: -1- AC_SUBST([SDL_CFLAGS]) +m4trace:configure.ac:808: -1- AC_SUBST_TRACE([SDL_CFLAGS]) +m4trace:configure.ac:808: -1- m4_pattern_allow([^SDL_CFLAGS$]) +m4trace:configure.ac:808: -1- AC_SUBST([SDL_LIBS]) +m4trace:configure.ac:808: -1- AC_SUBST_TRACE([SDL_LIBS]) +m4trace:configure.ac:808: -1- m4_pattern_allow([^SDL_LIBS$]) +m4trace:configure.ac:837: -1- AC_DEFINE_TRACE_LITERAL([SUPPORTS_SOUND_REINIT]) +m4trace:configure.ac:837: -1- m4_pattern_allow([^SUPPORTS_SOUND_REINIT$]) +m4trace:configure.ac:837: -1- AH_OUTPUT([SUPPORTS_SOUND_REINIT], [/* Reinitialise the sound system. */ +@%:@undef SUPPORTS_SOUND_REINIT]) +m4trace:configure.ac:864: -1- AC_DEFINE_TRACE_LITERAL([SOUND]) +m4trace:configure.ac:864: -1- m4_pattern_allow([^SOUND$]) +m4trace:configure.ac:864: -1- AH_OUTPUT([SOUND], [/* Define to activate sound support. */ +@%:@undef SOUND]) +m4trace:configure.ac:868: -1- AC_DEFINE_TRACE_LITERAL([SOUND_THIN_API]) +m4trace:configure.ac:868: -1- m4_pattern_allow([^SOUND_THIN_API$]) +m4trace:configure.ac:868: -1- AH_OUTPUT([SOUND_THIN_API], [/* Use new sound API. */ +@%:@undef SOUND_THIN_API]) +m4trace:configure.ac:870: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:870: the top level]) +m4trace:configure.ac:870: -1- AC_DEFINE_TRACE_LITERAL([SYNCHRONIZED_SOUND]) +m4trace:configure.ac:870: -1- m4_pattern_allow([^SYNCHRONIZED_SOUND$]) +m4trace:configure.ac:870: -1- AH_OUTPUT([SYNCHRONIZED_SOUND], [/* Define to use synchronized sound. */ +@%:@undef SYNCHRONIZED_SOUND]) +m4trace:configure.ac:875: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:875: the top level]) +m4trace:configure.ac:875: -1- AC_DEFINE_TRACE_LITERAL([NONLINEAR_MIXING]) +m4trace:configure.ac:875: -1- m4_pattern_allow([^NONLINEAR_MIXING$]) +m4trace:configure.ac:875: -1- AH_OUTPUT([NONLINEAR_MIXING], [/* Define to use nonlinear POKEY mixing. */ +@%:@undef NONLINEAR_MIXING]) +m4trace:configure.ac:880: -1- AC_DEFINE_TRACE_LITERAL([SOUND_CALLBACK]) +m4trace:configure.ac:880: -1- m4_pattern_allow([^SOUND_CALLBACK$]) +m4trace:configure.ac:880: -1- AH_OUTPUT([SOUND_CALLBACK], [/* Platform updates sound buffer by callback function. */ +@%:@undef SOUND_CALLBACK]) +m4trace:configure.ac:884: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:884: the top level]) +m4trace:configure.ac:884: -1- AC_DEFINE_TRACE_LITERAL([NONLINEAR_MIXING]) +m4trace:configure.ac:884: -1- m4_pattern_allow([^NONLINEAR_MIXING$]) +m4trace:configure.ac:884: -1- AH_OUTPUT([NONLINEAR_MIXING], [/* Define to use nonlinear POKEY mixing. */ +@%:@undef NONLINEAR_MIXING]) +m4trace:configure.ac:891: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:891: the top level]) +m4trace:configure.ac:891: -1- AC_DEFINE_TRACE_LITERAL([INTERPOLATE_SOUND]) +m4trace:configure.ac:891: -1- m4_pattern_allow([^INTERPOLATE_SOUND$]) +m4trace:configure.ac:891: -1- AH_OUTPUT([INTERPOLATE_SOUND], [/* Define to allow sound interpolation. */ +@%:@undef INTERPOLATE_SOUND]) +m4trace:configure.ac:896: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:896: the top level]) +m4trace:configure.ac:896: -1- AC_DEFINE_TRACE_LITERAL([STEREO_SOUND]) +m4trace:configure.ac:896: -1- m4_pattern_allow([^STEREO_SOUND$]) +m4trace:configure.ac:896: -1- AH_OUTPUT([STEREO_SOUND], [/* Define to allow stereo sound. */ +@%:@undef STEREO_SOUND]) +m4trace:configure.ac:902: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:902: the top level]) +m4trace:configure.ac:902: -1- AC_DEFINE_TRACE_LITERAL([VOL_ONLY_SOUND]) +m4trace:configure.ac:902: -1- m4_pattern_allow([^VOL_ONLY_SOUND$]) +m4trace:configure.ac:902: -1- AH_OUTPUT([VOL_ONLY_SOUND], [/* Define to allow volume only sound. */ +@%:@undef VOL_ONLY_SOUND]) +m4trace:configure.ac:908: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:908: the top level]) +m4trace:configure.ac:908: -1- AC_DEFINE_TRACE_LITERAL([CONSOLE_SOUND]) +m4trace:configure.ac:908: -1- m4_pattern_allow([^CONSOLE_SOUND$]) +m4trace:configure.ac:908: -1- AH_OUTPUT([CONSOLE_SOUND], [/* Define to allow console sound (keyboard clicks). */ +@%:@undef CONSOLE_SOUND]) +m4trace:configure.ac:912: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:912: the top level]) +m4trace:configure.ac:912: -1- AC_DEFINE_TRACE_LITERAL([SERIO_SOUND]) +m4trace:configure.ac:912: -1- m4_pattern_allow([^SERIO_SOUND$]) +m4trace:configure.ac:912: -1- AH_OUTPUT([SERIO_SOUND], [/* Define to allow serial in/out sound. */ +@%:@undef SERIO_SOUND]) +m4trace:configure.ac:921: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:921: the top level]) +m4trace:configure.ac:921: -1- AC_DEFINE_TRACE_LITERAL([CLIP_SOUND]) +m4trace:configure.ac:921: -1- m4_pattern_allow([^CLIP_SOUND$]) +m4trace:configure.ac:921: -1- AH_OUTPUT([CLIP_SOUND], [/* Define to allow sound clipping. */ +@%:@undef CLIP_SOUND]) +m4trace:configure.ac:925: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:925: the top level]) +m4trace:configure.ac:925: -1- AC_DEFINE_TRACE_LITERAL([PBI_XLD]) +m4trace:configure.ac:925: -1- m4_pattern_allow([^PBI_XLD$]) +m4trace:configure.ac:925: -1- AH_OUTPUT([PBI_XLD], [/* Define to emulate the 1400XL/1450XLD. */ +@%:@undef PBI_XLD]) +m4trace:configure.ac:929: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:929: the top level]) +m4trace:configure.ac:929: -1- AC_DEFINE_TRACE_LITERAL([VOICEBOX]) +m4trace:configure.ac:929: -1- m4_pattern_allow([^VOICEBOX$]) +m4trace:configure.ac:929: -1- AH_OUTPUT([VOICEBOX], [/* Define to emulate the Alien Group Voice Box. */ +@%:@undef VOICEBOX]) +m4trace:configure.ac:954: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:954: the top level]) +m4trace:configure.ac:954: -1- AC_DEFINE_TRACE_LITERAL([IDE]) +m4trace:configure.ac:954: -1- m4_pattern_allow([^IDE$]) +m4trace:configure.ac:954: -1- AH_OUTPUT([IDE], [/* Define to add IDE harddisk emulation. */ +@%:@undef IDE]) +m4trace:configure.ac:959: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS]) +m4trace:configure.ac:959: -1- m4_pattern_allow([^_FILE_OFFSET_BITS$]) +m4trace:configure.ac:959: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */ +@%:@undef _FILE_OFFSET_BITS]) +m4trace:configure.ac:959: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES]) +m4trace:configure.ac:959: -1- m4_pattern_allow([^_LARGE_FILES$]) +m4trace:configure.ac:959: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */ +@%:@undef _LARGE_FILES]) +m4trace:configure.ac:959: -1- AH_OUTPUT([_DARWIN_USE_64_BIT_INODE], [/* Enable large inode numbers on Mac OS X 10.5. */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif]) +m4trace:configure.ac:960: -1- AC_DEFINE_TRACE_LITERAL([_LARGEFILE_SOURCE]) +m4trace:configure.ac:960: -1- m4_pattern_allow([^_LARGEFILE_SOURCE$]) +m4trace:configure.ac:960: -1- AH_OUTPUT([_LARGEFILE_SOURCE], [/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ +@%:@undef _LARGEFILE_SOURCE]) +m4trace:configure.ac:960: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FSEEKO]) +m4trace:configure.ac:960: -1- m4_pattern_allow([^HAVE_FSEEKO$]) +m4trace:configure.ac:960: -1- AH_OUTPUT([HAVE_FSEEKO], [/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ +@%:@undef HAVE_FSEEKO]) +m4trace:configure.ac:965: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:965: the top level]) +m4trace:configure.ac:965: -1- AC_DEFINE_TRACE_LITERAL([USE_UI_BASIC_ONSCREEN_KEYBOARD]) +m4trace:configure.ac:965: -1- m4_pattern_allow([^USE_UI_BASIC_ONSCREEN_KEYBOARD$]) +m4trace:configure.ac:965: -1- AH_OUTPUT([USE_UI_BASIC_ONSCREEN_KEYBOARD], [/* Define to enable on-screen keyboard. */ +@%:@undef USE_UI_BASIC_ONSCREEN_KEYBOARD]) +m4trace:configure.ac:974: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +../../lib/autoconf/general.m4:1492: AC_ARG_WITH is expanded from... +configure.ac:974: the top level]) +m4trace:configure.ac:1012: -1- AC_DEFINE_TRACE_LITERAL([MONITOR_READLINE]) +m4trace:configure.ac:1012: -1- m4_pattern_allow([^MONITOR_READLINE$]) +m4trace:configure.ac:1012: -1- AH_OUTPUT([MONITOR_READLINE], [/* Define to activate readline support in monitor. */ +@%:@undef MONITOR_READLINE]) +m4trace:configure.ac:1017: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:1017: the top level]) +m4trace:configure.ac:1041: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OPENGL]) +m4trace:configure.ac:1041: -1- m4_pattern_allow([^HAVE_OPENGL$]) +m4trace:configure.ac:1041: -1- AH_OUTPUT([HAVE_OPENGL], [/* Support for OpenGL graphics acceleration. */ +@%:@undef HAVE_OPENGL]) +m4trace:configure.ac:1048: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:1048: the top level]) +m4trace:configure.ac:1048: -1- AC_DEFINE_TRACE_LITERAL([FALCON_CPUASM]) +m4trace:configure.ac:1048: -1- m4_pattern_allow([^FALCON_CPUASM$]) +m4trace:configure.ac:1048: -1- AH_OUTPUT([FALCON_CPUASM], [/* Define to use m68k assembler CPU core for Falcon target. */ +@%:@undef FALCON_CPUASM]) +m4trace:configure.ac:1060: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:1060: the top level]) +m4trace:configure.ac:1060: -1- AC_DEFINE_TRACE_LITERAL([LINUX_JOYSTICK]) +m4trace:configure.ac:1060: -1- m4_pattern_allow([^LINUX_JOYSTICK$]) +m4trace:configure.ac:1060: -1- AH_OUTPUT([LINUX_JOYSTICK], [/* Define to use LINUX joystick. */ +@%:@undef LINUX_JOYSTICK]) +m4trace:configure.ac:1068: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:1068: the top level]) +m4trace:configure.ac:1068: -1- AC_DEFINE_TRACE_LITERAL([USE_CURSORBLOCK]) +m4trace:configure.ac:1068: -1- m4_pattern_allow([^USE_CURSORBLOCK$]) +m4trace:configure.ac:1068: -1- AH_OUTPUT([USE_CURSORBLOCK], [/* Define for using cursor/ctrl keys for keyboard joystick. */ +@%:@undef USE_CURSORBLOCK]) +m4trace:configure.ac:1075: -1- AC_DEFINE_TRACE_LITERAL([XEP80_EMULATION]) +m4trace:configure.ac:1075: -1- m4_pattern_allow([^XEP80_EMULATION$]) +m4trace:configure.ac:1075: -1- AH_OUTPUT([XEP80_EMULATION], [/* Emulate the XEP80. */ +@%:@undef XEP80_EMULATION]) +m4trace:configure.ac:1080: -1- AC_DEFINE_TRACE_LITERAL([NTSC_FILTER]) +m4trace:configure.ac:1080: -1- m4_pattern_allow([^NTSC_FILTER$]) +m4trace:configure.ac:1080: -1- AH_OUTPUT([NTSC_FILTER], [/* Use NTSC video filter. */ +@%:@undef NTSC_FILTER]) +m4trace:configure.ac:1085: -1- AC_DEFINE_TRACE_LITERAL([PAL_BLENDING]) +m4trace:configure.ac:1085: -1- m4_pattern_allow([^PAL_BLENDING$]) +m4trace:configure.ac:1085: -1- AH_OUTPUT([PAL_BLENDING], [/* Use accurate PAL color blending. */ +@%:@undef PAL_BLENDING]) +m4trace:configure.ac:1091: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:1091: the top level]) +m4trace:configure.ac:1091: -1- AC_DEFINE_TRACE_LITERAL([R_IO_DEVICE]) +m4trace:configure.ac:1091: -1- m4_pattern_allow([^R_IO_DEVICE$]) +m4trace:configure.ac:1091: -1- AH_OUTPUT([R_IO_DEVICE], [/* Define to use R: device. */ +@%:@undef R_IO_DEVICE]) +m4trace:configure.ac:1097: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:1097: the top level]) +m4trace:configure.ac:1097: -1- AC_DEFINE_TRACE_LITERAL([R_NETWORK]) +m4trace:configure.ac:1097: -1- m4_pattern_allow([^R_NETWORK$]) +m4trace:configure.ac:1097: -1- AH_OUTPUT([R_NETWORK], [/* Define to use IP network connection with the R: device. */ +@%:@undef R_NETWORK]) +m4trace:configure.ac:1102: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from... +configure.ac:639: A8_OPTION is expanded from... +configure.ac:1102: the top level]) +m4trace:configure.ac:1102: -1- AC_DEFINE_TRACE_LITERAL([R_SERIAL]) +m4trace:configure.ac:1102: -1- m4_pattern_allow([^R_SERIAL$]) +m4trace:configure.ac:1102: -1- AH_OUTPUT([R_SERIAL], [/* Define to use the host serial port with the R: device. */ +@%:@undef R_SERIAL]) +m4trace:configure.ac:1115: -1- AC_SUBST([OBJS]) +m4trace:configure.ac:1115: -1- AC_SUBST_TRACE([OBJS]) +m4trace:configure.ac:1115: -1- m4_pattern_allow([^OBJS$]) +m4trace:configure.ac:1116: -1- AC_SUBST([JAVAFLAGS]) +m4trace:configure.ac:1116: -1- AC_SUBST_TRACE([JAVAFLAGS]) +m4trace:configure.ac:1116: -1- m4_pattern_allow([^JAVAFLAGS$]) +m4trace:configure.ac:1117: -1- AC_SUBST([JAVACFLAGS]) +m4trace:configure.ac:1117: -1- AC_SUBST_TRACE([JAVACFLAGS]) +m4trace:configure.ac:1117: -1- m4_pattern_allow([^JAVACFLAGS$]) +m4trace:configure.ac:1119: -1- AC_SUBST([CONFIGURE_TARGET]) +m4trace:configure.ac:1119: -1- AC_SUBST_TRACE([CONFIGURE_TARGET]) +m4trace:configure.ac:1119: -1- m4_pattern_allow([^CONFIGURE_TARGET$]) +m4trace:configure.ac:1121: -1- AC_SUBST([CONFIGURE_HOST]) +m4trace:configure.ac:1121: -1- AC_SUBST_TRACE([CONFIGURE_HOST]) +m4trace:configure.ac:1121: -1- m4_pattern_allow([^CONFIGURE_HOST$]) +m4trace:configure.ac:1122: -1- AC_CONFIG_FILES([Makefile]) +m4trace:configure.ac:1124: -1- AC_CONFIG_FILES([android/jni/Android.mk]) +m4trace:configure.ac:1126: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:1126: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:1126: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:1126: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:1126: -1- AC_SUBST_TRACE([INSTALL]) diff --git a/src/binload.c b/src/binload.c index 3bc0c63..8c38c1e 100644 --- a/src/binload.c +++ b/src/binload.c @@ -47,7 +47,7 @@ static int read_word(void) BINLOAD_bin_file = NULL; if (BINLOAD_start_binloading) { BINLOAD_start_binloading = FALSE; - Log_print("binload: not valid BIN file"); + Log_println("binload: not valid BIN file"); return -1; } CPU_regPC = MEMORY_dGetWordAligned(0x2e0); @@ -148,12 +148,12 @@ int BINLOAD_Loader(const char *filename) BINLOAD_loading_basic = 0; } if (Atari800_machine_type == Atari800_MACHINE_5200) { - Log_print("binload: can't run Atari programs directly on the 5200"); + Log_println("binload: can't run Atari programs directly on the 5200"); return FALSE; } BINLOAD_bin_file = fopen(filename, "rb"); if (BINLOAD_bin_file == NULL) { /* open */ - Log_print("binload: can't open \"%s\"", filename); + Log_println("binload: can't open \"%s\"", filename); return FALSE; } /* Avoid "BOOT ERROR" when loading a BASIC program */ @@ -180,6 +180,6 @@ int BINLOAD_Loader(const char *filename) } fclose(BINLOAD_bin_file); BINLOAD_bin_file = NULL; - Log_print("binload: \"%s\" not recognized as a DOS or BASIC program", filename); + Log_println("binload: \"%s\" not recognized as a DOS or BASIC program", filename); return FALSE; } diff --git a/src/binload.o b/src/binload.o new file mode 100644 index 0000000..5c208ac Binary files /dev/null and b/src/binload.o differ diff --git a/src/cartridge.c b/src/cartridge.c index bff82be..d36b4cf 100644 --- a/src/cartridge.c +++ b/src/cartridge.c @@ -384,7 +384,7 @@ static void SwitchBank(int old_state) } #if DEBUG if (old_state != active_cart->state) - Log_print("Cart %i state: %02x -> %02x", active_cart == &CARTRIDGE_piggyback, old_state, active_cart->state); + Log_println("Cart %i state: %02x -> %02x", active_cart == &CARTRIDGE_piggyback, old_state, active_cart->state); #endif } @@ -884,7 +884,7 @@ static UBYTE GetByte(CARTRIDGE_image_t *cart, UWORD addr, int no_side_effects) #if DEBUG if (cart->type > CARTRIDGE_NONE) - Log_print("Cart %i read: %04x", cart == &CARTRIDGE_piggyback, addr); + Log_println("Cart %i read: %04x", cart == &CARTRIDGE_piggyback, addr); #endif /* Set the cartridge's new state. */ /* Check types switchable by access to page D5. */ @@ -936,7 +936,7 @@ static void PutByte(CARTRIDGE_image_t *cart, UWORD addr, UBYTE byte) #if DEBUG if (cart->type > CARTRIDGE_NONE) - Log_print("Cart %i write: %04x, %02x", cart == &CARTRIDGE_piggyback, addr, byte); + Log_println("Cart %i write: %04x, %02x", cart == &CARTRIDGE_piggyback, addr, byte); #endif /* Set the cartridge's new state. */ switch (cart->type) { @@ -1386,7 +1386,7 @@ static int InsertCartridge(const char *filename, CARTRIDGE_image_t *cart) /* alloc memory and read data */ cart->image = (UBYTE *) Util_malloc(len); if (fread(cart->image, 1, len, fp) < len) { - Log_print("Error reading cartridge.\n"); + Log_println("Error reading cartridge.\n"); } fclose(fp); /* find cart type */ @@ -1413,7 +1413,7 @@ static int InsertCartridge(const char *filename, CARTRIDGE_image_t *cart) } /* if not full kilobytes, assume it is CART file */ if (fread(header, 1, 16, fp) < 16) { - Log_print("Error reading cartridge.\n"); + Log_println("Error reading cartridge.\n"); } if ((header[0] == 'C') && (header[1] == 'A') && @@ -1431,7 +1431,7 @@ static int InsertCartridge(const char *filename, CARTRIDGE_image_t *cart) /* alloc memory and read data */ cart->image = (UBYTE *) Util_malloc(len); if (fread(cart->image, 1, len, fp) < len) { - Log_print("Error reading cartridge.\n"); + Log_println("Error reading cartridge.\n"); } fclose(fp); checksum = (header[8] << 24) | @@ -1536,7 +1536,7 @@ static void InitInsert(CARTRIDGE_image_t *cart) int tmp_type = cart->type; int res = InsertCartridge(cart->filename, cart); if (res < 0) { - Log_print("Error inserting cartridge \"%s\": %s", cart->filename, + Log_println("Error inserting cartridge \"%s\": %s", cart->filename, res == CARTRIDGE_CANT_OPEN ? "Can't open file" : res == CARTRIDGE_BAD_FORMAT ? "Bad format" : /* Assume r == CARTRIDGE_BAD_CHECKSUM */ "Bad checksum"); @@ -1607,21 +1607,21 @@ int CARTRIDGE_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-cart Install cartridge (raw or CART format)"); - Log_print("\t-cart-type Set cartridge type (0..%i)", CARTRIDGE_LAST_SUPPORTED); - Log_print("\t-cart2 Install piggyback cartridge"); - Log_print("\t-cart2-type Set piggyback cartridge type (0..%i)", CARTRIDGE_LAST_SUPPORTED); - Log_print("\t-cart-autoreboot Reboot when cartridge is inserted/removed"); - Log_print("\t-no-cart-autoreboot Don't reboot after changing cartridge"); + Log_println("\t-cart Install cartridge (raw or CART format)"); + Log_println("\t-cart-type Set cartridge type (0..%i)", CARTRIDGE_LAST_SUPPORTED); + Log_println("\t-cart2 Install piggyback cartridge"); + Log_println("\t-cart2-type Set piggyback cartridge type (0..%i)", CARTRIDGE_LAST_SUPPORTED); + Log_println("\t-cart-autoreboot Reboot when cartridge is inserted/removed"); + Log_println("\t-no-cart-autoreboot Don't reboot after changing cartridge"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } else if (a_i) { - Log_print("Invalid argument for '%s'", argv[--i]); + Log_println("Invalid argument for '%s'", argv[--i]); return FALSE; } } diff --git a/src/cartridge.o b/src/cartridge.o new file mode 100644 index 0000000..c2f0696 Binary files /dev/null and b/src/cartridge.o differ diff --git a/src/cassette.c b/src/cassette.c index 16470d4..a3f7d2b 100644 --- a/src/cassette.c +++ b/src/cassette.c @@ -150,15 +150,15 @@ int CASSETTE_Initialise(int *argc, char *argv[]) protect = TRUE; else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-tape Insert cassette image"); - Log_print("\t-boottape Insert cassette image and boot it"); - Log_print("\t-tape-readonly Mark the attached cassette image as read-only"); + Log_println("\t-tape Insert cassette image"); + Log_println("\t-boottape Insert cassette image and boot it"); + Log_println("\t-tape-readonly Mark the attached cassette image as read-only"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -172,7 +172,7 @@ int CASSETTE_Initialise(int *argc, char *argv[]) protect = protect || CASSETTE_write_protect; if (!CASSETTE_Insert(CASSETTE_filename)) { CASSETTE_status = CASSETTE_STATUS_NONE; - Log_print("Cannot open cassette image %s", CASSETTE_filename); + Log_println("Cannot open cassette image %s", CASSETTE_filename); } else if (protect) CASSETTE_ToggleWriteProtect(); diff --git a/src/cassette.o b/src/cassette.o new file mode 100644 index 0000000..3870d3d Binary files /dev/null and b/src/cassette.o differ diff --git a/src/cfg.c b/src/cfg.c index 60d61ca..69d3bb8 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -101,22 +101,22 @@ int CFG_LoadConfig(const char *alternate_config_filename) fp = fopen(fname, "r"); if (fp == NULL) { - Log_print("User config file '%s' not found.", rtconfig_filename); + Log_println("User config file '%s' not found.", rtconfig_filename); #ifdef SYSTEM_WIDE_CFG_FILE /* try system wide config file */ fname = SYSTEM_WIDE_CFG_FILE; - Log_print("Trying system wide config file: %s", fname); + Log_println("Trying system wide config file: %s", fname); fp = fopen(fname, "r"); #endif if (fp == NULL) { - Log_print("No configuration file found, will create fresh one from scratch:"); + Log_println("No configuration file found, will create fresh one from scratch:"); return FALSE; } } if (fgets(string, sizeof(string), fp) != NULL) { - Log_print("Using Atari800 config file: %s\nCreated by %s", fname, string); + Log_println("Using Atari800 config file: %s\nCreated by %s", fname, string); } while (fgets(string, sizeof(string), fp)) { @@ -139,13 +139,13 @@ int CFG_LoadConfig(const char *alternate_config_filename) #else else if (strcmp(string, "ATARI_FILES_DIR") == 0) { if (UI_n_atari_files_dir >= UI_MAX_DIRECTORIES) - Log_print("All ATARI_FILES_DIR slots used!"); + Log_println("All ATARI_FILES_DIR slots used!"); else Util_strlcpy(UI_atari_files_dir[UI_n_atari_files_dir++], ptr, FILENAME_MAX); } else if (strcmp(string, "SAVED_FILES_DIR") == 0) { if (UI_n_saved_files_dir >= UI_MAX_DIRECTORIES) - Log_print("All SAVED_FILES_DIR slots used!"); + Log_println("All SAVED_FILES_DIR slots used!"); else Util_strlcpy(UI_saved_files_dir[UI_n_saved_files_dir++], ptr, FILENAME_MAX); } @@ -169,7 +169,7 @@ int CFG_LoadConfig(const char *alternate_config_filename) else if (strcmp(string, "PRINT_COMMAND") == 0) { if (!Devices_SetPrintCommand(ptr)) - Log_print("Unsafe PRINT_COMMAND ignored"); + Log_println("Unsafe PRINT_COMMAND ignored"); } else if (strcmp(string, "SCREEN_REFRESH_RATIO") == 0) @@ -224,7 +224,7 @@ int CFG_LoadConfig(const char *alternate_config_filename) else if (strcmp(ptr, "Atari 5200") == 0) Atari800_machine_type = Atari800_MACHINE_5200; else - Log_print("Invalid machine type: %s", ptr); + Log_println("Invalid machine type: %s", ptr); } else if (strcmp(string, "RAM_SIZE") == 0) { if (strcmp(ptr, "320 (RAMBO)") == 0) @@ -236,7 +236,7 @@ int CFG_LoadConfig(const char *alternate_config_filename) if (MEMORY_SizeValid(size)) MEMORY_ram_size = size; else - Log_print("Invalid RAM size: %s", ptr); + Log_println("Invalid RAM size: %s", ptr); } } else if (strcmp(string, "DEFAULT_TV_MODE") == 0) { @@ -245,21 +245,21 @@ int CFG_LoadConfig(const char *alternate_config_filename) else if (strcmp(ptr, "NTSC") == 0) Atari800_tv_mode = Atari800_TV_NTSC; else - Log_print("Invalid TV Mode: %s", ptr); + Log_println("Invalid TV Mode: %s", ptr); } else if (strcmp(string, "MOSAIC_RAM_NUM_BANKS") == 0) { int num = Util_sscandec(ptr); if (num >= 0 && num <= 64) MEMORY_mosaic_num_banks = num; else - Log_print("Invalid Mosaic RAM number of banks: %s", ptr); + Log_println("Invalid Mosaic RAM number of banks: %s", ptr); } else if (strcmp(string, "AXLON_RAM_NUM_BANKS") == 0) { int num = Util_sscandec(ptr); if (num == 0 || num == 8 || num == 16 || num == 32 || num == 64 || num == 128 || num == 256) MEMORY_axlon_num_banks = num; else - Log_print("Invalid Mosaic RAM number of banks: %s", ptr); + Log_println("Invalid Mosaic RAM number of banks: %s", ptr); } else if (strcmp(string, "ENABLE_MAPRAM") == 0) MEMORY_enable_mapram = Util_sscanbool(ptr); @@ -315,25 +315,27 @@ int CFG_LoadConfig(const char *alternate_config_filename) else if (Sound_ReadConfig(string, ptr)) { } #endif /* defined(SOUND) && defined(SOUND_THIN_API) */ + else if (Log_ReadConfig(string, ptr)) { + } else { #ifdef SUPPORTS_PLATFORM_CONFIGURE if (!PLATFORM_Configure(string, ptr)) { - Log_print("Unrecognized variable or bad parameters: '%s=%s'", string, ptr); + Log_println("Unrecognized variable or bad parameters: '%s=%s'", string, ptr); } #else - Log_print("Unrecognized variable: %s", string); + Log_println("Unrecognized variable: %s", string); #endif } } else { - Log_print("Ignored config line: %s", string); + Log_println("Ignored config line: %s", string); } } fclose(fp); #ifndef BASIC if (was_obsolete_dir) { - Log_print( + Log_println( "DISK_DIR, ROM_DIR, EXE_DIR and STATE_DIR configuration options\n" "are no longer supported. Please use ATARI_FILES_DIR\n" "and SAVED_FILES_DIR in your Atari800 configuration file."); @@ -353,12 +355,13 @@ int CFG_WriteConfig(void) fp = fopen(rtconfig_filename, "w"); if (fp == NULL) { perror(rtconfig_filename); - Log_print("Cannot write to config file: %s", rtconfig_filename); + Log_println("Cannot write to config file: %s", rtconfig_filename); return FALSE; } - Log_print("Writing config file: %s", rtconfig_filename); + Log_println("Writing config file: %s", rtconfig_filename); fprintf(fp, "%s\n", Atari800_TITLE); + Log_WriteConfig(fp); SYSROM_WriteConfig(fp); #ifndef BASIC for (i = 0; i < UI_n_atari_files_dir; i++) diff --git a/src/cfg.o b/src/cfg.o new file mode 100644 index 0000000..3e31b2b Binary files /dev/null and b/src/cfg.o differ diff --git a/src/colours.c b/src/colours.c index 6943329..7df941c 100644 --- a/src/colours.c +++ b/src/colours.c @@ -121,7 +121,7 @@ static void UpdateModeDependentPointers(int tv_mode) } else { Atari800_ErrExit(); - Log_print("Interal error: Invalid Atari800_tv_mode\n"); + Log_println("Interal error: Invalid Atari800_tv_mode\n"); exit(1); } } @@ -292,7 +292,7 @@ int Colours_Initialise(int *argc, char *argv[]) if (i_a) { int idx = CFG_MatchTextParameter(argv[++i], preset_cfg_strings, COLOURS_PRESET_SIZE); if (idx < 0) { - Log_print("Invalid value for -colors-preset"); + Log_println("Invalid value for -colors-preset"); return FALSE; } COLOURS_NTSC_setup = COLOURS_PAL_setup = presets[idx]; @@ -303,19 +303,19 @@ int Colours_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-colors-preset standard|deep-black|vibrant"); - Log_print("\t Use one of predefined color adjustments"); - Log_print("\t-saturation Set color saturation"); - Log_print("\t-contrast Set contrast"); - Log_print("\t-brightness Set brightness"); - Log_print("\t-gamma Set color gamma factor"); - Log_print("\t-tint Set tint"); + Log_println("\t-colors-preset standard|deep-black|vibrant"); + Log_println("\t Use one of predefined color adjustments"); + Log_println("\t-saturation Set color saturation"); + Log_println("\t-contrast Set contrast"); + Log_println("\t-brightness Set brightness"); + Log_println("\t-gamma Set color gamma factor"); + Log_println("\t-tint Set tint"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/colours.o b/src/colours.o new file mode 100644 index 0000000..9732cf2 Binary files /dev/null and b/src/colours.o differ diff --git a/src/colours_external.o b/src/colours_external.o new file mode 100644 index 0000000..5c0b123 Binary files /dev/null and b/src/colours_external.o differ diff --git a/src/colours_ntsc.c b/src/colours_ntsc.c index b3be06d..5d84023 100644 --- a/src/colours_ntsc.c +++ b/src/colours_ntsc.c @@ -298,20 +298,20 @@ int COLOURS_NTSC_Initialise(int *argc, char *argv[]) COLOURS_NTSC_external.adjust = TRUE; else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-ntsc-saturation Set NTSC color saturation"); - Log_print("\t-ntsc-contrast Set NTSC contrast"); - Log_print("\t-ntsc-brightness Set NTSC brightness"); - Log_print("\t-ntsc-gamma Set NTSC color gamma factor"); - Log_print("\t-ntsc-tint Set NTSC tint"); - Log_print("\t-ntsc-colordelay Set NTSC GTIA color delay"); - Log_print("\t-paletten Load NTSC external palette"); - Log_print("\t-paletten-adjust Apply adjustments to NTSC external palette"); + Log_println("\t-ntsc-saturation Set NTSC color saturation"); + Log_println("\t-ntsc-contrast Set NTSC contrast"); + Log_println("\t-ntsc-brightness Set NTSC brightness"); + Log_println("\t-ntsc-gamma Set NTSC color gamma factor"); + Log_println("\t-ntsc-tint Set NTSC tint"); + Log_println("\t-ntsc-colordelay Set NTSC GTIA color delay"); + Log_println("\t-paletten Load NTSC external palette"); + Log_println("\t-paletten-adjust Apply adjustments to NTSC external palette"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -319,7 +319,7 @@ int COLOURS_NTSC_Initialise(int *argc, char *argv[]) /* Try loading an external palette if needed. */ if (COLOURS_NTSC_external.loaded && !COLOURS_EXTERNAL_Read(&COLOURS_NTSC_external)) - Log_print("Cannot read NTSC palette from %s", COLOURS_NTSC_external.filename); + Log_println("Cannot read NTSC palette from %s", COLOURS_NTSC_external.filename); return TRUE; } diff --git a/src/colours_ntsc.o b/src/colours_ntsc.o new file mode 100644 index 0000000..effee2d Binary files /dev/null and b/src/colours_ntsc.o differ diff --git a/src/colours_pal.c b/src/colours_pal.c index b0d0a1e..af36794 100644 --- a/src/colours_pal.c +++ b/src/colours_pal.c @@ -469,20 +469,20 @@ int COLOURS_PAL_Initialise(int *argc, char *argv[]) COLOURS_PAL_external.adjust = TRUE; else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-pal-saturation Set PAL color saturation"); - Log_print("\t-pal-contrast Set PAL contrast"); - Log_print("\t-pal-brightness Set PAL brightness"); - Log_print("\t-pal-gamma Set PAL color gamma factor"); - Log_print("\t-pal-tint Set PAL tint"); - Log_print("\t-pal-colordelay Set PAL GTIA color delay"); - Log_print("\t-palettep Load PAL external palette"); - Log_print("\t-palettep-adjust Apply adjustments to PAL external palette"); + Log_println("\t-pal-saturation Set PAL color saturation"); + Log_println("\t-pal-contrast Set PAL contrast"); + Log_println("\t-pal-brightness Set PAL brightness"); + Log_println("\t-pal-gamma Set PAL color gamma factor"); + Log_println("\t-pal-tint Set PAL tint"); + Log_println("\t-pal-colordelay Set PAL GTIA color delay"); + Log_println("\t-palettep Load PAL external palette"); + Log_println("\t-palettep-adjust Apply adjustments to PAL external palette"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -490,7 +490,7 @@ int COLOURS_PAL_Initialise(int *argc, char *argv[]) /* Try loading an external palette if needed. */ if (COLOURS_PAL_external.loaded && !COLOURS_EXTERNAL_Read(&COLOURS_PAL_external)) - Log_print("Cannot read PAL palette from %s", COLOURS_PAL_external.filename); + Log_println("Cannot read PAL palette from %s", COLOURS_PAL_external.filename); return TRUE; } diff --git a/src/colours_pal.o b/src/colours_pal.o new file mode 100644 index 0000000..303fb5a Binary files /dev/null and b/src/colours_pal.o differ diff --git a/src/compfile.c b/src/compfile.c index 597d37c..ba0d1ab 100644 --- a/src/compfile.c +++ b/src/compfile.c @@ -43,7 +43,7 @@ int CompFile_ExtractGZ(const char *infilename, FILE *outfp) { #ifndef HAVE_LIBZ - Log_print("This executable cannot decompress ZLIB files"); + Log_println("This executable cannot decompress ZLIB files"); return FALSE; #else /* TODO: replace gz* with low-level light-weight ZLIB functions. */ @@ -51,7 +51,7 @@ int CompFile_ExtractGZ(const char *infilename, FILE *outfp) void *buf; int result; if (gzf == NULL) { - Log_print("ZLIB could not open file %s", infilename); + Log_println("ZLIB could not open file %s", infilename); return FALSE; } #define UNCOMPRESS_BUFFER_SIZE 32768 @@ -153,7 +153,7 @@ static int dcm_pass(FILE *infp, ATR_Info *pai) if (sector_type == 0x45) return TRUE; if (sector_no < pai->current_sector) { - Log_print("Error: current sector is %d, next sector group at %d", pai->current_sector, sector_no); + Log_println("Error: current sector is %d, next sector group at %d", pai->current_sector, sector_no); return FALSE; } if (!pad_till_sector(pai, sector_no)) @@ -219,7 +219,7 @@ static int dcm_pass(FILE *infp, ATR_Info *pai) return FALSE; break; default: - Log_print("Unrecognized sector coding type 0x%02X", sector_type); + Log_println("Unrecognized sector coding type 0x%02X", sector_type); return FALSE; } if (!write_atr_sector(pai, sector_buf)) @@ -242,14 +242,14 @@ int CompFile_DCMtoATR(FILE *infp, FILE *outfp) int last_sector; archive_type = fgetc(infp); if (archive_type != 0xf9 && archive_type != 0xfa) { - Log_print("This is not a DCM image"); + Log_println("This is not a DCM image"); return FALSE; } archive_flags = fgetc(infp); if ((archive_flags & 0x1f) != 1) { - Log_print("Expected pass one first"); + Log_println("Expected pass one first"); if (archive_type == 0xf9) - Log_print("It seems that DCMs of a multi-file archive have been combined in wrong order"); + Log_println("It seems that DCMs of a multi-file archive have been combined in wrong order"); return FALSE; } ai.fp = outfp; @@ -268,7 +268,7 @@ int CompFile_DCMtoATR(FILE *infp, FILE *outfp) ai.sectorsize = 128; break; default: - Log_print("Unrecognized density"); + Log_println("Unrecognized density"); return FALSE; } if (!write_atr_header(&ai)) @@ -284,19 +284,19 @@ int CompFile_DCMtoATR(FILE *infp, FILE *outfp) block_type = fgetc(infp); if (block_type != archive_type) { if (block_type == EOF && archive_type == 0xf9) { - Log_print("Multi-part archive error."); - Log_print("To process these files, you must first combine the files into a single file."); + Log_println("Multi-part archive error."); + Log_println("To process these files, you must first combine the files into a single file."); #if defined(HAVE_WINDOWS_H) || defined(DJGPP) - Log_print("COPY /B file1.dcm+file2.dcm+file3.dcm newfile.dcm from the DOS prompt"); + Log_println("COPY /B file1.dcm+file2.dcm+file3.dcm newfile.dcm from the DOS prompt"); #elif defined(__linux__) || defined(__unix__) - Log_print("cat file1.dcm file2.dcm file3.dcm >newfile.dcm from the shell"); + Log_println("cat file1.dcm file2.dcm file3.dcm >newfile.dcm from the shell"); #endif } return FALSE; } pass_flags = fgetc(infp); if ((pass_flags ^ archive_flags) & 0x60) { - Log_print("Density changed inside DCM archive?"); + Log_println("Density changed inside DCM archive?"); return FALSE; } /* TODO: check pass number, this is tricky for >31 */ diff --git a/src/compfile.o b/src/compfile.o new file mode 100644 index 0000000..bf7d441 Binary files /dev/null and b/src/compfile.o differ diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..b8f33bc --- /dev/null +++ b/src/config.h @@ -0,0 +1,571 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* The Austin Franklin 80 column card. */ +#define AF80 1 + +/* Target: Android */ +/* #undef ANDROID */ + +/* Target: standard I/O. */ +/* #undef BASIC */ + +/* Define to use buffered debug output. */ +/* #undef BUFFERED_LOG */ + +/* Define to allow sound clipping. */ +/* #undef CLIP_SOUND */ + +/* Define to 1 if the `closedir' function returns void instead of `int'. */ +/* #undef CLOSEDIR_VOID */ + +/* Define to allow console sound (keyboard clicks). */ +#define CONSOLE_SOUND 1 + +/* Define to activate crash menu after CIM instruction. */ +#define CRASH_MENU 1 + +/* Define to disable bitmap graphics emulation in CURSES target. */ +/* #undef CURSES_BASIC */ + +/* Alternate config filename due to 8+3 fs limit. */ +/* #undef DEFAULT_CFG_NAME */ + +/* Target: Windows with DirectX. */ +/* #undef DIRECTX */ + +/* Define to use dirty screen partial repaints. */ +/* #undef DIRTYRECT */ + +/* Define to use back slash as directory separator. */ +/* #undef DIR_SEP_BACKSLASH */ + +/* Target: DOS VGA. */ +/* #undef DOSVGA */ + +/* Define to enable DOS style drives support. */ +/* #undef DOS_DRIVES */ + +/* Define to enable event recording. */ +#define EVENT_RECORDING 1 + +/* Target: Atari Falcon system. */ +/* #undef FALCON */ + +/* Define to use m68k assembler CPU core for Falcon target. */ +/* #undef FALCON_CPUASM */ + +/* Use SDL for graphics and input. */ +#define GUI_SDL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Define to 1 if you have the `atexit' function. */ +#define HAVE_ATEXIT 1 + +/* Define to 1 if you have the `chmod' function. */ +#define HAVE_CHMOD 1 + +/* Define to 1 if you have the `clock' function. */ +#define HAVE_CLOCK 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DIRECT_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +/* #undef HAVE_DOPRNT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `fdopen' function. */ +#define HAVE_FDOPEN 1 + +/* Define to 1 if you have the `fflush' function. */ +#define HAVE_FFLUSH 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_FILE_H */ + +/* Define to 1 if you have the `floor' function. */ +#define HAVE_FLOOR 1 + +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ +#define HAVE_FSEEKO 1 + +/* Define to 1 if you have the `fstat' function. */ +#define HAVE_FSTAT 1 + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the `gethostbyaddr' function. */ +#define HAVE_GETHOSTBYADDR 1 + +/* Define to 1 if you have the `gethostbyname' function. */ +#define HAVE_GETHOSTBYNAME 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the `inet_ntoa' function. */ +#define HAVE_INET_NTOA 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `gem' library (-lgem). */ +/* #undef HAVE_LIBGEM */ + +/* Define to 1 if you have the `png' library (-lpng). */ +#define HAVE_LIBPNG 1 + +/* Define to 1 if you have the `z' library (-lz). */ +#define HAVE_LIBZ 1 + +/* Define to 1 if you have the `localtime' function. */ +#define HAVE_LOCALTIME 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the `mkdir' function. */ +#define HAVE_MKDIR 1 + +/* Define to 1 if you have the `mkstemp' function. */ +#define HAVE_MKSTEMP 1 + +/* Define to 1 if you have the `mktemp' function. */ +#define HAVE_MKTEMP 1 + +/* Define to 1 if you have the `modf' function. */ +#define HAVE_MODF 1 + +/* Define to 1 if you have the `nanosleep' function. */ +#define HAVE_NANOSLEEP 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_NETDB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NETINET_IN_H 1 + +/* Define to 1 if you have the `opendir' function. */ +#define HAVE_OPENDIR 1 + +/* Support for OpenGL graphics acceleration. */ +#define HAVE_OPENGL 1 + +/* Define to 1 if you have the `rename' function. */ +#define HAVE_RENAME 1 + +/* Define to 1 if you have the `rewind' function. */ +#define HAVE_REWIND 1 + +/* Define to 1 if you have the `rmdir' function. */ +#define HAVE_RMDIR 1 + +/* Define to 1 if you have the `select' function. */ +#define HAVE_SELECT 1 + +/* Define to 1 if you have the `signal' function. */ +#define HAVE_SIGNAL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define to 1 if you have the `snprintf' function. */ +#define HAVE_SNPRINTF 1 + +/* Define to 1 if you have the `socket' function. */ +#define HAVE_SOCKET 1 + +/* Define to 1 if you have the `stat' function. */ +#define HAVE_STAT 1 + +/* Define to 1 if `stat' has the bug that it succeeds when given the + zero-length file name argument. */ +/* #undef HAVE_STAT_EMPTY_STRING_BUG */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncpy' function. */ +#define HAVE_STRNCPY 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define to 1 if you have the `strtol' function. */ +#define HAVE_STRTOL 1 + +/* Define to 1 if you have the `system' function. */ +#define HAVE_SYSTEM 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SOCKET_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SOUNDCARD_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define to 1 if you have the `time' function. */ +#define HAVE_TIME 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define to 1 if you have the `tmpfile' function. */ +#define HAVE_TMPFILE 1 + +/* Define to 1 if you have the `tmpnam' function. */ +#define HAVE_TMPNAM 1 + +/* Define to 1 if you have the `uclock' function. */ +/* #undef HAVE_UCLOCK */ + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_UNIXIO_H */ + +/* Define to 1 if you have the `unlink' function. */ +#define HAVE_UNLINK 1 + +/* Define to 1 if you have the `usleep' function. */ +#define HAVE_USLEEP 1 + +/* Define to 1 if you have the `vprintf' function. */ +#define HAVE_VPRINTF 1 + +/* Define to 1 if you have the `vsnprintf' function. */ +#define HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINDOWS_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINSOCK2_H */ + +/* Define to 1 if you have the `_mkdir' function. */ +/* #undef HAVE__MKDIR */ + +/* Define to add IDE harddisk emulation. */ +#define IDE 1 + +/* Define to allow sound interpolation. */ +#define INTERPOLATE_SOUND 1 + +/* Define to use LINUX joystick. */ +/* #undef LINUX_JOYSTICK */ + +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 + +/* Define if mkdir takes only one argument. */ +/* #undef MKDIR_TAKES_ONE_ARG */ + +/* Define to activate assembler in monitor. */ +#define MONITOR_ASSEMBLER 1 + +/* Define to activate code breakpoints and execution history. */ +#define MONITOR_BREAK 1 + +/* Define to activate user-defined breakpoints. */ +/* #undef MONITOR_BREAKPOINTS */ + +/* Define to activate hints in disassembler. */ +#define MONITOR_HINTS 1 + +/* Define to activate 6502 opcode profiling. */ +/* #undef MONITOR_PROFILE */ + +/* Define to activate readline support in monitor. */ +#define MONITOR_READLINE 1 + +/* Define to activate TRACE command in monitor. */ +/* #undef MONITOR_TRACE */ + +/* Target: X11 with Motif. */ +/* #undef MOTIF */ + +/* Define to allow color changes inside a scanline. */ +#define NEW_CYCLE_EXACT 1 + +/* Define to use nonlinear POKEY mixing. */ +#define NONLINEAR_MIXING 1 + +/* Use NTSC video filter. */ +#define NTSC_FILTER 1 + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "pstehlik@sophics.cz" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "Atari800" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "Atari800 3.1.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "atari800" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "3.1.0" + +/* Define to use page-based attribute array. */ +/* #undef PAGED_ATTRIB */ + +/* Use accurate PAL color blending. */ +#define PAL_BLENDING 1 + +/* Define to emulate the Black Box. */ +#define PBI_BB 1 + +/* Define to emulate the MIO board. */ +#define PBI_MIO 1 + +/* A prototype 80 column card for the 1090 expansion box. */ +#define PBI_PROTO80 1 + +/* Define to emulate the 1400XL/1450XLD. */ +#define PBI_XLD 1 + +/* Platform-specific mapping of RGB palette to display surface. */ +#define PLATFORM_MAP_PALETTE 1 + +/* Target: Sony PlayStation 2. */ +/* #undef PS2 */ + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* Target: Raspberry Pi. */ +/* #undef RPI */ + +/* Define to use R: device. */ +/* #undef R_IO_DEVICE */ + +/* Define to use IP network connection with the R: device. */ +/* #undef R_NETWORK */ + +/* Define to use the host serial port with the R: device. */ +/* #undef R_SERIAL */ + +/* Target: SDL library. */ +#define SDL 1 + +/* Define to the type of arg 1 for `select'. */ +#define SELECT_TYPE_ARG1 int + +/* Define to the type of args 2, 3 and 4 for `select'. */ +#define SELECT_TYPE_ARG234 (fd_set *) + +/* Define to the type of arg 5 for `select'. */ +#define SELECT_TYPE_ARG5 (struct timeval *) + +/* Define to allow serial in/out sound. */ +/* #undef SERIO_SOUND */ + +/* Target: X11 with shared memory extensions. */ +/* #undef SHM */ + +/* Define to activate sound support. */ +#define SOUND 1 + +/* Platform updates sound buffer by callback function. */ +#define SOUND_CALLBACK 1 + +/* Use new sound API. */ +#define SOUND_THIN_API 1 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to allow stereo sound. */ +#define STEREO_SOUND 1 + +/* Can change video modes on the fly. */ +#define SUPPORTS_CHANGE_VIDEOMODE 1 + +/* Save additional config file options. */ +#define SUPPORTS_PLATFORM_CONFIGSAVE 1 + +/* Additional config file options. */ +#define SUPPORTS_PLATFORM_CONFIGURE 1 + +/* Update the Palette if it changed. */ +#define SUPPORTS_PLATFORM_PALETTEUPDATE 1 + +/* Platform-specific sleep function. */ +/* #undef SUPPORTS_PLATFORM_SLEEP */ + +/* Platform-specific time function. */ +#define SUPPORTS_PLATFORM_TIME 1 + +/* Can display the screen rotated sideways. */ +#define SUPPORTS_ROTATE_VIDEOMODE 1 + +/* Reinitialise the sound system. */ +/* #undef SUPPORTS_SOUND_REINIT */ + +/* Define to use synchronized sound. */ +#define SYNCHRONIZED_SOUND 1 + +/* Alternate system-wide config file for non-Unix OS. */ +/* #undef SYSTEM_WIDE_CFG_FILE */ + +/* Define to 1 if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define to 1 if your declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Target: Curses-compatible library. */ +/* #undef USE_CURSES */ + +/* Define for using cursor/ctrl keys for keyboard joystick. */ +/* #undef USE_CURSORBLOCK */ + +/* Target: Ncurses library. */ +/* #undef USE_NCURSES */ + +/* Define to enable on-screen keyboard. */ +/* #undef USE_UI_BASIC_ONSCREEN_KEYBOARD */ + +/* Define to use very slow computer support (faster -refresh). */ +/* #undef VERY_SLOW */ + +/* Define to emulate the Alien Group Voice Box. */ +#define VOICEBOX 1 + +/* Define to allow volume only sound. */ +/* #undef VOL_ONLY_SOUND */ + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Define if unaligned word access is ok. */ +#define WORDS_UNALIGNED_OK 1 + +/* Target: Standard X11. */ +/* #undef X11 */ + +/* Emulate the XEP80. */ +#define XEP80_EMULATION 1 + +/* Target: X11 with XView. */ +/* #undef XVIEW */ + +/* Enable large inode numbers on Mac OS X 10.5. */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ +/* #undef _LARGEFILE_SOURCE */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#define inline __inline__ +#endif + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* Define to empty if the keyword `volatile' does not work. Warning: valid + code using `volatile' can become incorrect without. Disable with care. */ +/* #undef volatile */ diff --git a/src/config.h.in b/src/config.h.in index 813fa4f..c2b4d12 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -539,6 +539,11 @@ /* Target: X11 with XView. */ #undef XVIEW +/* Enable large inode numbers on Mac OS X 10.5. */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif + /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS diff --git a/src/config.log b/src/config.log new file mode 100644 index 0000000..1cbddf5 --- /dev/null +++ b/src/config.log @@ -0,0 +1,3261 @@ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Atari800 configure 3.1.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ ./configure + +## --------- ## +## Platform. ## +## --------- ## + +hostname = aproxos +uname -m = x86_64 +uname -r = 4.15.0-60-generic +uname -s = Linux +uname -v = #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 + +/usr/bin/uname -p = unknown +/bin/uname -X = unknown + +/bin/arch = unknown +/usr/bin/arch -k = unknown +/usr/convex/getsysinfo = unknown +/usr/bin/hostinfo = unknown +/bin/machine = unknown +/usr/bin/oslevel = unknown +/bin/universe = unknown + +PATH: . +PATH: /usr/local/java/bin +PATH: /usr/local/eclipse +PATH: /usr/local/sqldeveloper +PATH: /usr/local/sbin +PATH: /usr/local/bin +PATH: /usr/sbin +PATH: /usr/bin +PATH: /sbin +PATH: /bin +PATH: /usr/games +PATH: /usr/local/games +PATH: /snap/bin +PATH: /home/andi/Tools + + +## ----------- ## +## Core tests. ## +## ----------- ## + +configure:2375: checking build system type +configure:2389: result: x86_64-unknown-linux-gnu +configure:2413: checking host system type +configure:2426: result: x86_64-unknown-linux-gnu +configure:2600: checking for gcc +configure:2616: found /usr/bin/gcc +configure:2627: result: gcc +configure:2856: checking for C compiler version +configure:2865: gcc --version >&5 +gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 +Copyright (C) 2017 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +configure:2876: $? = 0 +configure:2865: gcc -v >&5 +Using built-in specs. +COLLECT_GCC=gcc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) +configure:2876: $? = 0 +configure:2865: gcc -V >&5 +gcc: error: unrecognized command line option '-V' +gcc: fatal error: no input files +compilation terminated. +configure:2876: $? = 1 +configure:2865: gcc -qversion >&5 +gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? +gcc: fatal error: no input files +compilation terminated. +configure:2876: $? = 1 +configure:2896: gcc -o conftest -O2 -Wall conftest.c >&5 +configure:2900: $? = 0 +configure:2919: checking whether the C compiler works +configure:2941: gcc -O2 -Wall conftest.c >&5 +configure:2945: $? = 0 +configure:2993: result: yes +configure:2996: checking for C compiler default output file name +configure:2998: result: a.out +configure:3004: checking for suffix of executables +configure:3011: gcc -o conftest -O2 -Wall conftest.c >&5 +configure:3015: $? = 0 +configure:3037: result: +configure:3059: checking whether we are cross compiling +configure:3067: gcc -o conftest -O2 -Wall conftest.c >&5 +configure:3071: $? = 0 +configure:3078: ./conftest +configure:3082: $? = 0 +configure:3097: result: no +configure:3155: checking for suffix of object files +configure:3177: gcc -c -O2 -Wall conftest.c >&5 +configure:3181: $? = 0 +configure:3202: result: o +configure:3206: checking whether we are using the GNU C compiler +configure:3225: gcc -c -O2 -Wall conftest.c >&5 +configure:3225: $? = 0 +configure:3234: result: yes +configure:3243: checking whether gcc accepts -g +configure:3263: gcc -c -g conftest.c >&5 +configure:3263: $? = 0 +configure:3304: result: yes +configure:3321: checking for gcc option to accept ISO C89 +configure:3384: gcc -c -O2 -Wall conftest.c >&5 +configure:3384: $? = 0 +configure:3397: result: none needed +configure:3431: checking for a BSD-compatible install +configure:3499: result: /usr/bin/install -c +configure:3514: checking whether host is Java NestedVM +configure:3532: gcc -o conftest -O2 -Wall conftest.c >&5 +/tmp/cc1FQkyY.o: In function `main': +conftest.c:(.text.startup+0xd): undefined reference to `_call_java' +collect2: error: ld returned 1 exit status +configure:3532: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| /* end confdefs.h. */ +| extern int _call_java(int a, int b, int c, int d); +| int +| main () +| { +| _call_java(0, 0, 0, 0); +| +| ; +| return 0; +| } +configure:3546: result: no +configure:3561: checking how to run the C preprocessor +configure:3592: gcc -E conftest.c +configure:3592: $? = 0 +configure:3606: gcc -E conftest.c +conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory + #include + ^~~~~~~~~~~~~~~~~~ +compilation terminated. +configure:3606: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| /* end confdefs.h. */ +| #include +configure:3631: result: gcc -E +configure:3651: gcc -E conftest.c +configure:3651: $? = 0 +configure:3665: gcc -E conftest.c +conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory + #include + ^~~~~~~~~~~~~~~~~~ +compilation terminated. +configure:3665: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| /* end confdefs.h. */ +| #include +configure:3694: checking for X +configure:3802: gcc -E conftest.c +configure:3802: $? = 0 +configure:3836: gcc -o conftest -O2 -Wall conftest.c -lX11 >&5 +configure:3836: $? = 0 +configure:3886: result: libraries , headers +configure:3909: checking for dirent.h that defines DIR +configure:3928: gcc -c -O2 -Wall conftest.c >&5 +configure:3928: $? = 0 +configure:3936: result: yes +configure:3949: checking for library containing opendir +configure:3983: gcc -o conftest -O2 -Wall conftest.c >&5 +configure:3983: $? = 0 +configure:4000: result: none required +configure:4071: checking for grep that handles long lines and -e +configure:4129: result: /bin/grep +configure:4134: checking for egrep +configure:4196: result: /bin/grep -E +configure:4201: checking for ANSI C header files +configure:4221: gcc -c -O2 -Wall conftest.c >&5 +configure:4221: $? = 0 +configure:4294: gcc -o conftest -O2 -Wall conftest.c >&5 +configure:4294: $? = 0 +configure:4294: ./conftest +configure:4294: $? = 0 +configure:4305: result: yes +configure:4313: checking whether time.h and sys/time.h may both be included +configure:4333: gcc -c -O2 -Wall conftest.c >&5 +configure:4333: $? = 0 +configure:4340: result: yes +configure:4353: checking for sys/types.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for sys/stat.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for stdlib.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for string.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for memory.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for strings.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for inttypes.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for stdint.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4353: checking for unistd.h +configure:4353: gcc -c -O2 -Wall conftest.c >&5 +configure:4353: $? = 0 +configure:4353: result: yes +configure:4368: checking direct.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +conftest.c:54:10: fatal error: direct.h: No such file or directory + #include + ^~~~~~~~~~ +compilation terminated. +configure:4368: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| #include +configure:4368: result: no +configure:4368: checking direct.h presence +configure:4368: gcc -E conftest.c +conftest.c:21:10: fatal error: direct.h: No such file or directory + #include + ^~~~~~~~~~ +compilation terminated. +configure:4368: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| /* end confdefs.h. */ +| #include +configure:4368: result: no +configure:4368: checking for direct.h +configure:4368: result: no +configure:4368: checking errno.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking errno.h presence +configure:4368: gcc -E conftest.c +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking for errno.h +configure:4368: result: yes +configure:4368: checking file.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +conftest.c:55:10: fatal error: file.h: No such file or directory + #include + ^~~~~~~~ +compilation terminated. +configure:4368: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| #include +configure:4368: result: no +configure:4368: checking file.h presence +configure:4368: gcc -E conftest.c +conftest.c:22:10: fatal error: file.h: No such file or directory + #include + ^~~~~~~~ +compilation terminated. +configure:4368: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| /* end confdefs.h. */ +| #include +configure:4368: result: no +configure:4368: checking for file.h +configure:4368: result: no +configure:4368: checking signal.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking signal.h presence +configure:4368: gcc -E conftest.c +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking for signal.h +configure:4368: result: yes +configure:4368: checking sys/time.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking sys/time.h presence +configure:4368: gcc -E conftest.c +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking for sys/time.h +configure:4368: result: yes +configure:4368: checking time.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking time.h presence +configure:4368: gcc -E conftest.c +configure:4368: $? = 0 +configure:4368: result: yes +configure:4368: checking for time.h +configure:4368: result: yes +configure:4368: checking for unistd.h +configure:4368: result: yes +configure:4368: checking unixio.h usability +configure:4368: gcc -c -O2 -Wall conftest.c >&5 +conftest.c:59:10: fatal error: unixio.h: No such file or directory + #include + ^~~~~~~~~~ +compilation terminated. +configure:4368: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| #include +configure:4368: result: no +configure:4368: checking unixio.h presence +configure:4368: gcc -E conftest.c +conftest.c:26:10: fatal error: unixio.h: No such file or directory + #include + ^~~~~~~~~~ +compilation terminated. +configure:4368: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| /* end confdefs.h. */ +| #include +configure:4368: result: no +configure:4368: checking for unixio.h +configure:4368: result: no +configure:4382: checking fcntl.h usability +configure:4382: gcc -c -O2 -Wall conftest.c >&5 +configure:4382: $? = 0 +configure:4382: result: yes +configure:4382: checking fcntl.h presence +configure:4382: gcc -E conftest.c +configure:4382: $? = 0 +configure:4382: result: yes +configure:4382: checking for fcntl.h +configure:4382: result: yes +configure:4382: checking sys/ioctl.h usability +configure:4382: gcc -c -O2 -Wall conftest.c >&5 +configure:4382: $? = 0 +configure:4382: result: yes +configure:4382: checking sys/ioctl.h presence +configure:4382: gcc -E conftest.c +configure:4382: $? = 0 +configure:4382: result: yes +configure:4382: checking for sys/ioctl.h +configure:4382: result: yes +configure:4382: checking sys/soundcard.h usability +configure:4382: gcc -c -O2 -Wall conftest.c >&5 +configure:4382: $? = 0 +configure:4382: result: yes +configure:4382: checking sys/soundcard.h presence +configure:4382: gcc -E conftest.c +configure:4382: $? = 0 +configure:4382: result: yes +configure:4382: checking for sys/soundcard.h +configure:4382: result: yes +configure:4415: checking arpa/inet.h usability +configure:4415: gcc -c -O2 -Wall conftest.c >&5 +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking arpa/inet.h presence +configure:4415: gcc -E conftest.c +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking for arpa/inet.h +configure:4415: result: yes +configure:4415: checking netdb.h usability +configure:4415: gcc -c -O2 -Wall conftest.c >&5 +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking netdb.h presence +configure:4415: gcc -E conftest.c +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking for netdb.h +configure:4415: result: yes +configure:4415: checking netinet/in.h usability +configure:4415: gcc -c -O2 -Wall conftest.c >&5 +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking netinet/in.h presence +configure:4415: gcc -E conftest.c +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking for netinet/in.h +configure:4415: result: yes +configure:4415: checking sys/socket.h usability +configure:4415: gcc -c -O2 -Wall conftest.c >&5 +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking sys/socket.h presence +configure:4415: gcc -E conftest.c +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking for sys/socket.h +configure:4415: result: yes +configure:4415: checking termios.h usability +configure:4415: gcc -c -O2 -Wall conftest.c >&5 +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking termios.h presence +configure:4415: gcc -E conftest.c +configure:4415: $? = 0 +configure:4415: result: yes +configure:4415: checking for termios.h +configure:4415: result: yes +configure:4438: checking for gzopen in -lz +configure:4466: gcc -o conftest -O2 -Wall conftest.c -lz >&5 +configure:4466: $? = 0 +configure:4475: result: yes +configure:4486: checking for png_get_libpng_ver in -lpng +configure:4514: gcc -o conftest -O2 -Wall conftest.c -lpng -lz >&5 +configure:4514: $? = 0 +configure:4523: result: yes +configure:4534: checking for cos in -lm +configure:4562: gcc -o conftest -O2 -Wall conftest.c -lm -lpng -lz >&5 +conftest.c:43:6: warning: conflicting types for built-in function 'cos' [-Wbuiltin-declaration-mismatch] + char cos (); + ^~~ +configure:4562: $? = 0 +configure:4571: result: yes +configure:4577: checking for _oss_ioctl in -lossaudio +configure:4605: gcc -o conftest -O2 -Wall conftest.c -lossaudio -lm -lpng -lz >&5 +/usr/bin/ld: cannot find -lossaudio +collect2: error: ld returned 1 exit status +configure:4605: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char _oss_ioctl (); +| int +| main () +| { +| return _oss_ioctl (); +| ; +| return 0; +| } +configure:4614: result: no +configure:6285: checking whether byte ordering is bigendian +configure:6300: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:37:9: error: unknown type name 'not' + not a universal capable compiler + ^~~ +conftest.c:37:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'universal' + not a universal capable compiler + ^~~~~~~~~ +conftest.c:37:15: error: unknown type name 'universal' +configure:6300: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| /* end confdefs.h. */ +| #ifndef __APPLE_CC__ +| not a universal capable compiler +| #endif +| typedef int dummy; +| +configure:6345: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:40:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:43:8: error: unknown type name 'bogus' + bogus endian macros + ^~~~~ +conftest.c:43:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'macros' + bogus endian macros + ^~~~~~ +configure:6345: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| /* end confdefs.h. */ +| #include +| #include +| +| int +| main () +| { +| #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) +| bogus endian macros +| #endif +| +| ; +| return 0; +| } +configure:6389: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:39:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:42:8: error: unknown type name 'bogus' + bogus endian macros + ^~~~~ +conftest.c:42:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'macros' + bogus endian macros + ^~~~~~ +configure:6389: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| /* end confdefs.h. */ +| #include +| +| int +| main () +| { +| #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) +| bogus endian macros +| #endif +| +| ; +| return 0; +| } +configure:6480: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:70:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6480: $? = 0 +configure:6480: ./conftest +configure:6480: $? = 0 +configure:6491: result: no +configure:6509: checking for an ANSI C-conforming const +configure:6575: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:38:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6575: $? = 0 +configure:6582: result: yes +configure:6590: checking for inline +configure:6606: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:38:8: error: unknown type name 'inline' + static inline foo_t static_foo () {return 0; } + ^~~~~~ +conftest.c:38:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static_foo' + static inline foo_t static_foo () {return 0; } + ^~~~~~~~~~ +conftest.c:39:1: error: unknown type name 'inline' + inline foo_t foo () {return 0; } + ^~~~~~ +conftest.c:39:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'foo' + inline foo_t foo () {return 0; } + ^~~ +configure:6606: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| /* end confdefs.h. */ +| #ifndef __cplusplus +| typedef int foo_t; +| static inline foo_t static_foo () {return 0; } +| inline foo_t foo () {return 0; } +| #endif +| +configure:6606: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:38:25: warning: function declaration isn't a prototype [-Wstrict-prototypes] + static __inline__ foo_t static_foo () {return 0; } + ^~~~~~~~~~ +conftest.c:39:18: warning: function declaration isn't a prototype [-Wstrict-prototypes] + __inline__ foo_t foo () {return 0; } + ^~~ +configure:6606: $? = 0 +configure:6614: result: __inline__ +configure:6632: checking for working volatile +configure:6651: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:41:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6651: $? = 0 +configure:6658: result: yes +configure:6667: checking whether gcc needs -traditional +configure:6701: result: no +configure:6708: checking whether struct tm is in sys/time.h or time.h +configure:6728: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:43:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6728: $? = 0 +configure:6735: result: time.h +configure:6743: checking return type of signal handlers +configure:6761: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:43:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:45:10: error: void value not ignored as it ought to be + return *(signal (0, 0)) (0) == 1; + ~^~~~~~~~~~~~~~~~~~ +configure:6761: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| /* end confdefs.h. */ +| #include +| #include +| +| int +| main () +| { +| return *(signal (0, 0)) (0) == 1; +| ; +| return 0; +| } +configure:6768: result: void +configure:6776: checking for size_t +configure:6776: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:74:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6776: $? = 0 +configure:6776: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:74:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:76:21: error: expected expression before ')' token + if (sizeof ((size_t))) + ^ +configure:6776: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main () +| { +| if (sizeof ((size_t))) +| return 0; +| ; +| return 0; +| } +configure:6776: result: yes +configure:6814: checking for unaligned word access validity +configure:6854: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:42:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6854: $? = 0 +configure:6854: ./conftest +configure:6854: $? = 0 +configure:6855: result: yes +configure:6877: checking whether closedir returns void +configure:6901: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:76:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + int closedir (); + ^~~ +conftest.c:76:5: warning: redundant redeclaration of 'closedir' [-Wredundant-decls] + int closedir (); + ^~~~~~~~ +In file included from conftest.c:74:0: +/usr/include/dirent.h:149:12: note: previous declaration of 'closedir' was here + extern int closedir (DIR *__dirp) __nonnull ((1)); + ^~~~~~~~ +conftest.c:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6901: $? = 0 +configure:6901: ./conftest +configure:6901: $? = 0 +configure:6911: result: no +configure:6919: checking for working memcmp +configure:6962: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:75:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:6962: $? = 0 +configure:6962: ./conftest +configure:6962: $? = 0 +configure:6972: result: yes +configure:6984: checking sys/select.h usability +configure:6984: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +configure:6984: $? = 0 +configure:6984: result: yes +configure:6984: checking sys/select.h presence +configure:6984: gcc -E conftest.c +configure:6984: $? = 0 +configure:6984: result: yes +configure:6984: checking for sys/select.h +configure:6984: result: yes +configure:6984: checking for sys/socket.h +configure:6984: result: yes +configure:6994: checking types of arguments for select +configure:7022: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:84:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:86:12: warning: redundant redeclaration of 'select' [-Wredundant-decls] + extern int select (int, + ^~~~~~ +In file included from conftest.c:77:0: +/usr/include/x86_64-linux-gnu/sys/select.h:101:12: note: previous declaration of 'select' was here + extern int select (int __nfds, fd_set *__restrict __readfds, + ^~~~~~ +configure:7022: $? = 0 +configure:7033: result: int,fd_set *,struct timeval * +configure:7056: checking whether lstat correctly handles trailing slash +configure:7082: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:86:13: warning: implicit declaration of function 'lstat'; did you mean 'fstat'? [-Wimplicit-function-declaration] + return lstat ("conftest.sym/", &sbuf) == 0; + ^~~~~ + fstat +configure:7082: $? = 0 +configure:7082: ./conftest +configure:7082: $? = 0 +configure:7099: result: yes +configure:7118: checking whether stat accepts an empty string +configure:7138: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:81:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7138: $? = 0 +configure:7138: ./conftest +configure:7138: $? = 0 +configure:7148: result: no +configure:7220: checking for vprintf +configure:7220: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:70:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char vprintf (); + ^~~~ +conftest.c:70:6: warning: conflicting types for built-in function 'vprintf' [-Wbuiltin-declaration-mismatch] + char vprintf (); + ^~~~~~~ +conftest.c:79:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7220: $? = 0 +configure:7220: result: yes +configure:7226: checking for _doprnt +configure:7226: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:71:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char _doprnt (); + ^~~~ +conftest.c:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/ccFqI3gO.o: In function `main': +conftest.c:(.text.startup+0x7): undefined reference to `_doprnt' +collect2: error: ld returned 1 exit status +configure:7226: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| /* end confdefs.h. */ +| /* Define _doprnt to an innocuous variant, in case declares _doprnt. +| For example, HP-UX 11i declares gettimeofday. */ +| #define _doprnt innocuous__doprnt +| +| /* System header to define __stub macros and hopefully few prototypes, +| which can conflict with char _doprnt (); below. +| Prefer to if __STDC__ is defined, since +| exists even on freestanding compilers. */ +| +| #ifdef __STDC__ +| # include +| #else +| # include +| #endif +| +| #undef _doprnt +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char _doprnt (); +| /* The GNU C library defines this for functions which it implements +| to always fail with ENOSYS. Some functions are actually named +| something starting with __ and the normal name is an alias. */ +| #if defined __stub__doprnt || defined __stub____doprnt +| choke me +| #endif +| +| int +| main () +| { +| return _doprnt (); +| ; +| return 0; +| } +configure:7226: result: no +configure:7240: checking for atexit +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:71:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char atexit (); + ^~~~ +conftest.c:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for chmod +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:72:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char chmod (); + ^~~~ +conftest.c:81:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for clock +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:73:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char clock (); + ^~~~ +conftest.c:82:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for fdopen +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:74:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char fdopen (); + ^~~~ +conftest.c:83:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for fflush +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:75:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char fflush (); + ^~~~ +conftest.c:84:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for floor +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:76:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char floor (); + ^~~~ +conftest.c:76:6: warning: conflicting types for built-in function 'floor' [-Wbuiltin-declaration-mismatch] + char floor (); + ^~~~~ +conftest.c:85:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for fstat +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:77:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char fstat (); + ^~~~ +conftest.c:86:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7240: checking for getcwd +configure:7240: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:78:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char getcwd (); + ^~~~ +conftest.c:87:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7240: $? = 0 +configure:7240: result: yes +configure:7252: checking for gettimeofday +configure:7252: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:79:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char gettimeofday (); + ^~~~ +conftest.c:88:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7252: $? = 0 +configure:7252: result: yes +configure:7252: checking for localtime +configure:7252: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char localtime (); + ^~~~ +conftest.c:89:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7252: $? = 0 +configure:7252: result: yes +configure:7252: checking for memmove +configure:7252: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:81:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char memmove (); + ^~~~ +conftest.c:81:6: warning: conflicting types for built-in function 'memmove' [-Wbuiltin-declaration-mismatch] + char memmove (); + ^~~~~~~ +conftest.c:90:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7252: $? = 0 +configure:7252: result: yes +configure:7252: checking for memset +configure:7252: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:82:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char memset (); + ^~~~ +conftest.c:82:6: warning: conflicting types for built-in function 'memset' [-Wbuiltin-declaration-mismatch] + char memset (); + ^~~~~~ +conftest.c:91:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7252: $? = 0 +configure:7252: result: yes +configure:7252: checking for mkstemp +configure:7252: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:83:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char mkstemp (); + ^~~~ +conftest.c:92:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7252: $? = 0 +configure:7252: result: yes +configure:7252: checking for mktemp +configure:7252: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:84:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char mktemp (); + ^~~~ +conftest.c:93:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/ccPgr58e.o: In function `main': +conftest.c:(.text.startup+0x7): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' +configure:7252: $? = 0 +configure:7252: result: yes +configure:7264: checking for modf +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:85:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char modf (); + ^~~~ +conftest.c:85:6: warning: conflicting types for built-in function 'modf' [-Wbuiltin-declaration-mismatch] + char modf (); + ^~~~ +conftest.c:94:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for nanosleep +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:86:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char nanosleep (); + ^~~~ +conftest.c:95:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for opendir +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:87:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char opendir (); + ^~~~ +conftest.c:96:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for rename +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:88:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char rename (); + ^~~~ +conftest.c:97:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for rewind +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:89:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char rewind (); + ^~~~ +conftest.c:98:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for rmdir +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:90:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char rmdir (); + ^~~~ +conftest.c:99:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for signal +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:91:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char signal (); + ^~~~ +conftest.c:100:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7264: checking for snprintf +configure:7264: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:92:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char snprintf (); + ^~~~ +conftest.c:101:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7264: $? = 0 +configure:7264: result: yes +configure:7276: checking for stat +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:93:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char stat (); + ^~~~ +conftest.c:102:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7276: checking for strcasecmp +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:94:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strcasecmp (); + ^~~~ +conftest.c:103:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7276: checking for strchr +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:95:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strchr (); + ^~~~ +conftest.c:95:6: warning: conflicting types for built-in function 'strchr' [-Wbuiltin-declaration-mismatch] + char strchr (); + ^~~~~~ +conftest.c:104:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7276: checking for strdup +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:96:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strdup (); + ^~~~ +conftest.c:105:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7276: checking for strerror +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:97:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strerror (); + ^~~~ +conftest.c:106:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7276: checking for strrchr +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:98:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strrchr (); + ^~~~ +conftest.c:98:6: warning: conflicting types for built-in function 'strrchr' [-Wbuiltin-declaration-mismatch] + char strrchr (); + ^~~~~~~ +conftest.c:107:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7276: checking for strstr +configure:7276: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:99:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strstr (); + ^~~~ +conftest.c:99:6: warning: conflicting types for built-in function 'strstr' [-Wbuiltin-declaration-mismatch] + char strstr (); + ^~~~~~ +conftest.c:108:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7276: $? = 0 +configure:7276: result: yes +configure:7288: checking for strtol +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:100:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strtol (); + ^~~~ +conftest.c:109:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7288: $? = 0 +configure:7288: result: yes +configure:7288: checking for system +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:101:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char system (); + ^~~~ +conftest.c:110:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7288: $? = 0 +configure:7288: result: yes +configure:7288: checking for time +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:102:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char time (); + ^~~~ +conftest.c:111:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7288: $? = 0 +configure:7288: result: yes +configure:7288: checking for tmpfile +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:103:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char tmpfile (); + ^~~~ +conftest.c:112:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7288: $? = 0 +configure:7288: result: yes +configure:7288: checking for tmpnam +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:104:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char tmpnam (); + ^~~~ +conftest.c:113:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/ccvKck01.o: In function `main': +conftest.c:(.text.startup+0x7): warning: the use of `tmpnam' is dangerous, better use `mkstemp' +configure:7288: $? = 0 +configure:7288: result: yes +configure:7288: checking for uclock +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:105:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char uclock (); + ^~~~ +conftest.c:114:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/cc13hvH4.o: In function `main': +conftest.c:(.text.startup+0x7): undefined reference to `uclock' +collect2: error: ld returned 1 exit status +configure:7288: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| /* end confdefs.h. */ +| /* Define uclock to an innocuous variant, in case declares uclock. +| For example, HP-UX 11i declares gettimeofday. */ +| #define uclock innocuous_uclock +| +| /* System header to define __stub macros and hopefully few prototypes, +| which can conflict with char uclock (); below. +| Prefer to if __STDC__ is defined, since +| exists even on freestanding compilers. */ +| +| #ifdef __STDC__ +| # include +| #else +| # include +| #endif +| +| #undef uclock +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char uclock (); +| /* The GNU C library defines this for functions which it implements +| to always fail with ENOSYS. Some functions are actually named +| something starting with __ and the normal name is an alias. */ +| #if defined __stub_uclock || defined __stub___uclock +| choke me +| #endif +| +| int +| main () +| { +| return uclock (); +| ; +| return 0; +| } +configure:7288: result: no +configure:7288: checking for unlink +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:105:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char unlink (); + ^~~~ +conftest.c:114:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7288: $? = 0 +configure:7288: result: yes +configure:7288: checking for vsnprintf +configure:7288: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:106:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char vsnprintf (); + ^~~~ +conftest.c:115:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7288: $? = 0 +configure:7288: result: yes +configure:7300: checking for mkdir +configure:7300: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:107:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char mkdir (); + ^~~~ +conftest.c:116:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7300: $? = 0 +configure:7300: result: yes +configure:7300: checking for _mkdir +configure:7300: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:108:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char _mkdir (); + ^~~~ +conftest.c:117:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/ccOj8dg7.o: In function `main': +conftest.c:(.text.startup+0x7): undefined reference to `_mkdir' +collect2: error: ld returned 1 exit status +configure:7300: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| #define HAVE_UNLINK 1 +| #define HAVE_VSNPRINTF 1 +| #define HAVE_MKDIR 1 +| /* end confdefs.h. */ +| /* Define _mkdir to an innocuous variant, in case declares _mkdir. +| For example, HP-UX 11i declares gettimeofday. */ +| #define _mkdir innocuous__mkdir +| +| /* System header to define __stub macros and hopefully few prototypes, +| which can conflict with char _mkdir (); below. +| Prefer to if __STDC__ is defined, since +| exists even on freestanding compilers. */ +| +| #ifdef __STDC__ +| # include +| #else +| # include +| #endif +| +| #undef _mkdir +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char _mkdir (); +| /* The GNU C library defines this for functions which it implements +| to always fail with ENOSYS. Some functions are actually named +| something starting with __ and the normal name is an alias. */ +| #if defined __stub__mkdir || defined __stub____mkdir +| choke me +| #endif +| +| int +| main () +| { +| return _mkdir (); +| ; +| return 0; +| } +configure:7300: result: no +configure:7309: checking whether mkdir takes one argument +configure:7330: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c >&5 +conftest.c:92:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +conftest.c: In function 'main': +conftest.c:94:1: error: too few arguments to function 'mkdir' + mkdir ("."); + ^~~~~ +In file included from conftest.c:86:0: +/usr/include/x86_64-linux-gnu/sys/stat.h:317:12: note: declared here + extern int mkdir (const char *__path, __mode_t __mode) + ^~~~~ +configure:7330: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| #define HAVE_UNLINK 1 +| #define HAVE_VSNPRINTF 1 +| #define HAVE_MKDIR 1 +| /* end confdefs.h. */ +| +| #include +| #if HAVE_UNISTD_H +| # include +| #endif +| +| int +| main () +| { +| mkdir ("."); +| ; +| return 0; +| } +configure:7337: result: no +configure:7349: checking for select +configure:7349: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:108:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char select (); + ^~~~ +conftest.c:117:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7349: $? = 0 +configure:7349: result: yes +configure:7349: checking for usleep +configure:7349: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:109:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char usleep (); + ^~~~ +conftest.c:118:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7349: $? = 0 +configure:7349: result: yes +configure:7349: checking for strncpy +configure:7349: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:110:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char strncpy (); + ^~~~ +conftest.c:110:6: warning: conflicting types for built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] + char strncpy (); + ^~~~~~~ +conftest.c:119:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7349: $? = 0 +configure:7349: result: yes +configure:7364: checking for gethostbyaddr +configure:7364: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:111:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char gethostbyaddr (); + ^~~~ +conftest.c:120:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7364: $? = 0 +configure:7364: result: yes +configure:7364: checking for gethostbyname +configure:7364: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:112:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char gethostbyname (); + ^~~~ +conftest.c:121:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7364: $? = 0 +configure:7364: result: yes +configure:7364: checking for inet_ntoa +configure:7364: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:113:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char inet_ntoa (); + ^~~~ +conftest.c:122:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7364: $? = 0 +configure:7364: result: yes +configure:7364: checking for socket +configure:7364: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls conftest.c -lm -lpng -lz >&5 +conftest.c:114:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char socket (); + ^~~~ +conftest.c:123:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:7364: $? = 0 +configure:7364: result: yes +configure:7458: checking for sdl-config +configure:7476: found /usr/bin/sdl-config +configure:7489: result: /usr/bin/sdl-config +configure:7499: checking for SDL - version >= 1.2.0 +configure:7586: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:99:1: warning: no previous prototype for 'my_strdup' [-Wmissing-prototypes] + my_strdup (char *str) + ^~~~~~~~~ +configure:7586: $? = 0 +configure:7586: ./conftest +configure:7586: $? = 0 +configure:7601: result: yes +configure:8153: checking for adler32 in -lz +configure:8181: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lz -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:115:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char adler32 (); + ^~~~ +conftest.c:117:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:8181: $? = 0 +configure:8190: result: yes +configure:8284: checking for main in -lwinmm +configure:8306: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lwinmm -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:114:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/usr/bin/ld: cannot find -lwinmm +collect2: error: ld returned 1 exit status +configure:8306: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| #define HAVE_UNLINK 1 +| #define HAVE_VSNPRINTF 1 +| #define HAVE_MKDIR 1 +| #define HAVE_SELECT 1 +| #define HAVE_USLEEP 1 +| #define HAVE_STRNCPY 1 +| #define HAVE_GETHOSTBYADDR 1 +| #define HAVE_GETHOSTBYNAME 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_SOCKET 1 +| #define SDL 1 +| #define SUPPORTS_PLATFORM_TIME 1 +| #define GUI_SDL 1 +| #define SUPPORTS_PLATFORM_CONFIGURE 1 +| #define SUPPORTS_PLATFORM_CONFIGSAVE 1 +| #define SUPPORTS_PLATFORM_PALETTEUPDATE 1 +| #define SUPPORTS_CHANGE_VIDEOMODE 1 +| #define SUPPORTS_ROTATE_VIDEOMODE 1 +| #define PLATFORM_MAP_PALETTE 1 +| #define PBI_PROTO80 1 +| #define AF80 1 +| #define NEW_CYCLE_EXACT 1 +| #define CRASH_MENU 1 +| #define MONITOR_ASSEMBLER 1 +| #define MONITOR_BREAK 1 +| #define MONITOR_HINTS 1 +| #define EVENT_RECORDING 1 +| #define PBI_MIO 1 +| #define PBI_BB 1 +| /* end confdefs.h. */ +| +| +| int +| main () +| { +| return main (); +| ; +| return 0; +| } +configure:8315: result: no +configure:8915: checking for special C compiler options needed for large files +configure:8960: result: no +configure:8966: checking for _FILE_OFFSET_BITS value needed for large files +configure:8991: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c >&5 +conftest.c:132:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:8991: $? = 0 +configure:9023: result: no +configure:9108: checking for _LARGEFILE_SOURCE value needed for large files +configure:9130: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:125:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:9130: $? = 0 +configure:9161: result: no +configure:9214: checking for library containing tgetent +configure:9248: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char tgetent (); + ^~~~ +conftest.c:132:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/cc4At7PF.o: In function `main': +conftest.c:(.text.startup+0x7): undefined reference to `tgetent' +collect2: error: ld returned 1 exit status +configure:9248: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| #define HAVE_UNLINK 1 +| #define HAVE_VSNPRINTF 1 +| #define HAVE_MKDIR 1 +| #define HAVE_SELECT 1 +| #define HAVE_USLEEP 1 +| #define HAVE_STRNCPY 1 +| #define HAVE_GETHOSTBYADDR 1 +| #define HAVE_GETHOSTBYNAME 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_SOCKET 1 +| #define SDL 1 +| #define SUPPORTS_PLATFORM_TIME 1 +| #define GUI_SDL 1 +| #define SUPPORTS_PLATFORM_CONFIGURE 1 +| #define SUPPORTS_PLATFORM_CONFIGSAVE 1 +| #define SUPPORTS_PLATFORM_PALETTEUPDATE 1 +| #define SUPPORTS_CHANGE_VIDEOMODE 1 +| #define SUPPORTS_ROTATE_VIDEOMODE 1 +| #define PLATFORM_MAP_PALETTE 1 +| #define PBI_PROTO80 1 +| #define AF80 1 +| #define NEW_CYCLE_EXACT 1 +| #define CRASH_MENU 1 +| #define MONITOR_ASSEMBLER 1 +| #define MONITOR_BREAK 1 +| #define MONITOR_HINTS 1 +| #define EVENT_RECORDING 1 +| #define PBI_MIO 1 +| #define PBI_BB 1 +| #define SOUND 1 +| #define SOUND_THIN_API 1 +| #define SYNCHRONIZED_SOUND 1 +| #define NONLINEAR_MIXING 1 +| #define SOUND_CALLBACK 1 +| #define INTERPOLATE_SOUND 1 +| #define STEREO_SOUND 1 +| #define CONSOLE_SOUND 1 +| #define PBI_XLD 1 +| #define VOICEBOX 1 +| #define IDE 1 +| #define HAVE_FSEEKO 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char tgetent (); +| int +| main () +| { +| return tgetent (); +| ; +| return 0; +| } +configure:9248: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lreadline -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char tgetent (); + ^~~~ +conftest.c:132:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/ccwnGDhF.o: In function `main': +conftest.c:(.text.startup+0x7): undefined reference to `tgetent' +collect2: error: ld returned 1 exit status +configure:9248: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| #define HAVE_UNLINK 1 +| #define HAVE_VSNPRINTF 1 +| #define HAVE_MKDIR 1 +| #define HAVE_SELECT 1 +| #define HAVE_USLEEP 1 +| #define HAVE_STRNCPY 1 +| #define HAVE_GETHOSTBYADDR 1 +| #define HAVE_GETHOSTBYNAME 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_SOCKET 1 +| #define SDL 1 +| #define SUPPORTS_PLATFORM_TIME 1 +| #define GUI_SDL 1 +| #define SUPPORTS_PLATFORM_CONFIGURE 1 +| #define SUPPORTS_PLATFORM_CONFIGSAVE 1 +| #define SUPPORTS_PLATFORM_PALETTEUPDATE 1 +| #define SUPPORTS_CHANGE_VIDEOMODE 1 +| #define SUPPORTS_ROTATE_VIDEOMODE 1 +| #define PLATFORM_MAP_PALETTE 1 +| #define PBI_PROTO80 1 +| #define AF80 1 +| #define NEW_CYCLE_EXACT 1 +| #define CRASH_MENU 1 +| #define MONITOR_ASSEMBLER 1 +| #define MONITOR_BREAK 1 +| #define MONITOR_HINTS 1 +| #define EVENT_RECORDING 1 +| #define PBI_MIO 1 +| #define PBI_BB 1 +| #define SOUND 1 +| #define SOUND_THIN_API 1 +| #define SYNCHRONIZED_SOUND 1 +| #define NONLINEAR_MIXING 1 +| #define SOUND_CALLBACK 1 +| #define INTERPOLATE_SOUND 1 +| #define STEREO_SOUND 1 +| #define CONSOLE_SOUND 1 +| #define PBI_XLD 1 +| #define VOICEBOX 1 +| #define IDE 1 +| #define HAVE_FSEEKO 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char tgetent (); +| int +| main () +| { +| return tgetent (); +| ; +| return 0; +| } +configure:9248: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -ltermcap -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char tgetent (); + ^~~~ +conftest.c:132:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:9248: $? = 0 +configure:9265: result: -ltermcap +configure:9271: checking for library containing readline +configure:9305: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -ltermcap -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char readline (); + ^~~~ +conftest.c:132:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +/tmp/ccwVniQJ.o: In function `main': +conftest.c:(.text.startup+0x7): undefined reference to `readline' +collect2: error: ld returned 1 exit status +configure:9305: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "Atari800" +| #define PACKAGE_TARNAME "atari800" +| #define PACKAGE_VERSION "3.1.0" +| #define PACKAGE_STRING "Atari800 3.1.0" +| #define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +| #define PACKAGE_URL "" +| #define HAVE_DIRENT_H 1 +| #define STDC_HEADERS 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ERRNO_H 1 +| #define HAVE_SIGNAL_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_TIME_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_IOCTL_H 1 +| #define HAVE_SYS_SOUNDCARD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_TERMIOS_H 1 +| #define HAVE_LIBZ 1 +| #define HAVE_LIBPNG 1 +| #ifndef __cplusplus +| #define inline __inline__ +| #endif +| #define RETSIGTYPE void +| #define WORDS_UNALIGNED_OK 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_VPRINTF 1 +| #define HAVE_ATEXIT 1 +| #define HAVE_CHMOD 1 +| #define HAVE_CLOCK 1 +| #define HAVE_FDOPEN 1 +| #define HAVE_FFLUSH 1 +| #define HAVE_FLOOR 1 +| #define HAVE_FSTAT 1 +| #define HAVE_GETCWD 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_LOCALTIME 1 +| #define HAVE_MEMMOVE 1 +| #define HAVE_MEMSET 1 +| #define HAVE_MKSTEMP 1 +| #define HAVE_MKTEMP 1 +| #define HAVE_MODF 1 +| #define HAVE_NANOSLEEP 1 +| #define HAVE_OPENDIR 1 +| #define HAVE_RENAME 1 +| #define HAVE_REWIND 1 +| #define HAVE_RMDIR 1 +| #define HAVE_SIGNAL 1 +| #define HAVE_SNPRINTF 1 +| #define HAVE_STAT 1 +| #define HAVE_STRCASECMP 1 +| #define HAVE_STRCHR 1 +| #define HAVE_STRDUP 1 +| #define HAVE_STRERROR 1 +| #define HAVE_STRRCHR 1 +| #define HAVE_STRSTR 1 +| #define HAVE_STRTOL 1 +| #define HAVE_SYSTEM 1 +| #define HAVE_TIME 1 +| #define HAVE_TMPFILE 1 +| #define HAVE_TMPNAM 1 +| #define HAVE_UNLINK 1 +| #define HAVE_VSNPRINTF 1 +| #define HAVE_MKDIR 1 +| #define HAVE_SELECT 1 +| #define HAVE_USLEEP 1 +| #define HAVE_STRNCPY 1 +| #define HAVE_GETHOSTBYADDR 1 +| #define HAVE_GETHOSTBYNAME 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_SOCKET 1 +| #define SDL 1 +| #define SUPPORTS_PLATFORM_TIME 1 +| #define GUI_SDL 1 +| #define SUPPORTS_PLATFORM_CONFIGURE 1 +| #define SUPPORTS_PLATFORM_CONFIGSAVE 1 +| #define SUPPORTS_PLATFORM_PALETTEUPDATE 1 +| #define SUPPORTS_CHANGE_VIDEOMODE 1 +| #define SUPPORTS_ROTATE_VIDEOMODE 1 +| #define PLATFORM_MAP_PALETTE 1 +| #define PBI_PROTO80 1 +| #define AF80 1 +| #define NEW_CYCLE_EXACT 1 +| #define CRASH_MENU 1 +| #define MONITOR_ASSEMBLER 1 +| #define MONITOR_BREAK 1 +| #define MONITOR_HINTS 1 +| #define EVENT_RECORDING 1 +| #define PBI_MIO 1 +| #define PBI_BB 1 +| #define SOUND 1 +| #define SOUND_THIN_API 1 +| #define SYNCHRONIZED_SOUND 1 +| #define NONLINEAR_MIXING 1 +| #define SOUND_CALLBACK 1 +| #define INTERPOLATE_SOUND 1 +| #define STEREO_SOUND 1 +| #define CONSOLE_SOUND 1 +| #define PBI_XLD 1 +| #define VOICEBOX 1 +| #define IDE 1 +| #define HAVE_FSEEKO 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char readline (); +| int +| main () +| { +| return readline (); +| ; +| return 0; +| } +configure:9305: gcc -o conftest -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c -lreadline -ltermcap -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL >&5 +conftest.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + char readline (); + ^~~~ +conftest.c:132:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + main () + ^~~~ +configure:9305: $? = 0 +configure:9322: result: -lreadline +configure:9328: checking readline/readline.h usability +configure:9328: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c >&5 +configure:9328: $? = 0 +configure:9328: result: yes +configure:9328: checking readline/readline.h presence +configure:9328: gcc -E -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c +configure:9328: $? = 0 +configure:9328: result: yes +configure:9328: checking for readline/readline.h +configure:9328: result: yes +configure:9389: checking SDL_opengl.h usability +configure:9389: gcc -c -O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c >&5 +In file included from conftest.c:157:0: +/usr/include/SDL/SDL_opengl.h:116:0: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055:0, + from /usr/include/SDL/SDL_opengl.h:46, + from conftest.c:157: +/usr/include/GL/glext.h:54:0: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + +configure:9389: $? = 0 +configure:9389: result: yes +configure:9389: checking SDL_opengl.h presence +configure:9389: gcc -E -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c +In file included from conftest.c:124:0: +/usr/include/SDL/SDL_opengl.h:116:0: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055:0, + from /usr/include/SDL/SDL_opengl.h:46, + from conftest.c:124: +/usr/include/GL/glext.h:54:0: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + +configure:9389: $? = 0 +configure:9389: result: yes +configure:9389: checking for SDL_opengl.h +configure:9389: result: yes +configure:9720: creating ./config.status + +## ---------------------- ## +## Running config.status. ## +## ---------------------- ## + +This file was extended by Atari800 config.status 3.1.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = + CONFIG_HEADERS = + CONFIG_LINKS = + CONFIG_COMMANDS = + $ ./config.status + +on aproxos + +config.status:930: creating Makefile +config.status:930: creating config.h +config.status:1105: config.h is unchanged + +## ---------------- ## +## Cache variables. ## +## ---------------- ## + +ac_cv_build=x86_64-unknown-linux-gnu +ac_cv_c_bigendian=no +ac_cv_c_compiler_gnu=yes +ac_cv_c_const=yes +ac_cv_c_inline=__inline__ +ac_cv_c_volatile=yes +ac_cv_env_CC_set= +ac_cv_env_CC_value= +ac_cv_env_CFLAGS_set= +ac_cv_env_CFLAGS_value= +ac_cv_env_CPPFLAGS_set= +ac_cv_env_CPPFLAGS_value= +ac_cv_env_CPP_set= +ac_cv_env_CPP_value= +ac_cv_env_LDFLAGS_set= +ac_cv_env_LDFLAGS_value= +ac_cv_env_LIBS_set= +ac_cv_env_LIBS_value= +ac_cv_env_XMKMF_set= +ac_cv_env_XMKMF_value= +ac_cv_env_build_alias_set= +ac_cv_env_build_alias_value= +ac_cv_env_host_alias_set= +ac_cv_env_host_alias_value= +ac_cv_env_target_alias_set= +ac_cv_env_target_alias_value= +ac_cv_func__doprnt=no +ac_cv_func__mkdir=no +ac_cv_func_atexit=yes +ac_cv_func_chmod=yes +ac_cv_func_clock=yes +ac_cv_func_closedir_void=no +ac_cv_func_fdopen=yes +ac_cv_func_fflush=yes +ac_cv_func_floor=yes +ac_cv_func_fstat=yes +ac_cv_func_getcwd=yes +ac_cv_func_gethostbyaddr=yes +ac_cv_func_gethostbyname=yes +ac_cv_func_gettimeofday=yes +ac_cv_func_inet_ntoa=yes +ac_cv_func_localtime=yes +ac_cv_func_lstat_dereferences_slashed_symlink=yes +ac_cv_func_memcmp_working=yes +ac_cv_func_memmove=yes +ac_cv_func_memset=yes +ac_cv_func_mkdir=yes +ac_cv_func_mkstemp=yes +ac_cv_func_mktemp=yes +ac_cv_func_modf=yes +ac_cv_func_nanosleep=yes +ac_cv_func_opendir=yes +ac_cv_func_rename=yes +ac_cv_func_rewind=yes +ac_cv_func_rmdir=yes +ac_cv_func_select=yes +ac_cv_func_select_args='int,fd_set *,struct timeval *' +ac_cv_func_signal=yes +ac_cv_func_snprintf=yes +ac_cv_func_socket=yes +ac_cv_func_stat=yes +ac_cv_func_stat_empty_string_bug=no +ac_cv_func_strcasecmp=yes +ac_cv_func_strchr=yes +ac_cv_func_strdup=yes +ac_cv_func_strerror=yes +ac_cv_func_strncpy=yes +ac_cv_func_strrchr=yes +ac_cv_func_strstr=yes +ac_cv_func_strtol=yes +ac_cv_func_system=yes +ac_cv_func_time=yes +ac_cv_func_tmpfile=yes +ac_cv_func_tmpnam=yes +ac_cv_func_uclock=no +ac_cv_func_unlink=yes +ac_cv_func_usleep=yes +ac_cv_func_vprintf=yes +ac_cv_func_vsnprintf=yes +ac_cv_have_x='have_x=yes ac_x_includes='\'''\'' ac_x_libraries='\'''\''' +ac_cv_header_SDL_opengl_h=yes +ac_cv_header_arpa_inet_h=yes +ac_cv_header_direct_h=no +ac_cv_header_dirent_dirent_h=yes +ac_cv_header_errno_h=yes +ac_cv_header_fcntl_h=yes +ac_cv_header_file_h=no +ac_cv_header_inttypes_h=yes +ac_cv_header_memory_h=yes +ac_cv_header_netdb_h=yes +ac_cv_header_netinet_in_h=yes +ac_cv_header_readline_readline_h=yes +ac_cv_header_signal_h=yes +ac_cv_header_stdc=yes +ac_cv_header_stdint_h=yes +ac_cv_header_stdlib_h=yes +ac_cv_header_string_h=yes +ac_cv_header_strings_h=yes +ac_cv_header_sys_ioctl_h=yes +ac_cv_header_sys_select_h=yes +ac_cv_header_sys_socket_h=yes +ac_cv_header_sys_soundcard_h=yes +ac_cv_header_sys_stat_h=yes +ac_cv_header_sys_time_h=yes +ac_cv_header_sys_types_h=yes +ac_cv_header_termios_h=yes +ac_cv_header_time=yes +ac_cv_header_time_h=yes +ac_cv_header_unistd_h=yes +ac_cv_header_unixio_h=no +ac_cv_host=x86_64-unknown-linux-gnu +ac_cv_lib_m_cos=yes +ac_cv_lib_ossaudio__oss_ioctl=no +ac_cv_lib_png_png_get_libpng_ver=yes +ac_cv_lib_winmm_main=no +ac_cv_lib_z_adler32=yes +ac_cv_lib_z_gzopen=yes +ac_cv_mkdir_takes_one_arg=no +ac_cv_objext=o +ac_cv_path_EGREP='/bin/grep -E' +ac_cv_path_GREP=/bin/grep +ac_cv_path_SDL_CONFIG=/usr/bin/sdl-config +ac_cv_path_install='/usr/bin/install -c' +ac_cv_prog_CPP='gcc -E' +ac_cv_prog_ac_ct_CC=gcc +ac_cv_prog_cc_c89= +ac_cv_prog_cc_g=yes +ac_cv_prog_gcc_traditional=no +ac_cv_search_opendir='none required' +ac_cv_search_readline=-lreadline +ac_cv_search_tgetent=-ltermcap +ac_cv_struct_tm=time.h +ac_cv_sys_file_offset_bits=no +ac_cv_sys_largefile_CC=no +ac_cv_sys_largefile_source=no +ac_cv_type_signal=void +ac_cv_type_size_t=yes + +## ----------------- ## +## Output variables. ## +## ----------------- ## + +CC='gcc' +CFLAGS='-O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls' +CONFIGURE_HOST='linux' +CONFIGURE_TARGET='' +CPP='gcc -E' +CPPFLAGS=' -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT' +DEFS='-DHAVE_CONFIG_H' +ECHO_C='' +ECHO_N='-n' +ECHO_T='' +EGREP='/bin/grep -E' +EXEEXT='' +GREP='/bin/grep' +INSTALL_DATA='${INSTALL} -m 644' +INSTALL_PROGRAM='${INSTALL}' +INSTALL_SCRIPT='${INSTALL}' +JAVACFLAGS='' +JAVAFLAGS='' +LDFLAGS='' +LIBOBJS='' +LIBS='-lreadline -ltermcap -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL' +LTLIBOBJS='' +OBJEXT='o' +OBJS=' sdl/init.o videomode.o sdl/main.o sdl/video.o sdl/video_sw.o sdl/input.o sdl/palette.o pbi_proto80.o af80.o input.o statesav.o ui_basic.o ui.o artifact.o colours.o colours_ntsc.o colours_pal.o colours_external.o screen.o cycle_map.o pbi_mio.o pbi_bb.o pbi_scsi.o sdl/sound.o pokeysnd.o mzpokeysnd.o remez.o sndsave.o sound.o pbi_xld.o voicebox.o votrax.o votraxsnd.o ide.o sdl/video_gl.o xep80.o xep80_fonts.o filter_ntsc.o atari_ntsc/atari_ntsc.o pal_blending.o' +PACKAGE_BUGREPORT='pstehlik@sophics.cz' +PACKAGE_NAME='Atari800' +PACKAGE_STRING='Atari800 3.1.0' +PACKAGE_TARNAME='atari800' +PACKAGE_URL='' +PACKAGE_VERSION='3.1.0' +PATH_SEPARATOR=':' +SDL_CFLAGS='-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT' +SDL_CONFIG='/usr/bin/sdl-config' +SDL_LIBS='-L/usr/lib/x86_64-linux-gnu -lSDL' +SHELL='/bin/bash' +XMKMF='' +ac_ct_CC='gcc' +bindir='${exec_prefix}/bin' +build='x86_64-unknown-linux-gnu' +build_alias='' +build_cpu='x86_64' +build_os='linux-gnu' +build_vendor='unknown' +datadir='${datarootdir}' +datarootdir='${prefix}/share' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +dvidir='${docdir}' +exec_prefix='${prefix}' +host='x86_64-unknown-linux-gnu' +host_alias='' +host_cpu='x86_64' +host_os='linux-gnu' +host_vendor='unknown' +htmldir='${docdir}' +includedir='${prefix}/include' +infodir='${datarootdir}/info' +libdir='${exec_prefix}/lib' +libexecdir='${exec_prefix}/libexec' +localedir='${datarootdir}/locale' +localstatedir='${prefix}/var' +mandir='${datarootdir}/man' +oldincludedir='/usr/include' +pdfdir='${docdir}' +prefix='/usr/local' +program_transform_name='s,x,x,' +psdir='${docdir}' +runstatedir='${localstatedir}/run' +sbindir='${exec_prefix}/sbin' +sharedstatedir='${prefix}/com' +sysconfdir='${prefix}/etc' +target_alias='' + +## ----------- ## +## confdefs.h. ## +## ----------- ## + +/* confdefs.h */ +#define PACKAGE_NAME "Atari800" +#define PACKAGE_TARNAME "atari800" +#define PACKAGE_VERSION "3.1.0" +#define PACKAGE_STRING "Atari800 3.1.0" +#define PACKAGE_BUGREPORT "pstehlik@sophics.cz" +#define PACKAGE_URL "" +#define HAVE_DIRENT_H 1 +#define STDC_HEADERS 1 +#define TIME_WITH_SYS_TIME 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRING_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_ERRNO_H 1 +#define HAVE_SIGNAL_H 1 +#define HAVE_SYS_TIME_H 1 +#define HAVE_TIME_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_FCNTL_H 1 +#define HAVE_SYS_IOCTL_H 1 +#define HAVE_SYS_SOUNDCARD_H 1 +#define HAVE_ARPA_INET_H 1 +#define HAVE_NETDB_H 1 +#define HAVE_NETINET_IN_H 1 +#define HAVE_SYS_SOCKET_H 1 +#define HAVE_TERMIOS_H 1 +#define HAVE_LIBZ 1 +#define HAVE_LIBPNG 1 +#ifndef __cplusplus +#define inline __inline__ +#endif +#define RETSIGTYPE void +#define WORDS_UNALIGNED_OK 1 +#define HAVE_SYS_SELECT_H 1 +#define HAVE_SYS_SOCKET_H 1 +#define SELECT_TYPE_ARG1 int +#define SELECT_TYPE_ARG234 (fd_set *) +#define SELECT_TYPE_ARG5 (struct timeval *) +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +#define HAVE_VPRINTF 1 +#define HAVE_ATEXIT 1 +#define HAVE_CHMOD 1 +#define HAVE_CLOCK 1 +#define HAVE_FDOPEN 1 +#define HAVE_FFLUSH 1 +#define HAVE_FLOOR 1 +#define HAVE_FSTAT 1 +#define HAVE_GETCWD 1 +#define HAVE_GETTIMEOFDAY 1 +#define HAVE_LOCALTIME 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMSET 1 +#define HAVE_MKSTEMP 1 +#define HAVE_MKTEMP 1 +#define HAVE_MODF 1 +#define HAVE_NANOSLEEP 1 +#define HAVE_OPENDIR 1 +#define HAVE_RENAME 1 +#define HAVE_REWIND 1 +#define HAVE_RMDIR 1 +#define HAVE_SIGNAL 1 +#define HAVE_SNPRINTF 1 +#define HAVE_STAT 1 +#define HAVE_STRCASECMP 1 +#define HAVE_STRCHR 1 +#define HAVE_STRDUP 1 +#define HAVE_STRERROR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_STRTOL 1 +#define HAVE_SYSTEM 1 +#define HAVE_TIME 1 +#define HAVE_TMPFILE 1 +#define HAVE_TMPNAM 1 +#define HAVE_UNLINK 1 +#define HAVE_VSNPRINTF 1 +#define HAVE_MKDIR 1 +#define HAVE_SELECT 1 +#define HAVE_USLEEP 1 +#define HAVE_STRNCPY 1 +#define HAVE_GETHOSTBYADDR 1 +#define HAVE_GETHOSTBYNAME 1 +#define HAVE_INET_NTOA 1 +#define HAVE_SOCKET 1 +#define SDL 1 +#define SUPPORTS_PLATFORM_TIME 1 +#define GUI_SDL 1 +#define SUPPORTS_PLATFORM_CONFIGURE 1 +#define SUPPORTS_PLATFORM_CONFIGSAVE 1 +#define SUPPORTS_PLATFORM_PALETTEUPDATE 1 +#define SUPPORTS_CHANGE_VIDEOMODE 1 +#define SUPPORTS_ROTATE_VIDEOMODE 1 +#define PLATFORM_MAP_PALETTE 1 +#define PBI_PROTO80 1 +#define AF80 1 +#define NEW_CYCLE_EXACT 1 +#define CRASH_MENU 1 +#define MONITOR_ASSEMBLER 1 +#define MONITOR_BREAK 1 +#define MONITOR_HINTS 1 +#define EVENT_RECORDING 1 +#define PBI_MIO 1 +#define PBI_BB 1 +#define SOUND 1 +#define SOUND_THIN_API 1 +#define SYNCHRONIZED_SOUND 1 +#define NONLINEAR_MIXING 1 +#define SOUND_CALLBACK 1 +#define INTERPOLATE_SOUND 1 +#define STEREO_SOUND 1 +#define CONSOLE_SOUND 1 +#define PBI_XLD 1 +#define VOICEBOX 1 +#define IDE 1 +#define HAVE_FSEEKO 1 +#define MONITOR_READLINE 1 +#define HAVE_OPENGL 1 +#define XEP80_EMULATION 1 +#define NTSC_FILTER 1 +#define PAL_BLENDING 1 + +configure: exit 0 diff --git a/src/config.status b/src/config.status new file mode 100755 index 0000000..ac394ad --- /dev/null +++ b/src/config.status @@ -0,0 +1,1125 @@ +#! /bin/bash +# Generated by configure. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=${CONFIG_SHELL-/bin/bash} +export SHELL +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Atari800 $as_me 3.1.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +# Files that config.status was made for. +config_files=" Makefile" +config_headers=" config.h" + +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Report bugs to ." + +ac_cs_config="" +ac_cs_version="\ +Atari800 config.status 3.1.0 +configured by ./configure, generated by GNU Autoconf 2.69, + with options \"$ac_cs_config\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='/home/andi/Development/Retro/arstn_atari800-rpi/src' +srcdir='.' +INSTALL='/usr/bin/install -c' +test -n "$AWK" || AWK=awk +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +if $ac_cs_recheck; then + set X /bin/bash './configure' $ac_configure_extra_args --no-create --no-recursion + shift + $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 + CONFIG_SHELL='/bin/bash' + export CONFIG_SHELL + exec "$@" +fi + +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "android/jni/Android.mk") CONFIG_FILES="$CONFIG_FILES android/jni/Android.mk" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +cat >>"$ac_tmp/subs1.awk" <<\_ACAWK && +S["LTLIBOBJS"]="" +S["CONFIGURE_HOST"]="linux" +S["CONFIGURE_TARGET"]="" +S["JAVACFLAGS"]="" +S["JAVAFLAGS"]="" +S["OBJS"]=" sdl/init.o videomode.o sdl/main.o sdl/video.o sdl/video_sw.o sdl/input.o sdl/palette.o pbi_proto80.o af80.o input.o statesav.o ui_basic.o ui.o arti"\ +"fact.o colours.o colours_ntsc.o colours_pal.o colours_external.o screen.o cycle_map.o pbi_mio.o pbi_bb.o pbi_scsi.o sdl/sound.o pokeysnd.o mzpokeysn"\ +"d.o remez.o sndsave.o sound.o pbi_xld.o voicebox.o votrax.o votraxsnd.o ide.o sdl/video_gl.o xep80.o xep80_fonts.o filter_ntsc.o atari_ntsc/atari_nt"\ +"sc.o pal_blending.o" +S["SDL_LIBS"]="-L/usr/lib/x86_64-linux-gnu -lSDL" +S["SDL_CFLAGS"]="-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" +S["SDL_CONFIG"]="/usr/bin/sdl-config" +S["LIBOBJS"]="" +S["EGREP"]="/bin/grep -E" +S["GREP"]="/bin/grep" +S["CPP"]="gcc -E" +S["XMKMF"]="" +S["INSTALL_DATA"]="${INSTALL} -m 644" +S["INSTALL_SCRIPT"]="${INSTALL}" +S["INSTALL_PROGRAM"]="${INSTALL}" +S["OBJEXT"]="o" +S["EXEEXT"]="" +S["ac_ct_CC"]="gcc" +S["CPPFLAGS"]=" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" +S["LDFLAGS"]="" +S["CFLAGS"]="-O2 -Wall -ansi -pedantic -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winline -Wredundant-decls" +S["CC"]="gcc" +S["host_os"]="linux-gnu" +S["host_vendor"]="unknown" +S["host_cpu"]="x86_64" +S["host"]="x86_64-unknown-linux-gnu" +S["build_os"]="linux-gnu" +S["build_vendor"]="unknown" +S["build_cpu"]="x86_64" +S["build"]="x86_64-unknown-linux-gnu" +S["target_alias"]="" +S["host_alias"]="" +S["build_alias"]="" +S["LIBS"]="-lreadline -ltermcap -lm -lpng -lz -L/usr/lib/x86_64-linux-gnu -lSDL" +S["ECHO_T"]="" +S["ECHO_N"]="-n" +S["ECHO_C"]="" +S["DEFS"]="-DHAVE_CONFIG_H" +S["mandir"]="${datarootdir}/man" +S["localedir"]="${datarootdir}/locale" +S["libdir"]="${exec_prefix}/lib" +S["psdir"]="${docdir}" +S["pdfdir"]="${docdir}" +S["dvidir"]="${docdir}" +S["htmldir"]="${docdir}" +S["infodir"]="${datarootdir}/info" +S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}" +S["oldincludedir"]="/usr/include" +S["includedir"]="${prefix}/include" +S["runstatedir"]="${localstatedir}/run" +S["localstatedir"]="${prefix}/var" +S["sharedstatedir"]="${prefix}/com" +S["sysconfdir"]="${prefix}/etc" +S["datadir"]="${datarootdir}" +S["datarootdir"]="${prefix}/share" +S["libexecdir"]="${exec_prefix}/libexec" +S["sbindir"]="${exec_prefix}/sbin" +S["bindir"]="${exec_prefix}/bin" +S["program_transform_name"]="s,x,x," +S["prefix"]="/usr/local" +S["exec_prefix"]="${prefix}" +S["PACKAGE_URL"]="" +S["PACKAGE_BUGREPORT"]="pstehlik@sophics.cz" +S["PACKAGE_STRING"]="Atari800 3.1.0" +S["PACKAGE_VERSION"]="3.1.0" +S["PACKAGE_TARNAME"]="atari800" +S["PACKAGE_NAME"]="Atari800" +S["PATH_SEPARATOR"]=":" +S["SHELL"]="/bin/bash" +_ACAWK +cat >>"$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +D["PACKAGE_NAME"]=" \"Atari800\"" +D["PACKAGE_TARNAME"]=" \"atari800\"" +D["PACKAGE_VERSION"]=" \"3.1.0\"" +D["PACKAGE_STRING"]=" \"Atari800 3.1.0\"" +D["PACKAGE_BUGREPORT"]=" \"pstehlik@sophics.cz\"" +D["PACKAGE_URL"]=" \"\"" +D["HAVE_DIRENT_H"]=" 1" +D["STDC_HEADERS"]=" 1" +D["TIME_WITH_SYS_TIME"]=" 1" +D["HAVE_SYS_TYPES_H"]=" 1" +D["HAVE_SYS_STAT_H"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_STRING_H"]=" 1" +D["HAVE_MEMORY_H"]=" 1" +D["HAVE_STRINGS_H"]=" 1" +D["HAVE_INTTYPES_H"]=" 1" +D["HAVE_STDINT_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_ERRNO_H"]=" 1" +D["HAVE_SIGNAL_H"]=" 1" +D["HAVE_SYS_TIME_H"]=" 1" +D["HAVE_TIME_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_FCNTL_H"]=" 1" +D["HAVE_SYS_IOCTL_H"]=" 1" +D["HAVE_SYS_SOUNDCARD_H"]=" 1" +D["HAVE_ARPA_INET_H"]=" 1" +D["HAVE_NETDB_H"]=" 1" +D["HAVE_NETINET_IN_H"]=" 1" +D["HAVE_SYS_SOCKET_H"]=" 1" +D["HAVE_TERMIOS_H"]=" 1" +D["HAVE_LIBZ"]=" 1" +D["HAVE_LIBPNG"]=" 1" +D["inline"]=" __inline__" +D["RETSIGTYPE"]=" void" +D["WORDS_UNALIGNED_OK"]=" 1" +D["HAVE_SYS_SELECT_H"]=" 1" +D["HAVE_SYS_SOCKET_H"]=" 1" +D["SELECT_TYPE_ARG1"]=" int" +D["SELECT_TYPE_ARG234"]=" (fd_set *)" +D["SELECT_TYPE_ARG5"]=" (struct timeval *)" +D["LSTAT_FOLLOWS_SLASHED_SYMLINK"]=" 1" +D["HAVE_VPRINTF"]=" 1" +D["HAVE_ATEXIT"]=" 1" +D["HAVE_CHMOD"]=" 1" +D["HAVE_CLOCK"]=" 1" +D["HAVE_FDOPEN"]=" 1" +D["HAVE_FFLUSH"]=" 1" +D["HAVE_FLOOR"]=" 1" +D["HAVE_FSTAT"]=" 1" +D["HAVE_GETCWD"]=" 1" +D["HAVE_GETTIMEOFDAY"]=" 1" +D["HAVE_LOCALTIME"]=" 1" +D["HAVE_MEMMOVE"]=" 1" +D["HAVE_MEMSET"]=" 1" +D["HAVE_MKSTEMP"]=" 1" +D["HAVE_MKTEMP"]=" 1" +D["HAVE_MODF"]=" 1" +D["HAVE_NANOSLEEP"]=" 1" +D["HAVE_OPENDIR"]=" 1" +D["HAVE_RENAME"]=" 1" +D["HAVE_REWIND"]=" 1" +D["HAVE_RMDIR"]=" 1" +D["HAVE_SIGNAL"]=" 1" +D["HAVE_SNPRINTF"]=" 1" +D["HAVE_STAT"]=" 1" +D["HAVE_STRCASECMP"]=" 1" +D["HAVE_STRCHR"]=" 1" +D["HAVE_STRDUP"]=" 1" +D["HAVE_STRERROR"]=" 1" +D["HAVE_STRRCHR"]=" 1" +D["HAVE_STRSTR"]=" 1" +D["HAVE_STRTOL"]=" 1" +D["HAVE_SYSTEM"]=" 1" +D["HAVE_TIME"]=" 1" +D["HAVE_TMPFILE"]=" 1" +D["HAVE_TMPNAM"]=" 1" +D["HAVE_UNLINK"]=" 1" +D["HAVE_VSNPRINTF"]=" 1" +D["HAVE_MKDIR"]=" 1" +D["HAVE_SELECT"]=" 1" +D["HAVE_USLEEP"]=" 1" +D["HAVE_STRNCPY"]=" 1" +D["HAVE_GETHOSTBYADDR"]=" 1" +D["HAVE_GETHOSTBYNAME"]=" 1" +D["HAVE_INET_NTOA"]=" 1" +D["HAVE_SOCKET"]=" 1" +D["SDL"]=" 1" +D["SUPPORTS_PLATFORM_TIME"]=" 1" +D["GUI_SDL"]=" 1" +D["SUPPORTS_PLATFORM_CONFIGURE"]=" 1" +D["SUPPORTS_PLATFORM_CONFIGSAVE"]=" 1" +D["SUPPORTS_PLATFORM_PALETTEUPDATE"]=" 1" +D["SUPPORTS_CHANGE_VIDEOMODE"]=" 1" +D["SUPPORTS_ROTATE_VIDEOMODE"]=" 1" +D["PLATFORM_MAP_PALETTE"]=" 1" +D["PBI_PROTO80"]=" 1" +D["AF80"]=" 1" +D["NEW_CYCLE_EXACT"]=" 1" +D["CRASH_MENU"]=" 1" +D["MONITOR_ASSEMBLER"]=" 1" +D["MONITOR_BREAK"]=" 1" +D["MONITOR_HINTS"]=" 1" +D["EVENT_RECORDING"]=" 1" +D["PBI_MIO"]=" 1" +D["PBI_BB"]=" 1" +D["SOUND"]=" 1" +D["SOUND_THIN_API"]=" 1" +D["SYNCHRONIZED_SOUND"]=" 1" +D["NONLINEAR_MIXING"]=" 1" +D["SOUND_CALLBACK"]=" 1" +D["INTERPOLATE_SOUND"]=" 1" +D["STEREO_SOUND"]=" 1" +D["CONSOLE_SOUND"]=" 1" +D["PBI_XLD"]=" 1" +D["VOICEBOX"]=" 1" +D["IDE"]=" 1" +D["HAVE_FSEEKO"]=" 1" +D["MONITOR_READLINE"]=" 1" +D["HAVE_OPENGL"]=" 1" +D["XEP80_EMULATION"]=" 1" +D["NTSC_FILTER"]=" 1" +D["PAL_BLENDING"]=" 1" + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ { + line = $ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + ac_datarootdir_hack=' + s&@datadir@&${datarootdir}&g + s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g + s&@infodir@&${datarootdir}/info&g + s&@localedir@&${datarootdir}/locale&g + s&@mandir@&${datarootdir}/man&g + s&\${datarootdir}&${prefix}/share&g' ;; +esac +ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +} + +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + + esac + +done # for ac_tag + + +as_fn_exit 0 diff --git a/src/configure b/src/configure old mode 100644 new mode 100755 index 385afe5..a3e64b8 --- a/src/configure +++ b/src/configure @@ -1,13 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for Atari800 3.1.0. +# Generated by GNU Autoconf 2.69 for Atari800 3.1.0. # # Report bugs to . # # -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software -# Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation @@ -136,6 +134,31 @@ export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh @@ -169,7 +192,8 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi -test x\$exitcode = x0 || exit 1" +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && @@ -214,21 +238,25 @@ IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : - # We cannot yet assume a decent shell, so we have to provide a - # neutralization value for shells without unset; and this also - # works around shells that cannot unset nonexistent variables. - # Preserve -v and -x to the replacement shell. - BASH_ENV=/dev/null - ENV=/dev/null - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV - export CONFIG_SHELL - case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; - esac - exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi if test x$as_have_required = xno; then : @@ -331,6 +359,14 @@ $as_echo X"$as_dir" | } # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take @@ -452,6 +488,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). @@ -486,16 +526,16 @@ if (echo >conf$$.file) 2>/dev/null; then # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' + as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @@ -507,28 +547,8 @@ else as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in #( - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -654,6 +674,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -768,6 +789,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1020,6 +1042,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1157,7 +1188,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1185,8 +1216,6 @@ target=$target_alias if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -1312,6 +1341,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1497,9 +1527,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Atari800 configure 3.1.0 -generated by GNU Autoconf 2.68 +generated by GNU Autoconf 2.69 -Copyright (C) 2010 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1575,7 +1605,7 @@ $as_echo "$ac_try_echo"; } >&5 test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext + test -x conftest$ac_exeext }; then : ac_retval=0 else @@ -1923,7 +1953,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Atari800 $as_me 3.1.0, which was -generated by GNU Autoconf 2.68. Invocation command line was +generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2500,7 +2530,8 @@ if [ "$a8_target" = "ps2" ]; then LDFLAGS="$LDFLAGS -L${PS2SDK}/ports/lib" fi if [ "$a8_target" = "rpi" ]; then - CC="${RPI_SDK}/bin/arm-linux-gnueabihf-gcc" + [ -z "$RPI_SDK" ] && RPI_SDK="/opt/vc" + CC="gcc" CFLAGS="$CFLAGS -I${RPI_SDK}/include -I${RPI_SDK}/include/SDL -I${RPI_SDK}/include/interface/vmcs_host/linux -I${RPI_SDK}/include/interface/vcos/pthreads" LDFLAGS="$LDFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs -L${RPI_SDK}/lib" fi @@ -2540,7 +2571,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2580,7 +2611,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2633,7 +2664,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2674,7 +2705,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue @@ -2732,7 +2763,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -2776,7 +2807,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -3298,8 +3329,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include -#include -#include +struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); @@ -3421,7 +3451,7 @@ case $as_dir/ in #(( # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -4054,7 +4084,7 @@ do for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue + as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in @@ -4120,7 +4150,7 @@ do for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue + as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in @@ -5238,6 +5268,9 @@ $as_echo "#define SUPPORTS_PLATFORM_CONFIGSAVE 1" >>confdefs.h $as_echo "#define SUPPORTS_PLATFORM_PALETTEUPDATE 1" >>confdefs.h + +$as_echo "#define PLATFORM_MAP_PALETTE 1" >>confdefs.h + as_ac_Lib=`$as_echo "ac_cv_lib_GLESv2''_main" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLESv2" >&5 $as_echo_n "checking for main in -lGLESv2... " >&6; } @@ -6484,11 +6517,11 @@ else int main () { -/* FIXME: Include the comments suggested by Paul. */ + #ifndef __cplusplus - /* Ultrix mips cc rejects this. */ + /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; - const charset cs; + const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; @@ -6505,8 +6538,9 @@ main () ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this. */ - char *t; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; @@ -6522,10 +6556,10 @@ main () iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this saying + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; @@ -7437,7 +7471,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -8372,7 +8406,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -8896,7 +8930,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -8942,7 +8976,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -8966,7 +9000,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -9011,7 +9045,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -9035,7 +9069,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -9067,6 +9101,8 @@ _ACEOF esac rm -rf conftest* fi + + fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 @@ -9974,16 +10010,16 @@ if (echo >conf$$.file) 2>/dev/null; then # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' + as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @@ -10043,28 +10079,16 @@ else as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in #( - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -10086,7 +10110,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by Atari800 $as_me 3.1.0, which was -generated by GNU Autoconf 2.68. Invocation command line was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -10148,10 +10172,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ Atari800 config.status 3.1.0 -configured by $0, generated by GNU Autoconf 2.68, +configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" -Copyright (C) 2010 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -10240,7 +10264,7 @@ fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' diff --git a/src/cpu.o b/src/cpu.o new file mode 100644 index 0000000..5469a7e Binary files /dev/null and b/src/cpu.o differ diff --git a/src/crc32.o b/src/crc32.o new file mode 100644 index 0000000..41eb90e Binary files /dev/null and b/src/crc32.o differ diff --git a/src/cycle_map.o b/src/cycle_map.o new file mode 100644 index 0000000..0ee7e8f Binary files /dev/null and b/src/cycle_map.o differ diff --git a/src/devices.c b/src/devices.c index 07fc8b5..febf9a2 100644 --- a/src/devices.c +++ b/src/devices.c @@ -560,7 +560,7 @@ void Devices_H_CloseAll(void) static void Devices_H_Init(void) { if (devbug) - Log_print("HHINIT"); + Log_println("HHINIT"); Devices_h_current_dir[0][0] = '\0'; Devices_h_current_dir[1][0] = '\0'; Devices_h_current_dir[2][0] = '\0'; @@ -609,20 +609,20 @@ int Devices_Initialise(int *argc, char *argv[]) devbug = TRUE; else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-H1 Set path for H1: device"); - Log_print("\t-H2 Set path for H2: device"); - Log_print("\t-H3 Set path for H3: device"); - Log_print("\t-H4 Set path for H4: device"); - Log_print("\t-Hpath Set path for Atari executables on the H: device"); - Log_print("\t-hreadonly Enable read-only mode for H: device"); - Log_print("\t-hreadwrite Disable read-only mode for H: device"); - Log_print("\t-devbug Debugging messages for H: and P: devices"); + Log_println("\t-H1 Set path for H1: device"); + Log_println("\t-H2 Set path for H2: device"); + Log_println("\t-H3 Set path for H3: device"); + Log_println("\t-H4 Set path for H4: device"); + Log_println("\t-Hpath Set path for Atari executables on the H: device"); + Log_println("\t-hreadonly Enable read-only mode for H: device"); + Log_println("\t-hreadwrite Disable read-only mode for H: device"); + Log_println("\t-devbug Debugging messages for H: and P: devices"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -811,7 +811,7 @@ static void Devices_H_Open(void) #endif if (devbug) - Log_print("HHOPEN"); + Log_println("HHOPEN"); if (Devices_GetHostPath(TRUE) == 0) return; @@ -821,7 +821,7 @@ static void Devices_H_Open(void) #if 0 if (devbug) - Log_print("atari_filename=\"%s\", atari_path=\"%s\" host_path=\"%s\"", atari_filename, atari_path, host_path); + Log_println("atari_filename=\"%s\", atari_path=\"%s\" host_path=\"%s\"", atari_filename, atari_path, host_path); #endif fp = NULL; @@ -972,7 +972,7 @@ static void Devices_H_Open(void) static void Devices_H_Close(void) { if (devbug) - Log_print("HHCLOS"); + Log_println("HHCLOS"); if (!Devices_GetIOCB()) return; if (h_fp[h_iocb] != NULL) { @@ -986,7 +986,7 @@ static void Devices_H_Close(void) static void Devices_H_Read(void) { if (devbug) - Log_print("HHREAD"); + Log_println("HHREAD"); if (!Devices_GetIOCB()) return; if (h_fp[h_iocb] != NULL) { @@ -1052,7 +1052,7 @@ static void Devices_H_Read(void) static void Devices_H_Write(void) { if (devbug) - Log_print("HHWRIT"); + Log_println("HHWRIT"); if (!Devices_GetIOCB()) return; if (h_fp[h_iocb] != NULL) { @@ -1077,7 +1077,7 @@ static void Devices_H_Write(void) static void Devices_H_Status(void) { if (devbug) - Log_print("HHSTAT"); + Log_println("HHSTAT"); CPU_regY = 146; /* function not implemented in handler; XXX: check file existence? */ CPU_SetN; @@ -1129,7 +1129,7 @@ static void Devices_H_Rename(void) int readonly = FALSE; if (devbug) - Log_print("RENAME Command"); + Log_println("RENAME Command"); CHECK_READ_ONLY; bufadr = Devices_GetHostPath(FALSE); @@ -1193,7 +1193,7 @@ static void Devices_H_Rename(void) } if (devbug) - Log_print("%d renamed, %d failed, %d locked", + Log_println("%d renamed, %d failed, %d locked", num_changed, num_failed, num_locked); if (num_locked) { @@ -1222,7 +1222,7 @@ static void Devices_H_Delete(void) int readonly = FALSE; if (devbug) - Log_print("DELETE Command"); + Log_println("DELETE Command"); CHECK_READ_ONLY; if (Devices_GetHostPath(FALSE) == 0) @@ -1251,7 +1251,7 @@ static void Devices_H_Delete(void) } if (devbug) - Log_print("%d deleted, %d failed, %d locked", + Log_println("%d deleted, %d failed, %d locked", num_deleted, num_failed, num_locked); if (num_locked) { @@ -1298,7 +1298,7 @@ static void Devices_H_LockUnlock(int readonly) } if (devbug) - Log_print("%d changed, %d failed", + Log_println("%d changed, %d failed", num_changed, num_failed); if (num_failed != 0 || num_changed == 0) { @@ -1314,14 +1314,14 @@ static void Devices_H_LockUnlock(int readonly) static void Devices_H_Lock(void) { if (devbug) - Log_print("LOCK Command"); + Log_println("LOCK Command"); Devices_H_LockUnlock(TRUE); } static void Devices_H_Unlock(void) { if (devbug) - Log_print("UNLOCK Command"); + Log_println("UNLOCK Command"); Devices_H_LockUnlock(FALSE); } @@ -1330,7 +1330,7 @@ static void Devices_H_Unlock(void) static void Devices_H_Note(void) { if (devbug) - Log_print("NOTE Command"); + Log_println("NOTE Command"); if (!Devices_GetIOCB()) return; if (h_fp[h_iocb] != NULL) { @@ -1360,7 +1360,7 @@ static void Devices_H_Note(void) static void Devices_H_Point(void) { if (devbug) - Log_print("POINT Command"); + Log_println("POINT Command"); if (!Devices_GetIOCB()) return; if (h_fp[h_iocb] != NULL) { @@ -1396,7 +1396,7 @@ static int Devices_H_BinReadWord(void) binf = NULL; if (BINLOAD_start_binloading) { BINLOAD_start_binloading = FALSE; - Log_print("binload: not valid BIN file"); + Log_println("binload: not valid BIN file"); CPU_regY = 180; /* MyDOS: not a binary file */ CPU_SetN; return -1; @@ -1439,7 +1439,7 @@ static void Devices_H_BinLoaderCont(void) to = (UWORD) temp; if (devbug) - Log_print("H: Load: From %04X to %04X", from, to); + Log_println("H: Load: From %04X to %04X", from, to); if (BINLOAD_start_binloading) { if (runBinFile) @@ -1483,7 +1483,7 @@ static void Devices_H_BinLoaderCont(void) static void Devices_H_LoadProceed(int mydos) { - /* Log_print("MyDOS %d, AX1 %d, AX2 %d", mydos, MEMORY_dGetByte(Devices_ICAX1Z), MEMORY_dGetByte(Devices_ICAX2Z)); */ + /* Log_println("MyDOS %d, AX1 %d, AX2 %d", mydos, MEMORY_dGetByte(Devices_ICAX1Z), MEMORY_dGetByte(Devices_ICAX2Z)); */ if (mydos) { switch (MEMORY_dGetByte(Devices_ICAX1Z) /* XXX: & 7 ? */) { case 4: @@ -1522,7 +1522,7 @@ static void Devices_H_Load(int mydos) const char *p; UBYTE buf[2]; if (devbug) - Log_print("LOAD Command"); + Log_println("LOAD Command"); h_devnum = Devices_GetNumber(FALSE); if (h_devnum < 0) return; @@ -1571,7 +1571,7 @@ static void Devices_H_Load(int mydos) if (fread(buf, 1, 2, binf) != 2 || buf[0] != 0xff || buf[1] != 0xff) { fclose(binf); binf = NULL; - Log_print("H: load: not valid BIN file"); + Log_println("H: load: not valid BIN file"); CPU_regY = 180; CPU_SetN; return; @@ -1583,7 +1583,7 @@ static void Devices_H_Load(int mydos) static void Devices_H_FileLength(void) { if (devbug) - Log_print("Get File Length Command"); + Log_println("Get File Length Command"); if (!Devices_GetIOCB()) return; /* if IOCB is closed then assume it is a MyDOS Load File command */ @@ -1629,7 +1629,7 @@ static void Devices_H_FileLength(void) static void Devices_H_MakeDirectory(void) { if (devbug) - Log_print("MKDIR Command"); + Log_println("MKDIR Command"); CHECK_READ_ONLY; if (Devices_GetHostPath(FALSE) == 0) @@ -1650,7 +1650,7 @@ static void Devices_H_MakeDirectory(void) static void Devices_H_RemoveDirectory(void) { if (devbug) - Log_print("RMDIR Command"); + Log_println("RMDIR Command"); CHECK_READ_ONLY; if (Devices_GetHostPath(FALSE) == 0) @@ -1667,7 +1667,7 @@ static void Devices_H_RemoveDirectory(void) static void Devices_H_ChangeDirectory(void) { if (devbug) - Log_print("CD Command"); + Log_println("CD Command"); if (Devices_GetHostPath(FALSE) == 0) return; @@ -1704,7 +1704,7 @@ static void Devices_H_DiskInfo(void) int devnum; if (devbug) - Log_print("Get Disk Information Command"); + Log_println("Get Disk Information Command"); devnum = Devices_GetNumber(FALSE); if (devnum < 0) @@ -1724,7 +1724,7 @@ static void Devices_H_ToAbsolutePath(void) const char *p; if (devbug) - Log_print("To Absolute Path Command"); + Log_println("To Absolute Path Command"); if (Devices_GetHostPath(FALSE) == 0) return; @@ -1761,7 +1761,7 @@ static void Devices_H_ToAbsolutePath(void) static void Devices_H_Special(void) { if (devbug) - Log_print("HHSPEC"); + Log_println("HHSPEC"); switch (MEMORY_dGetByte(Devices_ICCOMZ)) { #ifdef DO_RENAME @@ -1817,11 +1817,11 @@ static void Devices_H_Special(void) return; case 0xfe: if (devbug) - Log_print("FORMAT Command"); + Log_println("FORMAT Command"); break; default: if (devbug) - Log_print("UNKNOWN Command %02X", MEMORY_dGetByte(Devices_ICCOMZ)); + Log_println("UNKNOWN Command %02X", MEMORY_dGetByte(Devices_ICCOMZ)); break; } @@ -1862,7 +1862,7 @@ static char spool_file[FILENAME_MAX]; static void Devices_P_Close(void) { if (devbug) - Log_print("PHCLOS"); + Log_println("PHCLOS"); if (phf != NULL) { fclose(phf); @@ -1876,7 +1876,7 @@ static void Devices_P_Close(void) int retval; sprintf(command, Devices_print_command, spool_file); if ((retval = system(command)) == -1) - Log_print("Print command \"%s\' failed", command); + Log_println("Print command \"%s\' failed", command); #if defined(HAVE_UTIL_UNLINK) && !defined(VMS) && !defined(MACOSX) if (Util_unlink(spool_file) != 0) { perror(spool_file); @@ -1891,7 +1891,7 @@ static void Devices_P_Close(void) static void Devices_P_Open(void) { if (devbug) - Log_print("PHOPEN"); + Log_println("PHOPEN"); if (phf != NULL) Devices_P_Close(); @@ -1912,7 +1912,7 @@ static void Devices_P_Write(void) UBYTE byte; if (devbug) - Log_print("PHWRIT"); + Log_println("PHWRIT"); byte = CPU_regA; if (byte == 0x9b) @@ -1926,13 +1926,13 @@ static void Devices_P_Write(void) static void Devices_P_Status(void) { if (devbug) - Log_print("PHSTAT"); + Log_println("PHSTAT"); } static void Devices_P_Init(void) { if (devbug) - Log_print("PHINIT"); + Log_println("PHINIT"); if (phf != NULL) { fclose(phf); @@ -2048,7 +2048,7 @@ struct DEV_B dev_b_status; static void Devices_B_Open(void) { if (devbug) - Log_print("B: OPEN"); + Log_println("B: OPEN"); if (MEMORY_dGetByte(Devices_ICAX1Z) != 8) { CPU_regY = 163; /* read-only device */ @@ -2067,7 +2067,7 @@ static void Devices_B_Open(void) static void Devices_B_Close(void) { if (devbug) - Log_print("B: CLOSE (%s)", dev_b_status.url); + Log_println("B: CLOSE (%s)", dev_b_status.url); if (dev_b_status.pos > 0) dev_b_status.ready = TRUE; @@ -2083,7 +2083,7 @@ static void Devices_B_Write(void) byte = CPU_regA; if (devbug) - Log_print("B: WRITE ([%d] %02X, '%c')", dev_b_status.pos, byte, byte); + Log_println("B: WRITE ([%d] %02X, '%c')", dev_b_status.pos, byte, byte); if (byte == 0x9b) byte = '\0'; @@ -2102,13 +2102,13 @@ static void Devices_B_Write(void) static void Devices_B_Null(void) { if (devbug) - Log_print("B: NULL"); + Log_println("B: NULL"); } static void Devices_B_Read(void) { if (devbug) - Log_print("B: READ"); + Log_println("B: READ"); CPU_regY = 136; /* end of file */ CPU_SetN; @@ -2117,7 +2117,7 @@ static void Devices_B_Read(void) static void Devices_B_Init(void) { if (devbug) - Log_print("B: INIT"); + Log_println("B: INIT"); CPU_regY = 1; CPU_ClrN; diff --git a/src/devices.o b/src/devices.o new file mode 100644 index 0000000..b4a8a21 Binary files /dev/null and b/src/devices.o differ diff --git a/src/emuos.o b/src/emuos.o new file mode 100644 index 0000000..7a41675 Binary files /dev/null and b/src/emuos.o differ diff --git a/src/esc.o b/src/esc.o new file mode 100644 index 0000000..1c7cfcf Binary files /dev/null and b/src/esc.o differ diff --git a/src/filter_ntsc.c b/src/filter_ntsc.c index e9ecb35..6e527d4 100644 --- a/src/filter_ntsc.c +++ b/src/filter_ntsc.c @@ -219,7 +219,7 @@ int FILTER_NTSC_Initialise(int *argc, char *argv[]) if (i_a) { int idx = CFG_MatchTextParameter(argv[++i], preset_cfg_strings, FILTER_NTSC_PRESET_SIZE); if (idx < 0) { - Log_print("Invalid value for -ntsc-filter-preset"); + Log_println("Invalid value for -ntsc-filter-preset"); return FALSE; } FILTER_NTSC_SetPreset(idx); @@ -227,20 +227,20 @@ int FILTER_NTSC_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-ntsc-sharpness Set sharpness for NTSC filter (default %.2g)", FILTER_NTSC_setup.sharpness); - Log_print("\t-ntsc-resolution Set resolution for NTSC filter (default %.2g)", FILTER_NTSC_setup.resolution); - Log_print("\t-ntsc-artifacts Set luma artifacts ratio for NTSC filter (default %.2g)", FILTER_NTSC_setup.artifacts); - Log_print("\t-ntsc-fringing Set chroma fringing ratio for NTSC filter (default %.2g)", FILTER_NTSC_setup.fringing); - Log_print("\t-ntsc-bleed Set bleed for NTSC filter (default %.2g)", FILTER_NTSC_setup.bleed); - Log_print("\t-ntsc-burstphase Set burst phase (artifact colours) for NTSC filter (default %.2g)", FILTER_NTSC_setup.burst_phase); - Log_print("\t-ntsc-filter-preset composite|svideo|rgb|monochrome"); - Log_print("\t Use one of predefined NTSC filter adjustments"); + Log_println("\t-ntsc-sharpness Set sharpness for NTSC filter (default %.2g)", FILTER_NTSC_setup.sharpness); + Log_println("\t-ntsc-resolution Set resolution for NTSC filter (default %.2g)", FILTER_NTSC_setup.resolution); + Log_println("\t-ntsc-artifacts Set luma artifacts ratio for NTSC filter (default %.2g)", FILTER_NTSC_setup.artifacts); + Log_println("\t-ntsc-fringing Set chroma fringing ratio for NTSC filter (default %.2g)", FILTER_NTSC_setup.fringing); + Log_println("\t-ntsc-bleed Set bleed for NTSC filter (default %.2g)", FILTER_NTSC_setup.bleed); + Log_println("\t-ntsc-burstphase Set burst phase (artifact colours) for NTSC filter (default %.2g)", FILTER_NTSC_setup.burst_phase); + Log_println("\t-ntsc-filter-preset composite|svideo|rgb|monochrome"); + Log_println("\t Use one of predefined NTSC filter adjustments"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/filter_ntsc.o b/src/filter_ntsc.o new file mode 100644 index 0000000..71b11d8 Binary files /dev/null and b/src/filter_ntsc.o differ diff --git a/src/gtia.o b/src/gtia.o new file mode 100644 index 0000000..3330081 Binary files /dev/null and b/src/gtia.o differ diff --git a/src/ide.c b/src/ide.c index 06fc6ad..0d1cb56 100644 --- a/src/ide.c +++ b/src/ide.c @@ -208,7 +208,7 @@ static void ide_reset(struct ide_device *s) { static int ide_init_drive(struct ide_device *s, char *filename) { if (!(s->file = fopen(filename, "rb+"))) { - Log_print("%s: %s", filename, strerror(errno)); + Log_println("%s: %s", filename, strerror(errno)); return FALSE; } @@ -233,7 +233,7 @@ static int ide_init_drive(struct ide_device *s, char *filename) { if (s->cylinders > 16383) s->cylinders = 16383; else if (s->cylinders < 2) { - Log_print("%s: image file too small\n", filename); + Log_println("%s: image file too small\n", filename); fclose(s->file); return FALSE; } @@ -874,7 +874,7 @@ int IDE_Initialise(int *argc, char *argv[]) { if (!strcmp(argv[i], "-ide" )) { if (!available) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } filename = Util_strdup(argv[++i]); @@ -884,9 +884,9 @@ int IDE_Initialise(int *argc, char *argv[]) { device.is_cf = 1; } else { if (!strcmp(argv[i], "-help")) { - Log_print("\t-ide Enable IDE emulation"); - Log_print("\t-ide_debug Enable IDE Debug Output"); - Log_print("\t-ide_cf Enable CF emulation"); + Log_println("\t-ide Enable IDE emulation"); + Log_println("\t-ide_debug Enable IDE Debug Output"); + Log_println("\t-ide_cf Enable CF emulation"); } argv[j++] = argv[i]; } diff --git a/src/ide.o b/src/ide.o new file mode 100644 index 0000000..8b972a3 Binary files /dev/null and b/src/ide.o differ diff --git a/src/img_tape.o b/src/img_tape.o new file mode 100644 index 0000000..ec0d371 Binary files /dev/null and b/src/img_tape.o differ diff --git a/src/input.c b/src/input.c index ce316cf..4eb394b 100644 --- a/src/input.c +++ b/src/input.c @@ -177,7 +177,7 @@ int INPUT_Initialise(int *argc, char *argv[]) if (i_a) { INPUT_mouse_port = Util_sscandec(argv[++i]) - 1; if (INPUT_mouse_port < 0 || INPUT_mouse_port > 3) { - Log_print("Invalid mouse port number - should be between 0 and 3"); + Log_println("Invalid mouse port number - should be between 0 and 3"); return FALSE; } } @@ -187,7 +187,7 @@ int INPUT_Initialise(int *argc, char *argv[]) if (i_a) { INPUT_mouse_speed = Util_sscandec(argv[++i]); if (INPUT_mouse_speed < 1 || INPUT_mouse_speed > 9) { - Log_print("Invalid mouse speed - should be between 1 and 9"); + Log_println("Invalid mouse speed - should be between 1 and 9"); return FALSE; } } @@ -201,7 +201,7 @@ int INPUT_Initialise(int *argc, char *argv[]) if (i_a) { char *recfilename = argv[++i]; if ((recordfp = gzopen(recfilename, "wb")) == NULL) { - Log_print("Cannot open record file"); + Log_println("Cannot open record file"); return FALSE; } else { @@ -215,20 +215,20 @@ int INPUT_Initialise(int *argc, char *argv[]) if (i_a) { char *pbfilename = argv[++i]; if ((playbackfp = gzopen(pbfilename, "rb")) == NULL) { - Log_print("Cannot open playback file"); + Log_println("Cannot open playback file"); return FALSE; } else { playingback = TRUE; gzgets(playbackfp, gzbuf, GZBUFSIZE); if (sscanf(gzbuf, "Atari800 event recording, version: %d\n", &recording_version) != 1) { - Log_print("Invalid playback file"); + Log_println("Invalid playback file"); playingback = FALSE; gzclose(playbackfp); return FALSE; } else if (recording_version > EVENT_RECORDING_VERSION) { - Log_print("Newer version of playback file than this version of Atari800 can handle"); + Log_println("Newer version of playback file than this version of Atari800 can handle"); playingback = FALSE; gzclose(playbackfp); return FALSE; @@ -246,7 +246,7 @@ int INPUT_Initialise(int *argc, char *argv[]) INPUT_cx85 = 1; cx85_port = Util_sscandec(argv[++i]) - 1; if (cx85_port < 0 || cx85_port > 3) { - Log_print("Invalid cx85 port - should be between 0 and 3"); + Log_println("Invalid cx85 port - should be between 0 and 3"); return FALSE; } } @@ -254,30 +254,30 @@ int INPUT_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-mouse off Do not use mouse"); - Log_print("\t-mouse pad Emulate paddles"); - Log_print("\t-mouse touch Emulate Atari Touch Tablet"); - Log_print("\t-mouse koala Emulate Koala Pad"); - Log_print("\t-mouse pen Emulate Light Pen"); - Log_print("\t-mouse gun Emulate Light Gun"); - Log_print("\t-mouse amiga Emulate Amiga mouse"); - Log_print("\t-mouse st Emulate Atari ST mouse"); - Log_print("\t-mouse trak Emulate Atari Trak-Ball"); - Log_print("\t-mouse joy Emulate joystick using mouse"); - Log_print("\t-mouseport Set mouse port 1-4 (default 1)"); - Log_print("\t-mousespeed Set mouse speed 1-9 (default 3)"); - Log_print("\t-directmouse Use absolute X/Y mouse coords"); - Log_print("\t-cx85 Emulate CX85 numeric keypad on port "); - Log_print("\t-multijoy Emulate MultiJoy4 interface"); - Log_print("\t-record Record input to "); - Log_print("\t-playback Playback input from "); + Log_println("\t-mouse off Do not use mouse"); + Log_println("\t-mouse pad Emulate paddles"); + Log_println("\t-mouse touch Emulate Atari Touch Tablet"); + Log_println("\t-mouse koala Emulate Koala Pad"); + Log_println("\t-mouse pen Emulate Light Pen"); + Log_println("\t-mouse gun Emulate Light Gun"); + Log_println("\t-mouse amiga Emulate Amiga mouse"); + Log_println("\t-mouse st Emulate Atari ST mouse"); + Log_println("\t-mouse trak Emulate Atari Trak-Ball"); + Log_println("\t-mouse joy Emulate joystick using mouse"); + Log_println("\t-mouseport Set mouse port 1-4 (default 1)"); + Log_println("\t-mousespeed Set mouse speed 1-9 (default 3)"); + Log_println("\t-directmouse Use absolute X/Y mouse coords"); + Log_println("\t-cx85 Emulate CX85 numeric keypad on port "); + Log_println("\t-multijoy Emulate MultiJoy4 interface"); + Log_println("\t-record Record input to "); + Log_println("\t-playback Playback input from "); } argv[j++] = argv[i]; } /* this is the end of the additional argument check */ if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -286,7 +286,7 @@ int INPUT_Initialise(int *argc, char *argv[]) INPUT_mouse_mode == INPUT_MOUSE_PAD || INPUT_mouse_mode == INPUT_MOUSE_TOUCH || INPUT_mouse_mode == INPUT_MOUSE_KOALA)) { - Log_print("-directmouse only valid with -mouse pad|touch|koala"); + Log_println("-directmouse only valid with -mouse pad|touch|koala"); return FALSE; } @@ -892,7 +892,7 @@ static void update_adler32_of_screen(void) gzgets(playbackfp, gzbuf, GZBUFSIZE); sscanf(gzbuf, "%08X ", &pb_adler32val); if (pb_adler32val != adler32val){ - Log_print("adler32 does not match"); + Log_println("adler32 does not match"); adler32_errors++; } diff --git a/src/input.o b/src/input.o new file mode 100644 index 0000000..ce697d0 Binary files /dev/null and b/src/input.o differ diff --git a/src/log.c b/src/log.c index 86992ba..d1db432 100644 --- a/src/log.c +++ b/src/log.c @@ -28,59 +28,68 @@ #include #include #include +#include #ifdef ANDROID #include #endif #include "log.h" -#ifdef MACOSX -# define PRINT(a) ControlManagerMessagePrint(a) -#elif defined(ANDROID) -# define PRINT(a) __android_log_write(ANDROID_LOG_DEBUG, "A800Core", a) -#else -# define PRINT(a) printf("%s", a) -#endif +char *LOG_FILE_PATH; +bool LOG_DEBUG_SDL_BUTTONS = 0; +FILE *LOG_FP = 0; -#ifdef BUFFERED_LOG -char Log_buffer[Log_BUFFER_SIZE]; -#endif +int Log_ReadConfig(char string[], char *ptr) { + if (strcmp(string, "LOG_DEBUG_SDL_BUTTONS") == 0) { + if (strcmp("1", ptr) == 0) { + LOG_DEBUG_SDL_BUTTONS = 1; + return 1; + } + } + if (strcmp(string, "LOGFILE") == 0) { + LOG_FILE_PATH = strdup(ptr); + Log_println("Opening logfile %s.\n", LOG_FILE_PATH); + LOG_FP = fopen(LOG_FILE_PATH, "w"); + Log_println("Logfile %s opened for writing.\n", LOG_FILE_PATH); + return 1; + } + return 0; +} -void Log_print(char *format, ...) -{ - va_list args; - char buffer[8192]; +void Log_WriteConfig(FILE *fp) { + fprintf(fp, "LOGFILE=%s\n", LOG_FILE_PATH); + fprintf(fp, "LOG_DEBUG_SDL_BUTTONS=%d\n", LOG_DEBUG_SDL_BUTTONS); +} +void Log_print(char *format, ...) { + va_list args; va_start(args, format); -#ifdef HAVE_VSNPRINTF - vsnprintf(buffer, sizeof(buffer) - 2 /* -2 for the strcat() */, format, args); -#else - vsprintf(buffer, format, args); -#endif + if (LOG_FP) { + vfprintf(LOG_FP, format, args); + } else { + vfprintf(stdout, format, args); + } + Log_flushlog(); va_end(args); +} -#ifdef __PLUS - strcat(buffer, "\r\n"); -#else - strcat(buffer, "\n"); -#endif - -#ifdef BUFFERED_LOG - if ((strlen(Log_buffer) + strlen(buffer) + 1) > Log_BUFFER_SIZE) - *Log_buffer = 0; - - strcat(Log_buffer, buffer); -#else - PRINT(buffer); -#endif +void Log_println(char *format, ...) { + va_list args; + va_start(args, format); + if (LOG_FP) { + vfprintf(LOG_FP, format, args); + fprintf(LOG_FP, "\n"); + } else { + vfprintf(stdout, format, args); + fprintf(stdout, "\n"); + } + Log_flushlog(); + va_end(args); } void Log_flushlog(void) { -#ifdef BUFFERED_LOG - if (*Log_buffer) { - PRINT(Log_buffer); - *Log_buffer = 0; + if (LOG_FP) { + fflush(LOG_FP); } -#endif } diff --git a/src/log.h b/src/log.h index 1bb70b4..b93f40e 100644 --- a/src/log.h +++ b/src/log.h @@ -1,10 +1,10 @@ #ifndef LOG_H_ #define LOG_H_ -#define Log_BUFFER_SIZE 8192 -extern char Log_buffer[Log_BUFFER_SIZE]; - +int Log_ReadConfig(char string[], char *ptr); +void Log_WriteConfig(FILE *fp); void Log_print(char *format, ...); +void Log_println(char *format, ...); void Log_flushlog(void); #endif /* LOG_H_ */ diff --git a/src/log.o b/src/log.o new file mode 100644 index 0000000..a6c837f Binary files /dev/null and b/src/log.o differ diff --git a/src/memory.c b/src/memory.c index e816176..e5abbc9 100644 --- a/src/memory.c +++ b/src/memory.c @@ -596,7 +596,7 @@ void MEMORY_StateRead(UBYTE SaveVerbose, UBYTE StateVersion) } if (!MEMORY_SizeValid(MEMORY_ram_size)) { MEMORY_ram_size = 64; - Log_print("Warning: Bad RAM size read in from state save, defaulting to 64 KB"); + Log_println("Warning: Bad RAM size read in from state save, defaulting to 64 KB"); } /* Read PORTB and set variables that are based on it. */ @@ -919,7 +919,7 @@ static void MosaicPutByte(UWORD addr, UBYTE byte) int newbank; if (addr < 0xffc0) return; #ifdef DEBUG - Log_print("MosaicPutByte:%4X:%2X",addr,byte); + Log_println("MosaicPutByte:%4X:%2X",addr,byte); #endif newbank = addr - 0xffc0; if (newbank == mosaic_curbank || (newbank >= mosaic_current_num_banks && mosaic_curbank >= mosaic_current_num_banks)) return; /*same bank or rom -> rom*/ @@ -946,7 +946,7 @@ static void MosaicPutByte(UWORD addr, UBYTE byte) static UBYTE MosaicGetByte(UWORD addr, int no_side_effects) { #ifdef DEBUG - Log_print("MosaicGetByte%4X",addr); + Log_println("MosaicGetByte%4X",addr); #endif return MEMORY_mem[addr]; } @@ -969,7 +969,7 @@ static void AxlonPutByte(UWORD addr, UBYTE byte) if ((addr&0xff00) == 0x0f00) MEMORY_mem[addr] = byte; if ((addr&0xff) < 0xc0) return; /*0xffc0-0xffff and 0x0fc0-0x0fff only*/ #ifdef DEBUG - Log_print("AxlonPutByte:%4X:%2X", addr, byte); + Log_println("AxlonPutByte:%4X:%2X", addr, byte); #endif newbank = (byte&axlon_current_bankmask); if (newbank == axlon_curbank) return; @@ -981,7 +981,7 @@ static void AxlonPutByte(UWORD addr, UBYTE byte) static UBYTE AxlonGetByte(UWORD addr, int no_side_effects) { #ifdef DEBUG - Log_print("AxlonGetByte%4X",addr); + Log_println("AxlonGetByte%4X",addr); #endif return MEMORY_mem[addr]; } diff --git a/src/memory.o b/src/memory.o new file mode 100644 index 0000000..e4f07cb Binary files /dev/null and b/src/memory.o differ diff --git a/src/monitor.o b/src/monitor.o new file mode 100644 index 0000000..d791237 Binary files /dev/null and b/src/monitor.o differ diff --git a/src/mzpokeysnd.o b/src/mzpokeysnd.o new file mode 100644 index 0000000..651b2a8 Binary files /dev/null and b/src/mzpokeysnd.o differ diff --git a/src/pal_blending.o b/src/pal_blending.o new file mode 100644 index 0000000..15fb4f4 Binary files /dev/null and b/src/pal_blending.o differ diff --git a/src/pbi.o b/src/pbi.o new file mode 100644 index 0000000..780cebe Binary files /dev/null and b/src/pbi.o differ diff --git a/src/pbi_bb.c b/src/pbi_bb.c index 22ac61c..a3a80d9 100644 --- a/src/pbi_bb.c +++ b/src/pbi_bb.c @@ -67,7 +67,7 @@ static void init_bb(void) bb_rom_size = Util_flen(bbfp); fclose(bbfp); if (bb_rom_size != 0x10000 && bb_rom_size != 0x4000) { - Log_print("Invalid black box rom size\n"); + Log_println("Invalid black box rom size\n"); return; } free(bb_rom); @@ -83,7 +83,7 @@ static void init_bb(void) if (!Util_filenamenotset(bb_scsi_disk_filename)) { PBI_SCSI_disk = fopen(bb_scsi_disk_filename, "rb+"); if (PBI_SCSI_disk == NULL) { - Log_print("Error opening BB SCSI disk image:%s", bb_scsi_disk_filename); + Log_println("Error opening BB SCSI disk image:%s", bb_scsi_disk_filename); } else { D(printf("Opened BB SCSI disk image\n")); @@ -107,7 +107,7 @@ int PBI_BB_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-bb Emulate the CSS Black Box"); + Log_println("\t-bb Emulate the CSS Black Box"); } argv[j++] = argv[i]; } diff --git a/src/pbi_bb.o b/src/pbi_bb.o new file mode 100644 index 0000000..2d6eea1 Binary files /dev/null and b/src/pbi_bb.o differ diff --git a/src/pbi_mio.c b/src/pbi_mio.c index 41dc704..41c4738 100644 --- a/src/pbi_mio.c +++ b/src/pbi_mio.c @@ -68,7 +68,7 @@ static void init_mio(void) if (!Util_filenamenotset(mio_scsi_disk_filename)) { PBI_SCSI_disk = fopen(mio_scsi_disk_filename, "rb+"); if (PBI_SCSI_disk == NULL) { - Log_print("Error opening SCSI disk image:%s", mio_scsi_disk_filename); + Log_println("Error opening SCSI disk image:%s", mio_scsi_disk_filename); } else { D(printf("Opened SCSI disk image\n")); @@ -92,7 +92,7 @@ int PBI_MIO_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-mio Emulate the ICD MIO board"); + Log_println("\t-mio Emulate the ICD MIO board"); } argv[j++] = argv[i]; } diff --git a/src/pbi_mio.o b/src/pbi_mio.o new file mode 100644 index 0000000..dc7c7ff Binary files /dev/null and b/src/pbi_mio.o differ diff --git a/src/pbi_proto80.c b/src/pbi_proto80.c index ca92b54..1a82955 100644 --- a/src/pbi_proto80.c +++ b/src/pbi_proto80.c @@ -50,12 +50,12 @@ int PBI_PROTO80_Initialise(int *argc, char *argv[]) int i, j; for (i = j = 1; i < *argc; i++) { if (strcmp(argv[i], "-proto80") == 0) { - Log_print("proto80 enabled"); + Log_println("proto80 enabled"); PBI_PROTO80_enabled = TRUE; } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-proto80 Emulate a prototype 80 column board for the 1090"); + Log_println("\t-proto80 Emulate a prototype 80 column board for the 1090"); } argv[j++] = argv[i]; } @@ -67,11 +67,11 @@ int PBI_PROTO80_Initialise(int *argc, char *argv[]) if (!Atari800_LoadImage(proto80_rom_filename, proto80rom, 0x800)) { free(proto80rom); PBI_PROTO80_enabled = FALSE; - Log_print("Couldn't load proto80 rom image"); + Log_println("Couldn't load proto80 rom image"); return FALSE; } else { - Log_print("loaded proto80 rom image"); + Log_println("loaded proto80 rom image"); PBI_D6D7ram = TRUE; } } diff --git a/src/pbi_proto80.o b/src/pbi_proto80.o new file mode 100644 index 0000000..716cac7 Binary files /dev/null and b/src/pbi_proto80.o differ diff --git a/src/pbi_scsi.o b/src/pbi_scsi.o new file mode 100644 index 0000000..18abaf2 Binary files /dev/null and b/src/pbi_scsi.o differ diff --git a/src/pbi_xld.c b/src/pbi_xld.c index 0e62679..b6b7d30 100644 --- a/src/pbi_xld.c +++ b/src/pbi_xld.c @@ -122,8 +122,8 @@ int PBI_XLD_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-1400 Emulate the Atari 1400XL"); - Log_print("\t-xld Emulate the Atari 1450XLD"); + Log_println("\t-1400 Emulate the Atari 1400XL"); + Log_println("\t-xld Emulate the Atari 1450XLD"); } argv[j++] = argv[i]; @@ -336,7 +336,7 @@ static void PIO_PutByte(int byte) } } else { - Log_print("Invalid command frame!"); + Log_println("Invalid command frame!"); TransferStatus = PIO_NoFrame; } break; @@ -368,7 +368,7 @@ static void PIO_PutByte(int byte) } } else { - Log_print("Invalid data frame!"); + Log_println("Invalid data frame!"); } break; } @@ -403,7 +403,7 @@ static int PIO_GetByte(void) /*}*/ } else { - Log_print("Invalid read frame!"); + Log_println("Invalid read frame!"); TransferStatus = PIO_NoFrame; } break; @@ -421,7 +421,7 @@ static int PIO_GetByte(void) }*/ } else { - Log_print("Invalid read frame!"); + Log_println("Invalid read frame!"); TransferStatus = PIO_NoFrame; } break; @@ -442,7 +442,7 @@ static UBYTE PIO_Command_Frame(void) if (unit < 0 || unit >= SIO_MAX_DRIVES) { /* Unknown device */ - Log_print("Unknown command frame: %02x %02x %02x %02x %02x", + Log_println("Unknown command frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); TransferStatus = PIO_NoFrame; @@ -450,20 +450,20 @@ static UBYTE PIO_Command_Frame(void) } switch (CommandFrame[1]) { case 0x01: - Log_print("PIO DISK: Set large mode (unimplemented)"); + Log_println("PIO DISK: Set large mode (unimplemented)"); return 'E'; case 0x02: - Log_print("PIO DISK: Set small mode (unimplemented)"); + Log_println("PIO DISK: Set small mode (unimplemented)"); return 'E'; case 0x23: - Log_print("PIO DISK: Drive Diagnostic In (unimplemented)"); + Log_println("PIO DISK: Drive Diagnostic In (unimplemented)"); return 'E'; case 0x24: - Log_print("PIO DISK: Drive Diagnostic Out (unimplemented)"); + Log_println("PIO DISK: Drive Diagnostic Out (unimplemented)"); return 'E'; case 0x4e: /* Read Status */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Read-status frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Read-status frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -476,7 +476,7 @@ static UBYTE PIO_Command_Frame(void) return 'A'; case 0x4f: /* Write status */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Write-status frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Write-status frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -487,7 +487,7 @@ static UBYTE PIO_Command_Frame(void) case 0x50: /* Write */ case 0x57: #ifdef PBI_DEBUG - Log_print("PIO DISK: Write-sector frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Write-sector frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -501,7 +501,7 @@ static UBYTE PIO_Command_Frame(void) return 'A'; case 0x52: /* Read */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Read-sector frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Read-sector frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -610,7 +610,7 @@ static UBYTE PIO_Command_Frame(void) */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Status frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Status frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -630,7 +630,7 @@ static UBYTE PIO_Command_Frame(void) return 'A'; case 0x21: /* Format Disk */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Format-disk frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Format-disk frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -644,7 +644,7 @@ static UBYTE PIO_Command_Frame(void) return 'A'; case 0x22: /* Dual Density Format */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Format-Medium frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Format-Medium frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -661,17 +661,17 @@ static UBYTE PIO_Command_Frame(void) $B2 for internal use. These COMMAND BYTES may not be used by any other drivers.*/ case 0xb1: - Log_print("PIO DISK: Internal Command 0xb1 (unimplemented)"); + Log_println("PIO DISK: Internal Command 0xb1 (unimplemented)"); return 'E'; case 0xb2: - Log_print("PIO DISK: Internal Command 0xb2 (unimplemented)"); + Log_println("PIO DISK: Internal Command 0xb2 (unimplemented)"); return 'E'; default: /* Unknown command for a disk drive */ #ifdef PBI_DEBUG - Log_print("PIO DISK: Unknown Command frame: %02x %02x %02x %02x %02x", + Log_println("PIO DISK: Unknown Command frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif diff --git a/src/pbi_xld.o b/src/pbi_xld.o new file mode 100644 index 0000000..6196f4c Binary files /dev/null and b/src/pbi_xld.o differ diff --git a/src/pia.o b/src/pia.o new file mode 100644 index 0000000..aba4814 Binary files /dev/null and b/src/pia.o differ diff --git a/src/pokey.o b/src/pokey.o new file mode 100644 index 0000000..997777b Binary files /dev/null and b/src/pokey.o differ diff --git a/src/pokeysnd.o b/src/pokeysnd.o new file mode 100644 index 0000000..cb2577d Binary files /dev/null and b/src/pokeysnd.o differ diff --git a/src/remez.c b/src/remez.c index f2fe955..0634376 100644 --- a/src/remez.c +++ b/src/remez.c @@ -602,7 +602,7 @@ void REMEZ_CreateFilter(double h[], int numtaps, int numband, double bands[], } #ifndef ASAP if (iter == MAXITERATIONS) { - Log_print("remez(): reached maximum iteration count. Results may be bad."); + Log_println("remez(): reached maximum iteration count. Results may be bad."); } #endif diff --git a/src/remez.o b/src/remez.o new file mode 100644 index 0000000..f429f37 Binary files /dev/null and b/src/remez.o differ diff --git a/src/rtime.c b/src/rtime.c index b276e8e..56a74b5 100644 --- a/src/rtime.c +++ b/src/rtime.c @@ -77,8 +77,8 @@ int RTIME_Initialise(int *argc, char *argv[]) RTIME_enabled = FALSE; else { if (strcmp(argv[i], "-help") == 0) { - Log_print("\t-rtime Enable R-Time 8 emulation"); - Log_print("\t-nortime Disable R-Time 8 emulation"); + Log_println("\t-rtime Enable R-Time 8 emulation"); + Log_println("\t-nortime Disable R-Time 8 emulation"); } argv[j++] = argv[i]; } @@ -151,7 +151,7 @@ UBYTE RTIME_GetByte(void) { switch (rtime_state) { case 0: - /* Log_print("pretending rtime not busy, returning 0"); */ + /* Log_println("pretending rtime not busy, returning 0"); */ return 0; case 1: rtime_state = 2; diff --git a/src/rtime.o b/src/rtime.o new file mode 100644 index 0000000..36eaaf1 Binary files /dev/null and b/src/rtime.o differ diff --git a/src/screen.c b/src/screen.c index c0f4fd3..b16fd16 100644 --- a/src/screen.c +++ b/src/screen.c @@ -115,7 +115,7 @@ static void Screen_SetScreenshotFilenamePattern(const char *p) return; /* ok */ p++; } - Log_print("Invalid filename pattern for screenshots, using default."); + Log_println("Invalid filename pattern for screenshots, using default."); strcpy(screenshot_filename_format, DEFAULT_SCREENSHOT_FILENAME_FORMAT); screenshot_no_max = 1000; } @@ -141,14 +141,14 @@ int Screen_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-screenshots

Set filename pattern for screenshots"); - Log_print("\t-showspeed Show percentage of actual speed"); + Log_println("\t-screenshots

Set filename pattern for screenshots"); + Log_println("\t-showspeed Show percentage of actual speed"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/screen.o b/src/screen.o new file mode 100644 index 0000000..c99da63 Binary files /dev/null and b/src/screen.o differ diff --git a/src/sdl/.input.c.swp b/src/sdl/.input.c.swp new file mode 100644 index 0000000..3d6db76 Binary files /dev/null and b/src/sdl/.input.c.swp differ diff --git a/src/sdl/init.c b/src/sdl/init.c index 4b583b6..d841b92 100644 --- a/src/sdl/init.c +++ b/src/sdl/init.c @@ -32,10 +32,11 @@ int SDL_INIT_Initialise(void) { if (SDL_Init(0) != 0) { - Log_print("SDL_Init FAILED: %s", SDL_GetError()); + Log_println("SDL_Init FAILED: %s", SDL_GetError()); Log_flushlog(); return FALSE; } + Log_println("SDL initialized"); atexit(SDL_Quit); return TRUE; } diff --git a/src/sdl/init.o b/src/sdl/init.o new file mode 100644 index 0000000..51eea52 Binary files /dev/null and b/src/sdl/init.o differ diff --git a/src/sdl/input.c b/src/sdl/input.c index a98efef..cfd99f1 100644 --- a/src/sdl/input.c +++ b/src/sdl/input.c @@ -34,6 +34,7 @@ #include #endif /* LPTJOY */ +#include #include #include "config.h" @@ -55,6 +56,8 @@ #include "ui_basic.h" #endif +extern bool LOG_DEBUG_SDL_BUTTONS; + static int grab_mouse = FALSE; static int swap_joysticks = FALSE; /* static int USE_HAT = FALSE; */ @@ -335,6 +338,30 @@ static Uint32 ResizeDelayCallback(Uint32 interval, void *param) static unsigned char *atari_screen_backup; #endif +void dumpJoystickButtons() { + int i; + if (joystick0) { + Log_print("SDL joystick 0 button state (0..%d) = ", joystick0_nbuttons); + for (i = 0; i < joystick0_nbuttons; i++) { + Log_print(" %d", SDL_JoystickGetButton(joystick0, i)); + if (JOY_0_SELECT == i) { + Log_print("(SELECT)"); + } + if (JOY_0_START == i) { + Log_print("(START)"); + } + } + Log_print("\n"); + } + if (joystick1) { + Log_print("SDL joystick 1 button state (0..%d) = ", joystick1_nbuttons); + for (i = 0; i < joystick1_nbuttons; i++) { + Log_print("%d", SDL_JoystickGetButton(joystick1, i)); + } + Log_print("\n"); + } +} + int PLATFORM_Keyboard(void) { int shiftctrl = 0; @@ -392,7 +419,7 @@ int PLATFORM_Keyboard(void) VIDEOMODE_SetWindowSize(event.resize.w, event.resize.h); resize_delayed = TRUE; if (SDL_AddTimer(RESIZE_INTERVAL, &ResizeDelayCallback, NULL) == NULL) { - Log_print("Error: SDL_AddTimer failed: %s", SDL_GetError()); + Log_println("Error: SDL_AddTimer failed: %s", SDL_GetError()); Log_flushlog(); exit(-1); } @@ -423,7 +450,7 @@ int PLATFORM_Keyboard(void) else { VIDEOMODE_SetWindowSize(resize_w, resize_h); if (SDL_AddTimer(RESIZE_INTERVAL, &ResizeDelayCallback, NULL) == NULL) { - Log_print("Error: SDL_AddTimer failed: %s", SDL_GetError()); + Log_println("Error: SDL_AddTimer failed: %s", SDL_GetError()); Log_flushlog(); exit(-1); } @@ -656,7 +683,7 @@ int PLATFORM_Keyboard(void) /* if (event.type == 2 || event.type == 3) { - Log_print("E:%x S:%x C:%x K:%x U:%x M:%x",event.type,INPUT_key_shift,key_control,lastkey,event.key.keysym.unicode,event.key.keysym.mod); + Log_println("E:%x S:%x C:%x K:%x U:%x M:%x",event.type,INPUT_key_shift,key_control,lastkey,event.key.keysym.unicode,event.key.keysym.mod); } */ @@ -670,30 +697,52 @@ int PLATFORM_Keyboard(void) INPUT_key_consol &= (~INPUT_CONSOL_START); /* ATARI 5200: Special button combinations for SELECT & START & MENU NAVIGATION*/ - int select = SDL_JoystickGetButton(joystick0,JOY_0_SELECT); - int start = SDL_JoystickGetButton(joystick0,JOY_0_START); - if (select && start) return AKEY_EXIT; - if (!UI_is_active) { - if (start) return AKEY_5200_START; - int aster = SDL_JoystickGetButton(joystick0,JOY_0_ASTERISK); - if (select && aster) return AKEY_UI; - if (aster) return AKEY_5200_ASTERISK; - int hash = SDL_JoystickGetButton(joystick0,JOY_0_HASH); - if (select && hash) return AKEY_WARMSTART; - if (hash) return AKEY_5200_HASH; - } else { - if (SDL_JoystickGetButton(joystick0,JOY_0_TRIGGER1)) return AKEY_RETURN; - if (SDL_JoystickGetButton(joystick0,JOY_0_TRIGGER2)) return AKEY_ESCAPE; - if (select && SDL_JoystickGetButton(joystick0,JOY_0_ASTERISK)) return AKEY_ESCAPE; - if (joystick0 != NULL) { - int hat = SDL_JoystickGetHat(joystick0, 0); - if (hat == SDL_HAT_UP) return AKEY_UP; - if (hat == SDL_HAT_DOWN) return AKEY_DOWN; - int y = SDL_JoystickGetAxis(joystick0, 1); - if (y < -minjoy) return AKEY_UP; - if (y > minjoy) return AKEY_DOWN; - } + int select = SDL_JoystickGetButton(joystick0,JOY_0_SELECT); + int start = SDL_JoystickGetButton(joystick0,JOY_0_START); + if (LOG_DEBUG_SDL_BUTTONS) { + Log_println("UI active = %d", UI_is_active); + dumpJoystickButtons(); + } + if (select && start) { + return AKEY_EXIT; + } + if (!UI_is_active) { + if (start) { + return AKEY_5200_START; + } + int aster = SDL_JoystickGetButton(joystick0,JOY_0_ASTERISK); + if (select && aster) { + return AKEY_UI; + } + if (aster) { + return AKEY_5200_ASTERISK; + } + int hash = SDL_JoystickGetButton(joystick0,JOY_0_HASH); + if (select && hash) { + return AKEY_WARMSTART; + } + if (hash) { + return AKEY_5200_HASH; } + } else { + if (select) { + INPUT_key_consol &= (~INPUT_CONSOL_SELECT); + } + if (start) { + INPUT_key_consol &= (~INPUT_CONSOL_START); + } + if (SDL_JoystickGetButton(joystick0,JOY_0_TRIGGER1)) return AKEY_RETURN; + if (SDL_JoystickGetButton(joystick0,JOY_0_TRIGGER2)) return AKEY_ESCAPE; + if (select && SDL_JoystickGetButton(joystick0,JOY_0_ASTERISK)) return AKEY_ESCAPE; + if (joystick0 != NULL) { + int hat = SDL_JoystickGetHat(joystick0, 0); + if (hat == SDL_HAT_UP) return AKEY_UP; + if (hat == SDL_HAT_DOWN) return AKEY_DOWN; + int y = SDL_JoystickGetAxis(joystick0, 1); + if (y < -minjoy) return AKEY_UP; + if (y > minjoy) return AKEY_DOWN; + } + } if (key_pressed == 0) @@ -1226,10 +1275,14 @@ static void Init_SDL_Joysticks(int first, int second) if (first) { joystick0 = SDL_JoystickOpen(JOY_0_INDEX); if (joystick0 == NULL) - Log_print("joystick 0 not found"); + Log_println("joystick 0 with index %d not found", JOY_0_INDEX); else { - Log_print("joystick 0 found!"); joystick0_nbuttons = SDL_JoystickNumButtons(joystick0); + + Log_println("SDL joystick 0 with %d buttons found.", joystick0_nbuttons); + Log_println("SDL joystick 0 Number of Axes: %d", SDL_JoystickNumAxes(joystick0)); + Log_println("SDL joystick 0 Number of Buttons: %d", SDL_JoystickNumButtons(joystick0)); + Log_println("SDL joystick 0 Number of Balls: %d", SDL_JoystickNumBalls(joystick0)); #ifdef USE_UI_BASIC_ONSCREEN_KEYBOARD if (joystick0_nbuttons > OSK_MAX_BUTTONS) joystick0_nbuttons = OSK_MAX_BUTTONS; @@ -1240,10 +1293,13 @@ static void Init_SDL_Joysticks(int first, int second) if (second) { joystick1 = SDL_JoystickOpen(JOY_1_INDEX); if (joystick1 == NULL) - Log_print("joystick 1 not found"); + Log_println("joystick 1 with index %d not found", JOY_1_INDEX); else { - Log_print("joystick 1 found!"); joystick1_nbuttons = SDL_JoystickNumButtons(joystick1); + Log_println("SDL joystick 1 with %d buttons found.", joystick1_nbuttons); + Log_println("SDL joystick 1 Number of Axes: %d", SDL_JoystickNumAxes(joystick1)); + Log_println("SDL joystick 1 Number of Buttons: %d", SDL_JoystickNumButtons(joystick1)); + Log_println("SDL joystick 1 Number of Balls: %d", SDL_JoystickNumBalls(joystick1)); #ifdef USE_UI_BASIC_ONSCREEN_KEYBOARD if (joystick1_nbuttons > OSK_MAX_BUTTONS) joystick1_nbuttons = OSK_MAX_BUTTONS; @@ -1271,7 +1327,7 @@ int SDL_INPUT_Initialise(int *argc, char *argv[]) int a_m = FALSE; /* error, argument missing! */ if (strcmp(argv[i], "-nojoystick") == 0) { no_joystick = TRUE; - Log_print("no joystick"); + Log_println("no joystick"); } else if (strcmp(argv[i], "-grabmouse") == 0) { grab_mouse = TRUE; @@ -1293,18 +1349,18 @@ int SDL_INPUT_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-nojoystick Disable joystick"); + Log_println("\t-nojoystick Disable joystick"); #ifdef LPTJOY - Log_print("\t-joy0 Select LPTjoy0 device"); - Log_print("\t-joy1 Select LPTjoy1 device"); + Log_println("\t-joy0 Select LPTjoy0 device"); + Log_println("\t-joy1 Select LPTjoy1 device"); #endif /* LPTJOY */ - Log_print("\t-grabmouse Prevent mouse pointer from leaving window"); + Log_println("\t-grabmouse Prevent mouse pointer from leaving window"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } @@ -1335,7 +1391,7 @@ int SDL_INPUT_Initialise(int *argc, char *argv[]) kbhits = SDL_GetKeyState(NULL); if (kbhits == NULL) { - Log_print("SDL_GetKeyState() failed"); + Log_println("SDL_GetKeyState() failed"); Log_flushlog(); return FALSE; } @@ -1365,20 +1421,28 @@ if (!delta) { h = SDL_JoystickGetHat(joystick, 0); switch(h) { case SDL_HAT_LEFTUP: + Log_println("SDL Joystick SDL_HAT_LEFTUP"); return INPUT_STICK_UL; case SDL_HAT_RIGHTUP: + Log_println("SDL Joystick SDL_HAT_RIGHTUP"); return INPUT_STICK_UR; case SDL_HAT_UP: + Log_println("SDL Joystick SDL_HAT_UP"); return INPUT_STICK_FORWARD; case SDL_HAT_LEFTDOWN: + Log_println("SDL Joystick SDL_HAT_LEFTDOWN"); return INPUT_STICK_LL; case SDL_HAT_RIGHTDOWN: + Log_println("SDL Joystick SDL_HAT_RIGHTDOWN"); return INPUT_STICK_LR; case SDL_HAT_DOWN: + Log_println("SDL Joystick SDL_HAT_DOWN"); return INPUT_STICK_BACK; case SDL_HAT_LEFT: + Log_println("SDL Joystick SDL_HAT_LEFT"); return INPUT_STICK_LEFT; case SDL_HAT_RIGHT: + Log_println("SDL Joystick SDL_HAT_RIGHT"); return INPUT_STICK_RIGHT; /* case SDL_HAT_CENTERED: return INPUT_STICK_CENTRE; */ diff --git a/src/sdl/input.o b/src/sdl/input.o new file mode 100644 index 0000000..de5de27 Binary files /dev/null and b/src/sdl/input.o differ diff --git a/src/sdl/main.c b/src/sdl/main.c index a4b317e..23b339a 100644 --- a/src/sdl/main.c +++ b/src/sdl/main.c @@ -85,7 +85,7 @@ int PLATFORM_Initialise(int *argc, char *argv[]) #endif /* HAVE_WINDOWS_H */ ; if (SDL_InitSubSystem(i) != 0) { - Log_print("SDL_InitSubSystem FAILED: %s", SDL_GetError()); + Log_println("SDL_InitSubSystem FAILED: %s", SDL_GetError()); Log_flushlog(); exit(-1); } @@ -163,7 +163,7 @@ int main(int argc, char **argv) the console window would cause emulator crash due to the sound subsystem being active. */ if(!SetConsoleCtrlHandler((PHANDLER_ROUTINE) CtrlHandler, TRUE)) { - Log_print("ERROR: Could not set console control handler"); + Log_println("ERROR: Could not set console control handler"); return 1; } #endif /* HAVE_WINDOWS_H */ diff --git a/src/sdl/main.o b/src/sdl/main.o new file mode 100644 index 0000000..5b62ba4 Binary files /dev/null and b/src/sdl/main.o differ diff --git a/src/sdl/palette.o b/src/sdl/palette.o new file mode 100644 index 0000000..14e38a4 Binary files /dev/null and b/src/sdl/palette.o differ diff --git a/src/sdl/sound.c b/src/sdl/sound.c index 17f9170..70a2b3c 100644 --- a/src/sdl/sound.c +++ b/src/sdl/sound.c @@ -41,7 +41,7 @@ int PLATFORM_SoundSetup(Sound_setup_t *setup) if (Sound_enabled) SDL_CloseAudio(); else if (SDL_InitSubSystem(SDL_INIT_AUDIO) != 0) { - Log_print("SDL_INIT_AUDIO FAILED: %s", SDL_GetError()); + Log_println("SDL_INIT_AUDIO FAILED: %s", SDL_GetError()); return FALSE; } diff --git a/src/sdl/sound.o b/src/sdl/sound.o new file mode 100644 index 0000000..b612adf Binary files /dev/null and b/src/sdl/sound.o differ diff --git a/src/sdl/video.c b/src/sdl/video.c index c45ebf6..85dfe7d 100644 --- a/src/sdl/video.c +++ b/src/sdl/video.c @@ -324,7 +324,7 @@ void SDL_VIDEO_WriteConfig(FILE *fp) void SDL_VIDEO_InitSDL(void) { if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) { - Log_print("SDL_INIT_VIDEO FAILED: %s", SDL_GetError()); + Log_println("SDL_INIT_VIDEO FAILED: %s", SDL_GetError()); Log_flushlog(); exit(-1); } @@ -401,21 +401,21 @@ int SDL_VIDEO_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-scanlines Set visibility of scanlines (0..100)"); - Log_print("\t-scanlinesint Enable scanlines interpolation"); - Log_print("\t-no-scanlinesint Disable scanlines interpolation"); + Log_println("\t-scanlines Set visibility of scanlines (0..100)"); + Log_println("\t-scanlinesint Enable scanlines interpolation"); + Log_println("\t-no-scanlinesint Disable scanlines interpolation"); #if HAVE_OPENGL - Log_print("\t-video-accel Use hardware video acceleration"); - Log_print("\t-no-video-accel Don't use hardware video acceleration"); + Log_println("\t-video-accel Use hardware video acceleration"); + Log_println("\t-no-video-accel Don't use hardware video acceleration"); #endif /* HAVE_OPENGL */ - Log_print("\t-vsync Synchronize display to vertical retrace"); - Log_print("\t-no-vsync Don't synchronize display to vertical retrace"); + Log_println("\t-vsync Synchronize display to vertical retrace"); + Log_println("\t-no-vsync Don't synchronize display to vertical retrace"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/sdl/video.o b/src/sdl/video.o new file mode 100644 index 0000000..8012071 Binary files /dev/null and b/src/sdl/video.o differ diff --git a/src/sdl/video_gl.c b/src/sdl/video_gl.c index d273afb..bdc5e98 100644 --- a/src/sdl/video_gl.c +++ b/src/sdl/video_gl.c @@ -185,7 +185,7 @@ static void (*GetGlFunc(const char* s))(void) { void(*f)(void) = SDL_GL_GetProcAddress(s); if (f == NULL) - Log_print("Unable to get function pointer for %s\n",s); + Log_println("Unable to get function pointer for %s\n",s); return f; } @@ -505,7 +505,7 @@ static int InitGlPbo(void) static void ModeInfo(void) { char *fullstring = (SDL_VIDEO_screen->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ? "fullscreen" : "windowed"; - Log_print("Video Mode: %dx%dx%d %s, pixel format: %s", SDL_VIDEO_screen->w, SDL_VIDEO_screen->h, + Log_println("Video Mode: %dx%dx%d %s, pixel format: %s", SDL_VIDEO_screen->w, SDL_VIDEO_screen->h, SDL_VIDEO_screen->format->BitsPerPixel, fullstring, pixel_format_cfg_strings[SDL_VIDEO_GL_pixel_format]); } @@ -519,12 +519,12 @@ static int SetVideoMode(int w, int h, int windowed) SDL_VIDEO_screen = SDL_SetVideoMode(w, h, SDL_VIDEO_native_bpp, flags); if (SDL_VIDEO_screen == NULL) { /* Some SDL_SetVideoMode errors can be averted by reinitialising the SDL video subsystem. */ - Log_print("Setting video mode: %dx%dx%d failed: %s. Reinitialising video.", w, h, SDL_VIDEO_native_bpp, SDL_GetError()); + Log_println("Setting video mode: %dx%dx%d failed: %s. Reinitialising video.", w, h, SDL_VIDEO_native_bpp, SDL_GetError()); SDL_VIDEO_ReinitSDL(); reinit = TRUE; SDL_VIDEO_screen = SDL_SetVideoMode(w, h, SDL_VIDEO_native_bpp, flags); if (SDL_VIDEO_screen == NULL) { - Log_print("Setting Video Mode: %dx%dx%d failed: %s", w, h, SDL_VIDEO_native_bpp, SDL_GetError()); + Log_println("Setting Video Mode: %dx%dx%d failed: %s", w, h, SDL_VIDEO_native_bpp, SDL_GetError()); Log_flushlog(); exit(-1); } @@ -561,14 +561,14 @@ int SDL_VIDEO_GL_SetVideoMode(VIDEOMODE_resolution_t const *res, int windowed, V /* Reinitialisation happened! Need to recreate GL context. */ new = TRUE; if (!InitGlFunctions()) { - Log_print("Cannot use OpenGL - some functions are not provided."); + Log_println("Cannot use OpenGL - some functions are not provided."); return FALSE; } if (new) { GLint tex_size; gl.GetIntegerv(GL_MAX_TEXTURE_SIZE, & tex_size); if (tex_size < 1024) { - Log_print("Cannot use OpenGL - Supported texture size is too small (%d).", tex_size); + Log_println("Cannot use OpenGL - Supported texture size is too small (%d).", tex_size); return FALSE; } } @@ -576,11 +576,11 @@ int SDL_VIDEO_GL_SetVideoMode(VIDEOMODE_resolution_t const *res, int windowed, V if (!pbo_available) SDL_VIDEO_GL_pbo = FALSE; if (new) { - Log_print("OpenGL initialized successfully. Version: %s", gl.GetString(GL_VERSION)); + Log_println("OpenGL initialized successfully. Version: %s", gl.GetString(GL_VERSION)); if (pbo_available) - Log_print("OpenGL Pixel Buffer Objects available."); + Log_println("OpenGL Pixel Buffer Objects available."); else - Log_print("OpenGL Pixel Buffer Objects not available."); + Log_println("OpenGL Pixel Buffer Objects not available."); } InitGlContext(); context_updated = TRUE; @@ -762,11 +762,11 @@ void SDL_VIDEO_GL_WriteConfig(FILE *fp) static int InitGlLibrary(void) { if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1) != 0) { - Log_print("Cannot use OpenGL - unable to set GL attribute: %s\n",SDL_GetError()); + Log_println("Cannot use OpenGL - unable to set GL attribute: %s\n",SDL_GetError()); return FALSE; } if (SDL_GL_LoadLibrary(library_path) < 0) { - Log_print("Cannot use OpenGL - unable to dynamically open OpenGL library: %s\n",SDL_GetError()); + Log_println("Cannot use OpenGL - unable to dynamically open OpenGL library: %s\n",SDL_GetError()); return FALSE; } return TRUE; @@ -810,21 +810,21 @@ int SDL_VIDEO_GL_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-pixel-format bgr16|rgb16|bgra32|argb32"); - Log_print("\t Set internal pixel format (affects performance)"); - Log_print("\t-bilinear-filter Enable OpenGL bilinear filtering"); - Log_print("\t-no-bilinear-filter Disable OpenGL bilinear filtering"); - Log_print("\t-pbo Use OpenGL Pixel Buffer Objects if available"); - Log_print("\t-no-pbo Don't use OpenGL Pixel Buffer Objects"); - Log_print("\t-opengl-lib Use a custom OpenGL shared library"); + Log_println("\t-pixel-format bgr16|rgb16|bgra32|argb32"); + Log_println("\t Set internal pixel format (affects performance)"); + Log_println("\t-bilinear-filter Enable OpenGL bilinear filtering"); + Log_println("\t-no-bilinear-filter Disable OpenGL bilinear filtering"); + Log_println("\t-pbo Use OpenGL Pixel Buffer Objects if available"); + Log_println("\t-no-pbo Don't use OpenGL Pixel Buffer Objects"); + Log_println("\t-opengl-lib Use a custom OpenGL shared library"); } argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } else if (a_i) { - Log_print("Invalid argument for '%s'", argv[--i]); + Log_println("Invalid argument for '%s'", argv[--i]); return FALSE; } } diff --git a/src/sdl/video_gl.o b/src/sdl/video_gl.o new file mode 100644 index 0000000..1c37353 Binary files /dev/null and b/src/sdl/video_gl.o differ diff --git a/src/sdl/video_sw.c b/src/sdl/video_sw.c index 0f30408..55c1e22 100644 --- a/src/sdl/video_sw.c +++ b/src/sdl/video_sw.c @@ -136,7 +136,7 @@ static void ModeInfo(void) { char *fullstring = fullscreen ? "fullscreen" : "windowed"; char *vsyncstring = (SDL_VIDEO_screen->flags & SDL_DOUBLEBUF) ? "with vsync" : "without vsync"; - Log_print("Video Mode: %dx%dx%d %s %s", SDL_VIDEO_screen->w, SDL_VIDEO_screen->h, + Log_println("Video Mode: %dx%dx%d %s %s", SDL_VIDEO_screen->w, SDL_VIDEO_screen->h, SDL_VIDEO_screen->format->BitsPerPixel, fullstring, vsyncstring); } @@ -150,11 +150,11 @@ static void SetVideoMode(int w, int h, int bpp) SDL_VIDEO_screen = SDL_SetVideoMode(w, h, bpp, flags); if (SDL_VIDEO_screen == NULL) { /* Some SDL_SetVideoMode errors can be averted by reinitialising the SDL video subsystem. */ - Log_print("Setting video mode: %dx%dx%d failed: %s. Reinitialising video.", w, h, bpp, SDL_GetError()); + Log_println("Setting video mode: %dx%dx%d failed: %s. Reinitialising video.", w, h, bpp, SDL_GetError()); SDL_VIDEO_ReinitSDL(); SDL_VIDEO_screen = SDL_SetVideoMode(w, h, bpp, flags); if (SDL_VIDEO_screen == NULL) { - Log_print("Setting Video Mode: %dx%dx%d failed: %s", w, h, bpp, SDL_GetError()); + Log_println("Setting Video Mode: %dx%dx%d failed: %s", w, h, bpp, SDL_GetError()); Log_flushlog(); exit(-1); } @@ -174,7 +174,7 @@ void SDL_VIDEO_SW_SetVideoMode(VIDEOMODE_resolution_t const *res, int windowed, if (SDL_VIDEO_SW_bpp == 0) { /* Autodetect bpp */ if ((SDL_VIDEO_native_bpp != 8) && (SDL_VIDEO_native_bpp != 16) && (SDL_VIDEO_native_bpp != 32)) { - Log_print("Native BPP of %i not supported, setting 8bit mode (slow conversion)", SDL_VIDEO_native_bpp); + Log_println("Native BPP of %i not supported, setting 8bit mode (slow conversion)", SDL_VIDEO_native_bpp); SDL_VIDEO_SW_bpp = 8; } else SDL_VIDEO_SW_bpp = SDL_VIDEO_native_bpp; @@ -790,7 +790,7 @@ int SDL_VIDEO_SW_Initialise(int *argc, char *argv[]) if (i_a) { SDL_VIDEO_SW_bpp = Util_sscandec(argv[++i]); if (SDL_VIDEO_SW_bpp != 0 && SDL_VIDEO_SW_bpp != 8 && SDL_VIDEO_SW_bpp != 16 && SDL_VIDEO_SW_bpp != 32) { - Log_print("Invalid BPP value %s", argv[i]); + Log_println("Invalid BPP value %s", argv[i]); return FALSE; } } @@ -798,12 +798,12 @@ int SDL_VIDEO_SW_Initialise(int *argc, char *argv[]) } else { if (strcmp(argv[i], "-help") == 0) - Log_print("\t-bpp Host color depth (0 = autodetect)"); + Log_println("\t-bpp Host color depth (0 = autodetect)"); argv[j++] = argv[i]; } if (a_m) { - Log_print("Missing argument for '%s'", argv[i]); + Log_println("Missing argument for '%s'", argv[i]); return FALSE; } } diff --git a/src/sdl/video_sw.o b/src/sdl/video_sw.o new file mode 100644 index 0000000..c0a23d2 Binary files /dev/null and b/src/sdl/video_sw.o differ diff --git a/src/sio.c b/src/sio.c index ae342e4..237b153 100644 --- a/src/sio.c +++ b/src/sio.c @@ -354,17 +354,17 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) fseek(f,0,SEEK_SET); if (fread(&fileheader,1,sizeof(fileheader),f) != sizeof(fileheader)) { Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad File Header"); + Log_println("VAPI: Bad File Header"); return(FALSE); } trackoffset = VAPI_32(fileheader.startdata); if (trackoffset > file_length) { Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Track Offset"); + Log_println("VAPI: Bad Track Offset"); return(FALSE); } #ifdef DEBUG_VAPI - Log_print("VAPI File Version %d.%d",fileheader.majorver,fileheader.minorver); + Log_println("VAPI File Version %d.%d",fileheader.majorver,fileheader.minorver); #endif /* Read all of the track headers to get the total sector count */ totalsectors = 0; @@ -375,7 +375,7 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) fseek(f,trackoffset,SEEK_SET); if (fread(&trackheader,1,sizeof(trackheader),f) != sizeof(trackheader)) { Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Track Header"); + Log_println("VAPI: Bad Track Header"); return(FALSE); } next = VAPI_32(trackheader.next); @@ -408,7 +408,7 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) free(info->sectors); free(info); Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Track Header while reading sectors"); + Log_println("VAPI: Bad Track Header while reading sectors"); return(FALSE); } next = VAPI_32(trackheader.next); @@ -416,7 +416,7 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) tracktype = VAPI_16(trackheader.type); seclistdata = VAPI_32(trackheader.startdata) + trackoffset; #ifdef DEBUG_VAPI - Log_print("Track %d: next %x type %d seccnt %d secdata %x",trackheader.tracknum, + Log_println("Track %d: next %x type %d seccnt %d secdata %x",trackheader.tracknum, trackoffset + next,VAPI_16(trackheader.type),sectorcnt,seclistdata); #endif if (tracktype == 0) { @@ -424,7 +424,7 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) free(info->sectors); free(info); Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Sector List Offset"); + Log_println("VAPI: Bad Sector List Offset"); return(FALSE); } fseek(f,seclistdata,SEEK_SET); @@ -432,11 +432,11 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) free(info->sectors); free(info); Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Sector List"); + Log_println("VAPI: Bad Sector List"); return(FALSE); } #ifdef DEBUG_VAPI - Log_print("Size sec list %x type %d",VAPI_32(sectorlist.sizelist),sectorlist.type); + Log_println("Size sec list %x type %d",VAPI_32(sectorlist.sizelist),sectorlist.type); #endif for (j=0;jsectors); free(info); Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Sector Header"); + Log_println("VAPI: Bad Sector Header"); return(FALSE); } if (sectorheader.sectornum > 18) { Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Bad Sector Index: Track %d Sec Num %d Index %d", + Log_println("VAPI: Bad Sector Index: Track %d Sec Num %d Index %d", trackheader.tracknum,j,sectorheader.sectornum); return(FALSE); } @@ -465,11 +465,11 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) free(info->sectors); free(info); Util_fclose(f, sio_tmpbuf[diskno - 1]); - Log_print("VAPI: Too many Phantom Sectors"); + Log_println("VAPI: Too many Phantom Sectors"); return(FALSE); } #ifdef DEBUG_VAPI - Log_print("Sector %d status %x position %f %d %d data %x",sectorheader.sectornum, + Log_println("Sector %d status %x position %f %d %d data %x",sectorheader.sectornum, sector->sec_status[sector->sec_count-1],percent_rot, sector->sec_rot_pos[sector->sec_count-1], VAPI_16(sectorheader.sectorpos), @@ -480,7 +480,7 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) Log_flushlog(); #endif } else { - Log_print("Unknown VAPI track type Track:%d Type:%d",trackheader.tracknum,tracktype); + Log_println("Unknown VAPI track type Track:%d Type:%d",trackheader.tracknum,tracktype); } trackoffset += next; } @@ -541,7 +541,7 @@ int SIO_Mount(int diskno, const char *filename, int b_open_readonly) } #ifdef DEBUG - Log_print("sectorcount = %d, sectorsize = %d", + Log_println("sectorcount = %d, sectorsize = %d", sectorcount[diskno - 1], sectorsize[diskno - 1]); #endif SIO_format_sectorsize[diskno - 1] = sectorsize[diskno - 1]; @@ -668,27 +668,27 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) info = (pro_additional_info_t *)additional_info[unit]; count = info->count; if (fread(buffer, 1, 12, disk[unit]) < 12) { - Log_print("Error in header of .pro image: sector:%d", sector); + Log_println("Error in header of .pro image: sector:%d", sector); return 'E'; } /* handle duplicate sectors */ if (buffer[5] != 0) { int dupnum = count[sector]; #ifdef DEBUG_PRO - Log_print("duplicate sector:%d dupnum:%d",sector, dupnum); + Log_println("duplicate sector:%d dupnum:%d",sector, dupnum); #endif count[sector] = (count[sector]+1) % (buffer[5]+1); if (dupnum != 0) { sector = sectorcount[unit] + buffer[6+dupnum]; /* can dupnum be 5? */ if (dupnum > 4 || sector <= 0 || sector > info->max_sector) { - Log_print("Error in .pro image: sector:%d dupnum:%d", sector, dupnum); + Log_println("Error in .pro image: sector:%d dupnum:%d", sector, dupnum); return 'E'; } size = SeekSector(unit, sector); /* read sector header */ if (fread(buffer, 1, 12, disk[unit]) < 12) { - Log_print("Error in header2 of .pro image: sector:%d dupnum:%d", sector, dupnum); + Log_println("Error in header2 of .pro image: sector:%d dupnum:%d", sector, dupnum); return 'E'; } } @@ -696,11 +696,11 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) /* bad sector */ if (buffer[1] != 0xff) { if (fread(buffer, 1, size, disk[unit]) < size) { - Log_print("Error in bad sector of .pro image: sector:%d", sector); + Log_println("Error in bad sector of .pro image: sector:%d", sector); } io_success[unit] = sector; #ifdef DEBUG_PRO - Log_print("bad sector:%d", sector); + Log_println("bad sector:%d", sector); #endif return 'E'; } @@ -719,7 +719,7 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) if (sector > sectorcount[unit]) { #ifdef DEBUG_VAPI - Log_print("bad sector num:%d", sector); + Log_println("bad sector num:%d", sector); #endif info->sec_stat_buff[0] = 9; info->sec_stat_buff[1] = 0xFF; @@ -735,7 +735,7 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) if (secinfo->sec_count == 0) { #ifdef DEBUG_VAPI - Log_print("missing sector:%d", sector); + Log_println("missing sector:%d", sector); #endif info->sec_stat_buff[0] = 0xC; info->sec_stat_buff[1] = 0xEF; @@ -754,7 +754,7 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) currpos = time - rotations*VAPI_CYCLES_PER_ROT; #ifdef DEBUG_VAPI - Log_print(" sector:%d sector count :%d time %d", sector,secinfo->sec_count,ANTIC_CPU_CLOCK); + Log_println(" sector:%d sector count :%d time %d", sector,secinfo->sec_count,ANTIC_CPU_CLOCK); #endif bestdelay = 10 * VAPI_CYCLES_PER_ROT; @@ -765,7 +765,7 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) else delay = secinfo->sec_rot_pos[j] - currpos; #ifdef DEBUG_VAPI - Log_print("%d %d %d %d %d %x",j,secinfo->sec_rot_pos[j], + Log_println("%d %d %d %d %d %x",j,secinfo->sec_rot_pos[j], ((unsigned int) ANTIC_CPU_CLOCK) - ((((unsigned int) ANTIC_CPU_CLOCK)/VAPI_CYCLES_PER_ROT)*VAPI_CYCLES_PER_ROT), currpos,delay,secinfo->sec_status[j]); #endif @@ -783,9 +783,9 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) info->vapi_delay_time = bestdelay + VAPI_CYCLES_CMD_ACK_TRANS + VAPI_CYCLES_SECTOR_READ; #ifdef DEBUG_VAPI - Log_print("Bestdelay = %d VapiDelay = %d",bestdelay,info->vapi_delay_time); + Log_println("Bestdelay = %d VapiDelay = %d",bestdelay,info->vapi_delay_time); if (secinfo->sec_count > 1) - Log_print("duplicate sector:%d dupnum:%d delay:%d",sector, secindex,info->vapi_delay_time); + Log_println("duplicate sector:%d dupnum:%d delay:%d",sector, secindex,info->vapi_delay_time); #endif fseek(disk[unit],secinfo->sec_offset[secindex],SEEK_SET); info->sec_stat_buff[0] = 0x8 | ((secinfo->sec_status[secindex] == 0xFF) ? 0 : 0x04); @@ -794,18 +794,18 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) info->sec_stat_buff[3] = 0; if (secinfo->sec_status[secindex] != 0xFF) { if (fread(buffer, 1, size, disk[unit]) < size) { - Log_print("error reading sector:%d", sector); + Log_println("error reading sector:%d", sector); } io_success[unit] = sector; info->vapi_delay_time += VAPI_CYCLES_PER_ROT + 10000; #ifdef DEBUG_VAPI - Log_print("bad sector:%d 0x%0X delay:%d", sector, secinfo->sec_status[secindex],info->vapi_delay_time ); + Log_println("bad sector:%d 0x%0X delay:%d", sector, secinfo->sec_status[secindex],info->vapi_delay_time ); #endif { int i; if (secinfo->sec_status[secindex] == 0xB7) { for (i=0;i<128;i++) { - Log_print("0x%02x",buffer[i]); + Log_println("0x%02x",buffer[i]); if (buffer[i] == 0x33) buffer[i] = rand() & 0xFF; } @@ -818,7 +818,7 @@ int SIO_ReadSector(int unit, int sector, UBYTE *buffer) #endif } if (fread(buffer, 1, size, disk[unit]) < size) { - Log_print("incomplete sector num:%d", sector); + Log_println("incomplete sector num:%d", sector); } io_success[unit] = 0; return 'C'; @@ -916,7 +916,7 @@ int SIO_FormatDisk(int unit, UBYTE *buffer, int sectsize, int sectcount) SIO_Dismount(unit + 1); f = fopen(fname, "wb"); if (f == NULL) { - Log_print("SIO_FormatDisk: failed to open %s for writing", fname); + Log_println("SIO_FormatDisk: failed to open %s for writing", fname); return 'E'; } /* Write ATR header if necessary */ @@ -965,7 +965,7 @@ int SIO_WriteStatusBlock(int unit, const UBYTE *buffer) { int size; #ifdef DEBUG - Log_print("Write Status-Block: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x", + Log_println("Write Status-Block: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x", buffer[0], buffer[1], buffer[2], buffer[3], buffer[4], buffer[5], buffer[6], buffer[7], buffer[8], buffer[9], buffer[10], buffer[11]); @@ -1069,7 +1069,7 @@ int SIO_DriveStatus(int unit, UBYTE *buffer) int sector = io_success[unit]; SeekSector(unit, sector); if (fread(buffer, 1, 4, disk[unit]) < 4) { - Log_print("SIO_DriveStatus: failed to read sector header"); + Log_println("SIO_DriveStatus: failed to read sector header"); } return 'C'; } @@ -1081,7 +1081,7 @@ int SIO_DriveStatus(int unit, UBYTE *buffer) buffer[1] = info->sec_stat_buff[1]; buffer[2] = info->sec_stat_buff[2]; buffer[3] = info->sec_stat_buff[3]; - Log_print("Drive Status unit %d %x %x %x %x",unit,buffer[0], buffer[1], buffer[2], buffer[3]); + Log_println("Drive Status unit %d %x %x %x %x",unit,buffer[0], buffer[1], buffer[2], buffer[3]); return 'C'; } buffer[0] = 16; /* drive active */ @@ -1129,7 +1129,7 @@ void SIO_Handler(void) /* Disk 1 -> unit = 0 */ if (MEMORY_dGetByte(0x300) != 0x60 && unit < SIO_MAX_DRIVES && (SIO_drive_status[unit] != SIO_OFF || BINLOAD_start_binloading)) { /* UBYTE range ! */ #ifdef DEBUG - Log_print("SIO disk command is %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x", + Log_println("SIO disk command is %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x", cmd, MEMORY_dGetByte(0x303), MEMORY_dGetByte(0x304), MEMORY_dGetByte(0x305), MEMORY_dGetByte(0x306), MEMORY_dGetByte(0x308), MEMORY_dGetByte(0x309), MEMORY_dGetByte(0x30a), MEMORY_dGetByte(0x30b), MEMORY_dGetByte(0x30c), MEMORY_dGetByte(0x30d)); @@ -1338,7 +1338,7 @@ static UBYTE Command_Frame(void) if (unit < 0 || unit >= SIO_MAX_DRIVES) { /* Unknown device */ - Log_print("Unknown command frame: %02x %02x %02x %02x %02x", + Log_println("Unknown command frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); TransferStatus = SIO_NoFrame; @@ -1347,7 +1347,7 @@ static UBYTE Command_Frame(void) switch (CommandFrame[1]) { case 0x4e: /* Read Status */ #ifdef DEBUG - Log_print("Read-status frame: %02x %02x %02x %02x %02x", + Log_println("Read-status frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1360,7 +1360,7 @@ static UBYTE Command_Frame(void) return 'A'; case 0x4f: /* Write status */ #ifdef DEBUG - Log_print("Write-status frame: %02x %02x %02x %02x %02x", + Log_println("Write-status frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1373,7 +1373,7 @@ static UBYTE Command_Frame(void) case 0xD0: /* xf551 hispeed */ case 0xD7: #ifdef DEBUG - Log_print("Write-sector frame: %02x %02x %02x %02x %02x", + Log_println("Write-sector frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1388,7 +1388,7 @@ static UBYTE Command_Frame(void) case 0x52: /* Read */ case 0xD2: /* xf551 hispeed */ #ifdef DEBUG - Log_print("Read-sector frame: %02x %02x %02x %02x %02x", + Log_println("Read-sector frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1424,7 +1424,7 @@ static UBYTE Command_Frame(void) return 'A'; case 0x53: /* Status */ #ifdef DEBUG - Log_print("Status frame: %02x %02x %02x %02x %02x", + Log_println("Status frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1439,7 +1439,7 @@ static UBYTE Command_Frame(void) case 0x21: /* Format Disk */ case 0xa1: /* xf551 hispeed */ #ifdef DEBUG - Log_print("Format-disk frame: %02x %02x %02x %02x %02x", + Log_println("Format-disk frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1454,7 +1454,7 @@ static UBYTE Command_Frame(void) case 0x22: /* Dual Density Format */ case 0xa2: /* xf551 hispeed */ #ifdef DEBUG - Log_print("Format-Medium frame: %02x %02x %02x %02x %02x", + Log_println("Format-Medium frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1468,7 +1468,7 @@ static UBYTE Command_Frame(void) default: /* Unknown command for a disk drive */ #ifdef DEBUG - Log_print("Command frame: %02x %02x %02x %02x %02x", + Log_println("Command frame: %02x %02x %02x %02x %02x", CommandFrame[0], CommandFrame[1], CommandFrame[2], CommandFrame[3], CommandFrame[4]); #endif @@ -1502,7 +1502,7 @@ void SIO_SwitchCommandFrame(int onoff) { if (onoff) { /* Enabled */ if (TransferStatus != SIO_NoFrame) - Log_print("Unexpected command frame at state %x.", TransferStatus); + Log_println("Unexpected command frame at state %x.", TransferStatus); CommandIndex = 0; DataIndex = 0; ExpectedBytes = 5; @@ -1512,7 +1512,7 @@ void SIO_SwitchCommandFrame(int onoff) if (TransferStatus != SIO_StatusRead && TransferStatus != SIO_NoFrame && TransferStatus != SIO_ReadFrame) { if (!(TransferStatus == SIO_CommandFrame && CommandIndex == 0)) - Log_print("Command frame %02x unfinished.", TransferStatus); + Log_println("Command frame %02x unfinished.", TransferStatus); TransferStatus = SIO_NoFrame; } CommandIndex = 0; @@ -1558,7 +1558,7 @@ void SIO_PutByte(int byte) } } else { - Log_print("Invalid command frame!"); + Log_println("Invalid command frame!"); TransferStatus = SIO_NoFrame; } break; @@ -1590,7 +1590,7 @@ void SIO_PutByte(int byte) } } else { - Log_print("Invalid data frame!"); + Log_println("Invalid data frame!"); } break; case SIO_CasReadWrite: @@ -1626,7 +1626,7 @@ int SIO_GetByte(void) } } else { - Log_print("Invalid read frame!"); + Log_println("Invalid read frame!"); TransferStatus = SIO_NoFrame; } break; @@ -1644,7 +1644,7 @@ int SIO_GetByte(void) } } else { - Log_print("Invalid read frame!"); + Log_println("Invalid read frame!"); TransferStatus = SIO_NoFrame; } break; diff --git a/src/sio.o b/src/sio.o new file mode 100644 index 0000000..47d431a Binary files /dev/null and b/src/sio.o differ diff --git a/src/sndsave.o b/src/sndsave.o new file mode 100644 index 0000000..5efa5f3 Binary files /dev/null and b/src/sndsave.o differ diff --git a/src/sound.c b/src/sound.c index 6725528..3b29d03 100644 --- a/src/sound.c +++ b/src/sound.c @@ -168,24 +168,24 @@ int Sound_Initialise(int *argc, char *argv[]) else { if (strcmp(argv[i], "-help") == 0) { help_only = TRUE; - Log_print("\t-sound Enable sound"); - Log_print("\t-nosound Disable sound"); - Log_print("\t-dsprate Set sound output frequency in Hz"); - Log_print("\t-audio16 Set sound output format to 16-bit"); - Log_print("\t-audio8 Set sound output format to 8-bit"); - Log_print("\t-snd-fragsize Set size of the hardware sound buffer (fragment size)"); + Log_println("\t-sound Enable sound"); + Log_println("\t-nosound Disable sound"); + Log_println("\t-dsprate Set sound output frequency in Hz"); + Log_println("\t-audio16 Set sound output format to 16-bit"); + Log_println("\t-audio8 Set sound output format to 8-bit"); + Log_println("\t-snd-fragsize Set size of the hardware sound buffer (fragment size)"); #ifdef SYNCHRONIZED_SOUND - Log_print("\t-snddelay