From 21fae99949cf1602daf9a3dc23151ed081a85f9d Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Tue, 5 May 2009 15:36:48 +0000 Subject: [PATCH] Imported upstream source for E-UAE WIP4 --- CHANGES | 541 + COPYING | 340 + ChangeLog | 5745 ++++++++ Makefile.am | 13 + Makefile.in | 601 + README | 154 + aclocal.m4 | 2173 +++ amiga/source/Makefile.gcc | 11 + amiga/source/mhint.asm | 25 + amiga/source/mousehack.c | 141 + amiga/source/timehack.c | 172 + amiga/source/transdisk.c | 166 + amiga/source/transrom.c | 29 + amiga/source/uae-configuration.c | 66 + amiga/source/uae-configuration.s | 86 + amiga/source/uae-control.c | 563 + amiga/source/uae-control.h | 53 + amiga/source/uae_pragmas.h | 78 + amiga/source/uae_rcli.c | 201 + amiga/source/uaectrl.c | 164 + bootstrap.sh | 9 + config.guess | 1415 ++ config.sub | 1510 ++ configure | 21264 +++++++++++++++++++++++++++++ configure.in | 1544 +++ depcomp | 479 + docs/bsdsocket.txt | 33 + docs/cmd-line.txt | 196 + docs/compiling.txt | 134 + docs/configuration.txt | 971 ++ docs/floppies.txt | 54 + docs/joystick.txt | 91 + docs/keyboard.txt | 182 + docs/scsi.txt | 184 + install-sh | 294 + m4/ac_var_timezone_externals.m4 | 33 + m4/acx_pthread.m4 | 190 + m4/as-objc.m4 | 54 + m4/check_zlib.m4 | 61 + m4/fsusage.m4 | 261 + m4/gtk-2.0.m4 | 196 + m4/gtk.m4 | 194 + m4/sdl.m4 | 175 + m4/type_socklen_t.m4 | 25 + m4/uintmax_t.m4 | 115 + missing | 336 + mkinstalldirs | 111 + src/ChangeLog | 2347 ++++ src/Makefile.am | 288 + src/Makefile.in | 1024 ++ src/akiko.c | 1497 ++ src/ar.c | 1640 +++ src/audio.c | 1482 ++ src/autoconf.c | 250 + src/blitops.c | 262 + src/blitter.c | 1216 ++ src/blkdev-libscg.c | 629 + src/blkdev.c | 388 + src/bsdsocket-posix-new.c | 1716 +++ src/bsdsocket.c | 1481 ++ src/build68k.c | 249 + src/caps/Makefile.am | 5 + src/caps/Makefile.in | 443 + src/caps/caps.c | 548 + src/catweasel.c | 776 ++ src/cdrom.c | 236 + src/cfgfile.c | 2468 ++++ src/cia.c | 1527 +++ src/compemu_fpp.c | 1562 +++ src/compemu_raw_x86.c | 3463 +++++ src/compemu_support.c | 6079 +++++++++ src/crc32.c | 50 + src/custom.c | 5662 ++++++++ src/debug.c | 1707 +++ src/disk.c | 3207 +++++ src/dms/Makefile.am | 10 + src/dms/Makefile.in | 470 + src/dms/cdata.h | 80 + src/dms/crc_csum.c | 69 + src/dms/crc_csum.h | 4 + src/dms/getbits.c | 34 + src/dms/getbits.h | 10 + src/dms/maketbl.c | 92 + src/dms/maketbl.h | 5 + src/dms/pfile.c | 416 + src/dms/pfile.h | 43 + src/dms/tables.c | 87 + src/dms/tables.h | 3 + src/dms/u_deep.c | 207 + src/dms/u_deep.h | 7 + src/dms/u_heavy.c | 175 + src/dms/u_heavy.h | 6 + src/dms/u_init.c | 28 + src/dms/u_init.h | 3 + src/dms/u_medium.c | 58 + src/dms/u_medium.h | 5 + src/dms/u_quick.c | 47 + src/dms/u_quick.h | 5 + src/dms/u_rle.c | 42 + src/dms/u_rle.h | 3 + src/drawing.c | 2056 +++ src/driveclick.c | 328 + src/enforcer.c | 579 + src/ersatz.c | 255 + src/events.c | 96 + src/expansion.c | 1346 ++ src/fdi2raw.c | 2195 +++ src/filesys.asm | 1057 ++ src/filesys.c | 4390 ++++++ src/filesys.sh | 7 + src/filesys_bootrom.c | 324 + src/filesys_unix.c | 77 + src/fpp.c | 1460 ++ src/fsdb.c | 350 + src/fsdb_unix.c | 150 + src/fsusage.c | 412 + src/genblitter.c | 271 + src/gencomp.c | 3120 +++++ src/gencpu.c | 3219 +++++ src/gengenblitter.c | 451 + src/genlinetoscr.c | 324 + src/gfx-amigaos/Makefile.am | 7 + src/gfx-amigaos/Makefile.in | 448 + src/gfx-amigaos/ami-appw.c | 181 + src/gfx-amigaos/ami-win.c | 2543 ++++ src/gfx-amigaos/gfx.h | 10 + src/gfx-beos/Makefile.am | 9 + src/gfx-beos/Makefile.in | 454 + src/gfx-beos/be-Input.cpp | 151 + src/gfx-beos/be-UAE.cpp | 252 + src/gfx-beos/be-UAE.h | 60 + src/gfx-beos/be-Window.cpp | 587 + src/gfx-beos/be-Window.h | 107 + src/gfx-beos/gfx.h | 9 + src/gfx-curses/Makefile.am | 7 + src/gfx-curses/Makefile.in | 447 + src/gfx-curses/gfx.h | 10 + src/gfx-curses/ncurses.c | 881 ++ src/gfx-sdl/Makefile.am | 7 + src/gfx-sdl/Makefile.in | 451 + src/gfx-sdl/gfx.h | 11 + src/gfx-sdl/rawkeys.c | 146 + src/gfx-sdl/sdlgfx.c | 1999 +++ src/gfx-sdl/sdlgfx.h | 38 + src/gfx-sdl/sdlkeys.c | 440 + src/gfx-svga/Makefile.am | 7 + src/gfx-svga/Makefile.in | 447 + src/gfx-svga/gfx.h | 11 + src/gfx-svga/svga.c | 925 ++ src/gfx-x11/Makefile.am | 9 + src/gfx-x11/Makefile.in | 450 + src/gfx-x11/gfx.h | 11 + src/gfx-x11/x11keys.c | 491 + src/gfx-x11/xwin.c | 1777 +++ src/gfxutil.c | 545 + src/gui-beos/Makefile.am | 7 + src/gui-beos/Makefile.in | 446 + src/gui-beos/gui.cpp | 212 + src/gui-cocoa/Makefile.am | 5 + src/gui-cocoa/Makefile.in | 444 + src/gui-cocoa/cocoaui.m | 547 + src/gui-gtk/Makefile.am | 13 + src/gui-gtk/Makefile.in | 471 + src/gui-gtk/chipsetspeedpanel.c | 147 + src/gui-gtk/chipsetspeedpanel.h | 55 + src/gui-gtk/chipsettypepanel.c | 156 + src/gui-gtk/chipsettypepanel.h | 46 + src/gui-gtk/chooserwidget.c | 108 + src/gui-gtk/chooserwidget.h | 47 + src/gui-gtk/cpuspeedpanel.c | 202 + src/gui-gtk/cpuspeedpanel.h | 58 + src/gui-gtk/cputypepanel.c | 251 + src/gui-gtk/cputypepanel.h | 53 + src/gui-gtk/floppyfileentry.c | 295 + src/gui-gtk/floppyfileentry.h | 58 + src/gui-gtk/gtkui.c | 2434 ++++ src/gui-gtk/led.c | 172 + src/gui-gtk/led.h | 49 + src/gui-gtk/util.c | 240 + src/gui-gtk/util.h | 41 + src/gui-muirexx/Makefile.am | 7 + src/gui-muirexx/Makefile.in | 470 + src/gui-muirexx/UAEGUI.rexx | 299 + src/gui-muirexx/UAEWB | 236 + src/gui-muirexx/UAEWB.aux | 302 + src/gui-muirexx/UAEWB.rexx | 349 + src/gui-muirexx/ami-gui.c | 442 + src/gui-muirexx/ami-rexx.c | 703 + src/gui-none/Makefile.am | 7 + src/gui-none/Makefile.in | 445 + src/gui-none/nogui.c | 105 + src/hardfile.c | 905 ++ src/hardfile_unix.c | 179 + src/hotkeys.c | 94 + src/identify.c | 404 + src/include/akiko.h | 24 + src/include/ar.h | 69 + src/include/audio.h | 42 + src/include/autoconf.h | 54 + src/include/blitter.h | 45 + src/include/blkdev.h | 107 + src/include/bsdsocket.h | 200 + src/include/caps.h | 10 + src/include/catweasel.h | 85 + src/include/cdrom.h | 1 + src/include/cia.h | 25 + src/include/commpipe.h | 156 + src/include/compemu.h | 526 + src/include/cpu_prefetch.h | 109 + src/include/crc32.h | 2 + src/include/custom.h | 183 + src/include/custom_private.h | 54 + src/include/debug.h | 23 + src/include/disk.h | 50 + src/include/drawing.h | 296 + src/include/driveclick.h | 40 + src/include/enforcer.h | 7 + src/include/ersatz.h | 11 + src/include/events.h | 145 + src/include/execlib.h | 45 + src/include/fdi2raw.h | 28 + src/include/filesys.h | 89 + src/include/fpp-ieee.h | 75 + src/include/fpp-unknown.h | 139 + src/include/fsdb.h | 118 + src/include/fsusage.h | 37 + src/include/genblitter.h | 15 + src/include/gensound.h | 43 + src/include/gfxfilter.h | 60 + src/include/gui.h | 39 + src/include/hotkeys.h | 39 + src/include/hrtimer.h | 45 + src/include/identify.h | 34 + src/include/inputdevice.h | 155 + src/include/joystick.h | 13 + src/include/keyboard.h | 155 + src/include/keybuf.h | 16 + src/include/memory.h | 285 + src/include/native2amiga.h | 61 + src/include/newcpu.h | 333 + src/include/noflags.h | 177 + src/include/options.h | 402 + src/include/osemu.h | 19 + src/include/picasso96.h | 591 + src/include/readcpu.h | 102 + src/include/savestate.h | 135 + src/include/scsidev.h | 18 + src/include/serial.h | 30 + src/include/sinctable.h | 7 + src/include/sleep.h | 84 + src/include/sysdeps.h | 335 + src/include/traps.h | 54 + src/include/tui.h | 54 + src/include/uae.h | 47 + src/include/uae_endian.h | 33 + src/include/uae_malloc.h | 25 + src/include/uae_string.h | 38 + src/include/uae_types.h | 126 + src/include/uaeexe.h | 19 + src/include/unzip.h | 284 + src/include/version.h | 37 + src/include/writelog.h | 25 + src/include/xwin.h | 123 + src/include/zfile.h | 35 + src/inputdevice.c | 2350 ++++ src/inputevents.def | 309 + src/install_libscg | 59 + src/jd-amigainput/Makefile.am | 5 + src/jd-amigainput/Makefile.in | 443 + src/jd-amigainput/joystick.c | 345 + src/jd-amigaos/Makefile.am | 5 + src/jd-amigaos/Makefile.in | 443 + src/jd-amigaos/joystick.c | 174 + src/jd-beos/Makefile.am | 7 + src/jd-beos/Makefile.in | 446 + src/jd-beos/joystick.cpp | 305 + src/jd-linuxold/Makefile.am | 5 + src/jd-linuxold/Makefile.in | 443 + src/jd-linuxold/joystick.c | 259 + src/jd-none/Makefile.am | 5 + src/jd-none/Makefile.in | 443 + src/jd-none/joystick.c | 84 + src/jd-sdl/Makefile.am | 6 + src/jd-sdl/Makefile.in | 443 + src/jd-sdl/joystick.c | 183 + src/keybuf.c | 248 + src/keymap/Makefile.am | 9 + src/keymap/Makefile.in | 460 + src/keymap/amiga_rawkeys.c | 201 + src/keymap/amiga_rawkeys.h | 11 + src/keymap/beos_rawkeys.c | 168 + src/keymap/beos_rawkeys.h | 10 + src/keymap/hotkeys_common.h | 72 + src/keymap/keymap.c | 182 + src/keymap/keymap.h | 166 + src/keymap/keymap_all.h | 12 + src/keymap/keymap_common.h | 147 + src/keymap/quartz_rawkeys.c | 209 + src/keymap/quartz_rawkeys.h | 11 + src/keymap/x11pc_rawkeys.c | 197 + src/keymap/x11pc_rawkeys.h | 14 + src/main.c | 959 ++ src/md-68k/Makefile.am | 8 + src/md-68k/Makefile.in | 451 + src/md-68k/cpuopti | 294 + src/md-68k/m68k.h | 84 + src/md-68k/m68kops.h | 125 + src/md-68k/maccess.h | 40 + src/md-68k/machdep.h | 18 + src/md-68k/rpt.h | 7 + src/md-68k/support.c | 35 + src/md-amd64-gcc/Makefile.am | 9 + src/md-amd64-gcc/Makefile.in | 449 + src/md-amd64-gcc/m68k.h | 96 + src/md-amd64-gcc/m68kops.h | 14 + src/md-amd64-gcc/maccess.h | 52 + src/md-amd64-gcc/machdep.h | 20 + src/md-amd64-gcc/rpt.h | 66 + src/md-amd64-gcc/support.c | 10 + src/md-generic/Makefile.am | 7 + src/md-generic/Makefile.in | 447 + src/md-generic/m68k.h | 79 + src/md-generic/m68kops.h | 1 + src/md-generic/maccess.h | 52 + src/md-generic/machdep.h | 18 + src/md-generic/rpt.h | 8 + src/md-generic/support.c | 34 + src/md-i386-gcc/Makefile.am | 9 + src/md-i386-gcc/Makefile.in | 449 + src/md-i386-gcc/m68k.h | 96 + src/md-i386-gcc/m68kops.h | 222 + src/md-i386-gcc/maccess.h | 52 + src/md-i386-gcc/machdep.h | 18 + src/md-i386-gcc/rpt.h | 61 + src/md-i386-gcc/support.c | 248 + src/md-ppc-gcc/Makefile.am | 7 + src/md-ppc-gcc/Makefile.in | 447 + src/md-ppc-gcc/m68k.h | 107 + src/md-ppc-gcc/m68kops.h | 119 + src/md-ppc-gcc/maccess.h | 40 + src/md-ppc-gcc/machdep.h | 18 + src/md-ppc-gcc/rpt.h | 28 + src/md-ppc-gcc/support.c | 222 + src/md-ppc/Makefile.am | 7 + src/md-ppc/Makefile.in | 447 + src/md-ppc/m68k.h | 49 + src/md-ppc/maccess.h | 40 + src/md-ppc/rpt.h | 14 + src/md-ppc/support.c | 19 + src/memory.c | 1915 +++ src/misc.c | 416 + src/missing.c | 52 + src/native2amiga.c | 115 + src/newcpu.c | 2558 ++++ src/od-amiga/Makefile.am | 9 + src/od-amiga/Makefile.in | 459 + src/od-amiga/ami-disk.c | 399 + src/od-amiga/amiga-kludges.h | 140 + src/od-amiga/blkdev-amiga.c | 598 + src/od-amiga/hrtimer.h | 32 + src/od-amiga/main.c | 148 + src/od-amiga/memory.c | 27 + src/od-amiga/memory.h | 22 + src/od-amiga/scc | 95 + src/od-amiga/support.c | 47 + src/od-beos/Makefile.am | 11 + src/od-beos/Makefile.in | 482 + src/od-beos/hrtimer.h | 11 + src/od-beos/main.cpp | 117 + src/od-beos/memory.c | 27 + src/od-beos/memory.h | 14 + src/od-beos/uae.rsrc | Bin 0 -> 34973 bytes src/od-generic/Makefile.am | 7 + src/od-generic/Makefile.in | 448 + src/od-generic/hrtimer.h | 38 + src/od-generic/main.c | 66 + src/od-generic/memory.c | 45 + src/od-generic/memory.h | 11 + src/od-linux/Makefile.am | 7 + src/od-linux/Makefile.in | 451 + src/od-linux/blkdev-linux.c | 434 + src/od-linux/hrtimer.h | 11 + src/od-linux/main.c | 1 + src/od-linux/memory.c | 9 + src/od-linux/memory.h | 15 + src/od-macosx/Info.plist.in | 35 + src/od-macosx/Makefile.am | 10 + src/od-macosx/Makefile.in | 483 + src/od-macosx/euae.icns | Bin 0 -> 56999 bytes src/od-macosx/hrtimer.h | 11 + src/od-macosx/main.h | 19 + src/od-macosx/main.m | 326 + src/od-macosx/memory.c | 9 + src/od-macosx/memory.h | 15 + src/od-win32/Makefile.am | 8 + src/od-win32/Makefile.in | 460 + src/od-win32/bsdsock.c | 2624 ++++ src/od-win32/fsdb_win32.c | 228 + src/od-win32/hardfile_win32.c | 789 ++ src/od-win32/hrtimer.h | 30 + src/od-win32/main.c | 246 + src/od-win32/memory.c | 29 + src/od-win32/memory.h | 11 + src/od-win32/posixemu.c | 78 + src/od-win32/posixemu.h | 17 + src/od-win32/writelog.c | 131 + src/picasso96.c | 3043 +++++ src/readcpu.c | 881 ++ src/readdisk.c | 193 + src/savestate.c | 1311 ++ src/scsi-none.c | 10 + src/scsiemul.c | 950 ++ src/sd-alsa/Makefile.am | 7 + src/sd-alsa/Makefile.in | 447 + src/sd-alsa/sound.c | 288 + src/sd-alsa/sound.h | 87 + src/sd-amigaos/Makefile.am | 7 + src/sd-amigaos/Makefile.in | 447 + src/sd-amigaos/sound.c | 299 + src/sd-amigaos/sound.h | 128 + src/sd-beos/Makefile.am | 9 + src/sd-beos/Makefile.in | 450 + src/sd-beos/sound.cpp | 296 + src/sd-beos/sound.h | 40 + src/sd-none/Makefile.am | 7 + src/sd-none/Makefile.in | 447 + src/sd-none/sound.c | 67 + src/sd-none/sound.h | 33 + src/sd-sdl/Makefile.am | 7 + src/sd-sdl/Makefile.in | 447 + src/sd-sdl/sound.c | 226 + src/sd-sdl/sound.h | 45 + src/sd-solaris/Makefile.am | 7 + src/sd-solaris/Makefile.in | 447 + src/sd-solaris/sound.c | 136 + src/sd-solaris/sound.h | 44 + src/sd-uss/Makefile.am | 7 + src/sd-uss/Makefile.in | 447 + src/sd-uss/sound.c | 177 + src/sd-uss/sound.h | 37 + src/serial.c | 481 + src/sinctable.c | 632 + src/svgancui.c | 577 + src/sysconfig.h.in | 412 + src/table68k | 260 + src/targets/t-amiga.h | 37 + src/targets/t-beos.h | 21 + src/targets/t-unix.h | 26 + src/targets/t-win32.h | 25 + src/td-amigaos/Makefile.am | 7 + src/td-amigaos/Makefile.in | 447 + src/td-amigaos/thread.c | 498 + src/td-amigaos/thread.h | 53 + src/td-beos/Makefile.am | 7 + src/td-beos/Makefile.in | 447 + src/td-beos/thread.c | 12 + src/td-beos/thread.h | 56 + src/td-none/Makefile.am | 7 + src/td-none/Makefile.in | 447 + src/td-none/thread.c | 15 + src/td-none/thread.h | 28 + src/td-posix/Makefile.am | 7 + src/td-posix/Makefile.in | 447 + src/td-posix/thread.c | 49 + src/td-posix/thread.h | 101 + src/td-sdl/Makefile.am | 7 + src/td-sdl/Makefile.in | 447 + src/td-sdl/thread.c | 15 + src/td-sdl/thread.h | 49 + src/td-win32/Makefile.am | 7 + src/td-win32/Makefile.in | 447 + src/td-win32/thread.c | 65 + src/td-win32/thread.h | 31 + src/test/Makefile.am | 7 + src/test/Makefile.in | 446 + src/test/test_optflag.c | 327 + src/tools/Makefile.in | 65 + src/tools/configure | 8157 +++++++++++ src/tools/configure.in | 70 + src/tools/sysconfig.h.in | 101 + src/tools/target.h | 1 + src/traps.c | 471 + src/tui.c | 702 + src/uaeexe.c | 131 + src/uaelib.c | 440 + src/unzip.c | 1286 ++ src/writelog.c | 68 + src/zfile.c | 765 ++ 488 files changed, 200786 insertions(+) create mode 100644 CHANGES create mode 100644 COPYING create mode 100644 ChangeLog create mode 100644 Makefile.am create mode 100644 Makefile.in create mode 100644 README create mode 100644 aclocal.m4 create mode 100644 amiga/source/Makefile.gcc create mode 100644 amiga/source/mhint.asm create mode 100644 amiga/source/mousehack.c create mode 100644 amiga/source/timehack.c create mode 100644 amiga/source/transdisk.c create mode 100644 amiga/source/transrom.c create mode 100755 amiga/source/uae-configuration.c create mode 100755 amiga/source/uae-configuration.s create mode 100644 amiga/source/uae-control.c create mode 100644 amiga/source/uae-control.h create mode 100644 amiga/source/uae_pragmas.h create mode 100644 amiga/source/uae_rcli.c create mode 100644 amiga/source/uaectrl.c create mode 100755 bootstrap.sh create mode 100755 config.guess create mode 100755 config.sub create mode 100755 configure create mode 100644 configure.in create mode 100755 depcomp create mode 100644 docs/bsdsocket.txt create mode 100644 docs/cmd-line.txt create mode 100644 docs/compiling.txt create mode 100644 docs/configuration.txt create mode 100644 docs/floppies.txt create mode 100644 docs/joystick.txt create mode 100644 docs/keyboard.txt create mode 100644 docs/scsi.txt create mode 100755 install-sh create mode 100644 m4/ac_var_timezone_externals.m4 create mode 100644 m4/acx_pthread.m4 create mode 100644 m4/as-objc.m4 create mode 100644 m4/check_zlib.m4 create mode 100644 m4/fsusage.m4 create mode 100644 m4/gtk-2.0.m4 create mode 100644 m4/gtk.m4 create mode 100644 m4/sdl.m4 create mode 100644 m4/type_socklen_t.m4 create mode 100644 m4/uintmax_t.m4 create mode 100755 missing create mode 100755 mkinstalldirs create mode 100644 src/ChangeLog create mode 100644 src/Makefile.am create mode 100644 src/Makefile.in create mode 100644 src/akiko.c create mode 100644 src/ar.c create mode 100644 src/audio.c create mode 100644 src/autoconf.c create mode 100644 src/blitops.c create mode 100644 src/blitter.c create mode 100644 src/blkdev-libscg.c create mode 100644 src/blkdev.c create mode 100644 src/bsdsocket-posix-new.c create mode 100644 src/bsdsocket.c create mode 100644 src/build68k.c create mode 100644 src/caps/Makefile.am create mode 100644 src/caps/Makefile.in create mode 100644 src/caps/caps.c create mode 100644 src/catweasel.c create mode 100644 src/cdrom.c create mode 100644 src/cfgfile.c create mode 100644 src/cia.c create mode 100644 src/compemu_fpp.c create mode 100644 src/compemu_raw_x86.c create mode 100644 src/compemu_support.c create mode 100755 src/crc32.c create mode 100644 src/custom.c create mode 100644 src/debug.c create mode 100644 src/disk.c create mode 100644 src/dms/Makefile.am create mode 100644 src/dms/Makefile.in create mode 100644 src/dms/cdata.h create mode 100644 src/dms/crc_csum.c create mode 100644 src/dms/crc_csum.h create mode 100644 src/dms/getbits.c create mode 100644 src/dms/getbits.h create mode 100644 src/dms/maketbl.c create mode 100644 src/dms/maketbl.h create mode 100644 src/dms/pfile.c create mode 100644 src/dms/pfile.h create mode 100644 src/dms/tables.c create mode 100644 src/dms/tables.h create mode 100644 src/dms/u_deep.c create mode 100644 src/dms/u_deep.h create mode 100644 src/dms/u_heavy.c create mode 100644 src/dms/u_heavy.h create mode 100644 src/dms/u_init.c create mode 100644 src/dms/u_init.h create mode 100644 src/dms/u_medium.c create mode 100644 src/dms/u_medium.h create mode 100644 src/dms/u_quick.c create mode 100644 src/dms/u_quick.h create mode 100644 src/dms/u_rle.c create mode 100644 src/dms/u_rle.h create mode 100644 src/drawing.c create mode 100644 src/driveclick.c create mode 100644 src/enforcer.c create mode 100644 src/ersatz.c create mode 100644 src/events.c create mode 100644 src/expansion.c create mode 100644 src/fdi2raw.c create mode 100644 src/filesys.asm create mode 100644 src/filesys.c create mode 100755 src/filesys.sh create mode 100644 src/filesys_bootrom.c create mode 100644 src/filesys_unix.c create mode 100644 src/fpp.c create mode 100644 src/fsdb.c create mode 100644 src/fsdb_unix.c create mode 100644 src/fsusage.c create mode 100644 src/genblitter.c create mode 100644 src/gencomp.c create mode 100644 src/gencpu.c create mode 100644 src/gengenblitter.c create mode 100644 src/genlinetoscr.c create mode 100644 src/gfx-amigaos/Makefile.am create mode 100644 src/gfx-amigaos/Makefile.in create mode 100644 src/gfx-amigaos/ami-appw.c create mode 100644 src/gfx-amigaos/ami-win.c create mode 100644 src/gfx-amigaos/gfx.h create mode 100644 src/gfx-beos/Makefile.am create mode 100644 src/gfx-beos/Makefile.in create mode 100644 src/gfx-beos/be-Input.cpp create mode 100644 src/gfx-beos/be-UAE.cpp create mode 100644 src/gfx-beos/be-UAE.h create mode 100644 src/gfx-beos/be-Window.cpp create mode 100644 src/gfx-beos/be-Window.h create mode 100644 src/gfx-beos/gfx.h create mode 100644 src/gfx-curses/Makefile.am create mode 100644 src/gfx-curses/Makefile.in create mode 100644 src/gfx-curses/gfx.h create mode 100644 src/gfx-curses/ncurses.c create mode 100644 src/gfx-sdl/Makefile.am create mode 100644 src/gfx-sdl/Makefile.in create mode 100644 src/gfx-sdl/gfx.h create mode 100644 src/gfx-sdl/rawkeys.c create mode 100644 src/gfx-sdl/sdlgfx.c create mode 100644 src/gfx-sdl/sdlgfx.h create mode 100644 src/gfx-sdl/sdlkeys.c create mode 100644 src/gfx-svga/Makefile.am create mode 100644 src/gfx-svga/Makefile.in create mode 100644 src/gfx-svga/gfx.h create mode 100644 src/gfx-svga/svga.c create mode 100644 src/gfx-x11/Makefile.am create mode 100644 src/gfx-x11/Makefile.in create mode 100644 src/gfx-x11/gfx.h create mode 100644 src/gfx-x11/x11keys.c create mode 100644 src/gfx-x11/xwin.c create mode 100644 src/gfxutil.c create mode 100644 src/gui-beos/Makefile.am create mode 100644 src/gui-beos/Makefile.in create mode 100644 src/gui-beos/gui.cpp create mode 100644 src/gui-cocoa/Makefile.am create mode 100644 src/gui-cocoa/Makefile.in create mode 100644 src/gui-cocoa/cocoaui.m create mode 100644 src/gui-gtk/Makefile.am create mode 100644 src/gui-gtk/Makefile.in create mode 100644 src/gui-gtk/chipsetspeedpanel.c create mode 100644 src/gui-gtk/chipsetspeedpanel.h create mode 100644 src/gui-gtk/chipsettypepanel.c create mode 100644 src/gui-gtk/chipsettypepanel.h create mode 100644 src/gui-gtk/chooserwidget.c create mode 100644 src/gui-gtk/chooserwidget.h create mode 100644 src/gui-gtk/cpuspeedpanel.c create mode 100644 src/gui-gtk/cpuspeedpanel.h create mode 100644 src/gui-gtk/cputypepanel.c create mode 100644 src/gui-gtk/cputypepanel.h create mode 100644 src/gui-gtk/floppyfileentry.c create mode 100644 src/gui-gtk/floppyfileentry.h create mode 100644 src/gui-gtk/gtkui.c create mode 100644 src/gui-gtk/led.c create mode 100644 src/gui-gtk/led.h create mode 100644 src/gui-gtk/util.c create mode 100644 src/gui-gtk/util.h create mode 100644 src/gui-muirexx/Makefile.am create mode 100644 src/gui-muirexx/Makefile.in create mode 100755 src/gui-muirexx/UAEGUI.rexx create mode 100755 src/gui-muirexx/UAEWB create mode 100755 src/gui-muirexx/UAEWB.aux create mode 100755 src/gui-muirexx/UAEWB.rexx create mode 100644 src/gui-muirexx/ami-gui.c create mode 100644 src/gui-muirexx/ami-rexx.c create mode 100644 src/gui-none/Makefile.am create mode 100644 src/gui-none/Makefile.in create mode 100644 src/gui-none/nogui.c create mode 100644 src/hardfile.c create mode 100644 src/hardfile_unix.c create mode 100644 src/hotkeys.c create mode 100644 src/identify.c create mode 100644 src/include/akiko.h create mode 100644 src/include/ar.h create mode 100644 src/include/audio.h create mode 100644 src/include/autoconf.h create mode 100644 src/include/blitter.h create mode 100644 src/include/blkdev.h create mode 100644 src/include/bsdsocket.h create mode 100755 src/include/caps.h create mode 100644 src/include/catweasel.h create mode 100644 src/include/cdrom.h create mode 100644 src/include/cia.h create mode 100644 src/include/commpipe.h create mode 100644 src/include/compemu.h create mode 100644 src/include/cpu_prefetch.h create mode 100755 src/include/crc32.h create mode 100644 src/include/custom.h create mode 100644 src/include/custom_private.h create mode 100644 src/include/debug.h create mode 100644 src/include/disk.h create mode 100644 src/include/drawing.h create mode 100644 src/include/driveclick.h create mode 100644 src/include/enforcer.h create mode 100644 src/include/ersatz.h create mode 100644 src/include/events.h create mode 100644 src/include/execlib.h create mode 100644 src/include/fdi2raw.h create mode 100644 src/include/filesys.h create mode 100644 src/include/fpp-ieee.h create mode 100644 src/include/fpp-unknown.h create mode 100644 src/include/fsdb.h create mode 100644 src/include/fsusage.h create mode 100644 src/include/genblitter.h create mode 100644 src/include/gensound.h create mode 100755 src/include/gfxfilter.h create mode 100644 src/include/gui.h create mode 100644 src/include/hotkeys.h create mode 100644 src/include/hrtimer.h create mode 100644 src/include/identify.h create mode 100644 src/include/inputdevice.h create mode 100644 src/include/joystick.h create mode 100644 src/include/keyboard.h create mode 100644 src/include/keybuf.h create mode 100644 src/include/memory.h create mode 100644 src/include/native2amiga.h create mode 100644 src/include/newcpu.h create mode 100644 src/include/noflags.h create mode 100644 src/include/options.h create mode 100644 src/include/osemu.h create mode 100644 src/include/picasso96.h create mode 100644 src/include/readcpu.h create mode 100644 src/include/savestate.h create mode 100644 src/include/scsidev.h create mode 100644 src/include/serial.h create mode 100644 src/include/sinctable.h create mode 100644 src/include/sleep.h create mode 100644 src/include/sysdeps.h create mode 100644 src/include/traps.h create mode 100644 src/include/tui.h create mode 100644 src/include/uae.h create mode 100644 src/include/uae_endian.h create mode 100644 src/include/uae_malloc.h create mode 100644 src/include/uae_string.h create mode 100644 src/include/uae_types.h create mode 100644 src/include/uaeexe.h create mode 100644 src/include/unzip.h create mode 100644 src/include/version.h create mode 100644 src/include/writelog.h create mode 100644 src/include/xwin.h create mode 100644 src/include/zfile.h create mode 100644 src/inputdevice.c create mode 100644 src/inputevents.def create mode 100755 src/install_libscg create mode 100644 src/jd-amigainput/Makefile.am create mode 100644 src/jd-amigainput/Makefile.in create mode 100644 src/jd-amigainput/joystick.c create mode 100644 src/jd-amigaos/Makefile.am create mode 100644 src/jd-amigaos/Makefile.in create mode 100644 src/jd-amigaos/joystick.c create mode 100644 src/jd-beos/Makefile.am create mode 100644 src/jd-beos/Makefile.in create mode 100644 src/jd-beos/joystick.cpp create mode 100644 src/jd-linuxold/Makefile.am create mode 100644 src/jd-linuxold/Makefile.in create mode 100644 src/jd-linuxold/joystick.c create mode 100644 src/jd-none/Makefile.am create mode 100644 src/jd-none/Makefile.in create mode 100644 src/jd-none/joystick.c create mode 100644 src/jd-sdl/Makefile.am create mode 100644 src/jd-sdl/Makefile.in create mode 100644 src/jd-sdl/joystick.c create mode 100644 src/keybuf.c create mode 100644 src/keymap/Makefile.am create mode 100644 src/keymap/Makefile.in create mode 100644 src/keymap/amiga_rawkeys.c create mode 100644 src/keymap/amiga_rawkeys.h create mode 100644 src/keymap/beos_rawkeys.c create mode 100644 src/keymap/beos_rawkeys.h create mode 100644 src/keymap/hotkeys_common.h create mode 100644 src/keymap/keymap.c create mode 100644 src/keymap/keymap.h create mode 100644 src/keymap/keymap_all.h create mode 100644 src/keymap/keymap_common.h create mode 100644 src/keymap/quartz_rawkeys.c create mode 100644 src/keymap/quartz_rawkeys.h create mode 100644 src/keymap/x11pc_rawkeys.c create mode 100644 src/keymap/x11pc_rawkeys.h create mode 100644 src/main.c create mode 100644 src/md-68k/Makefile.am create mode 100644 src/md-68k/Makefile.in create mode 100644 src/md-68k/cpuopti create mode 100644 src/md-68k/m68k.h create mode 100644 src/md-68k/m68kops.h create mode 100644 src/md-68k/maccess.h create mode 100644 src/md-68k/machdep.h create mode 100644 src/md-68k/rpt.h create mode 100644 src/md-68k/support.c create mode 100644 src/md-amd64-gcc/Makefile.am create mode 100644 src/md-amd64-gcc/Makefile.in create mode 100644 src/md-amd64-gcc/m68k.h create mode 100644 src/md-amd64-gcc/m68kops.h create mode 100644 src/md-amd64-gcc/maccess.h create mode 100644 src/md-amd64-gcc/machdep.h create mode 100644 src/md-amd64-gcc/rpt.h create mode 100644 src/md-amd64-gcc/support.c create mode 100644 src/md-generic/Makefile.am create mode 100644 src/md-generic/Makefile.in create mode 100644 src/md-generic/m68k.h create mode 100644 src/md-generic/m68kops.h create mode 100644 src/md-generic/maccess.h create mode 100644 src/md-generic/machdep.h create mode 100644 src/md-generic/rpt.h create mode 100644 src/md-generic/support.c create mode 100644 src/md-i386-gcc/Makefile.am create mode 100644 src/md-i386-gcc/Makefile.in create mode 100644 src/md-i386-gcc/m68k.h create mode 100644 src/md-i386-gcc/m68kops.h create mode 100644 src/md-i386-gcc/maccess.h create mode 100644 src/md-i386-gcc/machdep.h create mode 100644 src/md-i386-gcc/rpt.h create mode 100644 src/md-i386-gcc/support.c create mode 100644 src/md-ppc-gcc/Makefile.am create mode 100644 src/md-ppc-gcc/Makefile.in create mode 100644 src/md-ppc-gcc/m68k.h create mode 100644 src/md-ppc-gcc/m68kops.h create mode 100644 src/md-ppc-gcc/maccess.h create mode 100644 src/md-ppc-gcc/machdep.h create mode 100644 src/md-ppc-gcc/rpt.h create mode 100644 src/md-ppc-gcc/support.c create mode 100644 src/md-ppc/Makefile.am create mode 100644 src/md-ppc/Makefile.in create mode 100644 src/md-ppc/m68k.h create mode 100644 src/md-ppc/maccess.h create mode 100644 src/md-ppc/rpt.h create mode 100644 src/md-ppc/support.c create mode 100644 src/memory.c create mode 100644 src/misc.c create mode 100644 src/missing.c create mode 100644 src/native2amiga.c create mode 100644 src/newcpu.c create mode 100644 src/od-amiga/Makefile.am create mode 100644 src/od-amiga/Makefile.in create mode 100644 src/od-amiga/ami-disk.c create mode 100644 src/od-amiga/amiga-kludges.h create mode 100644 src/od-amiga/blkdev-amiga.c create mode 100644 src/od-amiga/hrtimer.h create mode 100644 src/od-amiga/main.c create mode 100644 src/od-amiga/memory.c create mode 100644 src/od-amiga/memory.h create mode 100755 src/od-amiga/scc create mode 100644 src/od-amiga/support.c create mode 100644 src/od-beos/Makefile.am create mode 100644 src/od-beos/Makefile.in create mode 100644 src/od-beos/hrtimer.h create mode 100644 src/od-beos/main.cpp create mode 100644 src/od-beos/memory.c create mode 100644 src/od-beos/memory.h create mode 100644 src/od-beos/uae.rsrc create mode 100644 src/od-generic/Makefile.am create mode 100644 src/od-generic/Makefile.in create mode 100644 src/od-generic/hrtimer.h create mode 100644 src/od-generic/main.c create mode 100644 src/od-generic/memory.c create mode 100644 src/od-generic/memory.h create mode 100644 src/od-linux/Makefile.am create mode 100644 src/od-linux/Makefile.in create mode 100644 src/od-linux/blkdev-linux.c create mode 100644 src/od-linux/hrtimer.h create mode 100644 src/od-linux/main.c create mode 100644 src/od-linux/memory.c create mode 100644 src/od-linux/memory.h create mode 100644 src/od-macosx/Info.plist.in create mode 100644 src/od-macosx/Makefile.am create mode 100644 src/od-macosx/Makefile.in create mode 100644 src/od-macosx/euae.icns create mode 100644 src/od-macosx/hrtimer.h create mode 100644 src/od-macosx/main.h create mode 100644 src/od-macosx/main.m create mode 100644 src/od-macosx/memory.c create mode 100644 src/od-macosx/memory.h create mode 100644 src/od-win32/Makefile.am create mode 100644 src/od-win32/Makefile.in create mode 100755 src/od-win32/bsdsock.c create mode 100644 src/od-win32/fsdb_win32.c create mode 100755 src/od-win32/hardfile_win32.c create mode 100644 src/od-win32/hrtimer.h create mode 100644 src/od-win32/main.c create mode 100644 src/od-win32/memory.c create mode 100644 src/od-win32/memory.h create mode 100644 src/od-win32/posixemu.c create mode 100644 src/od-win32/posixemu.h create mode 100644 src/od-win32/writelog.c create mode 100644 src/picasso96.c create mode 100644 src/readcpu.c create mode 100644 src/readdisk.c create mode 100644 src/savestate.c create mode 100644 src/scsi-none.c create mode 100644 src/scsiemul.c create mode 100644 src/sd-alsa/Makefile.am create mode 100644 src/sd-alsa/Makefile.in create mode 100644 src/sd-alsa/sound.c create mode 100644 src/sd-alsa/sound.h create mode 100644 src/sd-amigaos/Makefile.am create mode 100644 src/sd-amigaos/Makefile.in create mode 100644 src/sd-amigaos/sound.c create mode 100644 src/sd-amigaos/sound.h create mode 100644 src/sd-beos/Makefile.am create mode 100644 src/sd-beos/Makefile.in create mode 100644 src/sd-beos/sound.cpp create mode 100644 src/sd-beos/sound.h create mode 100644 src/sd-none/Makefile.am create mode 100644 src/sd-none/Makefile.in create mode 100644 src/sd-none/sound.c create mode 100644 src/sd-none/sound.h create mode 100644 src/sd-sdl/Makefile.am create mode 100644 src/sd-sdl/Makefile.in create mode 100644 src/sd-sdl/sound.c create mode 100644 src/sd-sdl/sound.h create mode 100644 src/sd-solaris/Makefile.am create mode 100644 src/sd-solaris/Makefile.in create mode 100644 src/sd-solaris/sound.c create mode 100644 src/sd-solaris/sound.h create mode 100644 src/sd-uss/Makefile.am create mode 100644 src/sd-uss/Makefile.in create mode 100644 src/sd-uss/sound.c create mode 100644 src/sd-uss/sound.h create mode 100644 src/serial.c create mode 100644 src/sinctable.c create mode 100644 src/svgancui.c create mode 100644 src/sysconfig.h.in create mode 100644 src/table68k create mode 100644 src/targets/t-amiga.h create mode 100644 src/targets/t-beos.h create mode 100644 src/targets/t-unix.h create mode 100644 src/targets/t-win32.h create mode 100644 src/td-amigaos/Makefile.am create mode 100644 src/td-amigaos/Makefile.in create mode 100644 src/td-amigaos/thread.c create mode 100644 src/td-amigaos/thread.h create mode 100644 src/td-beos/Makefile.am create mode 100644 src/td-beos/Makefile.in create mode 100644 src/td-beos/thread.c create mode 100644 src/td-beos/thread.h create mode 100644 src/td-none/Makefile.am create mode 100644 src/td-none/Makefile.in create mode 100644 src/td-none/thread.c create mode 100644 src/td-none/thread.h create mode 100644 src/td-posix/Makefile.am create mode 100644 src/td-posix/Makefile.in create mode 100644 src/td-posix/thread.c create mode 100644 src/td-posix/thread.h create mode 100644 src/td-sdl/Makefile.am create mode 100644 src/td-sdl/Makefile.in create mode 100644 src/td-sdl/thread.c create mode 100644 src/td-sdl/thread.h create mode 100644 src/td-win32/Makefile.am create mode 100644 src/td-win32/Makefile.in create mode 100644 src/td-win32/thread.c create mode 100644 src/td-win32/thread.h create mode 100644 src/test/Makefile.am create mode 100644 src/test/Makefile.in create mode 100644 src/test/test_optflag.c create mode 100644 src/tools/Makefile.in create mode 100755 src/tools/configure create mode 100644 src/tools/configure.in create mode 100644 src/tools/sysconfig.h.in create mode 100644 src/tools/target.h create mode 100644 src/traps.c create mode 100644 src/tui.c create mode 100644 src/uaeexe.c create mode 100644 src/uaelib.c create mode 100644 src/unzip.c create mode 100644 src/writelog.c create mode 100644 src/zfile.c diff --git a/CHANGES b/CHANGES new file mode 100644 index 0000000..ef98cb5 --- /dev/null +++ b/CHANGES @@ -0,0 +1,541 @@ +20040302 +- Fix building of SCSI emulation on OS X. Update config script to link with + IOKit framework when building against libscg on OS X. Update install_scg + script to re-run ranlib on libscg/libschily on OS X after copying. +- Tweaks for building scsi emulation on BeOS. +- Tidied up sleep code. Reimplemented my_usleep() to uae_msleep() which + takes a sleep duration in milliseconds rather then usecs. +- Misc clean-ups in preparation for getting stuff merged in WinUAE tree. +- Hacked support in config script for compiling against libscg/libschily + external to source tree (this needs tidying up). Yet more options - + --with-libscg-prefix etc. +- Bug in libscg block driver was causing segfault when CD32 was reset. Fixed. +- Libscg block driver wasn't clearing SCSI error codes before executing SCSI + inquiry or test unit ready commands (I was passing args in the wrong order + to memset. Ooops!). This was causing problems when scanning the SCSI bus + (particularly for real SCSI busses on the host) and was causing CD32 + emulation to fail to detect disk changes. Fixed. + +20040222 +- Only build enforcer when we have JIT/natmem support. +- Begin merging GTK+ changes back (bearing in mind that this time GTK thread + is secondary again). GUI can again be opened after emulation proper has + been started and failure to open GTK+ GUI will not cause UAE to fail. +- Fix configure script with regard to libscg. When building in source tree, + add current directory to library path. +- Fix configure script with regard to CAPS. Use CPPFLAGS rather than CFLAGS + to specify directory to include CAPS header from. +- Fix install_libscg script to work on *BSD (and OS X). Problems still exist + linking on OS X due to the whacky linker there. +- Replace mode sense/select 6 to 10 translation in libscg block device driver + with calls to the new generic code imported from WinUAE 0.8.25. +- Merged WinUAE 0.8.25 +- Back out GTK+ GUI changes. It seems that running the GUI as the primary + thread and SDL as the secondary really hurts performance. Also back out + SDL timers for clock speed calibration since it's not needed now. +- Added config option --enable-enforcer +- Added AHI emulation glue from WinUAE (this includes support for WinUAE + enforcer, etc.) This hodge-podge of code is in misc.c (for want of a + better place to put it). AHI emulation still needs porting and back-ends + for the various sound drivers supported (which will be fun). +- Merged changes from WinUAE 0.8.24 +- Fixed bug in libscg driver which was causing segfault on reset + +20040219 (not publicly released) +- CD led display now works. +- Assorted fixes for building akiko (CD32) emulation. +- Implemented block device driver using cdrtools 2.0.x's libscg (this is + largely based on the old scsidev driver). CD/DVD devices only are + currently supported. +- Quick fix for the Unix bsdsocket emulation, so that it no longer directly + requires POSIX threads, semaphores and thread-local storage. This fixes + many problems when UAE is built against SDL. It should also now work + on OS X with SDL now, but it still doesn't on BeOS due to limitations with + the BeOS socket API. Many problems remain, and a re-write is still needed. +- Support for IPF (CAPS) floppy images added. +- Use SDL timers for calibration in md-i386-gcc when building with SDL. + Using POSIX timers directly can screw threading. This is currently less + accurate, and requires a longer calibration period. +- Fix for building on older SDL versions without mousewheel support. +- Fixes for SDL sound which were causing threading problems. +- Implement the Gtk+ LEDs updates as a separate callback. This lets us + schedule the events callback more frequently. +- Make GTK+ GUI thread the main thread which launches the UAE thread (rather + than vice-versa). Makes the code slightly cleaner, and allows the GUI to + be opened after the emulation is started. The use_gui config file option + now means that the GUI is not opened at start-up, but may be opened later. + Added hotkey combination F12 + Enter to SDL and X11 targets to for this + purpose. +- Work-around that allows filesystems to be mounted from host ISO filesystems + when flagged as read/write in the config file. On systems with statvfs() and + on Linux (where statvfs() is not used because of broken implementations) UAE + will now mount such filesystems as read-only. More work needed here. +- On md-ppc-gcc target, make m68k CPU flags a bitfield. This generates better + code. +- SDL gfx driver was broken on 8-bit host displays. Fixed for both native and + P96 screens. Try running UAE on the Linux framebuffer device at 8-bit if + you want to see some serious speed. + +20040129 +- Ta da! JIT now works on BeOS/x86 (albeit without direct memory support). + Still, it gives 10x the speed of pure interpretation. I finally sussed + what was causing the stack problems - cpuopti! Solution: don't run cpuopti + on platforms that can't handle the x86 assembly magic in newcpu.c for + calling opcode handlers - e.g. BeOS. Obvious when ya think about it. ;-) +- Merged and updated Axel's BeOS sound driver from BeUAE. Sound quality is + still poor on my system - but somewhat less so. ;-) +- Config file support for running xres/mimeset on the compiled binary when + targetting BeOS. Added Axel's resource file to the dist. +- Tidied up BeOS floppy image dialog. If invoked in full-screen mode, UAE + will now try and switch to windowed mode before opening the dialog. + +20040126 +- Dist was missing a file from src/gfx-x11. Fixed. +- Typo in OS x raw key driver. Fixed. + +20040125 +- In Amiga target, set the UAE processes's pr_WindowPtr to ensure requesters + appear on UAE's screen. +- Tidy up Amiga gfx target. Remove Graffiti support. Add new Amiga-specific + options to configure the type of screen UAE runs on (still more to do). +- Allow comments again in cfgfiles. Lines beginning with '#' will be ignored. +- Remove hacks in sleep.c. +- Add support for popping up floppy dialogs in Gtk+ UI in response to + gui_display() callback from UAE. +- Fix raw keyboard handling with SDL target. If the SDL window loses focus + when keys are held down, SDL generates key-up events with 0 keycode for + the keys that are pressed. UAE couldn't generate proper key-up events and + keys were 'sticking'. Respond to loss of focus and force keys to be + 'released'. +- Initial implementation of main.cpp for BeOS. +- Break out gui stubs from beos.cpp into separate file gui.cpp. Implemented + gui_message() via a BAlert and implemented file dialog for inserting disk + images. +- Fix fsusage.c on BeOS. The K&R declaration for adjust_blocks() was + screwing up the compiler for some reason. +- Fix to fsusage.c to build on systems with a working SVR4 statvfs() (many + non-glibc Unices). I had forgotten to revert back to using STAT_STATVFS + rather than HAVE_STATVFS. Thanks to Ian Chapman for reporting the problem + and testing the fix. +- Comment out JIT debugging messages in the Linux segv handler with + #ifdef JIT_DEBUG like the win32 handler does. The user doesn't need to be + worried by all those scary messages. +- Fix GCC-specific abort() macro to call exit() rather than abort(). This + ensures that any atexit() routines are called - and the user will get + their X display back. +- Fix AmigaOS POSIX semaphore emulation so that the semaphore thread is always + killed at exit (previously it wouldn't be unless all sempahores had been + deleted). +- Move disk image requester code from ami-win.c to ami-gui.c. Now used in + response to an appropriate gui_display() call. +- Re-implemented gui_message() in AmigaOS target to display messages as + EasyRequest requesters. +- Re-implemented and cleaned up keyboard handling in AmigaOS target to fully use + inputdevice.c and new hotkey key code. AmigaOS now supports a similar range + of hotkeys as X11 and SDL targets - all starting with Ctrl+LAlt rather + than F12. +- Implemented os-target main.c support (e.g., for start-up and support code). + Factored out break handling from the gfx targets and implemented it in the + various os targets. +- Added option sdl.map_raw_keys to allow the choice between mapping cooked + or raw keys with SDL gfx target. +- Added support for parsing gfx-target options. +- Separated gfx target from OS target. Unix target is now called 'unix' + rather than the previously confusing 'x11'. Gfx targets include 'x11', + 'sdl', etc. +- Inputdevice handling overhaul (work-in-progress) + * Got rid of the input-dummy.c hack and implemented the necessary code in + each of the gfx drivers. + * Cleaned up and simplified input handling in X11 and SDL targets, now + re-using more code from inputdevice.c. + * Implemented mouse wheel support in X11 and SDL targets. + * Initial implementation of target-independent hotkey handling. + * Initial support for target-independent raw key mapping (currently used in + SDL only). +- Screen mode tweaks to SDL gfx target. SDL not supplying precisely the mode + you asked for should cause fewer problems now. UAE also now asks for a hardware + surface (which works with, e.g., the dga and fbcon SDL video drivers). +- Implemented simple on-screen P96 RectFills and Blits using SDL blitting + functions (this can double the scroll speed of CON: windows even when + running in a SW surface). +- Lots of changes to the P96 emulation bringing in new code from Win32 + version - fixes the annoying scroll bug with CON: windows. (The big-endian + red/blue swapping bug which can occur with some types of blits on 32-bit + screens remains - and I'm convinced it's a bug in P96 itself. ;-) +- GUI tweaks to go with the --disable-natmem option. +- Added new config option --disable-natmem to build the JIT without direct + memory access. This should let the JIT build on other x86 Unices and + Unix-likes (JIT direct memory is currently dependent on x86/Linux segv + signal handling) until we can make it more portable. It'll also now + build on BeOS, although it bombs at run-time. Something strange seems to + be going on with the stack there, I think. +- Tweaks to let compemu_support.c build without sys/mman.h (e.g. on BeOS) +- Merged changes from my 0.8.23 branch. This means we're now based on WinUAE + 0.8.23. +- Hacked in support for building GTK+ GUI with GTK+2.x (the config script + will prefer GTK+2.x over GTK+1.x if both are available). +- Began importing new GTK+ GUI elements, starting with new CPU prefs page. + This'll now let you play with idling (if you're JIT-enabled) and my + busy-wait switch. (I'm not happy with the layout of this page, however, so] + it'll change again for the next release.) +- Bumped AmigaOS default stack to 32k (it uses a lot more when run on + AmigaOS < 3.9 for some reason). +- Tweaks for building on MorphOS. It now builds against ixemul, but not + libnix (there appears to be a lot missing from MorphOS's implementation of + libnix). I cannot test it, however, 'cos I ain't got MorphOS. + +20040107 +- Fix for floppy data not being initialized to 0 when allocated on the heap + (when SAVE_MEMORY is defined). +- Fix for typo in gfx-x11/xwin.c which was causing compilation to fail + (thanks to Giacomo Magnini for spotting this one). +- Add __stack declaration to AmigaOS target to enable automatic enlargement + of stack with libnix's swapstack module if the stack size is too low on + start-up. Set min size to 16384 for now, which stack snooping reveals is + erring heavily on the side of caution. I don't want to use stack + checking/extension code because UAE is already slow enough on a classic + Amiga. ;-) + +20040106 +- Fix for libnix auto-opening libraries on AmigaOS target and thus asking + for inflated version numbers (it asks for v37 of everything by default). +- Fix typos in BeOS implementation of fsusage. + +20040104 +- Use sample8_handler() rather than ULAW handler for 8-bit mono audio in SDL + sound driver. +- Fix switching of audio interpolation mode in x11 and SDL gfx targets. +- Define PICASSO96_SUPPORTED declaration in targets/t-beos.h when building + with SDL so that P96 support will be included. +- Renamed set_alarm function in md-i386-gcc/support.c since it conflicts + with a BeOS kernel function. +- Added a -version command-line option. +- Added full package version string to about page in Gtk UI (if defined). +- Fixed HD LED on no-gui, AmigaOS and BeOS targets. +- Re-did my implementation of POSIX semaphores for AmigaOS target. My + previous version didn't work, since it was pretty much a straightforward + mapping of POSIX semaphores onto Exec semaphores - but, since POSIX sems + don't have an owner whereas Exec sems do, this obviously wasn't going to + do the job. Doh! Should read docs more carefully in future. The new + implementation uses message-passing with a semaphore server thread to + achieve locking - and, as an added bonus, locking now obeys break signals. + Filesystem threads and hardfile support now both work on AmigaOS. Yay! +- Implemented fsuage for BeOS. +- Implemented new BeOS sound driver. +- Detect libossaudio in config script to enable use of OSS audio on + NetBSD/OpenBSD. Swap order of OSS and Sun audio in config script, so that + Sun audio is preferred over OSS on NetBSD etc. +- Port od-beos/beos.cpp to new inputdevice API. +- Disable BeOS sound driver. Needs to be rewritten. +- Break out BeOS joystick code to separate file (joystick.cpp) and port to new + inputdevice API. Now uses enhanced joystick API (although currently + support only 1 stick). +- Tweaks to od-beos/beos.cpp to get it closer to compiling. +- Use snooze() for my_usleep() on BeOS +- Fix x11 gfx target so it'll build without P96 support. +- Don't define NO_MAIN_IN_MAIN_C when compiling against SDL on BeOS. This'll + need to be changed later if we want the BeOS GUI to work with SDL target. +- Fixed P96 support in x11 target +- Added a log statement when retrying a hardfile mounted as read/write but + without write permission as read-only. +- Fixed hardfile-unix.c to obey read-only flag. +- Fixed expansion.c to build without P96 +- Fixed display of FPS counter on AmigaOS, GTK+ and no-gui targets. +- Merged new autoconf 2.5x/automake build system. Still very much a + work-in-progress. Advanatges: more flexible, more config options, better + support for cross-compiling and for building in separate directory. +- Fixed a serious typo: sleep was being used instead of usleep (if nanosleep + was not available). +- Merged updated sleep code from my 0.8.23 branch. For systems with rpt, UAE + will now test the chosen sleep routine and decide whether busy waiting is + necessary or not. (If it takes 10ms or more to do a 1ms sleep, then busy-wait + by default. The user will be eevntually able to turn this off with a config + option.) +- When building with the SAVE_MEMORY option, allocate floppy data at + run-time. This shaves MBs off the BSS size and means that the AmigaOS + binary doesn't need such a large unfragmented piece of memory to run. +- Make memory.h include osdep/memory.h to pick up OS-specific options. + AmigaOS version now picks up the SAVE_MEMORY option correctly. +- Fixed AmigaOS gfx driver not clearing screen properly +- Implemented fsusage for AmigaOS +- Implemented frame timing for classic (m68k) AmigaOS using the EClock. +- Implemented AmigaOS threading/semaphore code (not complete). +- Implemented AmigaOS joystick driver using gameport.device +- Applied patch from Giuseppe Ghibò to re-enable the -h command-line option + to show information about config options. +- Renamed the bsdsocket.c to bsdsocket-posix.c and imported the old + bsdsocket.c file (as used by WinUAE). Hopefully one day there can be some + reconciliation between the two. ;-) +- Modified the bsdsocket emulation so that a trap is installed even when the + emulation proper is not built. This stops UAE crashing when the Amiga side + of the emulation is used, but no emulation is present in UAE itself. +- Fixed bsdsocket emulation so that it really (this time) obeys the bsdsock + config file option. + +20031215 +- If options file not found in home directory or current directory, then + use home directory as default path. This enables the GTK+ UI to save + a newly generated config file in a sane place. +- In SDL target, changed full-screen mode to always grab mouse input. This + works around mouse motion problems in full-screen mode in OS X. +- Kludged on a widget for selecting cycle-exact CPU mode in the gtk UI. I + don't want to add much to the GUI just now because it's in the process of + being rewritten - but this was cheap to do and it doesn't make sense to + build in cycle-exact mode if it cannot be easily used. +- Tweaks to allow building without cycle-exact CPU (CPUEMU_6 undefined). + There's no config file support for this as yet, but if you want to save + buckets of time when compiling, load up src/Makefile and remove that + define in CFLAGS and cpuemu_*_6.o/compemu_*_6.o from OBJS. +- Fixed a race condition which caused the name of a newly selected kickstart + image or key file sometimes not to be displayed. +- Added a scale factor to read_processor_time() on x86 target. People were + reporting timing problems on fast machines, and I believe the problem is due + to the number of ticks per second of the processor clock (syncbase) not + fitting in a signed int (on 2GHz+ machines). By scaling down the clock + (currently by a factor of 16), hopefully this problem is solved. Also + modified the RDTSC call to return the processor time as a full 64-bits. This + is needed so that scaled down clock still rolls over in 32 bits (and indeed + read_processor_time() still returns time as 32 bits). +- Added a patch from Stephen Anthony to make the floppy file dialog in gtkui + remember the last path used (saves all that searching through folders to + find the right ADF file). +- Initial implementation of hardfile support on Unix (no LFS or Gtk GUI + support yet). RDB hardfiles cause problems with recent versions of HDToolBox + which needs to be further investigated. +- Some minor tweaks to AmigaOS and BeOS targets (AmigaOS target should now + build out of the box, but still a lot of work to do on BeOS). +- Lots of tidying doing trivial syncs with WinUAE 0.8.22r9. +- Cleaned up sleep_millis() and sleep_millis_busy(). They're now in sleep.c + and will call my_usleep() - which will be replaced with an apropriate libc + or OS call depending on what's available (e.g., nanosleep(), usleep() or + SDL_Delay()). sleep_millis() will now busy wait if possible when asked to + sleep for less than 10ms (the granularity of most system sleep routines will + not allow sleeping for shorter periods - according to the docs). + sleep_millis_busy() will now only sleep if busy waiting is not required (for + sub-10ms sleeps). +- Cleaned up MAX_PATH nonsense. Arbitrarily assigned a value of 512 if it's + not defined. (We could use MAXPATHLEN from POSIX headers, but this value + is just as arbitrary and rather wasteful. E.g., it's 2048 on Linux. Anybody + really need paths that long?) +- Commented out unused routines createinputfile(), etc. in zfile.c which were + there to support external dms tool but are no longer required (and anyway + don't build on AmigaOS without ixemul due to the lack of the dubious + tempnam() function). +- Tidied up usage of strcmpi() and stricmp(). Replaced with strcasecmp() and + added configure support for substituting strcasecmp() for one of these if + it isn't available. (Shouldn't be necessary. strcasecmp() is a BSD standard, + but the other two are aren't always available - e.g. Linux doesn't have them.) +- Fixed configure script to build bsdsocket emulation by default only on + Unix platforms. +- Fixed misreporting of bsdsocket emulation not being built when it has been. + +20031202 +- Modified gencpu (and build scripts) to generate cpuemu.c in three pieces + like it does in WinUAE. This should require less memory to build the CPU + emulation and should thus speed up compilation on GCC3 (it also opens the + door to compile-time configuration of the CPU emulation). +- Modified configure script to omit X86_ASSEMBLY option when building for + x86 BeOS (it doesn't work there). +- Modified configure script to allow building with GCC 3 on x86 (this was + already possible on other archs). The cpuopti step is simply omitted + (since cpuopti won't currently work with GCC 3 output). +- Updated Amiga target. Closer to building now (with GCC at least). Sound and + joystick support still to do, and config options probably need tweaking. +- Add updated Solaris sound driver from Elmar Plischke. +- Added patch from Elmar to allow bsdsocket emulation to compile on Solaris. +- Removed GNU varargs macros throughout (this should allow UAE to be compiled + without GCC once more). Thanks to Elmar for pointing this out. +- Freeing memory in mapped_free() was broken when JIT was compiled in but + direct memory access disabled. Fixed +- Imported support for using DMS floppy images from WinUAE. +- Support for using zipped or gzipped ADF files was broken. Fixed. +- Accept __POWERPC__ and __ppc__ as a synonyms of __powerpc__ when + testing for PPC architecture in configure script (GCC on MacOS X uses + these). +- Cleaned up custom.c and drawing.c in preparation for merge with WinUAE. (This + breaks P96 in SDL and X11 targets. I've fixed SDL, but X11 fix is still to + do). +- Added support for switching between windowed/full-screen mode on SDL target, + even when SDL doesn't support SDL_WM_ToggleFullScreen (e.g. MacOS X). +- Added hack to allow the use of F11 as the hot-key modifier in SDL target. + F12 doesn't work as other keys under MacOS X it seems. Key up/down events + are generated only when the key is released - so it's no good for a hot-key + modifier. +- When changing from a P96 screen mode to an Amiga screen mode, a segfault + could occur. Fixed. +- JIT causes segfault on start-up on 2.6 kernels (and some 2.4 kernels). + Problem is due to messing about with the processes's LDT (Local Descriptor + Table) to accelerate access to VM's memory. Disabled this for now until I + find a solution. +- Partial support for Danish keyboards in SDL target (some keys aren't + currently supported by SDL keysyms). + +20031118 +- Added scripts to build debian package +- Added Carl Drougge's bsdsocket.library and source to package (this handles + the Amiga side of his bsdsocket emulation, which is already included in this + tree). +- Added this changelog to package +- Updated docs dir from uae-0.8.22 (I still had 0.8.21). +- Added 1280x960 screen mode to SDL and X11 targets - I prefer square pixels! +- Changing Amiga/P96 screen mode in SDL target while mouse was grabbed would + screw mouse motion because UAE would forget mouse mode. Fixed. +- Changing Amiga/P96 screen mode in SDL target would cause full-screen mode + to be lost. Fixed. +- Changing P96 screen mode to a larger mode in SDL target caused a crash. Fixed. +- Re-did video mode selection in SDL target. 15-bit modes now work for P96. +- Ensured that files which include the SDL headers do so with the proper + path (That is, no path. It's provided by sdl-config). +- Lots of clean-ups in preparation for getting stuff merged in the WinUAE tree. +- Removed code for the Windows target from this tree. Eventually I want to + get it building with MinGW, Cygwin and maybe even OpenWatcom - but we're + some way from that goal, so for right now we'll just save some bandwidth. +- Removed code for Acorn, pOS, DOS, OS/2 and NeXT targets. I'm sure that these + don't work now, and I don't have the facilities to test them anyway. +- Recoded source files to ensure the use of Unix-style end-of-line markers. + GCC on BeOS was barfing on the DOS CR/LF codes that accidentally got imported + from the WinUAE tree. + +20031113 +- Added mapping of left and right "super" keys (Windows keys on a Windows + keyboard) to left and right Amiga keys in SDL and X targets. +- Swapped mapping of apostrophe and back quote keys in SDL target + +20031106 +- Silly me. Timehack was demanding clocks to be exactly in sync with 1us + accuracy. Made it less strict and only update amiga time if it is out by + more than 1ms. +- Added dummy set_thread_priority() function in sdl and posix thread + wrappers (require if using filesystem threads). +- Tweaks for configure script: + * Better detection of when thread support is required (currently + filesystem code requires threads - even when not building with + UAE_FILESYS_THREADS option - due to dependency on hardfile code). + * Filesystem threads will now be compiled in by default + * Configure now works again on BeOS (whether it will build is another + story.) +- Fixes to re-enable building without a GUI. +- Made bsdsocket emulation a compile-time option. +- Really fix dummy joystick driver in od-generic. +- Fixed joystick counting in Linux joystick driver. +- Fixed mouse button mapping in X target. +- Fixed moused movement in DGA mode and when grabbed in X target +- Fixed X pointer being displayed in UAE window after grabbing and + ungrabbing mouse with X target. +- Fixed various functions which should have been exported from + gfxutil.c but were declared static. + +20031011 +- Fixed UAE side of timehack which was translating Unix Epoch UTC + time to Amiga Epoch UTC+2. +- Added support in Amiga side of timehack for setting clock to local time + using offset from UTC read from environment variable TZ. Added + break handling, so you can now kill the damn thing. +- Ported dummy sound driver in generic target to new sound API. +- Put back big-endian fixes for OSS sound target (which for some reason + never made it into this tree). +- Got X11 target compiling again. Still needs work on mouse handling. +- Linux joystick driver now works. (Did it ever work before?) Not tested + on BSD, though. This uses the old and crap v0.x Linux joystick API. + Need to add a driver for the new API. +- Lots of of clean-up in input layer. Ported all the joystick drivers + to the new inputdevice API and thus got rid of some of my hacks + in input-dummy.c (this will eventually go away all together). +- GTK+ GUI now works on Darwin/MacOS X with SDL threads. POSIX semaphores + appear to be broken there, however. +- Cleaned up threads targets. Implemented the sleep_millis() function + in each of the thread.h targets (previously, SDL implementation was + in sdlgfx.c). Now you can build with SDL threads without SDL gfx. +- Added debug logging to GTK+ GUI. +- Lots of clean-up in GTK+ GUI. Reworked pausing and quitting code. + Verified that no GTK+ widgets are directly accessed from main UAE + thread - hopefully clearing up GUI lock-up problems that have been + reported. Moved more code into gtk_gui_thread() and added a semaphore + to sync with UAE thread on GUI start-up. +- Started documenting GTK+ code. +- Fixed font problem in About page of GTK+ GUI. The code was changing + the default font style, not just applying style to widget (although + this bug didn't seem to effect any of my Linux boxes, it did show up on + Darwin). +- Fixed sizing policy of GTK+ main window. When the window's vertical + size was increased, the Snaphots gadgets would expand - which looked + very ugly. Now they don't. + +20031005 +- First stab at a GTK message box implementation that is used to report + certain warnings to the user via a GUI dialog rather than just dumping a + message on the console. (It's not used much, yet, but is used to report + problems in loading a Kickstart image, etc.) +- More mucking about with memory.c. Verified that differences with WinUAE + are either bugs in WinUAE or differences in the way Windows does things. + Did some more tidying up and started doing some documentation. +- Fixed a bug that would cause a segfault if the ROM keyfile (for encoded + Cloanto ROMs) was unable to be read. +- Hacked a solution to the problem that most config changes effected in the + GTK GUI wouldn't be saved out to a config file unless the VM was running + (to accept the changes). +- Fixed a bug with the new input subsystem and the GTK UI that that meant + changes in joystick port preferences didn't take effect and couldn't be + saved out in the config file. +- Added config file support for 8-bit sound back in. +- Started bringing back some of the snaphost code (still not ready to go yet, + though). + +20031003 +- Fixed problem with SDL not cleaning up if UAE dies horribly or is killed. + Now, when running full-screen and UAE dies, you should get your X display + back. +- Finished merging the new config-file code from WinUAE (many of the new + config options aren't actually used yet, though). New filesys config code + may cause problems with config files from my earlier versions and cause + duplicate disks to be mounted. Just go into the hard drive section of the + config and remove any duplicates. (In hindsight, I should have merged all + the new config code in one go.) +- Disabled the load and save snapshot buttons in the GTK+ UI. The snapshot + function isn't actually useable yet. I'll re-enable them when it is. +- Merged latest ShapeShifter hack from WinUAE and did some tidying up + of memory.c. +- Switched a lot of the debugging output in bsdsocket.c to be generated only + with a compile-time option (cut down the rubbish dumped to the console). + +20031001 +- Fixed endian problem with P96 screens on SDL on big-endian hardware such as + the PPC. This is a quick fix and just chooses the right byte-order for pixel + encoding depending on the host machine's byte-order. A better fix would take + account of the display's byte-order rather than the host's (similar applies to + the previous AGA fix). This and a fix for plain X11 target to do. There + appears to still be an occasional problem with P96 on 32-bit screens where red + and blue guns are swapped. Possibly a bug somewhere in the blitting code + in the P96 emulation. Need more time to investigate. + +20030930 (mistakenly tagged the release as 20030330) +- Fixed endian problem with AGA screens on big-endian hardware such as the + PPC. +- Fixed bug in the GTK+ UI which stopped the AGA option in the chipset page + being selected even when it was selected in your config. + +20030928-3 +- Fixed problem with processor time calculations on the ppc-gcc target. This + fix will have wide-ranging effects on UAE's performance on the PPC, since + the processor timer (the PPC's timebase counter) is used to + synchronize m68k emulation with custom chip emulation. 'Adjustable' cpu mode + now works. + +20030928-2 +- Binary only release due to hosed PPC binary. Ooops. + +20030928 +- First release to the A1g3dev mailing list. +- Loads and loads of changes and fixes to plain old UAE-0.8.22 including: + * Latest CPU, x86 JIT and custom-chip emulations from WinUAE 0.8.22r9 + * Latest filesystem code from WinUAE 0.8.22r9 (notification on a virtual + filesystem should now work). + * New input device code merged from WinUAE. Needs testing and attention. + * Several SDL fixes, particularly with clean-up and exiting. + * Fixed 16-bit SDL and OSS sound for big-endian machines + * Loads of GTK+ UI fixes, particularly with threading and exiting. + * Fixed bugs in floppy section of GTK+ UI (as a plus the LEDs now work). + * Replaced hard drive section of the GTK+ UI. A lot more useable. + * Assorted config and make script tweaks + * Assorted fixes to clean up code and cut down on compiler warnings. + * Possibly more that have I forgotten about . . . diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..60549be --- /dev/null +++ b/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..93bb2b1 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,5745 @@ +2007-03-28 00:16 tag E-UAE-0_8_29-WIP4 + +2007-03-28 00:16 evi1rich + + * src/od-amiga/main.c: Use clib2 minimum stack wedge when building + for AmigaOS 3.x and 4.0. We now use clib2 on 3.x (bye, bye, + libnix) and OS4.0 builds will probably need some love before + newlib builds will work anyway (a job for later). + +2007-03-27 21:37 evi1rich + + * src/cfgfile.c: Really fixed the problem of JIT defaulting to + direct memory where it's not supported. + +2007-03-27 21:12 evi1rich + + * src/newcpu.c: Don't log all exceptions (unless exception + debugging is enabled, of course), since this can really hurt + performance of games which abuse exception-handling, such as + Shadow of the Beast. + +2007-03-27 21:09 evi1rich + + * src/drawing.c: Recent changes to drawing initialization broke + savestate restores. Fixed. + +2007-03-27 21:09 evi1rich + + * src/genblitter.c: Applied patch from Mustafa Tufan (uae2x and + pspuae developer) which optimizes blitting speed a little + (initial, limited tests here show 2-3% improvement in + performance, but every little helps). Thanks! + +2007-03-26 00:51 evi1rich + + * README, docs/compiling.txt: More documentation re-writing and + tweaking. + +2007-03-26 00:07 evi1rich + + * src/gfx-beos/be-Window.cpp: Fix up BeOS graphics back-end wrt + recent drawing changes. + +2007-03-25 23:57 evi1rich + + * src/sd-beos/sound.h: Default to sound latency of 50ms rather + 100ms in BeOS sound driver. 100ms is too large there it seems, + and leads to poor performance. + +2007-03-25 23:49 evi1rich + + * src/cfgfile.c: Don't default to direct memory access in the JIT + if it's not supported. E-UAE should spot that direct memory isn't + supported itself and correct these settings, but the check isn't + robust, and it's much better not to set it wrong in the first + place. This should make life easier for OS X/Intel users. Thanks + to Anders Hasselqvist and Daniel Pimley for providing evidence + which helped nail down this potential problem. + +2007-03-16 23:20 evi1rich + + * src/od-macosx/Makefile.am: Mac OS X icon was not being included + in dist tarball. Added file to EXTRA_DIST to work around this. + +2007-03-14 16:03 evi1rich + + * src/gfx-sdl/sdlgfx.c: SDL graphics back-end would needlessly + close and re-open the SDL surface - for example, when + screen-flipping between P96 screens of identical resolution. + Fixed. Thanks to weasel for the report. This is also fixes a + similar problem with panning a P96 screen. + +2007-03-14 15:59 evi1rich + + * src/: gfx-amigaos/ami-win.c, gfx-beos/be-Window.cpp, + gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, gfx-x11/xwin.c, + include/xwin.h: Cleaned up the maxblockline issue. Defined macro + MAXBLOCKLINE_MAX which should be used when you don't care about + block length. Also, in SDL back-end when using a hardware + surface, set maxblockline to MAXBLOCKLINE_MAX - not 0. This + ensures we don't get a dummy flushline() call for each line, so + it might in fact be marginally faster. This is also fixes the + segfault rendering to video memory introduced recently, since the + flushline() method isn't defined for the SDL back-end. + +2007-03-12 15:43 evi1rich + + * src/main.c: Updated copyright message. + +2007-03-12 15:01 evi1rich + + * src/: gfx-amigaos/ami-win.c, gfx-beos/be-Window.cpp, + gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, gfx-x11/xwin.c: Attempt + to overcome flickering when status LEDS overlaps displays area. + Not a full solution. + +2007-03-12 15:00 evi1rich + + * src/newcpu.c: Recent changes broke live adjustment of + cycles/instructions in 'adjustable' CPU mode. Fixed. + +2007-03-12 10:40 evi1rich + + * src/newcpu.c: Tidy up trace handling. + +2007-03-12 10:39 evi1rich + + * src/main.c: Fix for broken hot-key handling in OS X when started + from Finder. + +2007-03-12 09:15 evi1rich + + * src/: Makefile.am, custom.c, main.c, newcpu.c, sleep.c, + gui-gtk/cpuspeedpanel.c, gui-gtk/cpuspeedpanel.h, + gui-gtk/gtkui.c, include/options.h, targets/t-amiga.h, + targets/t-beos.h, targets/t-unix.h: Removed 'don't busy wait' + stuff and start-up sleep test. We don't need these now. + +2007-03-12 09:00 evi1rich + + * src/: scsiemul.c, hardfile.c: This shouldn't have been using + sleep_millis(). + +2007-03-12 08:57 evi1rich + + * src/newcpu.c: Reworked STOP opcode handler. + +2007-03-12 01:45 evi1rich + + * src/custom.c: Busy-wait loop in new framewait handler would get + stuck on an overflow. Fixed. + +2007-03-10 21:05 evi1rich + + * README: Updated README for upcoming WIP4 release. + +2007-03-10 16:42 evi1rich + + * docs/scsi.txt: Updated SCSI emulation docs. + +2007-03-10 16:26 evi1rich + + * docs/compiling.txt: Updated compiling manual. + +2007-03-10 16:14 evi1rich + + * docs/bsdsocket.txt: Updated bsdsocket.library emulations docs. + +2007-03-10 15:37 evi1rich + + * src/genlinetoscr.c: Fixed GCC signed/unsigned warning. + +2007-03-10 15:35 evi1rich + + * src/driveclick.c: Brought drive-click code a step closer to + compiling. Still need to implement a means of locating samples to + load. + +2007-03-10 15:28 evi1rich + + * src/gfx-amigaos/ami-win.c: Fixed up AmigaOS display back-end. + +2007-03-10 15:26 evi1rich + + * src/gfx-curses/ncurses.c: Fixed up curses display back-end. + +2007-03-10 12:34 evi1rich + + * src/gui-gtk/gtkui.c: Gtk+ interface's gui_open() method wasn't + returning failure when GUI couldn't be opened. Fixed. + +2007-03-08 01:35 evi1rich + + * src/gfx-x11/xwin.c: Really fix X11 display driver. + +2007-03-08 00:46 evi1rich + + * src/gfx-sdl/sdlgfx.c: Tweak for SDL display driver. + +2007-03-08 00:46 evi1rich + + * src/gfx-x11/xwin.c: Fixed up X11 display driver wrt recent + changes to drawing initialization. + +2007-03-08 00:45 evi1rich + + * src/drawing.c: Tidied up display buffer initialization. + +2007-03-07 20:58 evi1rich + + * src/main.c: Fixed non-busy waiting at GUI start-up and when E-UAE + is paused. + +2007-03-07 20:36 evi1rich + + * src/gui-gtk/cpuspeedpanel.c: In Gtk+ UI, that should have been + 'Idle on STOP instruction' not 'HALT'. + +2007-03-07 20:33 evi1rich + + * src/Makefile.am: Added test folder to distribution tarball. + +2007-03-07 20:33 evi1rich + + * src/gui-cocoa/cocoaui.m: On OS X, added a work-around for the + 'Open config' dialog opening when E-UAE shuts down if it was + originally started from the Finder. Better fix needed. + +2007-03-07 04:02 evi1rich + + * src/custom.c: Fixed compiler warning in new interrupt code. + +2007-03-07 03:28 evi1rich + + * src/: cfgfile.c, include/options.h: Mark 'avoid_cmov', + 'comp_midopt' and 'comp_lowopt' config options as obsolete. + +2007-03-07 03:03 evi1rich + + * docs/configuration.txt: Added compfpu= option to configuration + manual. + +2007-03-07 02:48 evi1rich + + * docs/configuration.txt: Updated config manual wrt to 'sinc' + interpolation method. + +2007-03-07 02:46 evi1rich + + * docs/configuration.txt: Fixed and expanded configuration doc wrt + 'slow' memory. + +2007-03-07 02:38 evi1rich + + * src/main.c: Fix 'slow' memory sanity check. Again, thanks to + Toni. + +2007-03-07 02:36 evi1rich + + * src/gui-gtk/gtkui.c: Fix 'slow' memory setting in Gtk+ UI. + Maximum really is 1.8 MB. Thanks to Toni for pointing this out + yonks ago. + +2007-03-06 14:35 evi1rich + + * src/memory.c: Tidied up mapping of motherboard resources. Limited + 'slow' RAM to 1MB when AGA is enabled. + +2007-03-06 14:32 evi1rich + + * src/: custom.c, newcpu.c, include/newcpu.h: Delayed arrival of + IRQs at processor was broken in non-JIT code path. The due time + for arrival of an interrupt was set when the INTREQ registers was + modified - i.e. before the end of the opcode doing the modifying. + When that opcode completed and the cycle time bumped, the due + time of the interrupt would already have occurred; thus no delay. + Fixed this by re-using the JIT IRQ delay mechanism for + non-cycle-exact modes. Fixed up existing mechanism for + cycle-exact mode. This fixes sound effects in IK+, for example. + +2007-03-05 09:54 evi1rich + + * src/: gencpu.c, md-68k/m68k.h, md-amd64-gcc/m68k.h, + md-generic/m68k.h, md-i386-gcc/m68k.h, md-ppc-gcc/m68k.h: Back + out Toni's fix for the SET_xFLG problem and instead fix it in + gencpu.c. It's cheaper to do it there. + +2007-03-05 09:52 evi1rich + + * configure.in, src/test/Makefile.am, src/test/test_optflag.c: + Added a test program test_optflags to ensure we're getting this + stuff right. Woo hoo! The beginnings of a test suite. We're + playing with the big boys now! ;-) + +2007-03-05 01:42 evi1rich + + * src/md-i386-gcc/m68kops.h: Removed some stray semi-colons. + +2007-03-04 23:52 evi1rich + + * src/md-ppc-gcc/m68kops.h: Back out that last change to handling + of m68k flags on the PPC. It didn't work, as I should have known. + +2007-03-04 11:34 evi1rich + + * src/md-ppc-gcc/m68kops.h: Improved optimized flag-handling on the + PPC a little. + +2007-02-27 01:54 evi1rich + + * src/gui-beos/gui.cpp: New method gui_notify_state() was missing + for BeOS GUI code. Added dummy implementation to fix building on + BeOS for now. + +2007-02-27 01:49 evi1rich + + * src/Makefile.am: Forgot to add new header uae_malloc.h to dist + tarball. Fixed. + +2007-02-27 01:48 evi1rich + + * src/: compemu_raw_x86.c, jd-linuxold/joystick.c: Some GCC2.95 + fixes. + +2007-02-26 16:04 evi1rich + + * src/: Makefile.am, compemu_support.c, gfxutil.c, picasso96.c, + include/sysdeps.h, include/uae_endian.h: Big header clean-up, + part 7: Factor out byteswapping routines from sysdeps.h to new + header file uae_endian.h. + +2007-02-26 14:57 evi1rich + + * src/include/uae_malloc.h: Oops. Fixed non-GCC case. + +2007-02-26 14:36 evi1rich + + * src/: Makefile.am, include/writelog.h: Forgot to add new header. + +2007-02-26 14:29 evi1rich + + * configure.in, src/Makefile.am, src/missing.c, src/readcpu.c, + src/writelog.c, src/include/sysdeps.h: Really clean-up writelog + nonsense, and also allow src/writelog.c to be conditionally + compiled. Win32 has its own implementation in src/od-win32, for + example. + +2007-02-26 14:08 evi1rich + + * src/: filesys.c, missing.c: Header changes broke static xfree() + in filesys.c. Move it to missing.c and export it to fix. + +2007-02-26 13:34 evi1rich + + * src/: gencomp.c, gencpu.c, readcpu.c, tools/configure.in: Fix up + compile-time warnings in various build tools. + +2007-02-26 13:33 evi1rich + + * src/include/: sysdeps.h, uae_malloc.h: Big header clean-up, part + 6: Factor out xmalloc() and friends from sysdeps.h to a new file + uae_malloc.h. + +2007-02-26 12:48 evi1rich + + * src/: build68k.c, genblitter.c, gencomp.c, gencpu.c, missing.c, + readcpu.c, writelog.c, include/sysdeps.h, tools/Makefile.in, + tools/configure.in, tools/sysconfig.h.in: The clean-up of header + files has allowed configuration and compiling of build-time tools + to be simplified. + +2007-02-26 12:25 evi1rich + + * src/: Makefile.am, include/sysdeps.h, include/uae_string.h: Big + header clean-up, part 5: Factor C lib string-related stuff from + sysdep.h to a new file uae_string.h. + +2007-02-26 11:25 evi1rich + + * src/include/sysdeps.h: Big header clean-up, part 4: Remove junk + for unsupported platforms such as RiscOS, WarpOS, DOS, etc. + +2007-02-26 11:13 evi1rich + + * src/: Makefile.am, include/sysdeps.h, include/uae_types.h: Big + header clean-up, part 3: factor out integer types, etc. from + sysdeps.h to a new file, uae_types.h. + +2007-02-26 10:45 evi1rich + + * src/: writelog.c, include/sysdeps.h, targets/t-amiga.h, + targets/t-beos.h, targets/t-unix.h, tools/Makefile.in: Big header + clean-up, part 2: Tidy up write_log nonsense. + +2007-02-26 10:23 evi1rich + + * src/: gencpu.c, readcpu.c, include/events.h, include/sysdeps.h: + Big header clean-up, part 1: Move CYCLE_UNIT stuff into events.h + and CPU_EMU_SIZE into readcpu.c. + +2007-02-26 00:31 evi1rich + + * src/: compemu_raw_x86.c, compemu_support.c: Merged more code from + Basilisk II JIT. This includes processor-specific alignment of + jumps and more efficient alignment padding. + +2007-02-25 23:03 evi1rich + + * src/compemu_raw_x86.c: Merged improved x86 CPU detection from + Basilisk II. + +2007-02-25 16:40 evi1rich + + * src/: compemu_support.c, include/compemu.h: Removed dead code + from JIT. + +2007-02-25 16:22 evi1rich + + * src/: include/newcpu.h, compemu_support.c: Started fixing up JIT + for 64-bit architectures. + +2007-02-25 15:35 evi1rich + + * src/: sysconfig.h.in, include/sysdeps.h, tools/configure.in, + tools/sysconfig.h.in: Added uae_uintptr and uae_intptr data types + to allow pointers to be cast to integers safely on 32-bit and + 64-bit architectures. + +2007-02-25 14:38 evi1rich + + * src/main.c: Changes to virtual filesystem could be lost when + emulator was stopped. Fixed. This problem was introduced with + new emulator state-management code. Thanks to Francis Russell for + the report. + +2007-02-23 16:26 evi1rich + + * src/sysconfig.h.in: Autotools is correcting its own grammar, yet + again. I wish these guys would make up their minds... + +2007-02-23 16:24 evi1rich + + * src/Makefile.am: Improvements for building OS X app bundle, + including installing icon. + +2007-02-23 09:56 evi1rich + + * src/od-macosx/: Makefile.am, euae.icns: Added OS X Icon by Daniel + Pimley. Thanks, Dan! + +2007-02-22 21:09 evi1rich + + * src/custom.c: Reworked the code that wait for the end of a + display frame in a system-friendly manner to better adapt to + changing latencies of system sleep function. + +2007-02-22 21:07 evi1rich + + * src/: main.c, gfx-amigaos/ami-win.c, gfx-beos/be-Window.cpp, + gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, gfx-x11/xwin.c, + include/xwin.h: Added method graphics_notify_state() to graphics + back-end which allows graphics driver to be notified of changes + in emulator state. + +2007-02-18 21:47 evi1rich + + * src/gui-gtk/gtkui.c: Added menu and 'Save Config' menu option to + GTK+ UI. + +2007-02-18 21:46 evi1rich + + * src/: main.c, include/uae.h: Added function to save current + configuration file. + +2007-02-18 20:33 evi1rich + + * configure.in, src/bsdsocket-posix-new.c, src/sysconfig.h.in: + Fixed building of bsdsocket.library emulation on Solaris. + +2007-02-16 16:44 evi1rich + + * src/: ar.c, autoconf.c, cia.c, compemu_support.c, custom.c, + enforcer.c, expansion.c, memory.c, include/memory.h, + include/picasso96.h: Renamed JIT memory flags S_READ and S_WRITE + to SPECIAL_MEM_READ and SPECIAL_MEM_WRITE to avoid collisions + with system headers, for example, on Solaris. + +2007-02-16 00:24 evi1rich + + * src/: audio.c, custom.c, debug.c, inputdevice.c, main.c, misc.c, + tui.c, uaelib.c, gui-gtk/gtkui.c, gui-muirexx/ami-rexx.c, + include/audio.h: Removed some unnecessary dependencies on the + audio backend from core code. + +2007-02-15 00:28 evi1rich + + * configure.in, src/Makefile.am, src/sysconfig.h.in: Removed + unmaintained audio drivers (AF, SGI, MME and file). + +2007-02-14 23:47 evi1rich + + * src/: audio.c, include/audio.h, include/gensound.h, + sd-alsa/sound.c, sd-amigaos/sound.c, sd-beos/sound.cpp, + sd-none/sound.c, sd-sdl/sound.c, sd-solaris/sound.c, + sd-uss/sound.c: Simply audio driver back-ends by moving + update_sound() function to core audio code. + +2007-02-14 23:43 evi1rich + + * src/audio.c: Fixed building of sinc audio interpolation where + stereo sound is not supported. + +2007-02-14 23:39 evi1rich + + * src/sd-solaris/: sound.c, sound.h: Fixed up Solaris sound driver. + +2007-02-14 23:21 evi1rich + + * src/: sinctable.c, include/sinctable.h: Add missing files to + support sinc audio interpolation. + +2007-02-10 15:55 evi1rich + + * src/: Makefile.am, audio.c, cfgfile.c, include/gensound.h, + sd-beos/sound.cpp: Add Antti Lankila's sinc audio synthesis + method. This is based on a patch sent to me by Antti (thanks!) + and WinUAE. + +2007-01-26 21:37 evi1rich + + * src/bsdsocket.c: When bsdsocket emulation was disabled at + run-time, its reset handler would still be invoked when UAE was + reset - causing lots of nasty side-effects, such as breaking + debugger I/O. Fixed. Thanks to Jochen Becher for reporting and + diagnosing the problem. + +2007-01-19 00:08 evi1rich + + * configure.in, src/Makefile.am, src/include/fpp-ieee-be.h, + src/include/fpp-ieee.h: Added optimized support for loading and + storing FPU registers on little-endian IEEE 754-compatible hosts + (support for big-endian hosts was already present) to 68k + interpreter. + +2007-01-09 00:38 evi1rich + + * src/newcpu.c: Added some minor optimizations to the 68k + interpreter. + +2007-01-08 21:16 evi1rich + + * src/bsdsocket-posix-new.c: Work-around for bsdsocket race + conditions on SMP machines. Better fix needed. + +2007-01-08 21:06 evi1rich + + * src/sd-beos/sound.h: Another fix for building BEOS sound driver. + +2006-12-23 15:24 evi1rich + + * src/fpp.c: Merged some of Peter Keunecke's improvements to the + interpretive FPU emulation from WinUAE. More to do. + +2006-12-23 02:05 evi1rich + + * src/sd-beos/sound.cpp: Replacement of the sound_max_buff option a + while back broke the BeOS audio driver. Fixed. + +2006-12-18 23:55 evi1rich + + * src/newcpu.c: Removed now redundant checks for change of CPU mode + in opcode dispatchers. + +2006-12-18 23:52 evi1rich + + * src/include/newcpu.h: Re-ordered regstruct fields to allow better + cache utilization and to permit more efficient code generation on + x86 processors. + +2006-12-18 01:54 evi1rich + + * src/inputdevice.c: Potential division by zero error when an Amiga + program tries to open a display of height 1. Fix merged from + WinUAE 1.3.4b4. Thanks Toni. + +2006-12-18 01:01 evi1rich + + * src/: inputdevice.c, include/inputdevice.h: Sync inputdevice code + with WinUAE 1.3.3. + +2006-12-18 00:24 evi1rich + + * src/: newcpu.c, include/newcpu.h: Fixed some compiler warnings + introduced in the WinUAE 1.3.3 merge. + +2006-12-17 23:44 evi1rich + + * src/: main.c, gui-gtk/gtkui.c, include/gui.h, include/uae.h: Some + reorganization and clean-up of code based on the new management + of emulator state. + +2006-12-17 21:47 evi1rich + + * src/main.c: With recent changes, options set in Gtk+ UI prior to + emulator start-up would be ignored. Fixed. + +2006-12-17 21:11 evi1rich + + * src/main.c: Tweaked re-start behaviour. + +2006-12-16 02:10 evi1rich + + * configure.in, src/main.c, src/gui-beos/gui.cpp, + src/gui-cocoa/cocoaui.m, src/gui-gtk/gtkui.c, + src/gui-muirexx/ami-gui.c, src/gui-none/nogui.c, + src/include/gui.h: Added a new gui_init() method, add re-worked + the Gtk+ GUI to use this rather than requiring it's own main() + function. + +2006-12-15 23:48 evi1rich + + * src/: main.c, tui.c, gui-beos/gui.cpp, gui-cocoa/cocoaui.m, + gui-gtk/gtkui.c, gui-muirexx/ami-gui.c, gui-none/nogui.c, + include/gui.h: Renamed gui_init() method to the more descriptive + gui_open(). + +2006-12-15 23:26 evi1rich + + * src/: filesys.c, main.c: Some hacks to get us building with + MinGW32 again. + +2006-12-15 23:17 evi1rich + + * src/main.c: Got confused between ms and us. Doh! + +2006-12-15 22:50 evi1rich + + * src/: Makefile.am, disk.c, tui.c, gfx-amigaos/ami-win.c, + gfx-beos/be-Window.cpp, gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, + gfx-svga/svga.c, gfx-x11/xwin.c, gui-beos/gui.cpp, + gui-cocoa/cocoaui.m, gui-gtk/gtkui.c, gui-muirexx/ami-gui.c, + gui-none/nogui.c, include/gui.h, include/inputdevice.h, + include/mackbd.h: Removed a lot of dead code and other unused + junk. + +2006-12-15 21:50 evi1rich + + * src/disk.c: Fixed some compiler warnings in the floppy emulation + introduced in WinUAE 1.3.3 merge. + +2006-12-15 21:30 evi1rich + + * src/include/native2amiga.h: Removed another unnecessary call from + do_uae_int_requested(). + +2006-12-15 15:05 evi1rich + + * src/include/native2amiga.h: Unnecesasry direct interrupt request + in do_uae_int_requested() caused a race condition on SMP + machines. Fixed. This should cure lock-ups when using hardfiles + or filesystem threads on SMP machines. + +2006-12-15 15:02 evi1rich + + * src/drawing.c: Removed some dead code. + +2006-12-14 14:45 evi1rich + + * src/main.c: Removed some debugging code accidentally left in. + +2006-12-14 14:40 evi1rich + + * src/: cfgfile.c, disk.c, main.c, gui-cocoa/cocoaui.m, + gui-gtk/gtkui.c, gui-muirexx/ami-gui.c, include/options.h: Added + the beginning of a new prefs option framework. This is currently + only used for handling default path options. + +2006-12-14 14:39 evi1rich + + * src/sysconfig.h.in: Updated by newer autotools. + +2006-12-13 12:16 evi1rich + + * src/: crc32.c, disk.c, include/crc32.h, include/disk.h: Merged + floppy emulation changes from WinUAE 1.3.3. + +2006-12-13 09:21 evi1rich + + * src/memory.c: When using JIT direct memory, shared memory + segments would not be properly unmapped when emulator was + stopped. Fixed. + +2006-12-11 23:30 evi1rich + + * src/: custom.c, drawing.c, include/custom.h, include/drawing.h: + Merged interlace changes from WinUAE 1.3.3. + +2006-12-11 22:38 evi1rich + + * src/keymap/hotkeys_common.h: Keyboard-shortcuts for quick + load/save of state were horribly broken. Not sure how that + happened, but they're fixed now. Thanks to Antonio Alonso for + reporting the problem. + +2006-12-11 21:49 evi1rich + + * src/: blitter.c, newcpu.c, savestate.c, include/savestate.h: + Merged savestate changes from WinUAE 1.3.3. + +2006-12-11 21:19 evi1rich + + * src/custom.c: Merged IRQ changes from WinUAE 1.3.3. + +2006-12-11 21:16 evi1rich + + * src/newcpu.c: Fix for switching between CPU emulation modes. + +2006-12-11 10:35 evi1rich + + * src/custom.c: Merged trivial code clean-ups in custom emulation + from WinUAE 1.3.3. + +2006-12-11 10:27 evi1rich + + * src/drawing.c: Merged fixes to code which draws on-screen LEDs + and some code clean-up from WinUAE 1.3.3. + +2006-12-11 10:24 evi1rich + + * src/blitter.c: Merged blitter emulation changes from WinUAE + 1.3.3. + +2006-12-11 10:16 evi1rich + + * src/: newcpu.c, gencpu.c, include/newcpu.h: Merged changes to the + interpretive CPU emulation from WinUAE 1.3.3. + +2006-12-11 09:55 evi1rich + + * src/main.c: Fix for new state machine: don't reload config file + after entering stop state. + +2006-12-06 22:52 evi1rich + + * src/: custom.c, drawing.c, inputdevice.c, main.c, newcpu.c, + gfx-amigaos/ami-win.c, gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, + gfx-x11/xwin.c, gui-cocoa/cocoaui.m, gui-gtk/gtkui.c, + gui-muirexx/ami-gui.c, gui-none/nogui.c, include/gui.h, + include/uae.h: Improved new UAE state management code. Reworked + Gtk UI to take advantage of this. More to do... + +2006-12-02 22:06 evi1rich + + * src/main.c: With new state management code, program failed to + exit if initialization of display failed. Fixed. + +2006-12-02 00:31 evi1rich + + * src/: filesys.c, hardfile.c: Merged hardfile changes from WinUAE + 1.3.3. + +2006-12-02 00:30 evi1rich + + * src/hardfile_unix.c: Implemented hdf_dup() function in generic + hardfile backend. This should fix hardfile breaking after a + reset. Thanks to everybody that reported this problem. + +2006-12-01 13:26 evi1rich + + * src/gfx-sdl/sdlgfx.c: SDL/GL output was broken on 16-bit + displays. Fixed. + +2006-12-01 12:25 evi1rich + + * src/md-ppc-gcc/m68k.h: Missed this file in last check-in. + +2006-12-01 12:24 evi1rich + + * src/: md-generic/m68k.h, md-68k/m68k.h, md-i386-gcc/m68k.h, + md-amd64-gcc/m68k.h: The macros for setting 68k condition codes + relied on compiler-dependent behaviour. Thanks to Toni Wilen for + spotting the problem and the fix. + +2006-12-01 11:52 evi1rich + + * src/gfx-sdl/sdlgfx.c: Some changes to the SDL OpenGL renderer for + MacOS X. Support the APPLE_texture_range and APPLE_client_storage + extensions when available, and use BGR1555_REV textures instead + of RGB565 on OS X. + +2006-12-01 09:30 evi1rich + + * src/: cia.c, custom.c, include/cia.h, include/custom.h: Merged + some CIA changes from WinUAE 1.3.3. + +2006-12-01 09:04 evi1rich + + * src/: filesys.c, include/filesys.h: Fixed some compiler warnings. + +2006-11-16 21:26 evi1rich + + * src/md-ppc-gcc/support.c: Fixed potential overflow when + callibrating PowerPC timebase frequency. + +2006-11-16 21:22 evi1rich + + * src/md-ppc-gcc/support.c: Linux support for querying OpenFirmware + for PowerPC timebase frequency failed on SMP systems. Fixed. + +2006-11-16 21:07 evi1rich + + * src/gfx-sdl/sdlgfx.c: Some clean-ups in SDL/GL support. + +2006-11-16 20:41 evi1rich + + * configure.in: Added support to configure for linking against + OpenGL on OS X. + +2006-11-16 16:29 evi1rich + + * src/gui-cocoa/cocoaui.m: Mac OS X disk eject menu option opened + disk insert dialog. Fixed. + +2006-11-16 16:27 evi1rich + + * src/od-win32/hardfile_win32.c: Fix for building hardfile support + on Win32. + +2006-11-16 16:27 evi1rich + + * src/gui-muirexx/ami-rexx.c: New state management stuff broke + AREXX support. Fixed. + +2006-11-16 00:38 evi1rich + + * src/: custom.c, drawing.c, main.c, memory.c, newcpu.c, + gui-gtk/gtkui.c, include/options.h, include/uae.h: A first + attempt at cleaning up management of emulator state. + +2006-11-15 17:01 evi1rich + + * src/gfx-sdl/sdlgfx.c: Added support for handling expose events in + SDL gfx driver. + +2006-11-15 16:46 evi1rich + + * src/gfx-sdl/sdlgfx.c: Factored out GL buffer management code in + SDL buffer driver and added support for texture_rectangles + extension (which boosts texture upload speed - especially on OS + X). + +2006-11-15 10:46 evi1rich + + * src/gfx-sdl/sdlgfx.c: Factored out duplicated code in normal and + GL init routines in SDL driver. + +2006-11-15 10:31 evi1rich + + * src/gfx-sdl/sdlgfx.c: Fixed various pixel format and P96 problems + with GL support in SDL display driver. + +2006-11-10 23:40 evi1rich + + * src/od-linux/blkdev-linux.c: Linux SCSI support failed to build + on Ubuntu 6.10. Changed header include order to fix this. + +2006-11-09 10:24 evi1rich + + * src/: main.c, uaelib.c, include/options.h, include/version.h: + Removed global variable 'version' and replaced with macro + UAEVERSION in src/include/version.h. + +2006-11-08 22:54 evi1rich + + * src/filesys.c: Fixed typo in filesys debugging code introduced + from WinUAE. + +2006-11-07 23:37 evi1rich + + * amiga/source/: uae-configuration.c, uae-configuration.s: Added + source code for the uae-configuration tool from WinUAE 1.3.3. + +2006-11-07 23:33 evi1rich + + * src/: cfgfile.c, uaelib.c, include/options.h: Merged support for + accessing configuration options from Amiga space from WinUAE + 1.3.1. This allows the uae-configuration shell command to work + inside the emulator. + +2006-08-31 14:15 evi1rich + + * src/gfx-sdl/sdlgfx.c: Made SDL GL renderer work with mousehack. + +2006-08-30 23:34 evi1rich + + * src/: custom.c, drawing.c, gfx-amigaos/ami-win.c, + gfx-beos/be-Window.cpp, gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, + gfx-x11/xwin.c, include/xwin.h, sd-alsa/sound.c, + sd-amigaos/sound.c, sd-beos/sound.cpp, sd-sdl/sound.c, + sd-uss/sound.c: Change vsync behaviour to no longer absolutely + depend on full-screen mode - leave it up to the gfx driver + whether vsyncing is supported. + +2006-08-30 09:14 evi1rich + + * src/gfx-sdl/sdlgfx.c: In SDL gfx driver, try to speed up OpenGL + rendering of Amiga screens by using a 16-bit framebuffer and a + 16-bit texture when we don't need a 24-bit colourspace (i.e., + we're not emulating the AGA chip set). + +2006-08-28 19:31 evi1rich + + * src/gfx-sdl/sdlgfx.c: SDL doesn't seem to let you change GL + attributes such as SDL_GL_DOUBLEBUFFER (when running on GLX at + least). Added a nasty work-around for this: tear down SDL's video + system system then bring it back up. (Note: this may have + unforseen consequences on some platforms. Needs to be checked.) + +2006-08-28 19:09 evi1rich + + * src/gfx-sdl/sdlgfx.c: Fixed off by one error in SDL GL renderer. + +2006-08-28 16:36 evi1rich + + * src/gfx-sdl/sdlgfx.c: In SDL gfx driver, the p96 screen was not + being refreshed when switching from windowed to full-screen mode + and vice versa. Fixed. + +2006-08-28 16:15 evi1rich + + * src/gfx-sdl/sdlgfx.c: Cleaned up and optimized P96 rendering in + SDL GL code. + +2006-08-28 12:56 evi1rich + + * src/: custom.c, gfx-sdl/sdlgfx.c: Optimized and cleaned up output + of chipset display in Jochen's SDL GL renderer, and added support + for vsyncing. + +2006-08-28 10:33 evi1rich + + * configure.in, docs/compiling.txt, docs/configuration.txt, + src/gfx-sdl/sdlgfx.c, src/include/options.h: Merged patch from + Jochen Becher which adds OpenGL-rendering to SDL gfx driver. + +2006-08-28 09:27 evi1rich + + * configure.in, src/gfx-x11/x11keys.c: Merged patch from Peter + Volkov which detects X11's XKB path at configure time and so + fixes support for raw-key translation in X11 gfx driver with + modular X11 installs. + +2006-08-28 09:06 evi1rich + + * src/od-linux/blkdev-linux.c: Added media_check() function to + linux SCSI back-end, allowing the CD32/CDTV emulation to work + here. + +2006-08-28 08:54 evi1rich + + * configure.in, docs/compiling.txt, src/blkdev.c, + src/od-linux/Makefile.am, src/od-linux/blkdev-linux.c: Merged + patch from Jochen Becher which adds a native Linux back-end for + the SCSI wrapper. + +2006-08-23 22:36 evi1rich + + * src/: autoconf.c, custom.c, filesys.asm, filesys_bootrom.c, + inputdevice.c, gfx-amigaos/ami-win.c, gfx-beos/be-Window.cpp, + gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, gfx-svga/svga.c, + gfx-x11/xwin.c, include/autoconf.h, include/inputdevice.h, + include/xwin.h: Merged integrated mouse hack from WinUAE 1.3.1. + This is currently supported on SDL and X11 graphics targets, and + mousehack support is currently disabled everywhere else. + +2006-08-23 22:29 evi1rich + + * src/gfx-x11/xwin.c: In the X11 gfx driver, call XFlush after + refreshing a P96 screen to ensure updates become visible + immediately. This solves the problem of slow update of the mouse + pointer in P96 mode. + +2006-08-12 16:51 evi1rich + + * src/picasso96.c: Picasso96 emulation would inconsisently refresh + the screen when using an off-screen buffer. Fixed. Thanks to + Jochen Becher for prompting me to fix this long-standing bug. + +2006-08-12 16:47 evi1rich + + * src/Makefile.am: Fixed up some breakage caused by recent JIT + clean up. + +2006-08-12 11:48 evi1rich + + * src/include/compemu.h: Fixed up some breakage caused by recent + JIT clean up. + +2006-08-12 11:08 evi1rich + + * src/gfx-amigaos/ami-win.c: Fix for building AmigaOS gfx driver on + MorphOS. + +2006-08-12 11:05 evi1rich + + * src/filesys.c: A minor optimization for the virtual filesystem on + big-endian Amiga-like hosts: use native functions for + manipulating file dates rather than using C lib functions and + having to convert the dates. + +2006-08-09 02:29 evi1rich + + * src/: compemu_support.c, gui-gtk/gtkui.c, include/compemu.h: Some + tidying up and reorganization in the JIT compiler. + +2006-08-09 02:26 evi1rich + + * src/cfgfile.c: Some minor cfgfile parsing tweaks merged from + WinUAE 1.3. + +2006-08-08 17:19 evi1rich + + * src/gui-muirexx/ami-rexx.c: Fix for building AREXX support on + MorphOS. + +2006-08-08 17:17 evi1rich + + * src/caps/caps.c: Fix for building CAPS support on MorphOS. + +2006-08-08 16:25 evi1rich + + * src/gfx-sdl/sdlgfx.c: Applied a patch (with a little clean-up) + from Jochen Becher that speeds up P96 screen refreshes when + rendering to an off-screen buffer using the SDL driver. Thanks + Jochen. + +2006-08-08 15:05 evi1rich + + * src/filesys.c: Merged support for filesys ACTION_COPY_DIR_FH + packet (i.e., DupLockFromFH) from WinUAE 1.3. + +2006-08-08 13:55 evi1rich + + * src/filesys.c: The filesystem's ACTION_FH_FROM_LOCK handler + didn't fully initialize all of a key's fields. Fixed. + +2006-08-08 12:37 evi1rich + + * src/hardfile_unix.c: More filesys updates. + +2006-08-08 12:35 evi1rich + + * src/Makefile.am: Missed these filesys changes with last check-in. + +2006-08-08 12:31 evi1rich + + * src/: cfgfile.c, debug.c, drawing.c, expansion.c, filesys.c, + filesys_bootrom.c, main.c, savestate.c, gui-gtk/gtkui.c, + include/autoconf.h, include/filesys.h: Merged filesystem mounting + and start-up changes from WinUAE 1.3 plus some tidying up. These + changes will allow us to support saved states when filesystems + are mounted and should also now disallow a filesystem (folder or + hardfile) to be mounted more than once (which is a problem many + have been reporting). + +2006-08-08 00:11 evi1rich + + * src/: Makefile.am, targets/t-win32.h: Added missing t-win32.h + header to enable Win32 builds. + +2006-08-02 23:23 evi1rich + + * src/cfgfile.c: Removed JIT peephole cfgfile options. + +2006-08-02 23:20 evi1rich + + * src/: compemu_optimizer.c, compemu_optimizer_x86.c, + compemu_raw_x86.c, compemu_support.c, gui-gtk/gtkui.c, + include/compemu.h, include/options.h: Removed unused/obsolete JIT + peephole optimizer code. + +2006-08-02 22:24 evi1rich + + * src/cfgfile.c: Recent clean-up to cfgfile parsing, broke + reporting of errors when mounting a filesystem. Fixed. + +2006-07-31 01:51 tag E-UAE-0_8_29-WIP3 + +2006-07-31 01:51 evi1rich + + * src/compemu_raw_x86.c: Work-around for compiling new JIT SEGV + handler when GNUSOURCE isn't defined. Better solution needed. + +2006-07-31 00:22 evi1rich + + * configure.in: Updated version number for WIP3 release. + +2006-07-31 00:22 evi1rich + + * README: Updated README for WIP3 release. + +2006-07-30 23:52 evi1rich + + * src/gui-gtk/gtkui.c: In the Gtk+ UI's about page, when building + against Gtk+ 2.x, don't hack GDK to set font size, but instead + use the Gtk+ label widget's text markup functionality - which is + much cleaner. + +2006-07-30 23:31 evi1rich + + * src/: compemu_raw_x86.c, compemu_support.c: Tried to clean up the + JIT's natmem fault handler and make it a little more portable. + +2006-07-30 23:29 evi1rich + + * src/caps/caps.c: Fixed failure to build CAPS support on 68k + Amigas. + +2006-07-27 22:45 evi1rich + + * configure.in: Some tweaks to the configure script so that the + behaviour when passing CFLAGS to configure is more predictable. + Note that, now, if you pass CFLAGS, you must include your desired + optimization level: for now, the configure script no longer + defaults to setting -O2 in this case. If you don't set CFLAGS + yourself, then you'll get the autotools default, which is -g -O2. + +2006-07-27 21:26 evi1rich + + * configure.in: Removal of config.h header broke configure. Fixed. + +2006-07-26 16:36 evi1rich + + * Makefile.am, config.h, src/akiko.c, src/ar.c, src/audio.c, + src/autoconf.c, src/blitter.c, src/blkdev.c, src/bsdsocket.c, + src/catweasel.c, src/cdrom.c, src/cfgfile.c, src/cia.c, + src/compemu_fpp.c, src/compemu_support.c, src/custom.c, + src/debug.c, src/disk.c, src/drawing.c, src/driveclick.c, + src/ersatz.c, src/events.c, src/expansion.c, src/filesys.c, + src/fpp.c, src/fsdb.c, src/genblitter.c, src/gencomp.c, + src/gencpu.c, src/gengenblitter.c, src/hardfile.c, + src/inputdevice.c, src/keybuf.c, src/main.c, src/memory.c, + src/misc.c, src/native2amiga.c, src/newcpu.c, src/picasso96.c, + src/savestate.c, src/scsiemul.c, src/serial.c, src/svgancui.c, + src/traps.c, src/tui.c, src/uaeexe.c, src/uaelib.c, src/zfile.c, + src/gfx-amigaos/ami-win.c, src/gfx-beos/be-Input.cpp, + src/gfx-beos/be-UAE.cpp, src/gfx-beos/be-Window.cpp, + src/gfx-curses/ncurses.c, src/gfx-sdl/sdlgfx.c, + src/gfx-svga/svga.c, src/gfx-x11/xwin.c, src/gui-beos/gui.cpp, + src/gui-cocoa/cocoaui.m, src/gui-gtk/gtkui.c, + src/gui-muirexx/ami-gui.c, src/gui-muirexx/ami-rexx.c, + src/gui-none/nogui.c, src/jd-amigainput/joystick.c, + src/jd-amigaos/joystick.c, src/jd-beos/joystick.cpp, + src/jd-linuxold/joystick.c, src/jd-none/joystick.c, + src/jd-sdl/joystick.c, src/md-68k/support.c, + src/md-generic/support.c, src/md-i386-gcc/support.c, + src/md-ppc/support.c, src/md-ppc-gcc/support.c, + src/od-amiga/main.c, src/od-beos/main.cpp, src/od-generic/main.c, + src/od-macosx/main.m, src/od-win32/bsdsock.c, + src/od-win32/hardfile_win32.c, src/od-win32/main.c, + src/sd-alsa/sound.c, src/sd-amigaos/sound.c, + src/sd-beos/sound.cpp, src/sd-none/sound.c, src/sd-sdl/sound.c, + src/sd-solaris/sound.c, src/sd-uss/sound.c: Removed obsolete + header config.h. + +2006-07-26 15:56 evi1rich + + * src/include/version.h: Checked in new version header. + +2006-07-26 15:55 evi1rich + + * src/: Makefile.am, autoconf.c, cfgfile.c, main.c, savestate.c, + tui.c, gfx-amigaos/ami-win.c, gui-gtk/gtkui.c, + gui-muirexx/ami-rexx.c, include/options.h: Factored out + version/revision information from options header into a new + header. The idea here is (eventually) to collect all + version/revision info in one place and not to have files + unnecessarily depend on the options header. + +2006-07-25 23:36 evi1rich + + * src/gfx-amigaos/ami-win.c: Earlier clean-up patch broke searching + for best RTG mode in AmigaOS gfx driver. Fixed. + +2006-07-25 22:05 evi1rich + + * src/gfx-amigaos/ami-win.c: Fix for building AmigaOS gfx driver + with internal debugger/monitor disabled. + +2006-07-25 22:03 evi1rich + + * src/cia.c: Don't build TOD hack if the function get_timeofday() + isn't available. Should add configure support to disable this. + +2006-07-25 21:23 evi1rich + + * src/sd-amigaos/sound.h: Fix for building AmigaOS sound driver + without AHI support. + +2006-07-20 14:00 evi1rich + + * docs/configuration.txt: Updated configuration manual. + +2006-07-18 01:23 evi1rich + + * src/gui-gtk/: led.c, led.h: Fixed up Gtk+ LED widget to be a real + widget and render via GDK. This should fix rendering problems + when switching Gtk+ themes. + +2006-07-12 22:53 evi1rich + + * src/gui-none/nogui.c: A fix for building without a config GUI. + +2006-07-12 22:52 evi1rich + + * src/sd-none/sound.h: A fix for building without sound with the + new sound_latency= config option. + +2006-07-11 01:06 evi1rich + + * src/Makefile.am: Forgot to add recently-added headers to dist + tarball. Fixed. + +2006-07-11 00:35 evi1rich + + * src/gui-cocoa/cocoaui.m: In Cocoa UI, don't restore full-screen + mode after opening a disk-insert dialog. This works around a + problem for now that needs a full solution. + +2006-07-08 00:56 evi1rich + + * src/: custom.c, inputdevice.c, include/inputdevice.h: Previous + clean-up fix broke when compiling objc code on OS X. Work-around + for now, but a cleaner solution needed. + +2006-07-08 00:21 evi1rich + + * src/include/cdrom.h: Missed this file in the last patch. + +2006-07-08 00:19 evi1rich + + * src/: akiko.c, bsdsocket-posix-new.c, cdrom.c, custom.c, disk.c, + driveclick.c, inputdevice.c, main.c, newcpu.c, scsiemul.c, + traps.c, gfx-amigaos/ami-win.c, gfx-x11/x11keys.c, + gfx-x11/xwin.c, gui-muirexx/ami-gui.c, gui-muirexx/ami-rexx.c, + include/inputdevice.h, od-amiga/ami-disk.c, + od-amiga/blkdev-amiga.c: A whole bunch of code clean-up. + +2006-07-07 22:57 evi1rich + + * src/sd-amigaos/: sound.c, sound.h: Fixed up AmigaOS sound driver + wrt config file changes. + +2006-07-07 03:17 evi1rich + + * src/: audio.c, cfgfile.c, include/options.h, sd-alsa/sound.c, + sd-alsa/sound.h, sd-sdl/sound.c, sd-sdl/sound.h, sd-uss/sound.c, + sd-uss/sound.h: Obsoleted sound_max_buff option and replaced it + with sound_latency (which specifies the size of the audio buffer + to use in milliseconds). Updated ALSA, SDL and OSS sound drivers + accordingly. Other sound drivers are broken with change and + require fixing. + +2006-07-06 01:43 evi1rich + + * src/sd-alsa/sound.c: Added ALSA-specific config options. The + option alsa.device= specifies the ALSA device to use (the default + is 'default') and alsa.verbose will dump extra information about + the ALSA configuration for debugging purposes. + +2006-07-06 00:57 evi1rich + + * src/: cfgfile.c, include/options.h, sd-alsa/sound.c, + sd-alsa/sound.h, sd-amigaos/sound.c, sd-amigaos/sound.h, + sd-beos/sound.cpp, sd-beos/sound.h, sd-none/sound.c, + sd-none/sound.h, sd-sdl/sound.c, sd-sdl/sound.h, + sd-solaris/sound.c, sd-solaris/sound.h, sd-uss/sound.c, + sd-uss/sound.h: Added support for audio driver-specific cfgfile + options. + +2006-07-05 23:37 evi1rich + + * src/: cfgfile.c, gfx-amigaos/ami-win.c, gfx-beos/be-Window.cpp, + gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, gfx-svga/svga.c, + gfx-x11/xwin.c, include/options.h, md-68k/support.c, + md-generic/support.c, md-i386-gcc/support.c, + md-ppc-gcc/support.c, od-amiga/main.c, od-beos/main.cpp, + od-generic/main.c, od-macosx/main.m, od-win32/main.c: + Strengthened config file API. + +2006-07-04 01:27 evi1rich + + * src/sleep.c: Reduced busy-waiting threshold from 10 ms to 5 ms. + Recent Linux 2.6.x kernels configured with HZ=250 cannot reliably + sleep with a less than 5 ms latency. + +2006-07-04 01:23 evi1rich + + * configure.in: Fix for configure script option --enable-profiling + when cross-compiling. + +2006-07-01 02:22 evi1rich + + * src/: audio.c, blitter.c, custom.c, disk.c, drawing.c, + genblitter.c, include/custom_private.h: Various peformance tweaks + for the custom chip emulation, including allowing direct access + to chip memory. + +2006-06-19 09:05 evi1rich + + * src/od-macosx/main.m: On OS X, set default log file to + '~/Library/Logs/E-UAE.log' when started from the Finder. Thanks + to Daniel Pimley for the suggestion. + +2006-06-19 09:03 evi1rich + + * src/: cfgfile.c, include/options.h: Export new function + cfgfile_subst_home() from cfgfile.c to expand '~' in an arbitrary + file path. + +2006-06-19 08:07 evi1rich + + * src/: writelog.c, include/sysdeps.h, od-amiga/main.c, + targets/t-amiga.h, targets/t-beos.h, targets/t-unix.h: Added + support for redirecting logfile output to a default file. On + AmigaOS and clones, the log output now goes to T:E-UAE.log if + E-UAE is started from Worbench rather than a shell. + +2006-06-19 08:03 evi1rich + + * configure.in: Fixes for building against Cocoa on OS X. + +2006-06-17 02:22 evi1rich + + * configure.in: Fixed typo in config script that caused CFLAGS to + be polluted when building on OSX without SDL. + +2006-06-15 01:08 evi1rich + + * src/gui-gtk/: chipsetspeedpanel.c, chipsettypepanel.c, + chooserwidget.c, cpuspeedpanel.c, cputypepanel.c, + floppyfileentry.c, led.c, util.c, util.h: Cleaned up some + warnings and valgrind hits in Gtk+ UI. + +2006-06-15 00:46 evi1rich + + * src/sd-alsa/sound.c: In the ALSA driver, configure buffer size in + time rather than number of frames. This appears to be much more + reliable. As a consequence, the prefs sound_max_buff option is + interpreted for now by the ALSA driver as the buffer size + (latency) in microseconds. It's about we fixed/replaced this + option at the config level! + +2006-06-14 22:27 evi1rich + + * src/: gencomp.c, gencpu.c: More -Wwrite-strings fixes. + +2006-06-14 11:26 evi1rich + + * src/: ar.c, autoconf.c, cfgfile.c, custom.c, disk.c, drawing.c, + enforcer.c, filesys.c, inputdevice.c, memory.c, serial.c, + zfile.c, gui-gtk/gtkui.c, include/autoconf.h, include/memory.h, + include/options.h: Code clean-up to allow compilation on GCC with + -Wwrite-strings. + +2006-06-12 23:26 evi1rich + + * src/sd-alsa/: sound.c, sound.h: Another attempt at making the + ALSA sound driver perform better. + +2006-05-05 02:05 evi1rich + + * src/od-generic/memory.c: Removed superfluous header includes from + Unix JIT cache-allocation functions. This should fix the problems + building on OS X/Intel. + +2006-05-05 01:38 evi1rich + + * src/gfx-sdl/rawkeys.c: Fix for SDL raw-key support on OS X/Intel. + +2006-05-04 10:15 evi1rich + + * src/gui-gtk/util.h: The Gtk+ GUI could segfault on 64-bit + systems. Fixed. Thanks to Ulrich Schwenk for reporting the + problem. + +2006-05-03 01:15 tag E-UAE-0_8_29-WIP2 + +2006-05-03 01:15 evi1rich + + * configure.in: Now WIP2. + +2006-05-03 01:14 evi1rich + + * src/picasso96.c: The PPC assembly version of memcpy_bswap32() in + the P96 emulation trashes the 'ctr' register but didn't flag this + in the constraints. Fixed. This fixes use of P96 32-bit screens + on PPC hosts when E-UAE is built with GCC 4.x (this problem + didn't show up with earlier versions of GCC). Thanks to Hubert + Maier for reporting the problem. + +2006-04-30 15:04 evi1rich + + * src/sd-none/sound.h: Recent audio change broke the + --disable-audio config option. Fixed. Thanks to Sukko for + reporting this. + +2006-04-30 15:02 evi1rich + + * configure.in: The configure option --disable-state-saving was + broken due to a typo. Thanks to Sukko for reporting this. + +2006-04-29 22:05 tag E-UAE-0_8_29-WIP1 + +2006-04-29 22:05 evi1rich + + * src/: bsdsocket-posix-new.c, bsdsocket.c, include/bsdsocket.h: + Renamed bsdsocklib function seterrno to bsdsocklib_seterrno to + avoid collisions with libscg. + +2006-04-29 00:59 evi1rich + + * configure.in: Version is now 0.8.29-WIP1, an interim release on + the road to 0.8.29. + +2006-04-29 00:58 evi1rich + + * README: Updated README for 0.8.29-WIP1 version. + +2006-04-28 23:50 evi1rich + + * src/: cfgfile.c, custom.c, debug.c, main.c, gui-gtk/gtkui.c, + include/options.h: Tweaks for cfgfile processing and the prefs + struct to remove dead-code and to conditionally handle options + depending on whether the corresponding features are compiled in. + +2006-04-28 23:25 evi1rich + + * src/include/memory.h: A fix for building with GCC < 4.0 on 64-bit + machines. + +2006-04-28 19:07 evi1rich + + * src/cfgfile.c: Made 'hide_cursor' default to true. + +2006-04-28 19:06 evi1rich + + * docs/keyboard.txt: Added save/load state key sequences to docs. + +2006-04-28 01:09 evi1rich + + * docs/compiling.txt: Update compiling instructions to cover new + configure support for OS X. Also mention OS X on x86. + +2006-04-28 01:04 evi1rich + + * docs/configuration.txt: Updated configuration docs to cover + replacement of 'x11.hide_cursor' with global 'hide_cursor' + option. + +2006-04-27 09:30 evi1rich + + * src/gencpu.c: Work-around for GCC4.1 bug when building gencpu. + +2006-04-24 01:22 evi1rich + + * src/gfx-sdl/sdlgfx.c: Added 'hide_cursor' support to the SDL + display driver. + +2006-04-24 01:21 evi1rich + + * src/: cfgfile.c, gfx-x11/xwin.c, include/options.h: Made the X11 + config option 'hide_cursor', which specified whether the host + window manager's mouse cursor should be hidden or shown, a global + option. Thanks to Karl Dietrich Bamler for the suggestion. + +2006-04-23 22:50 evi1rich + + * src/include/sysdeps.h: Simplified REGPARAM glue. Always define + REGPARAM2 to be the same as REGPARAM unless it's already defined. + Fixes breakage of new trap code when compiling on x86 or 68k with + GCC 2.95. + +2006-04-06 02:12 evi1rich + + * src/gfx-sdl/sdlgfx.c: Fix for building SDL graphics driver with + GCC 2.95. + +2006-03-28 01:53 evi1rich + + * configure.in: [no log message] + +2006-03-27 23:43 evi1rich + + * configure.in, src/Makefile.am, src/genlinetoscr.c, + src/tools/Makefile.in: genlinetoscr was broken when targetting + big-endian systems (it always produced little-endian output). + Fixed. + +2006-03-27 22:01 evi1rich + + * src/gfx-x11/xwin.c: Fixed 'sticking' hot keys in X11 driver when + losing window focus (e.g. when a disk image selection dialog is + opened). + +2006-03-27 21:56 evi1rich + + * src/jd-linuxold/joystick.c: The linux joystick driver was + continually reporting input events (which would conflict with + joystick emulation if used). Fixed. + +2006-03-27 20:41 evi1rich + + * src/gfx-x11/xwin.c: Fixed bug in handling expose events in X11 + display driver. This was what was causing problems when using the + MITSHM extension. + +2006-03-27 16:20 evi1rich + + * src/sd-alsa/sound.c: Added support for pausing/resuming sound to + ALSA driver. + +2006-03-27 16:05 evi1rich + + * src/sd-alsa/sound.c: Tidied up log output in ALSA driver. + +2006-03-27 15:51 evi1rich + + * src/sd-alsa/sound.c: Fixed 8-bit output in ALSA driver (our code + does signed 8-bit output). + +2006-03-27 15:50 evi1rich + + * src/sd-alsa/sound.c: Attempted to fix potential latencies in ALSA + sound driver. Problems may still exist if your ALSA set-up + defaults to using the dmix plug-in, since apps cannot change the + number of buffer periods that dmix uses (although this looks like + it will be fixed in ALSA 1.0.11). + +2006-03-18 02:31 evi1rich + + * src/Makefile.am: Added new genlinetoscr.c to dist tarball. + +2006-03-18 01:40 evi1rich + + * src/: drawing.c, genlinetoscr.c: Fixed warning on 64-bit machines + in new pixel-output code. + +2006-03-18 01:38 evi1rich + + * src/gfxutil.c: Fix for 8-bit modes in the new world order. + +2006-03-17 23:50 evi1rich + + * src/genlinetoscr.c: Fixed typo (which broke 16-bit hi-res screens + on little-endian machines). + +2006-03-17 23:31 evi1rich + + * src/genlinetoscr.c: Forgot to add source for the genlinetoscr + tool. + +2006-03-17 23:27 evi1rich + + * src/: Makefile.am, drawing.c, linetoscr.c, tools/Makefile.in, + tools/configure.in: Added a tool to generate linetoscr.c (pixel + output functions) rather than using a static version. In this + first stab, optimized output to 16-bit screens by + writing-combining pixels as 32-bit words where possible. This + allows much faster output to video memory. Optimization for 8-bit + screens still to be completed. + +2006-03-17 23:22 evi1rich + + * src/include/sysdeps.h: Added NOINLINE macro to allow us to stop + GCC overzeaulously inlining functions. + +2006-03-16 21:07 evi1rich + + * src/picasso96.c: Use new bswap function in p96 emulation. + +2006-03-16 02:46 evi1rich + + * src/drawing.c: Optimized fill_line_* functions for 8bpp and 16bpp + cases. + +2006-03-16 02:45 evi1rich + + * src/savestate.c: Removed some debugging code. + +2006-03-16 02:44 evi1rich + + * src/include/sysdeps.h: When using SDL's byte-swapping function, + we need to include SDL_endian.h. + +2006-03-16 02:44 evi1rich + + * src/sd-amigaos/sound.c: Restored some code accidentally cut from + the AmigaOS sound driver. Now builds on 68k again. + +2006-03-16 02:43 evi1rich + + * src/: fdi2raw.c, traps.c: Failed to build with GCC 2.95. Fixed. + +2006-03-16 01:36 evi1rich + + * src/: drawing.c, gfxutil.c, gfx-amigaos/ami-win.c, + gfx-beos/be-UAE.cpp, gfx-beos/be-Window.cpp, + gfx-curses/ncurses.c, gfx-sdl/sdlgfx.c, gfx-svga/svga.c, + gfx-x11/xwin.c, include/xwin.h: Preparations for some forthcoming + graphics optimizations. Removed the gfx can_double flag. The idea + behind this was to allow two pixels to be written at once in + 8-bpp and 16-bpp modes, but I don't think it was never used. We + shall soon be using this idea, but we don't need this flag since + we will assume it's always true. Move the colour value 'doubling' + code into gfxutil rather than forcing each display driver to do + it itself. Likewise, moved the colour byte-swapping code there + too. + +2006-03-16 01:22 evi1rich + + * configure.in, src/sysconfig.h.in, src/include/sysdeps.h: Added + byte-swapping functions bswap_16() and bswap_32(). Use system + versions if present or SDL's endian functions if building against + SDL. + +2006-03-15 23:17 evi1rich + + * src/: compemu_support.c, gencomp.c, include/compemu.h: Renamed + JIT's bswap_* functions to gen_bswap_* to avoid collision with + system bswap functions. + +2006-03-15 00:36 evi1rich + + * src/gfxutil.c: Removed some dead code. + +2006-03-14 23:59 evi1rich + + * src/gfx-sdl/sdlgfx.c: Added preliminary support for vsync-ed + full-screen double-buffering to the SDL display driver. Use + gfx_vsync=true to enable this for now (this is will probably + change). SDL cannot usefully support double-buffering for E-UAE + because we don't know a) whether double-buffering is synced to + the vertical refresh; or b) what the vertical refresh frequency + is. Thus this is really for testing only. If your SDL driver does + do syncing, you need to have a screen with a refresh that's an + integer multiple of the screen being displayed in E-UAE. E.g., + for PAL Amiga screens, you a display that's either 50 Hz or 100 + Hz, etc. + +2006-03-14 23:21 evi1rich + + * src/od-macosx/Makefile.am: The file src/od-macosx/main.h was + missing from the dist tarball. Fixed. + +2006-03-14 23:13 evi1rich + + * src/cfgfile.c: When loading a config file, expand '~/' in the + various path config options to the home directory. Thanks to + Martin Steigerwald for reporting this bug. + +2006-03-14 23:05 evi1rich + + * src/custom.c: Some sprite tweaks. + +2006-03-14 00:16 evi1rich + + * src/bsdsocket.c: Re-added. + +2006-03-10 03:35 evi1rich + + * src/bsdsocket.c, amiga/source/bsdsocket.e: Removed last vestiges + of the 'old' bsdsocket emulation. + +2006-03-10 02:38 evi1rich + + * src/Makefile.am: Rats! Another file missing from the dist + tarball. + +2006-03-10 02:28 evi1rich + + * src/Makefile.am: Really remove MacOS Classic and Watcom support + and fix up breakage that caused. I really should get some sleep + one of these days... + +2006-03-10 02:07 evi1rich + + * src/targets/t-macos.h: Ooops. Missed one. + +2006-03-10 02:06 evi1rich + + * configure.in: Removed remaining code for MacOS Classic and for + i386/Watcom. There's not much chance that this stuff will be + supported any time soon. + +2006-03-10 01:53 evi1rich + + * src/: inputevents.def, keymap/hotkeys_common.h: Add raw hotkey + support for saving/loading state. + +2006-03-10 01:14 evi1rich + + * configure.in, src/Makefile.am, src/od-macosx/Info.plist.in, + src/od-macosx/Makefile.am: Build a Cocoa app bundle on MacOS X. + +2006-03-09 21:37 evi1rich + + * configure.in, src/jd-sdl/Makefile.am, src/od-macosx/Makefile.am, + src/od-macosx/hrtimer.h, src/sd-sdl/Makefile.am, + src/od-macosx/main.h, src/od-macosx/main.m, + src/od-macosx/memory.c, src/od-macosx/memory.h: Fixed building + against SDL framework on OS X. Re-worked configure script to + detect SDL on OS X and removed need for libSDL_main.a (we now + have our own main.m start-up code based on the SDL one). This + breaks building on plain Darwin for now. + +2006-03-08 00:46 evi1rich + + * src/gui-muirexx/ami-gui.c: Fixed compiler warnings in AmigaOS + file requester code, and added support for saving and loading + saved-state files. + +2006-03-08 00:44 evi1rich + + * src/savestate.c: Display error in a dialog when user tries to + restore state from a file that's not a save-state file. + +2006-03-08 00:12 evi1rich + + * src/zfile.c: Unnecessary check for the presence of zlib was + stopping compression of saved-state files. Fixed. + +2006-03-07 21:33 evi1rich + + * src/: cfgfile.c, include/options.h, targets/t-amiga.h, + targets/t-beos.h, targets/t-unix.h: Added cfgfile option + .savestate_path= to specify default directory for saving + saved-state files to. + +2006-03-07 10:13 evi1rich + + * src/custom.c: Recent changes in drawing code could cause + over-runs in colour-changes buffer when using a dynamic buffer. + Fixed. + +2006-03-07 09:48 evi1rich + + * configure.in, src/akiko.c, src/ar.c, src/audio.c, src/blitter.c, + src/cfgfile.c, src/cia.c, src/crc32.c, src/custom.c, src/debug.c, + src/disk.c, src/drawing.c, src/expansion.c, src/fpp.c, + src/inputdevice.c, src/keybuf.c, src/main.c, src/memory.c, + src/newcpu.c, src/savestate.c, src/zfile.c, src/include/akiko.h, + src/include/crc32.h, src/include/savestate.h, + src/include/zfile.h: Cleaned up state-saving code and + incorporated changes from WinUAE 1.2 (apart from filesys support, + which requires some changes to our filesys code). + +2006-03-05 22:24 evi1rich + + * configure.in, src/Makefile.am, src/custom.c, src/debug.c, + src/disk.c, src/identify.c, src/inputdevice.c, src/main.c, + src/newcpu.c, src/uaelib.c, src/gui-gtk/gtkui.c, + src/gui-muirexx/ami-rexx.c, src/include/custom.h, + src/include/debug.h, src/include/disk.h, src/include/identify.h, + src/include/newcpu.h, src/od-amiga/main.c, src/od-beos/main.cpp, + src/od-generic/main.c, src/od-win32/main.c: Lots of work on the + debugger/monitor. It's now a compile time option + (--disable-debugger), merged in new features from WinUAE 1.2, and + much cleaning up. + +2006-03-05 21:46 evi1rich + + * src/gui-muirexx/ami-rexx.c: In ARexx code, changed a bunch of + strings to use 'char' rather than 'unsigned char' to avoid grief + with GCC 4.x. + +2006-03-05 02:56 evi1rich + + * src/newcpu.c: Fixed up formatted output in newcpu.c. + +2006-03-04 04:01 evi1rich + + * src/: custom.c, drawing.c, include/drawing.h: Merged and cleaned + up remainging drawing changes from WinUAE 1.2. + +2006-03-04 03:24 evi1rich + + * src/custom.c: Fixed off-by-one error in sprite code merged from + WinUAE 1.2. + +2006-03-04 01:56 evi1rich + + * src/caps/caps.c: Previous changes broke CAPS support on dlopen + targets. Fixed. + +2006-03-03 02:08 evi1rich + + * src/: akiko.c, disk.c: More clean up. + +2006-03-03 01:40 evi1rich + + * src/: disk.c, fdi2raw.c, caps/caps.c, include/caps.h, + include/fdi2raw.h: Clean up for floppy emulation, incorporating + changes from WinUAE 1.2. + +2006-03-03 01:34 evi1rich + + * src/: akiko.c, ar.c, enforcer.c, memory.c, uaeexe.c, + include/uaeexe.h: Clean up for various compiler warnings, etc. + +2006-03-02 23:47 evi1rich + + * src/drawing.c: Merged "transparent" led status bar from WinUAE + 1.2. + +2006-02-28 03:17 evi1rich + + * src/sd-sdl/sound.c: Really fix SDL sound driver wrt recent audio + changes. + +2006-02-28 03:15 evi1rich + + * src/: audio.c, cfgfile.c, custom.c, gui-gtk/gtkui.c, + include/audio.h, include/options.h, sd-alsa/sound.c, + sd-alsa/sound.h, sd-amigaos/sound.c, sd-amigaos/sound.h, + sd-beos/sound.cpp, sd-beos/sound.h, sd-sdl/sound.c, + sd-sdl/sound.h, sd-uss/sound.c, sd-uss/sound.h: Merged some audio + changes from WinUAE 1.2, fixed up breakage caused in the various + audio drivers and did some cleaning up. + +2006-02-28 01:27 evi1rich + + * src/: custom.c, debug.c, include/options.h: Merged sprite, copper + and blitplane updates from WinUAE 1.2. + +2006-02-27 23:57 evi1rich + + * src/cia.c: Merged CIA changes from WinUAE 1.2. + +2006-02-27 23:43 evi1rich + + * src/: blitter.c, custom.c, genblitter.c, newcpu.c, + include/blitter.h: Merged blitter changed from WinUAE 1.2, and + removed some redundant code and other clean-up. + +2006-02-26 21:15 evi1rich + + * src/: custom.c, gencpu.c, newcpu.c, include/cpu_prefetch.h, + include/custom.h, include/newcpu.h: Merged some CPU changes from + WinUAE 1.2. This includes modified prefetch behaviour (in + particular, more accurate emulation of prefetch with MOVE/MOVEA + opcodes) and more accurate emulation in cycle-exact mode of the + number of cycles consumed by DIVS/DIVU instructions. + +2006-02-20 01:02 evi1rich + + * src/gfx-sdl/sdlgfx.c: Tidied up support for using HW surfaces in + SDL display driver. Always try to use a hardware surface for + full-screen surfaces. + +2005-12-23 23:11 evi1rich + + * src/caps/caps.c: Fixed duplicate declaration of CapsImageBase + when building CAPS support on AmigaOS. + +2005-12-23 23:09 evi1rich + + * src/sd-amigaos/: sound.c, sound.h: More clean-up for AmigaOS + sound driver. Also fixed a problem that could occur when closing + down the AHI device. + +2005-12-23 16:14 evi1rich + + * src/sd-amigaos/: sound.c, sound.h: Removed stale and obsolete + code from AmigaOS sound driver. This includes DMA code, PowerUP + stuff, and support for using the AHI dos handler (rather than + ahi.device). + +2005-12-23 15:58 evi1rich + + * src/sd-amigaos/sound.c: Fix for building AmigaOS sound driver. + +2005-12-07 09:22 evi1rich + + * configure.in: A tweak for build scripts when cross-compiling. + +2005-12-07 09:20 evi1rich + + * Makefile.am: Removed Debian directory from the distribution + tarball at the request of Florian Ernst, the Debian package + maintainer. + +2005-12-07 09:19 evi1rich + + * debian/: README.Debian, changelog, compat, control, copyright, + e-uae.1, e-uae_readdisk.1, linda.overrides, lintian.overrides, + manpages, menu, postinst, prerm, rules, watch: Applied patch from + Florian Ernst, who intends to maintain an official Debian package + of E-UAE, which cleans up the Debian packaging scripts. + +2005-12-07 07:57 evi1rich + + * src/gfx-amigaos/ami-win.c: In AmigaOS gfx driver, fixed support + for big-endian 32-bit pixel formats. + +2005-12-07 07:55 evi1rich + + * src/td-amigaos/thread.c: In AmigaOS thread layer on AmigaOS4, + assert NP_Child when creating new threads. + +2005-10-19 23:00 evi1rich + + * configure.in, src/hardfile_unix.c, src/sysconfig.h.in: Applied a + patch from Martin Blom which adds support for hardfiles > 2GB (on + hosts which support 64-bit file sizes). + +2005-10-19 22:58 evi1rich + + * configure.in, src/jd-sdl/Makefile.am, src/sd-sdl/Makefile.am: + Applied a patch from Martin Blom: a tiny fix for the build + process (automake and the case when you use X11 for gfx but SDL + for sound/threads/joystick). + +2005-10-19 22:53 evi1rich + + * src/od-generic/memory.c: Applied patch from Martin Blom which + makes the JIT cache executable for NX-enabled CPUs like the + Athlon64 (in 32-bit mode). + +2005-10-05 08:43 evi1rich + + * configure.in, src/sysconfig.h.in, src/include/memory.h: Some + versions of GCC don't like inlining get_pointer()/put_pointer. + Fixed by getting pointer size at config time rather than + compile-time. + +2005-10-05 00:50 evi1rich + + * src/td-amigaos/thread.h: Dummy uae_wait_thread() macro in AmigaOS + thread layer was broken. Fixed. + +2005-10-05 00:18 evi1rich + + * src/gfxutil.c: Improved translation of OCS/ECS colours to host + colours. This was a long-standing bug in UAE. Thanks to Francesco + Pretto for discovering the problem and to Toni Wilen for this + fix. + +2005-10-03 23:18 evi1rich + + * src/traps.c: When exiting an extended trap context, destroy + synchronization semaphores. + +2005-10-03 11:04 evi1rich + + * src/: md-68k/Makefile.am, md-68k/exectasks.h, + md-amd64-gcc/Makefile.am, md-amd64-gcc/exectasks.h, + md-generic/Makefile.am, md-generic/exectasks.h, + md-i386-gcc/Makefile.am, md-i386-gcc/exectasks.h, + md-ppc/Makefile.am, md-ppc/exectasks.h, md-ppc-gcc/Makefile.am, + md-ppc-gcc/exectasks.h, od-amiga/Makefile.am, + od-amiga/exectasks.h, od-beos/Makefile.am, od-beos/exectasks.h, + od-generic/Makefile.am, od-generic/exectasks.h, + od-linux/Makefile.am, od-linux/exectasks.h, od-win32/Makefile.am, + od-win32/exectasks.h: Removed now-unused stack magic code. + +2005-10-03 10:36 evi1rich + + * src/: Makefile.am, audio.c, autoconf.c, bsdsocket-posix-new.c, + bsdsocket.c, custom.c, disk.c, filesys.c, fsdb.c, hardfile.c, + inputdevice.c, main.c, misc.c, native2amiga.c, newcpu.c, + scsi-none.c, scsiemul.c, traps.c, uaeexe.c, uaelib.c, + include/autoconf.h, include/bsdsocket.h, include/inputdevice.h, + include/native2amiga.h, include/traps.h: Reworked trap code. + Added replacement for stack magic code which uses threads instead + of manually allocating and swaping between stacks. + +2005-10-03 08:13 evi1rich + + * src/: td-beos/thread.h, td-posix/thread.h, td-sdl/thread.h: + Removed now unncessary uae_thread_self() call from thread API. + +2005-10-03 07:54 evi1rich + + * configure.in, src/Makefile.am, src/bsdsocket-posix.c: Removed + 'old' bsdsocket emulation. + +2005-09-25 12:28 evi1rich + + * src/include/memory.h: New get_pointer()/put_pointer routines were + broken for little-endian machines. Fixed. + +2005-09-23 08:52 evi1rich + + * src/: bsdsocket.c, include/memory.h: Added routines to read and + write a host pointer to Amiga memory. + +2005-09-22 23:44 evi1rich + + * src/: bsdsocket.c, include/bsdsocket.h: Tidied up the bsdsocket + emulation a little. This thing might be readable one day. + +2005-09-22 22:41 evi1rich + + * src/: autoconf.c, bsdsocket.c, custom.c, disk.c, expansion.c, + filesys.c, hardfile.c, inputdevice.c, misc.c, newcpu.c, + picasso96.c, savestate.c, scsiemul.c, uaeexe.c, uaelib.c, + include/autoconf.h, include/inputdevice.h, include/picasso96.h: + Pass regstruct as a parameter to trap handlers. One step closer + to regstruct not being a global... + +2005-09-22 03:00 evi1rich + + * src/picasso96.c: Fixed support for auto-scroll screens in + Picasso96 emulation. + +2005-09-22 02:52 evi1rich + + * configure.in: Add it starts again... we're now version + 0.8.28-CVS. + +2005-09-20 10:28 tag E-UAE-0_8_28 + +2005-09-20 10:28 evi1rich + + * src/gfx-beos/: be-Window.cpp, be-Window.h: Forgot to check in + input acquire support in BeOS graphics driver. + +2005-09-20 10:12 evi1rich + + * src/td-amigaos/thread.c: Fixed breakage with GCC 2.95. + +2005-09-20 09:54 evi1rich + + * configure.in: Updated version to 0.8.28. + +2005-09-20 09:54 evi1rich + + * configure.in: Disabled filesystem threads again for now. There + are still performance issues. + +2005-09-20 09:53 evi1rich + + * Makefile.am: Removed comments from dist-hook rule. Automake + complains about them. + +2005-09-20 09:30 evi1rich + + * Makefile.am: Adding a dist-hook to the build scripts to ensure + that we don't get unwanted junk in the source tarball. + +2005-09-20 09:28 evi1rich + + * debian/: README.Debian, changelog, rules: Updated Debian + packaging scripts. + +2005-09-17 14:11 evi1rich + + * docs/joystick.txt: Updated and fixed typos. + +2005-09-15 11:44 evi1rich + + * README, docs/joystick.txt, docs/keyboard.txt: Updated + documentation with section about joystick emulation. + +2005-09-15 09:21 evi1rich + + * docs/cmd-line.txt: Documented -s command-line option. + +2005-09-15 09:14 evi1rich + + * README: Updated README. + +2005-09-15 09:12 evi1rich + + * src/jd-beos/joystick.cpp: Rewrote BeOS joystick driver. Now + supports multiple joysticks. + +2005-09-14 08:25 evi1rich + + * src/td-amigaos/thread.c: Fixed typo. + +2005-09-13 14:27 evi1rich + + * src/td-amigaos/thread.c: Re-worked AmigaOS thread layer a bit + more for robustness. + +2005-09-13 14:27 evi1rich + + * src/od-amiga/blkdev-amiga.c: Amiga SCSI back-end would if SCSI + commands were executed when a device was closed. Fixed. + +2005-09-13 14:25 evi1rich + + * src/akiko.c: Hacked Akiko emulation so that drive is always + re-opened at reset. + +2005-09-13 08:42 evi1rich + + * src/akiko.c: Another go at sorting out the locking in the Akiko + emulation. + +2005-09-12 01:24 evi1rich + + * src/gui-gtk/floppyfileentry.c: Fixed Gtk+ GUI's floppy file + entry widget to append a trailing '/' if not present to the + initial current directory, because otherwise the Gtk+ file dialog + doesn't recognize it as a directory. + +2005-09-12 01:00 evi1rich + + * docs/keyboard.txt, src/custom.c, src/inputdevice.c, + src/inputevents.def, src/gfx-amigaos/ami-win.c, + src/gfx-sdl/sdlkeys.c, src/gfx-x11/x11keys.c, + src/include/inputdevice.h, src/include/keyboard.h, + src/keymap/hotkeys_common.h: Removed old mousehack (sprite + follow) code as per the official UAE 0.8.25. + +2005-09-11 23:24 evi1rich + + * src/: autoconf.c, filesys.c, fsdb.c: Fixed some more compiler + warnings with GCC 4.0. + +2005-09-11 23:09 evi1rich + + * src/: akiko.c, blkdev-libscg.c, blkdev.c, scsiemul.c, + include/blkdev.h, od-amiga/blkdev-amiga.c: Strengthened SCSI + layer API. + +2005-09-11 21:51 evi1rich + + * src/jd-amigainput/joystick.c: Removed some stray debug output. + +2005-09-11 21:50 evi1rich + + * src/td-amigaos/: thread.c, thread.h: Cleaned up the AmigaOS + thread layer a little. A special signal is no longer allocated + for to synchronize with replies from the proxy thread - we + repurpose SIGBREAK_CTRL_D instead - which allows some + simplification. + +2005-09-11 21:47 evi1rich + + * src/od-amiga/blkdev-amiga.c: Cleaned up AmigaOS SCSI layer + back-end a little. Each device now gets its own input buffer, so + we can do away with the unnecessary global lock. + +2005-09-11 15:04 evi1rich + + * src/gfx-amigaos/ami-win.c: In the AmigaOS gfx driver, the colour + tables for AGA screens were not being byte-swapped when the + screen's pixel format byte-order was oppposite to the CPU. Fixed. + +2005-09-11 14:57 evi1rich + + * src/akiko.c: Tweaked the mutex scheme in the Akiko emulation a + little to increase performance. Locking the Akiko thread is more + fine-grained, while we now only lock once per read or write to an + Akiko register. + +2005-09-08 21:50 evi1rich + + * src/gfx-beos/be-UAE.cpp: In BeOS gfx driver, temporarily disabled + setting current directory to the application directory. It's not + useful yet without a config GUI able to create config files and + it confuses parsing command-line options. + +2005-09-08 21:45 evi1rich + + * src/gfx-amigaos/ami-win.c: Fixed little-endian pixel format + thinkos in Amiga graphics driver. + +2005-09-08 12:24 evi1rich + + * configure.in: Another try at getting the execstack flag set in + the uae binary. Silly me: -Wa,--execstack is obviously an + assembler option, not linker option. + +2005-09-08 11:08 evi1rich + + * configure.in: When building JIT, check whether linker supports + the --execstack switch and if so use it when linking. This will + enable the JIT to work on Linux kernels protected with + ExecShield. + +2005-09-08 09:55 evi1rich + + * src/gfx-amigaos/ami-win.c: Recent changes broke AmigaOS gfx + driver on 68k AmigaOS. It seems we really do need to specify the + screen's bitmap as a friend when allocating the off-screen + bitmap. Fixed. + +2005-09-08 09:51 evi1rich + + * src/sleep.c: Fixed sleep_test() so that it once again only + performs its check once. + +2005-09-07 21:42 evi1rich + + * src/: Makefile.am, genp2c.c, include/custom.h: Clean up: removed + genp2c.c and its tables. This stuff hasn't been used in a while. + +2005-09-03 23:52 evi1rich + + * docs/configuration.txt: More tweaks to the configuration doc. + +2005-09-03 00:28 evi1rich + + * docs/scsi.txt: Updated the SCSI emulation docs to cover using it + on newer Linux 2.6.x kernels and to mention that it now works on + AmigaOS hosts. + +2005-09-03 00:14 evi1rich + + * README: More README tweaks. + +2005-09-03 00:14 evi1rich + + * docs/configuration.txt, src/cfgfile.c, src/custom.c, src/main.c, + src/gui-gtk/chipsetspeedpanel.c, src/gui-gtk/chipsetspeedpanel.h, + src/gui-gtk/gtkui.c, src/include/options.h: Removed fast copper + feature (as the official UAE and WinUAE have now done), and + obsoleted the fast_copper config option. + +2005-09-01 22:52 evi1rich + + * src/picasso96.c: Fixed another 64-bit problem in the P96 + emulation. + +2005-09-01 22:51 evi1rich + + * src/bsdsocket.c: Fixed a couple more 64-bit problems in the + bsdsocket emulation (these fixes from WinUAE 1.1 beta) and a + couple more GCC 4.0 warnings. + +2005-08-31 10:22 evi1rich + + * README: Updated README. + +2005-08-31 10:03 evi1rich + + * docs/configuration.txt: Configuration doc said max p96 mem is 8 + MB when it should be 32 MB. Fixed. + +2005-08-31 10:02 evi1rich + + * src/gui-gtk/gtkui.c: Maximum Bogo mem in Gtk+ UI was 1.8 MB when + it should be 1.5 MB. Fixed. + +2005-08-31 09:59 evi1rich + + * docs/cmd-line.txt: Cleaned up and filled out documentation of + command-line options a little. More work to do. + +2005-08-31 08:52 evi1rich + + * docs/configuration.txt: Updated documentation to clarify the + display size options and to reflect the new default + configuration. + +2005-08-31 08:51 evi1rich + + * src/cfgfile.c: Changed default configuration (to be similiar to + WinUAE 1.0.0). Default window size is now 720x568, default CPU is + now a 68000, default memory is now 512 KB of Chip mem and 512 KB + of Slow mem. + +2005-08-31 00:19 evi1rich + + * configure.in, src/cfgfile.c, src/gfx-curses/ncurses.c: Made the + curses graphics driver build again. This is just for fun - it's + not terribly practical or robust. + +2005-08-31 00:16 evi1rich + + * src/gfx-beos/: Makefile.am, be-Input.cpp, be-Input.h, be-UAE.cpp, + be-UAE.h, be-Window.cpp, be-Window.h: Re-worked native BeOS + graphics driver, stripping it down to the bare bones in the + process. It now works (but no P96 emulation as yet). Added + support for relative mouse-movements in full-screen mode. + +2005-08-30 09:10 evi1rich + + * src/include/options.h: Updated config file version to 0.8.28. + +2005-08-30 08:59 evi1rich + + * src/gui-gtk/: gtkui.c, util.h: Fixed some compiler warnings in + the Gtk+ UI. + +2005-08-30 08:48 evi1rich + + * src/gui-gtk/gtkui.c: JIT cache slider maximum in Gtk+ UI was + 16383 not 16384. Fixed. + +2005-08-29 23:44 evi1rich + + * src/main.c: When a config file is specified from the command line + and it exists, make this the default config file to save to. + +2005-08-29 23:19 evi1rich + + * src/: md-i386-gcc/rpt.h, md-i386-gcc/support.c, + md-amd64-gcc/rpt.h: Probing Linux TSC frequency was broken for + processor >2GHz. Fixed. Thanks to Vaclav Misek for reporting the + problem and testing fixes. + +2005-08-24 00:24 evi1rich + + * configure.in: Fixed configure script (hopefully) so that POSIX + semaphores will work on Solaris. + +2005-08-21 23:43 evi1rich + + * src/: inputdevice.c, gfx-amigaos/ami-win.c, + gfx-beos/be-Input.cpp, gfx-beos/be-Window.cpp, gfx-sdl/sdlgfx.c, + gfx-x11/xwin.c, include/inputdevice.h, jd-amigaos/joystick.c, + jd-beos/joystick.cpp, jd-linuxold/joystick.c, jd-none/joystick.c, + jd-sdl/joystick.c: Strengthened the inputdevice API and assorted + fixes for various inputdevice drivers. + +2005-08-21 23:41 evi1rich + + * configure.in, src/Makefile.am, src/jd-amigainput/Makefile.am, + src/jd-amigainput/joystick.c: Added AmigaInput joystick driver. + +2005-08-18 22:46 evi1rich + + * src/gfx-sdl/sdlgfx.c: In the SDL gfx driver, when an exact + screenmode match wasn't found, the driver would return the + largest screenmode. Thanks to Don Venhaus for spotting the + problem and suggesting the fix. + +2005-08-18 14:34 evi1rich + + * src/gfx-amigaos/ami-win.c: Completed CGX V41 rendering in AmigaOS + graphics driver. + +2005-08-17 22:42 evi1rich + + * src/md-ppc-gcc/support.c: Added support for quering PPC timebase + frequency on MorphOS. Thanks to Sigbjørn Skjæret (CISC) for the + idea. + +2005-08-17 22:06 evi1rich + + * src/gui-gtk/gtkui.c: In Gtk+ UI, set all four floppy image + widgets when opening - not just drive 0. + +2005-08-17 22:04 evi1rich + + * src/custom.c: The insertion of a floppy disk image while E-UAE + was paused would be ignored if E-UAE was then reset rather than + un-paused. Problem reported and fix suggested by Lasse. Thanks! + +2005-08-17 20:47 evi1rich + + * src/drawing.c: Fixed building without JIT on non-GCC compilers. + +2005-08-17 20:36 evi1rich + + * src/: drawing.c, hardfile.c, include/compemu.h, + include/sysdeps.h, md-generic/maccess.h, od-generic/hrtimer.h, + sd-solaris/sound.h: Applied a patch from Elmar Plischke which + fixes some GNU-isms, and, for instances, allows E-UAE to compile + with the Sun compiler under Solaris. + +2005-08-17 20:22 evi1rich + + * src/od-amiga/blkdev-amiga.c: Fixed some compiler warnings in the + AmigaOS SCSI back-end. + +2005-08-17 20:14 evi1rich + + * src/od-amiga/blkdev-amiga.c: In AmigaOS SCSI back-end, we need to + store a copy of the device string when adding a device, not just + a reference. + +2005-08-17 10:12 evi1rich + + * configure.in: Fixed up build scripts so that the SCSI emulation + does really get compiled in on AmigaOS hosts. + +2005-08-17 00:28 evi1rich + + * src/od-amiga/blkdev-amiga.c: Applied patch from Sigbjørn Skjæret + (CISC) to add SCSI device scanning for 'classic' AmigaOS and + MorphOS to the AmigaOS SCSI layer back-end. Thanks, CISC. I'd + just been too lazy to do this myself. ;-) + +2005-08-16 00:17 evi1rich + + * configure.in: A tweak for the configure script: pass SDL's cflags + in CPP_FLAGS rather than CFLAGS. This ensures, for instance, that + SDL is accessible useable when compiling objective C in the cocoa + GUI. + +2005-08-16 00:14 evi1rich + + * src/gui-cocoa/cocoaui.m: The work-around for forcing the host + mouse pointer to be visible when opening a cocoa dialog didn't + work for full-screen mode (it was doing things in the wrong + order). Fixed. + +2005-08-15 14:37 evi1rich + + * configure.in: Don't build a threaded version of the virtual + filesystem on AmigaOS and clones. When the filesystem threads are + run at the same priority as the main thread, they get starved for + CPU time, killing performance, and we many not be able to change + their priority (e.g. when building against SDL). + +2005-08-15 14:35 evi1rich + + * src/md-i386-gcc/support.c: On x86 BEOS hosts, added support for + getting the TSC frequency from the kernel rather than calibrating + it ourselves. + +2005-08-15 14:34 evi1rich + + * src/cfgfile.c: A segfault would occur when parsing command-line + options which don't take a value. Fixed. + +2005-08-15 03:42 steven-j-s + + * src/gui-cocoa/cocoaui.m: Removed keyboard shortcuts for + menu-items due to conflicts caused because the command key is + being used as the emulated amiga key. Removed bug causing crash + in versions of OS X prior to Panther. Added 'Devices' menu to + control joystick port settings + +2005-08-10 23:55 tag E-UAE-0_8_28-RC2 + +2005-08-10 23:55 evi1rich + + * configure.in: Let try version 0.8.28-RC2. + +2005-08-10 23:36 evi1rich + + * configure.in: Enable building of the threaded virtual filesystem + again - now that the performance issues have been fixed. + +2005-08-10 23:33 evi1rich + + * README: Updated README to mention that SCSI layer now works on + OS4.0. + +2005-08-10 23:31 evi1rich + + * src/gui-cocoa/cocoaui.m: Steve's new Cocoa floppy dialog doesn't + work on MacOS 10.2. A temporary and ugly fix. + +2005-08-10 21:55 evi1rich + + * configure.in, m4/type_socklen_t.m4, src/sysconfig.h.in: Older BSD + systems (e.g., OS X) don't declare socklen_t. Fixed with some + configure support. + +2005-08-10 15:15 evi1rich + + * src/include/gensound.h: Fixed GCC 2.95 breakage. + +2005-08-10 15:14 evi1rich + + * src/main.c: Recent SCSI layer changes broke building without SCSI + emulation. Fixed. + +2005-08-10 14:21 tag E-UAE-0_8_28-RC1 + +2005-08-10 14:21 evi1rich + + * configure.in: Let's call this version 0.8.28-RC1. + +2005-08-10 10:11 evi1rich + + * src/akiko.c: Ooops. Turn off debug output in Akiko emulation. + +2005-08-10 09:00 evi1rich + + * src/akiko.c: Akiko emulation now works with AmigaOS SCSI + back-end. + +2005-08-10 08:56 evi1rich + + * src/od-amiga/blkdev-amiga.c: Fixed a bug in AmigaOS SCSI + back-end: media check wasn't returning the media status. + +2005-08-09 10:44 evi1rich + + * src/: blkdev-libscg.c, blkdev.c, bsdsocket-posix-new.c, debug.c, + include/blkdev.h: Fixed some more GCC4.0 warnings. + +2005-08-09 09:47 evi1rich + + * src/: bsdsocket-posix.c, cfgfile.c, compemu_support.c, + picasso96.c, include/picasso96.h: Fixed some more GCC 4.0 + warnings. + +2005-08-09 08:30 evi1rich + + * src/gfx-sdl/sdlgfx.c: Fixed some debug output. + +2005-08-09 08:27 evi1rich + + * configure.in, src/blkdev.c, src/main.c, src/scsiemul.c, + src/include/blkdev.h, src/include/scsidev.h, + src/od-amiga/Makefile.am, src/od-amiga/blkdev-amiga.c: Added SCSI + layer back-end for AmigaOS hosts. Currently this only works on + OS4.0 - on other earlier and clone systems, code for scanning for + CD-ROM drives needs to be added. Hacked the top level of the SCSI + layer to make it work on Amiga hosts and added shut-down code. + +2005-08-09 08:23 evi1rich + + * src/akiko.c: Fixed a 32-bit-ism in the CD32 emulation. + +2005-08-05 11:52 evi1rich + + * README: Updated README. + +2005-08-05 11:46 evi1rich + + * docs/cmd-line.txt: Added Henrik Farre's documentation of + command-line options. Thanks Henrik! + +2005-08-05 11:40 evi1rich + + * docs/keyboard.txt: Updated keyboard documentation since raw keys + now potentially work on X11. + +2005-08-05 10:13 evi1rich + + * configure.in, src/gfx-x11/x11keys.c, src/gfx-x11/xwin.c, + src/include/options.h, src/keymap/x11pc_rawkeys.c: Added raw-key + support to X11 graphics driver. This requires the XKB extension + and only xfree86 keycodes are currently supported. + +2005-07-29 23:48 evi1rich + + * src/gfx-x11/xwin.c: Some tidying up for the X11 graphics driver. + +2005-07-15 02:41 steven-j-s + + * src/gui-cocoa/cocoaui.m: Fixed some small memory-management bugs, + and added a 'Disk' menu for inserting and ejecting disk images. + +2005-07-08 03:49 evi1rich + + * README: Updated README to reflect latest changes. + +2005-07-08 02:57 evi1rich + + * docs/compiling.txt: Updated instructions for compiling against + the SDL framework on OS X. + +2005-07-08 01:49 evi1rich + + * src/gfx-sdl/sdlgfx.c: Fixed a bug in the SDL gfx driver which + could allows the array of screen modes to overrun. + +2005-07-08 00:43 evi1rich + + * src/od-amiga/support.c: Removed the now superflous extra + sleep_test() on the AmigaOS target. + +2005-07-07 23:21 evi1rich + + * src/: inputdevice.c, gfx-amigaos/ami-win.c, + gfx-beos/be-Window.cpp, gfx-sdl/sdlgfx.c, gfx-x11/xwin.c, + include/xwin.h: Factored out the duplicated framerate_up/down + code from each gfx driver and stuffed it in inputdevice.c for + now. + +2005-07-07 23:09 evi1rich + + * src/: drawing.c, gfx-amigaos/ami-win.c, gfx-sdl/sdlgfx.c, + gfx-x11/xwin.c, include/xwin.h: Began modularization of graphics + layer and updated SDL, X11 and AmigaOS graphics driver + accordingly (other gfx drivers are broken for now). A graphics + driver should now set up function pointers in gfxvidinfo + appropriately for the flush_line(), flush_block(), lock(), etc. + methods it provides. A bonus is that a lot of the decision make + can be pushed back to when the graphics buffer is set up and thus + many conditional branches removed from critical code like + flush_line(), flush_block(), etc. + + Also removed PowerUP code from AmigaOS gfx driver and also + changed it so that the CGX_V41 methods are used on AmigaOS4. It + doesn't perform well, but it's a solution to the problem caused + by the changes to the CGX emulation in AmigaOS4 update #3. + Eventually this will be replaced by a direct P96 implementation. + +2005-07-07 23:01 evi1rich + + * src/od-win32/main.c: Fixed up mingw32 port to use SDL_main. + +2005-07-07 22:49 evi1rich + + * src/od-generic/main.c: Fixed missing header. + +2005-07-07 22:48 evi1rich + + * src/zfile.c: A fix for using zlib decompression when building + with mingw32. + +2005-07-07 22:21 evi1rich + + * src/audio.c, src/sysconfig.h.in, configure.in, + src/include/gensound.h: Removed the MULTIPLICATION_PROFITABLE + define from audio.c and put it in sysconfig.h as a define set by + configure (it's always set for now - just as before). Also, + conditionally leave out some more unused bits of audio.c if + MULTIPLICATION_PROFITABLE is set. + +2005-07-07 21:15 evi1rich + + * src/: include/xwin.h, include/inputdevice.h, inputdevice.c: The + recent changes in the inputdevice subsystem caused some breakage + under GCC4.0. Fixed. + +2005-07-07 01:43 evi1rich + + * src/: cfgfile.c, include/options.h: Obsoleted the config options + avoid_dga, override_dga_address and avoid_vid. + +2005-07-07 01:35 evi1rich + + * docs/: bsdsocket.txt, compiling.txt: Updated compiling and + bsdsocket docs now that the 'new' bsdsocket emulation works on + AMD64. + +2005-07-07 01:32 evi1rich + + * docs/configuration.txt: Updated configuration docs. + +2005-07-06 12:07 evi1rich + + * src/md-amd64-gcc/exectasks.h: Simplified AMD64 stack-magic code. + +2005-07-06 04:19 evi1rich + + * src/md-amd64-gcc/exectasks.h: Changed the call to a jmp in the + AMD64 stack-magic code (not that it makes a huge amount of + difference in practice). + +2005-07-05 14:05 evi1rich + + * src/Makefile.am: Forgot to add src/md-amd64-gcc to dist target. + Fixed. + +2005-07-05 01:29 evi1rich + + * docs/configuration.txt: Add section about x86/amd64.use_tsc, + ppc.use_tbc to configuration docs. + +2005-07-04 23:14 evi1rich + + * src/md-ppc-gcc/support.c: On Linux/PPC try to get timebase + frequency from the Open Firmware device tree. If the system + doesn't have OF, then E-UAE will fall back on calibrating the tbc + frequency itself. + +2005-07-04 21:34 evi1rich + + * src/: newcpu.c, gui-gtk/cpuspeedpanel.c, gui-gtk/cpuspeedpanel.h, + gui-gtk/gtkui.c: Allow 'Idle on HALT' to work even without the + JIT. + +2005-07-04 17:26 evi1rich + + * src/custom.c: Previous change caused serious breakage. Now + initialize syncbase in custom_init(), since we have to do it + somewhere (which I had forgotten). This stuff really needs + tidying up. + +2005-07-04 17:11 evi1rich + + * src/custom.c: Don't reset synbase in compute_vsynctime(). + +2005-07-04 17:10 evi1rich + + * src/: md-i386-gcc/rpt.h, md-i386-gcc/support.c, + md-amd64-gcc/rpt.h: Added a hack to cope with frequency-scaling + on x86 and AMD64 Linux. We get the TSC frequency from + /proc/cpuinfo and poll that (currently 8 times a second) to + detect changes in CPU frequency. This needs to implemented more + cleanly, but the idea seems to be sound at least. + +2005-07-02 02:57 evi1rich + + * configure.in, src/md-amd64-gcc/Makefile.am, + src/md-amd64-gcc/exectasks.h, src/md-amd64-gcc/m68k.h, + src/md-amd64-gcc/m68kops.h, src/md-amd64-gcc/maccess.h, + src/md-amd64-gcc/machdep.h, src/md-amd64-gcc/rpt.h, + src/md-amd64-gcc/support.c: Added machine-dependent support for + the AMD64. For now this is largely copied from i386, but with + fixed time-stamp and stack-magic support. + +2005-06-29 00:29 evi1rich + + * README: Fixed some typos. + +2005-06-29 00:26 evi1rich + + * docs/: bsdsocket.txt, compiling.txt, floppies.txt, keyboard.txt: + Some documentation tweaks. + +2005-06-28 00:02 evi1rich + + * src/: main.c, md-i386-gcc/support.c, md-ppc-gcc/support.c: Factor + out the sleep_test() call from the machine-dependent code and + always call it. + +2005-06-27 23:20 evi1rich + + * src/: cfgfile.c, inputdevice.c, inputevents.def, keybuf.c, + main.c, gfx-amigaos/ami-win.c, gfx-sdl/sdlgfx.c, gui-gtk/gtkui.c, + include/inputdevice.h, include/keyboard.h, include/options.h, + od-amiga/amiga-kludges.h, gfx-sdl/sdlkeys.c, gfx-x11/x11keys.c, + gfx-x11/xwin.c, jd-sdl/joystick.c, keymap/hotkeys_common.h: + Merged input layer changes from WinUAE 1.0, fixed most of the + breakage that caused (I may have missed some) and did some + tidying up. Added config option to disable joyport emulation and + this is now supported by the Gtk+ UI. + +2005-06-27 22:40 evi1rich + + * README: Brought README up to date for version 0.8.28. + +2005-06-20 13:23 evi1rich + + * src/: main.c, tui.c, include/tui.h, include/uae.h: Some clean-ups + for main.c. Also factored out the TUI stuff from main.c and fixed + up tui.c so it at least compiles now. + +2005-06-19 22:37 evi1rich + + * src/Makefile.am: Forgot to add src/od-win32 to dist. Fixed. + +2005-06-19 22:27 evi1rich + + * configure.in, src/Makefile.am, src/bsdsocket.c, + src/od-win32/Makefile.am, src/od-win32/bsdsock.c, + src/od-win32/fsdb_win32.c, src/od-win32/hardfile_win32.c, + src/od-win32/main.c, src/od-win32/win32.h, + src/td-win32/Makefile.am, src/td-win32/thread.c, + src/td-win32/thread.h: More work on the mingw32 port. + +2005-06-19 21:12 evi1rich + + * configure.in, src/cfgfile.c, src/filesys.c, src/fsdb.c, + src/fsusage.c, src/main.c, src/misc.c, src/picasso96.c, + src/sleep.c, src/include/picasso96.h, src/include/sleep.h, + src/include/sysdeps.h, src/include/uae.h, src/include/xwin.h, + src/od-win32/Makefile.am, src/od-win32/exectasks.h, + src/od-win32/fsdb_win32.c, src/od-win32/hardfile_win32.c, + src/od-win32/hrtimer.h, src/od-win32/main.c, + src/od-win32/memory.c, src/od-win32/memory.h, + src/od-win32/posixemu.c, src/od-win32/posixemu.h, + src/od-win32/writelog.c: Implemented rudimentary support for + building with mingw32 (against SDL only at the moment). Merged + some bits and pieces of win32-specific code from WinUAE 0.8.27 + and WinUAE 1.0.0 and, after a little hacking, this now works. + More to do... + +2005-06-19 16:57 evi1rich + + * src/bsdsocket-posix.c: Some 64-bit fixes for the 'old' bsdsocket + emulation. + +2005-06-19 16:56 evi1rich + + * src/: gfx-sdl/rawkeys.c, keymap/x11pc_rawkeys.c: Added support + for rawkeys on x86_64 Linux. + +2005-06-19 01:27 evi1rich + + * src/: Makefile.am, gfxlib.c, main.c: Removed gfxlib emulation. + +2005-06-19 01:21 evi1rich + + * src/: Makefile.am, akiko2.c: Removed superfluous akiko2.c file. + +2005-06-19 01:20 evi1rich + + * configure.in, src/Makefile.am, src/md-i386-gcc/Makefile.am, + src/md-i386-gcc/X86.S: Removed x86 assembly version of DitherLine + (it's not terribly useful now) and the configure option + --enable-x86assembly. + +2005-06-18 21:57 evi1rich + + * src/ar.c: Some 64-bit fixed for the ActionReplay emulation. + +2005-06-18 16:06 evi1rich + + * src/: audio.c, cia.c, events.c, filesys.c, gfxutil.c, + gfx-sdl/sdlgfx.c, include/drawing.h, include/events.h, + include/xwin.h: Fixed some problems which were breaking 64-bit + architectures. It now runs on AMD64 here, but more testing and + fixing to do... + +2005-06-17 04:04 steven-j-s + + * src/gui-cocoa/cocoaui.m: Numerous improvements to cocoa gui + +2005-06-16 01:37 evi1rich + + * src/include/sleep.h: Go back to using Delay() for sleeping on + AROS, since TimeDelay() behaves strangely there. I must + investigate AROS's timer.device implementation... + +2005-06-16 00:31 evi1rich + + * src/gfx-amigaos/ami-win.c: Implemented CGX v41 support in the + AmigaOS gfx driver, which uses an off-screen buffer in main + memory and blits via a WritePixelArray(...,RECTFMT_RAW) call. + + We use this method when building on AROS and MorphOS. This is + absolutely necessary for high/true-colour rendering on AROS, + since on AROS hosted on X11 you cannot lock an AROS bitmap. I + test this on AmigaOS4 also, but performance sucked, so we don't + use it there. + +2005-06-15 22:18 evi1rich + + * src/: include/sleep.h, od-amiga/hrtimer.h, od-amiga/support.c: + Hacks to AmigaOS timer support to get this building on AROS + again. + +2005-06-13 21:05 evi1rich + + * src/fsdb.c: Forgot to turn off tracing in fsdb.c. Fixed. + +2005-06-13 16:18 evi1rich + + * src/filesys.c: A quick fix for the filesystem bug that was + causing a segfault when IBrowse was scanning its cache at + start-up. The problem was the action_rename function. A new aino + was created for the new name, but there was no check to see if + any keys pointed to the old aino. This is now done. + +2005-06-13 04:30 evi1rich + + * src/md-ppc-gcc/exectasks.h: Yay! Got stack-magic stuff working on + OS X. Whoever designed the PPC/Mach-O ABI needs to be slapped + with a dead fish now. + +2005-06-12 21:10 evi1rich + + * src/: filesys.asm, filesys.c, fsdb.c, fsdb_unix.c, + native2amiga.c, include/fsdb.h, include/native2amiga.h: More + syncing with WinUAE 1.0.0. Merged in some filesys changes (this + includes a fix for improving threaded filesys performance). Much + more work to do here. + +2005-06-12 03:35 evi1rich + + * src/bsdsocket-posix-new.c: Some tidying up for the 'new' + bsdsocket emulation. + +2005-06-11 22:06 evi1rich + + * src/: bsdsocket-posix-new.c, bsdsocket.c, include/bsdsocket.h: In + the 'new' bsdsocket emulation, relieved race conditions + associated with gethostbyname and gethostbyaddr somewhat. Instead + of passing the hostent back to the main thread for copying to + Amiga address space, we now copy the hostent within the bsdsocket + emulation thread using a pre-allocated buffer. + + Fixed returning of h_errno for gethostbyname/addr. + + Fixed some compiler warnings. + +2005-06-11 20:01 evi1rich + + * src/: bsdsocket-posix-new.c, bsdsocket.c: Applied a patch from + Jeff Shepherd which improves the 'new' bsdsocket emulation. + Sorry, Jeff. I'd been sitting on this patch for ages. + +2005-06-11 14:52 evi1rich + + * src/bsdsocket-posix-new.c: Adapted the "new" bsdsocket emulation + to the recent changes in the 68k interpreter. + +2005-06-11 01:07 evi1rich + + * src/: gfx-sdl/rawkeys.c, gfx-sdl/sdlgfx.c, gfx-sdl/sdlgfx.h, + keymap/Makefile.am, keymap/amiga_rawkeys.c, + keymap/amiga_rawkeys.h, keymap/keymap_all.h: Added raw + key-mapping for AmigaOS and clones in the SDL driver and set + Ctrl+Left Alt as the modifier for hot-key sequences for AmigaOS + (as the native AmigaOS gfx driver uses). + + Also, raw key-mapping is now the default in the SDL gfx driver + for AmigaOS, BeOS and OS X hosts. + +2005-06-10 17:59 evi1rich + + * src/drawing.c: Sync drawing code with WinUAE 1.0.0. This fixes + the problem where the right border was not always updated, + amongst other things. Also fixed some GCC 4.0 compiler warnings. + +2005-06-10 15:44 evi1rich + + * src/: Makefile.am, cia.c, crc32.c, custom.c, disk.c, unzip.c, + zfile.c, include/cia.h, include/crc32.h, include/disk.h, + include/gui.h, include/zfile.h: Began syncing up to WinUAE 1.0.0. + + Merged in some core emulation changes from WinUAE 1.0.0 including + sprite, bitplane, CIA and floppy disk emulations. + + Also cleaned up some compiler warnings, tidied up whitespace and + removed some dead code in the process. + +2005-06-08 12:45 evi1rich + + * src/targets/: t-amiga.h, t-beos.h, t-unix.h: Don't do the sleep + test on AmigaOS4, MorphOS, BeOS or OS X. Busy-waiting should + never be necessary on these platforms. + +2005-06-08 12:42 evi1rich + + * src/gfx-sdl/sdlgfx.c: Removed a debug statement. + +2005-06-07 14:35 evi1rich + + * configure.in: Updated version number to 0.8.28-CVS. + +2005-06-07 14:17 evi1rich + + * src/main.c: Added build date to log output. + + Updated copyright message to 2005. + +2005-06-07 13:32 evi1rich + + * src/gfx-sdl/sdlgfx.c: With the previous changes to the SDL gfx + driver, we lost the old work-around for OS X, where SDL lies + about the default pixel format for high-colours screens. Fixed. + +2005-06-07 12:59 evi1rich + + * src/main.c: Initialize the graphics system before input devices + (especially the keyboard) are initialized. + +2005-06-07 11:34 evi1rich + + * src/gfx-sdl/sdlgfx.c: Re-wrote SDL gfx driver's screen depth and + screen mode detection. P96 emulation will now be able to use + non-standard fullscreen resolutions and should now always get the + pixel format right. + +2005-05-13 01:40 evi1rich + + * src/include/blkdev.h: Another global fix revealed by GCC 4.0. + +2005-05-13 01:39 evi1rich + + * src/scsiemul.c: Fixed scsi emulation with regard to regstruct + changes. + +2005-05-13 01:21 evi1rich + + * src/gfx-sdl/rawkeys.c: Fixed missing header. + +2005-05-13 00:23 evi1rich + + * src/: cia.c, inputdevice.c, include/autoconf.h, include/cia.h, + include/drawing.h, include/inputdevice.h, include/memory.h, + include/picasso96.h: Fixed visibility of some globals that caused + building with GCC 4.0 to break. + +2005-05-10 02:03 evi1rich + + * src/: fpp.c, gencpu.c, newcpu.c, include/newcpu.h, + md-generic/support.c: Adapted the exception-handling code in the + interpreter in line with the recent changes - that is, it now + accesses via a pointer passed as a parameter rather than a + global. + + Also checked-in remaining changes for flag-handling on generic + hosts. + +2005-05-10 01:46 evi1rich + + * src/md-generic/m68k.h: Adapt m68k flag-handling for generic hosts + to the new world order. I can't think of any architecture that + would benefit from each m68k CCR flag being held in a separate + int (and so being a separate access), so rework this based on the + model that the x86, PPC and 68k hosts already use - the CZNV + flags in one int and the X flag in another. + +2005-05-08 23:20 evi1rich + + * src/newcpu.c: Removed some more dead code from the interpreter + and tidied up some whitespace. + +2005-05-08 23:10 evi1rich + + * src/keymap/keymap_common.h: Applied a patch from Staf Verhaegen + which fixes a typo in the raw key-mapping stuff which broke the + less-than/greater-than key on international keyboards. + +2005-05-07 15:29 evi1rich + + * src/: compemu_raw_x86.c, compemu_support.c: Forgot to modify the + JIT to take account that the X flag is now kept in bit 8 of the + regstruct.x field. Fixed. + +2005-05-07 00:59 evi1rich + + * src/: ar.c, autoconf.c, blitter.c, bsdsocket-posix.c, + compemu_fpp.c, compemu_raw_x86.c, compemu_support.c, custom.c, + debug.c, disk.c, drawing.c, enforcer.c, ersatz.c, expansion.c, + filesys.c, fpp.c, gencomp.c, gencpu.c, hardfile.c, inputdevice.c, + memory.c, misc.c, native2amiga.c, newcpu.c, picasso96.c, + serial.c, uaeexe.c, uaelib.c, gui-muirexx/ami-rexx.c, + include/cpu_prefetch.h, include/events.h, include/newcpu.h, + md-68k/m68k.h, md-68k/m68kops.h, md-68k/support.c, + md-i386-gcc/m68k.h, md-i386-gcc/m68kops.h, md-i386-gcc/support.c, + md-ppc-gcc/m68k.h, md-ppc-gcc/m68kops.h, md-ppc-gcc/support.c: + Woa! The start of some big changes. + + Moved the flag_struct global into the regstruct global, and + changed many accesses to the regstruct global to be done via a + pointer; for instance, a pointer to the regstruct is now passed + to the interpreter's opcode handlers, for instance. + + This allows the compiler to produce much smaller code (and + faster) when building the interpreter. + + Much more work to do along these lines, however. + +2005-05-06 15:16 evi1rich + + * src/: fpp.c, newcpu.c, include/newcpu.h: Some tidying up in the + interpretive fpu emulation and preparation for forthcoming work. + +2005-05-05 00:47 evi1rich + + * src/: events.c, include/events.h: Aw, go on! Inlined do_cycles() + in toto. It does give a performance win. + +2005-05-05 00:46 evi1rich + + * src/newcpu.c: Clean up opcode dispatch loops by factoring out the + opcode logging code. + +2005-05-04 15:08 evi1rich + + * src/: enforcer.c, events.c, sleep.c, include/events.h: Split the + do_cycles() function into two. The part which actually calls the + events handlers is now called do_events() and is called by the + new do_cycles() function which now, one again, is inlined (the + cycle-exact interpreter no longer tries to inline it anyway, so + no worries there). + + Note when cpu_speed=real, do_cycles() checks whether we've + reached the end of the frame and if not ignores cycles (otherwise + it just calls do_events ()). We inline this part for a speed + boost in the interpreter's opcode dispatch loops. + +2005-05-04 14:59 evi1rich + + * src/newcpu.c: Cleaned some more built-up cruft from the + interpreter. + +2005-05-04 14:09 evi1rich + + * src/newcpu.c: Flatten the opcode-handler dispatch loops by inline + do_specialities(). This speeds things up the interpreter by at + least 10%. + +2005-05-04 13:50 evi1rich + + * configure.in, src/Makefile.am, src/cpuopti.c, src/newcpu.c, + src/tools/Makefile.in, src/tools/configure.in: Removed cpuopti + phase when building the CPU emulation. It was only usable on + pre-GCC 3.0 and only on x86 systems and only offered a meagre + performance gain there. + +2005-05-02 21:40 evi1rich + + * src/: gencpu.c, md-68k/Makefile.am, md-68k/m68k.h, + md-68k/m68kops.h, md-generic/Makefile.am, md-generic/m68kops.h, + md-i386-gcc/Makefile.am, md-i386-gcc/m68k.h, + md-i386-gcc/m68kops.h, md-ppc-gcc/Makefile.am, md-ppc-gcc/m68k.h, + md-ppc-gcc/m68kops.h: Separated out optflag_#? code from + md-#?/m68k to md-#?/m68kops.h. + +2005-05-01 22:55 evi1rich + + * src/md-ppc-gcc/m68k.h: Optimized handling of X flag in md-ppc-gcc + optimized flag handling code. + +2005-05-01 21:14 evi1rich + + * src/: md-i386-gcc/support.c, md-ppc-gcc/support.c: Fixed bugs + which broke writing new x86.use_tsc and ppc.use_tbc options to a + config file. + +2005-04-19 11:16 evi1rich + + * src/md-ppc-gcc/support.c: Typo broke OSX/Darwin compile. Fixed. + +2005-04-19 10:41 evi1rich + + * src/: Makefile.am, cfgfile.c, custom.c, events.c, main.c, + sleep.c, include/custom.h, include/events.h, include/hrtimer.h, + include/options.h, include/sysdeps.h, md-68k/Makefile.am, + md-68k/machdep.h, md-68k/rpt.h, md-68k/support.c, + md-generic/Makefile.am, md-generic/machdep.h, md-generic/rpt.h, + md-generic/support.c, md-i386-gcc/Makefile.am, + md-i386-gcc/machdep.h, md-i386-gcc/rpt.h, md-i386-gcc/support.c, + md-ppc-gcc/Makefile.am, md-ppc-gcc/machdep.h, md-ppc-gcc/rpt.h, + md-ppc-gcc/support.c, od-amiga/Makefile.am, od-amiga/hrtimer.h, + od-amiga/main.c, od-amiga/support.c, od-beos/Makefile.am, + od-beos/hrtimer.h, od-generic/Makefile.am, od-generic/hrtimer.h, + od-linux/Makefile.am, od-linux/hrtimer.h, targets/t-amiga.h: + Clean-up and improvements to timer support, including: + + - Added boolean option for x86 targets, x86.use_tsc, to + enable/disable use of the processor's time-stamp counter for + high-resolution timing. Using the TSC gives better performance + (due to the much-reduced overhead) but may cause problems on + machines that do power saving by reducing the CPU clock + frequency's (which also reduces the TSC tick rate). This option + defaults to true. + + - Added boolean option for PPC targets, ppc.use_tbr, to + enable/disable use of the processor timebase register for + high-resolution timing. AFAIK, doesn't have the + frequency-scaling problems that the x86's TSC register does, so + probably you'll want to leave this set to true (the default). + + - On Darwin/PPC hosts (including MacOS X), get the timebase + frequency from the Mach kernel rather than calibrating it. This + is much quicker and more accurate. + + - On AmigaOS4/AmigaONE hosts, get the timebase frequency from the + timer.device's EClock. Again, this is much quicker and more + accurate than calibrating it ourselves. + +2005-04-13 00:45 evi1rich + + * src/custom.c: Make inclusion of avioutput.h header conditional on + AVIOUTPUT macro, not WIN32. + +2005-04-13 00:26 evi1rich + + * src/include/memory.h: Fix for building with support for 24-bit + memory only. Thanks to Henk Jonas for reporting the problem. + +2005-04-12 23:49 evi1rich + + * src/: memory.c, include/memory.h, md-68k/maccess.h, + md-generic/maccess.h, md-i386-gcc/maccess.h, md-ppc/maccess.h, + md-ppc-gcc/maccess.h: Removed some more dead code from the memory + system. + +2005-04-12 23:47 evi1rich + + * src/include/unzip.h: Work-around for compiling on NetBSD. Thanks + to Bernhard Moellemann. + +2005-04-12 23:46 evi1rich + + * src/picasso96.c: Missed some references to bswap32 in the last + check-in. Fixed. + +2005-04-12 23:10 evi1rich + + * src/picasso96.c: Renamed picasso96.c bswap32 function to + p96_bswap32 to avoid collisions with system bswap32 function on + NetBSD. Thanks to Bernhard Moellemann for reporting this. + +2005-01-25 04:00 evi1rich + + * src/: cfgfile.c, disk.c, filesys.c, fsusage.c, memory.c, + caps/caps.c, include/options.h, include/picasso96.h, + include/sleep.h, targets/t-amiga.h: Simplified + conditional-compilation check for AmigaOS-like hosts. + +2005-01-25 03:37 evi1rich + + * src/gfx-sdl/sdlgfx.c: In the SDL gfx driver, now use HW surfaces + for P96 when building for AmigaOS4. + +2005-01-25 03:03 evi1rich + + * src/readcpu.c: Merged a CPU fix from WinUAE 0.9.92 to ensure some + special-case opcodes are not emulated on the 68000/68010. These + are TST.W A0, TST.L A0, TST.x (d16,PC) and TST.x; and CMPI.W + #x,(d16,PC) and CMPI.W #x,(d8,PC,Xn). + +2005-01-24 22:08 evi1rich + + * src/filesys.c: Handling of host file-paths in virtual filesystem + was broken on Amiga hosts. Paths were constructed incorrectly + when a host volume was mounted (the host path to mount ended in a + colon) or if a trailing slash was included in a directory path to + mount. This is now fixed. + +2005-01-17 01:47 evi1rich + + * src/cfgfile.c: Removed obsolete 32bit_blits option from + command-line help. + +2005-01-17 01:43 evi1rich + + * src/cfgfile.c: Changed default configuration. E-UAE no longer + defaults to mounting floppy image df.adf in drive n. By + default now all drives have no image mounted. This makes a lot + more sense to me. ;-) + +2005-01-16 03:44 evi1rich + + * docs/configuration.txt: Another go at fixing the cpu_type= option + in the configuration doc. + +2005-01-16 03:22 evi1rich + + * docs/configuration.txt: Another fix for the configuration doc. + For cpu_type option, the FPU is specified with 68881 not 881. + Thanks to Frank Agnew for spotting this. + +2005-01-15 11:54 evi1rich + + * docs/configuration.txt: Fixed type in configuration doc. That + should be floppytype=. + +2005-01-07 00:45 tag E-UAE-0_8_27 + +2005-01-07 00:45 evi1rich + + * configure.in: Enough! Enough! This is E-UAE 0.8.27 final. + +2005-01-07 00:15 evi1rich + + * src/gfx-sdl/sdlgfx.c: Don't try to use a HW surface for Amiga + screens in SDL gfx driver. This need more testing yet. + +2005-01-06 23:02 evi1rich + + * docs/configuration.txt: Updated configuration doc. + +2005-01-06 22:21 evi1rich + + * src/gfx-x11/xwin.c: X11 gfx driver now has default settings + x11.use_mitshm=true and x11.hide_cursor=true (previously these + defaulted to false). + +2005-01-06 21:56 evi1rich + + * src/: compemu_raw_x86.c, compemu_support.c, include/compemu.h: + Tidied up some compiler warnings when building the JIT. + +2005-01-06 21:25 evi1rich + + * src/od-generic/memory.c: Bugger! - and this one too (and this was + the important one). + +2005-01-06 21:23 evi1rich + + * src/main.c: Missed this file with previous check-in. + +2005-01-06 21:21 evi1rich + + * src/: memory.c, include/memory.h, include/sysdeps.h: Cleared out + some cruft from the JIT direct-memory system. + +2005-01-06 21:18 evi1rich + + * configure.in: Disable building with filesystem threads for now. + It hurts performance on most platforms. + +2005-01-06 21:12 evi1rich + + * src/expansion.c: Fixed compiler warning. + +2005-01-06 02:00 evi1rich + + * src/md-i386-gcc/m68k.h: Tighten constraint on v parameter to i386 + optimized flag-handling function optflag_addb(). Fixes building + with gcc-2.95. + +2005-01-04 01:09 evi1rich + + * debian/: control, menu, rules: Debian build scripts should really + work again now. + +2005-01-04 01:07 evi1rich + + * README: Mention new ALSA driver in user-visible changes in + README. + +2005-01-03 16:14 evi1rich + + * configure.in, src/Makefile.am, src/sd-alsa/Makefile.am, + src/sd-alsa/sound.c, src/sd-alsa/sound.h: Applied patch from Kars + de Jong which merges Heikki Orsila's ALSA driver from UADE and + fixes detection of libscg by the configure script. + +2005-01-03 15:02 evi1rich + + * debian/: README, README.Debian, changelog, control: Updated + scripts for building Debian package. + +2005-01-03 14:45 evi1rich + + * docs/: COMPATIBILITY, CREDITS, FAQ, NEWS, README, + README.PROGRAMMERS, bsdsocket.txt, compiling.txt, + configuration.txt, floppies.txt, keyboard.txt, scsi.txt: Replaced + old UAE documentation with some interim up-to-date documentation. + Much more work to do here. + +2005-01-03 13:34 evi1rich + + * README: Updated README. Trimmed documentation that will be moved + to the docs/ directory. Fixed URL for mailing list. + +2005-01-01 23:59 evi1rich + + * src/picasso96.c: Fixed building JIT compiler when P96 emulation + is not being built. + +2005-01-01 23:57 evi1rich + + * src/od-amiga/: Makefile.am, memory.c: Add support for allocating + JIT cache on AmigaOS-like hosts. This is only useful on AROS at + the moment, since the JIT is currently x86 only. + +2004-12-30 04:11 evi1rich + + * src/compemu_support.c: Disabled some JIT warnings that can flood + when compforcesettings is not set. They're not terribly helpful. + +2004-12-30 04:08 evi1rich + + * src/gui-gtk/gtkui.c: In Gtk+ GUI, JIT page was being disabled + when 68ec020 CPU was selected. Fixed. (Ideally, it should + disabled the memory-access controls when an 68ec020 is selected, + but I'll fix that later.) + +2004-12-14 23:09 evi1rich + + * src/gfx-amigaos/ami-win.c: Temporarily disabled support for + building AmigaOS gfx driver for AROS hosts. It doesn't currently + work on AROS. Also fixed up support for building without CGX + again. + +2004-12-14 23:07 evi1rich + + * src/main.c: Removed some dead code. + +2004-12-14 23:05 evi1rich + + * src/cfgfile.c: Re-implemented -H command-line option on AmigaOS + for selecting screen type. + +2004-12-14 22:59 evi1rich + + * src/custom.c: Fixed some bugs in the code which dynamically + allocates and grows the sprite/color tables for hosts without + virtual memory. The sprite tables weren't actually being + reallocated! This allows, for example, Sanity's Arte demo to run. + Thanks to Thomas Wurgler for reporting the bug. + +2004-12-04 02:16 evi1rich + + * src/gfxlib.c: Don't build gfxlib code. This is not even supported + via a config option at the moment and, anyway, is of dubious + benefit at the moment. Should probaly remove this stuff entirely + at some point. + +2004-12-04 00:17 evi1rich + + * src/cfgfile.c: Removed some options no longer supported from the + help list. + +2004-12-03 01:10 evi1rich + + * src/gfx-amigaos/ami-win.c: In AmigaOS gfx driver, if using + P96/CGX for output and allocation of the RTG-compatible + off-screen buffer fails, then fall back on using graphics.lib for + output. + +2004-12-03 01:07 evi1rich + + * src/gfx-amigaos/ami-win.c: In AmigaOS gfx driver, when using the + delta buffer for output, the delta buffer needs to be cleared + when the display is cleared in flush_clear_screen(). + +2004-12-02 20:50 evi1rich + + * src/sd-amigaos/sound.c: AmigaOS audio driver will now compile + again if AHI SDK isn't available. + +2004-12-02 20:26 evi1rich + + * src/include/newcpu.h: Added kludge to work around name conflict + with the Exception() function on AROS. + +2004-12-02 15:51 evi1rich + + * src/gfx-amigaos/ami-win.c: In AmigaOS gfx driver, replaced code + to allocate pixbuf for delta output. Ooops. + +2004-12-02 15:46 evi1rich + + * src/gfx-amigaos/ami-win.c: In AmigaOS gfx driver, always set + maxblocklines to the screen height so that updates are flushed to + screen once per frame. There doesn't appear to be any advantage + in its original setting of 100. + +2004-12-02 15:12 evi1rich + + * src/gfx-amigaos/ami-win.c: In AmigaOS graphics driver, set + SA_ShowTitle as FALSE when opening a custom screen. This was + screwing mouse movements. Also only dynamically hide mouse + pointer when running in window. On a custom screen, the pointer + is now always hiden. + +2004-12-01 03:14 evi1rich + + * src/gui-muirexx/: UAEGUI.rexx, UAEWB, UAEWB.aux, UAEWB.rexx, + ami-rexx.c: A bunch of fixes for the AmigaOS AREXX interface and + the MUIRexx GUI. This pretty much all works now apart from the + screenmode stuff. + +2004-12-01 02:52 evi1rich + + * src/cfgfile.c: Re-implemented -x and -T command-line options for + the AmigaOS gfx target. -x disables dithering, while -T enables + greyscale mode (both of these options only apply on + palette-mapped screens). + +2004-12-01 02:24 evi1rich + + * src/: uaeexe.c, include/uaeexe.h: Some tidying up. + +2004-12-01 02:22 evi1rich + + * src/cfgfile.c: On Amiga targets default to using joystick 1 for + port 1 (not joystick 0, which will be the mouse on a classic + Amiga). + +2004-12-01 02:18 evi1rich + + * src/: custom.c, drawing.c: Fixed some bugs when using the sprite + collision table with OS_WITHOUT_MEMORY_MANAGEMENT defined. Silly + me. I can't count. ;-) + +2004-11-30 20:54 evi1rich + + * src/od-amiga/main.c: On AmigaOS targets request minimum stack + also when linking against ixemul. + +2004-11-30 20:50 evi1rich + + * src/gui-muirexx/ami-gui.c: Fixed a malloc() bug in path handling + in AmigaOS floppy dialog. + +2004-11-30 04:00 tag E-UAE-0_8_27-RC3 + +2004-11-30 04:00 evi1rich + + * configure.in: Let's call this E-UAE 0.8.27-RC3. + +2004-11-30 03:26 evi1rich + + * src/jd-linuxold/joystick.c: Oops. Removed garbage from Linux + joystick driver. + +2004-11-30 03:20 evi1rich + + * src/picasso96.c: Merge simpler AddTail() implementation to P96 + emulation from WinUAE 0.9.92. + +2004-11-30 03:07 evi1rich + + * src/gui-cocoa/cocoaui.m: In Cocoa floppy dialog, add .ZIP, .DMS + and .FDI extensions to the file filter. + +2004-11-30 03:04 evi1rich + + * src/picasso96.c: Simplified PPC assembly byte-swap code in P96 + emulation. + +2004-11-30 02:10 evi1rich + + * src/drawing.c: Removed dead code. + +2004-11-30 00:16 evi1rich + + * src/gui-gtk/gtkui.c: Added a kludge to the Gtk+ GUI to disable + JIT page when CPU is using 24-bit addressing. + +2004-11-29 23:56 evi1rich + + * src/jd-linuxold/joystick.c: Applied a patch from Nick Seow (with + some tidying up) which fixes the Linux joystick driver to look + for /dev/input/js* device nodes if no /dev/js* nodes can be + found. + +2004-11-29 22:25 evi1rich + + * src/include/options.h: Missed checking in this file when applying + the fixup_joystick_prefs changes in main.c. + +2004-11-29 22:23 evi1rich + + * src/gui-gtk/floppyfileentry.c: Fix set_filename method of the + Gtk+ floppyfileentry widget so that the eject widget is correctly + enabled or disabled. + +2004-11-29 22:06 evi1rich + + * src/gui-gtk/gtkui.c: In Gtk+ GUI, kludge the width of the JIT + cache size widget. This will go away when the JIT page is + redesigned. + +2004-11-29 21:43 evi1rich + + * src/gui-gtk/gtkui.c: in Gtk+ GUI, disable P96 memory widgets when + CPU address range is 24 bits. + +2004-11-29 21:25 evi1rich + + * src/main.c: When fixing up preferences, don't allow joyports to + be configured to use non-existant host joysticks. Try and replace + such settings with a sensible default. + +2004-11-29 21:24 evi1rich + + * src/gui-gtk/gtkui.c: In Gtk+ GUI on gameport page, disable + joysticks options in accordance to the count of joysticks + attached to the host. + +2004-11-27 17:15 evi1rich + + * src/caps/caps.c: Bump soname of CAPS plugin to load on Linux to + version 2. + +2004-11-27 16:49 evi1rich + + * src/md-i386-gcc/m68k.h: Fixed building the x86 optimized + flag-handling code on GCC 3.4.x. For the cmpb function, GCC can + erroneously put the 'd' parameter in %sil or %dil, which are + x86-64 registers not found on ia32. IMHO, this is a bug in GCC, + but, anyway, this can be avoided by tightening the constraint on + the 'd' paramter to use one of the 'q' registers. + +2004-11-27 15:25 evi1rich + + * src/jd-sdl/joystick.c: SDL Joystick driver would segfault if + initialization failed. Fixed. Also, just initialize it once. + +2004-11-27 14:50 evi1rich + + * src/custom.c: Removed a stray #endif left in from debugging. + Ooops. + +2004-11-27 14:40 evi1rich + + * src/: audio.c, blitter.c, custom.c, disk.c, events.c, + include/custom.h, include/options.h: Assorted custom-chip + emulation fixed merged from WinUAE 0.9.92. This includes copper + and blitter timing fixes, improved blitter slowdown + approximation, timing fixes for frame-skipping in cycle-exact + mode, vsync fixes, etc. + +2004-11-27 14:21 evi1rich + + * src/: gui-muirexx/ami-gui.c, gui-muirexx/ami-rexx.c, + od-amiga/ami-disk.c: Some fixes for the AmigaOS targets. Don't + translate AmigaOS paths to Unix paths (we don't use ixemul - + except on MorphOS where libnix is a bit lacking). Display + requesters on the process's default window. + +2004-11-27 14:10 evi1rich + + * src/gfx-amigaos/ami-win.c: Fixed a bug in AmigaOS gfx target, + where keys would get "stuck" down when the UAE window loses + focus. + +2004-11-27 14:05 evi1rich + + * src/gencpu.c: Merged fixed DIVS/DIVU flag handling for 68020+ + from WinUAE 0.9.90. + +2004-11-27 14:02 evi1rich + + * src/newcpu.c: Merged updated 68k exception handling code from + WinUAE 0.9.91. + +2004-11-25 14:14 evi1rich + + * src/keybuf.c: Accept Right Alt as well as Right Ctrl for + firebutton in fake joystick emulation layout 2. Some keyboards, + e.g. Amiga keyboards and some laptops, don't have a Right Ctrl + key. + +2004-11-22 09:10 evi1rich + + * src/newcpu.c: Applied MOVEC fix from WinUAE 0.9.90: access to ISP + register is legal on the 68020. + +2004-11-17 13:26 evi1rich + + * src/gui-gtk/: floppyfileentry.c, floppyfileentry.h: Improvements + to the Gtk+ floppy entry widget: use a (non-editable) entry + widget to display the floppy image name rather than a plain + label; fixed bugs in handling of paths; disable eject widget when + there's no image inserted to eject. + +2004-11-17 13:21 evi1rich + + * src/gui-gtk/gtkui.c: In Gtk+ UI, disable floppy entry widgets for + drives that are disabled. + +2004-11-15 21:22 evi1rich + + * src/gfx-sdl/sdlgfx.c: Removed some debugging statements + accidentally left in. + +2004-11-15 19:49 evi1rich + + * src/gfx-sdl/sdlgfx.c: A bunch of bug fixes and tweaks for the SDL + gfx driver. Notably, fixed surface locking, so now that hardware + surfaces can be used for Amiga as well as P96 screens. + +2004-11-15 19:42 evi1rich + + * src/picasso96.c: Fixed a bug in the P96 code: the on-screen + buffer wasn't being unlocked after flushing pixels. + +2004-11-15 08:51 evi1rich + + * src/inputdevice.c: Don't open the floppy dialog for a drive if + that drives is not enabled. + +2004-11-13 10:53 evi1rich + + * src/drawing.c: When flushing updates to the screen in block mode, + treat consecutive lines separated by a single line into a block. + This speeds up drawing with scanlines (where only every other + line on the screen is updated). + +2004-11-12 16:46 evi1rich + + * src/disk.c: Disable support for floppy save images. This wasn't + working yet, anyway. + +2004-11-12 16:32 evi1rich + + * src/zfile.c: Fixed some compiler warnings. + +2004-11-12 11:38 evi1rich + + * src/gui-gtk/: floppyfileentry.c, floppyfileentry.h: In Gtk+ GUI, + remember last directory used for floppy dialog globally, not + indvidually per drive. + +2004-11-12 11:18 evi1rich + + * configure.in, src/md-68k/m68k.h: Re-worked 68k optimized flag + handling and added configure support for building with optimized + flags on 68k targets. + +2004-11-12 11:06 evi1rich + + * configure.in, src/Makefile.am, src/gencpu.c, src/sysconfig.h.in: + Added support for building with optimized flag handling on x86 + and PPC targets. + +2004-11-12 09:44 evi1rich + + * configure.in: Build on OS X/Darwin with the -mdynamic-no-pic + switch to turn off the generation of position-independent code + (which is - go figure - the default). We don't need it and + leaving it on leads to flabby and slow code (especially in the + CPU emulation). + +2004-11-12 09:26 evi1rich + + * src/serial.c: When serial emulation is built with no back-end, + always claim that there is space in the serial buffer to send + data (when, actually, there isn't even a buffer!). This allows, + for example, Skidmarks to work. + +2004-11-12 09:20 evi1rich + + * src/: custom.c, serial.c, include/serial.h: Merged serial port + emulation from WinUAE 0.9.91. I have not implemented any + back-ends for this yet, so this isn't actually very useful yet. + However, it may make software that tries to use the serial port + play nicer. + +2004-11-04 08:53 evi1rich + + * configure.in: Build with big-endian IEEE fpu code on PowerPC + targets. + +2004-11-04 08:45 evi1rich + + * src/: memory.c, gfx-amigaos/ami-win.c: Some more tweaks for + MorphOS from Morgoth. + +2004-11-04 08:36 evi1rich + + * src/sd-amigaos/sound.c: Fix up AmigaOS sound driver for MorphOS. + Thanks to Morgoth again. + +2004-11-04 08:02 evi1rich + + * src/caps/caps.c: Simplified conditional compilation of + AmigaOS-specific CAPS code. + +2004-11-04 07:44 evi1rich + + * src/td-amigaos/thread.c: Fix AmigaOS thread support on MorphOS. + MorphOS needs to be explicitly told that a new thread use PPC + code (otherwise it defaults to 68k). Thanks to Marcin 'Morgoth' + Kurek for the pointer. + +2004-11-04 07:02 evi1rich + + * src/md-ppc-gcc/m68k.h: Work-around for compiling the PPC + optimized flag handling code with GCC 2.95. + +2004-10-30 11:02 evi1rich + + * src/: newcpu.c, include/newcpu.h: Some tidying up. + +2004-10-30 11:01 evi1rich + + * src/: custom.c, drawing.c, main.c, include/custom.h, + include/drawing.h: On targets with OS_WITHOUT_MEMORY_MANAGEMENT + defined (e.g., AmigaOS-like targets) allocate the sprite + collision table spixels dynamically rather than statically at + load time. This shaves another 10 megs of the BSS size on + AmigaOS. Also cleaned up the handling of the sprite table + allocation, and added some checks. + +2004-10-28 09:57 evi1rich + + * src/md-ppc-gcc/m68k.h: Reworked ppc-gcc CCR flags handling and + implemented optimized flag evaluation code. + +2004-10-28 09:56 evi1rich + + * src/md-i386-gcc/m68k.h: Cleaned up and tweaked i386-gcc CCR flags + implementation and the optimized flag evaluation code. + +2004-10-28 09:27 evi1rich + + * src/: memory.c, include/memory.h: Don't use memory baseaddr table + if not building JIT - it's not currently needed. + +2004-10-28 09:03 evi1rich + + * src/: identify.c, include/identify.h: Fixed compiler warnings, + plus made the identify tables read-only. + +2004-10-26 04:23 evi1rich + + * src/Makefile.am: Bugger! Build scripts still weren't running make + dist in src/od-macosx. Really fixed now! + +2004-10-26 01:34 tag E-UAE-0_8_27-RC2 + +2004-10-26 01:34 evi1rich + + * configure.in: Let's call this E-UAE 0.8.27-RC2. + +2004-10-26 01:33 evi1rich + + * src/md-i386-gcc/support.c: Removed some debugging output that got + left in accidentally. + +2004-10-26 00:39 evi1rich + + * src/gfx-sdl/sdlgfx.c: In the SDL gfx driver, don't use + SDL_WM_ToggleFullScreen. Always close existing window/screen and + open a new screen/window. This seems more robust and less prone + to the vagaries of X window managers. + +2004-10-26 00:23 evi1rich + + * src/gui-gtk/gtkui.c: Check whether binary is running with SUID + bit and if so don't try and start Gtk+ GUI. This allows a binary + with Gtk+ GUI built in to work with SUID. + +2004-10-26 00:21 evi1rich + + * src/main.c: Output version to log when starting. Could do with + outputting more info here to make debug logs easier to use. + +2004-10-25 23:19 evi1rich + + * configure.in, src/od-macosx/Makefile.am: Glue for building + against SDL framework on OS X was not being included with the + distribution tarball. Fixed. + +2004-10-25 22:26 evi1rich + + * src/: newcpu.c, compemu_support.c, gencomp.c, gencpu.c, + include/newcpu.h: Separated cputbl type into two structs: cputbl + and comptbl. This uses less memory and allows code to be + simplified in a couple of places. While we're at it, made the + tables based on these types read-only. + +2004-10-25 22:09 evi1rich + + * src/ar.c: Turned off debugging output in Action Replay emulation. + +2004-10-25 22:08 evi1rich + + * configure.in: Fixed typo in configure script. + +2004-10-25 21:54 evi1rich + + * src/memory.c: Argh! I fixed the Kickstart emulation, but the + loading of Kick images broke. Now both work again. + +2004-10-25 21:36 evi1rich + + * src/memory.c: Kickstart replacement was broken. Fixed. + +2004-10-25 20:23 evi1rich + + * src/drawing.c: Fixed a bug in the drawing initialization code. + This could cause a segfault when called before the screen had + been properly set up. Thanks to Paul Laycock for reporting the + bug. + +2004-10-24 04:57 evi1rich + + * src/main.c: Merge with WinUAE 0.8.27 broke selecting 'Reset' in + Gtk+ GUI to start. This is the easy fix. A better idea would be + making the GUI fully aware of UAE's state and disabling the reset + button when UAE isn't running. I'll save that for later, though. + +2004-10-19 03:02 evi1rich + + * configure.in: A configure fix for systems that cannot include + sys/mount.h without sys/param.h (e.g. NetBSD 2.0). Thanks to + Bernhard Moellemann for reporting this. + +2004-10-18 23:16 evi1rich + + * src/od-amiga/memory.h: Now the sprite bug is fixed, go back to + compiling on OS4.0 with OS_WITHOUT_MEMORY_MANAGEMENT defined + (this knocks 10MB off the BSS size). + +2004-10-18 23:14 evi1rich + + * src/custom.c: Fixed a bug that was breaking the low-memory build + of the sprite tables. + +2004-10-18 23:13 evi1rich + + * src/keymap/keymap.c: Fixed a bug in the keymap code which could + cause a segfault at start-up. + +2004-10-17 02:50 tag E-UAE-0_8_27-RC1 + +2004-10-17 02:50 evi1rich + + * src/gui-gtk/: chipsettypepanel.c, chipsettypepanel.h: Forgot to + check in some new files for Gtk+ UI. Fixed. + +2004-10-17 02:23 evi1rich + + * configure.in: This is now E-UAE 0.8.27-RC1. + +2004-10-17 02:12 evi1rich + + * README: Added sections about bsdsocket emulation and compiling + against SDL framework on OS X to README. + +2004-10-17 02:11 evi1rich + + * configure.in: Added rudimentary configure support for building + Cocoa UI on OS X. + +2004-10-15 01:56 evi1rich + + * src/md-ppc-gcc/exectasks.h: Adapted PPC stack magic code to + compile on other GCC versions other than Apple's. + +2004-10-13 07:34 evi1rich + + * src/gui-gtk/gtkui.c: More clean-up in Gtk+ UI. + +2004-10-13 05:58 evi1rich + + * src/gui-gtk/: Makefile.am, chipsetspeedpanel.c, + chipsetspeedpanel.h, floppyfileentry.c, gtkui.c, util.c, util.h: + Reworked chipset page in Gtk+ UI plus general tidying up and + removing of dead code. + +2004-10-08 01:42 evi1rich + + * src/: fsusage.c, gfx-amigaos/ami-win.c, gui-muirexx/ami-rexx.c, + od-amiga/ami-disk.c: Some clean-ups for AmigaOS targets. + +2004-10-08 00:51 evi1rich + + * src/sysconfig.h.in: Urgh! Actually it appears src/sysconfig.h.in + should be here, since aclocal doesn't want to generate if it's + missing. + +2004-10-08 00:47 evi1rich + + * src/sysconfig.h.in: Removed src/sysconfig.h.in template from CVS. + It doesn't need to be here since it's automatically generated. + +2004-10-08 00:34 evi1rich + + * configure.in, src/md-i386-gcc/support.c, + src/md-ppc-gcc/support.c: Added support for calibrating x86 + processor clock on systems without alarm() or setitimer(). Also + added configure support for detecting alarm() and sync(). + +2004-10-08 00:22 evi1rich + + * configure.in: Added configure support for AROS target. + +2004-10-08 00:21 evi1rich + + * Makefile.am: Fix for build scripts to include m4 directory when + automatically regenerating configure script. + +2004-10-06 04:07 evi1rich + + * src/: bsdsocket-posix-new.c, bsdsocket-posix.c: Fix for both + bsdsocket emulation flavours: handle platforms that don't have + IPPROTO_IPIP and IPPROTO_TP when mapping sockopts. Thanks to + Fredrik Strandberg for reporting this problem. + +2004-10-06 04:01 evi1rich + + * src/: gfx-sdl/rawkeys.c, gfx-sdl/sdlgfx.c, gfx-sdl/sdlgfx.h, + gfx-beos/be-Input.cpp, keymap/beos_rawkeys.c, + keymap/beos_rawkeys.h, keymap/keymap.c, keymap/keymap.h, + keymap/keymap_common.h, keymap/quartz_rawkeys.c, + keymap/quartz_rawkeys.h, keymap/x11pc_rawkeys.c, + keymap/x11pc_rawkeys.h: Began clean-up of support for raw key + mapping. + +2004-10-04 21:10 evi1rich + + * src/custom.c: Applied a blitter timing fix from the Maestro, Toni + Wilen. This fixes graphics corruption in, for example, the Desert + Dream demo. + +2004-10-04 21:08 evi1rich + + * src/newcpu.c: Fixed a segfault which occurred when dumping CPU + state after a panic. + +2004-10-03 21:42 evi1rich + + * README: Added more information to README. + +2004-10-03 21:37 evi1rich + + * src/: gfx-sdl/sdlkeys.c, gfx-x11/x11keys.c, + keymap/hotkeys_common.h: Added hotkey (F12+F) for Action Replay + freeze button to remaining gfx targets. + +2004-10-03 21:30 evi1rich + + * src/gfx-amigaos/ami-win.c: Fixed a typo in the AmigaOS gfx driver + mouse grab code and added a hot-key combination for the Action + Replay freeze button. + +2004-10-03 20:45 evi1rich + + * src/gfx-amigaos/ami-win.c: Added support for new OS4.0 + WA_MouseLimits tag to mouse grab code in AmigaOS gfx driver to + limit the grabbed pointer to the inner window. + +2004-09-28 22:09 evi1rich + + * src/gui-gtk/gtkui.c: Moved P96 memory settings widgets from gfx + page to memory page in Gtk+ UI. + +2004-09-28 21:41 evi1rich + + * src/gui-gtk/gtkui.c: Fixed a bug which causing the Gtk+ GUI to + not cleanly close. + +2004-09-28 04:14 evi1rich + + * configure.in, src/Makefile.am, src/ar.c: Added support for + building the Action Replay cartridge emulation. + +2004-09-28 04:13 evi1rich + + * README: Some minor tweaks to the README. + +2004-09-27 08:17 evi1rich + + * src/gfx-amigaos/ami-win.c: Added support for grabbing input focus + in AmigaOS gfx target when built for OS4.0. + +2004-09-27 08:16 evi1rich + + * configure.in, src/Makefile.am: Some minor tidying up in the build + scripts. + +2004-09-25 12:30 evi1rich + + * src/gfx-amigaos/ami-win.c: Improved host pointer hiding in + windowed mode for AmigaOS gfx target. As well as checking the + window bounds, also check whether the window is obscured by + another window at the pointer position. + +2004-09-22 20:34 evi1rich + + * src/od-amiga/main.c: Fixed compiler warning (missing header + included). + +2004-09-22 20:32 evi1rich + + * src/gfx-sdl/sdlgfx.c: Added some work-arounds for using the SDL + gfx driver on AmigaOS4.0. Hardware surfaces are problematic there + at the moment. + +2004-09-22 20:29 evi1rich + + * src/include/sleep.h: Now that the culprit of the timing problems + on OS4.0 has been identified and it's not the timing code, + re-instate use of TimeDelay() for sleeping on OS4.0. Also, prefer + this to SDL_TimeDelay() when building against SDL (since the SDL + version busy-waits). + +2004-09-22 20:26 evi1rich + + * src/od-amiga/memory.h: Don't define OS_WITHOUT_MEMORY_MANAGEMENT + for just now when building for AmigaOS4.0, because this (for same + reason yet to be fathomed) causes huge slow-downs with sprite + rendering (or possibly sprite-sprite collision detection) in real + CPU mode. Needs investigation... + +2004-09-16 08:09 evi1rich + + * src/gfx-amigaos/ami-win.c: Replaced host mouse-pointer hiding + behaviour for AmigaOS gfx driver. Now it will completely blank + the pointer when using a custom screen or when the pointer is + inside the UAE window when running in a window. When the host + pointer is moved outside of the window, the default pointer image + will re-appear. This cures the annoying and disorientating + "loss" of the pointer when running in windowed mode. The code add + needs tidying up, but that can wait until the AmigaOS gfx driver + itself is re-worked (after the next release). + +2004-09-16 02:24 evi1rich + + * src/gfx-x11/xwin.c: Fixed a typo introduced in a recent change in + the X11 driver which was causing the UAE window not to be closed + (causing extra windows to be created when P96 was opened, on + resolution changes, etc...). + +2004-09-15 08:04 evi1rich + + * src/gui-muirexx/ami-rexx.c: Fix up UAE side of MUIRexx GUI so + that it compiles when SDL graphics driver is used. + +2004-09-13 11:48 evi1rich + + * src/filesys_unix.c: Fixed typo in conditional inclusion of + sys/statvfs.h was causing problems on FreeBSD (and probably + elsewhere). Thanks to Simon Dick for reporting the problem. + +2004-09-10 22:11 evi1rich + + * src/gui-gtk/: floppyfileentry.c, floppyfileentry.h, gtkui.c: + Re-implemented a title string for the insert floppy file dialogs + in the Gtk+ GUI. This was another feature that Martin's re-write + didn't posses. + +2004-09-10 00:18 evi1rich + + * src/gui-gtk/gtkui.c: Fixed a bug in the Gtk+ UI that was causing + boot priority value to be ignored when adding a new virtual + filesystem. + +2004-09-09 22:19 evi1rich + + * src/gui-gtk/floppyfileentry.c: Fix for building Gtk+ UI with GCC + 2.95. + +2004-09-09 21:47 evi1rich + + * src/bsdsocket-posix.c: Fix for building on GCC-2.95. + +2004-09-09 21:36 evi1rich + + * src/newcpu.c: Fixed the problem of UAE segfaulting when started + with more than 32MB of Z3 memory. This was because of the NATMEM + system failing to allocate a chunk this large and turning off + direct-memory access. The JIT, however, was not noticing this and + still trying to use direct-memory. Solution: force a re-check of + the JIT settings before starting the CPU emulation proper. + +2004-09-09 02:02 evi1rich + + * src/gui-muirexx/UAEWB: Modified UAEWB start-up script for MUIRexx + GUI. Don't fail on errors and don't check for ixemul.library + (which isn't necessary with this version of UAE). + +2004-09-09 01:59 evi1rich + + * src/gui-muirexx/ami-rexx.c: Updated VERSION ARexx command for + MUIRexx GUI to return current information. + +2004-09-09 01:28 evi1rich + + * src/gfx-amigaos/ami-win.c: Started to sort out the mess that is + the AmigaOS graphics driver. Re-wrote the code to open UAE on a + custom screen, preferably using the best RTG screen-mode that is + available. Lots more work to do here, cleaning up, removing + duplicate code, etc. + +2004-09-08 21:11 evi1rich + + * src/od-amiga/main.c: Don't set minimum stack when building on + OS4.0 yet because this appears to be broken in current clib2. + Need to check this... + +2004-09-08 21:08 evi1rich + + * src/gui-muirexx/ami-rexx.c: Re-enabled FAKEJOYSTICK ARexx command + for MUIRexx GUI to stop it complaining. It's a no-op for now, + though. + +2004-09-08 21:06 evi1rich + + * src/gfx-amigaos/ami-win.c: Re-enable frame counter in AmigaOS + graphics driver. This is used by the MUIRexx GUI to display the + FPS rate. + +2004-09-08 20:40 evi1rich + + * src/gui-muirexx/: ami-gui.c, ami-rexx.c: Fix-up UAE-side of the + MUIRexx GUI. Now works on OS4.0 too. + +2004-09-08 00:55 evi1rich + + * src/od-amiga/main.c: Support stack enlargement on AmigaOS 4 + hosts. + +2004-09-08 00:55 evi1rich + + * src/Makefile.am: Add new bsdsocket emulation + bsdsocket-posix-new.c to the distribution tarball. + +2004-09-07 23:37 evi1rich + + * src/compemu_support.c: More tidying up of log messages. + +2004-09-07 23:01 evi1rich + + * src/: od-amiga/main.c, targets/t-amiga.h: Added AmigaOS-specific + logging calls which don't log to stderr when UAE is launched from + WB. + +2004-09-07 22:59 evi1rich + + * src/compemu_fpp.c: Implemented flush_log() call. + +2004-09-07 22:58 evi1rich + + * src/: compemu_raw_x86.c, fpp.c, sleep.c, writelog.c, + include/sysdeps.h, md-i386-gcc/support.c, md-ppc-gcc/support.c, + targets/t-beos.h, targets/t-unix.h: Implemented flush_log() call, + plus some random tidying up of log messages. + +2004-09-07 16:16 evi1rich + + * src/: cfgfile.c, targets/t-amiga.h, targets/t-beos.h, + targets/t-unix.h: Allow target-specific default paths (floppy + path, rom path, etc) and support substitution of '~' for home + directory in these paths. AmigaOS target now defaults to paths + 'roms', 'floppies' and 'hardfiles' relative to PROGDIR:, others + default to home directory for now. + +2004-09-07 16:09 evi1rich + + * src/gui-gtk/gtkui.c: Use PACKAGE_NAME macro for window and dialog + title, etc. rather than hard coding these as "UAE". + +2004-09-07 16:06 evi1rich + + * configure.in: Let's call this E-UAE, since that's what + everybody's calling it anyway. + +2004-09-07 16:05 evi1rich + + * src/: main.c, gfx-amigaos/ami-win.c, gfx-beos/be-Window.cpp, + gfx-sdl/sdlgfx.c, gfx-x11/xwin.c: Use PACKAGE_NAME macro for + window and dialog titles, etc. rather than hard-coding them as + "UAE". + +2004-09-07 15:47 evi1rich + + * src/memory.c: Tried to make failure to load a Kickstart image + more robust and predictable. Only use Kickstart emulation, if no + image is specified - not simply if an image fails to load. Also, + if decoding of encrypted images or the check-summing of an image + fails, then fail and restart UAE with GUI - don't try and + continue with a non-functional Kickstart image. + +2004-09-07 15:38 evi1rich + + * src/newcpu.c: Try to restart UAE after putting up the "Kickstart + requires a 68020" requester. + +2004-09-07 11:22 evi1rich + + * src/Makefile.am: Clean-up of main makefile. Should now behave + better under parallel make, but still doesn't scale well. Need a + better approach. + +2004-09-07 09:34 evi1rich + + * README: Updated README file. + +2004-09-07 09:22 evi1rich + + * src/ersatz.c: If Kickstart emulation fails, allow UAE to restart + rather than abort (changes merged from WiUAE 0.9.90). + +2004-09-07 09:11 evi1rich + + * src/: main.c, gui-cocoa/cocoaui.m, gui-none/nogui.c, + gui-beos/gui.cpp: Fixes for re-starting UAE. If a restart is + called with an attempt to force the config GUI to open (e.g., due + to some fatal config problem) and we cannot display a config GUI + (perhaps because we don't have one) then simply exit. + +2004-09-07 09:07 evi1rich + + * src/memory.c: Using a host Kickstart ROM on AmigaOS broke with + the WinUAE 0.8.27 merge. Fixed. Also, when loading a Kickstart + image file, don't try alternative hard-coded locations. This + isn't the place to do this. + +2004-09-07 09:03 evi1rich + + * src/gui-gtk/gtkui.c: Fixes for starting and tearing-down the Gtk+ + GUI. Now works when UAE proper is restarted. + +2004-09-07 08:49 evi1rich + + * src/disk.c: Fix for restarting the floppy emulation. + +2004-09-07 08:48 evi1rich + + * src/: gfx-sdl/sdlgfx.c, gfx-x11/xwin.c: Fixes for restarting the + X11 and SDL graphics drivers. + +2004-09-07 08:46 evi1rich + + * src/: md-i386-gcc/support.c, md-ppc-gcc/support.c: On x86 and PPC + machines, don't re-do the timing tests when restarting UAE. + +2004-09-07 08:43 evi1rich + + * src/include/sleep.h: Using TimeDelay() for sleeping on AmigaOS 4 + has unpredictable results it seems. Go back to using Delay() for + now, until I implement a better solution. + +2004-09-06 05:18 evi1rich + + * src/memory.c: Fixed a bug introduced with the WinUAE 0.8.27 merge + that was stopping the Kickstart emulation working. + +2004-09-04 03:06 evi1rich + + * configure.in, src/Makefile.am: Added automake support for cocoa + GUI (configure support still to come). Also started to tidy up + configure script. Attempted to stop results from individual tests + polluting each other. This solves the problem building against + libscg and the SDL framework on OS X. It'll also probably make + configuring slightly faster on slow machines. Much more work top + be done here... + +2004-08-28 11:42 evi1rich + + * src/gui-cocoa/: Makefile.am, cocoaui.m: Added the beginnings of + Cocoa GUI for OS X from Steven Saunders. Just disk swapping and + alert dialogs for now, but it's a good start! Configure support + still to do. + +2004-08-28 11:31 evi1rich + + * configure.in, m4/as-objc.m4: Added configure support for + detecting Objective C compiler (borrowing an m4 script from the + GStreamer project). + +2004-08-28 11:22 evi1rich + + * src/filesys.c: Another go at fixing the datestamp issue with the + virtual filesystem. The previous attempt wasn't taking account of + DST when convert to an Amiga time to a host time. This is now + fixed. We still need a more portable way of doing these + conversions, however. + +2004-08-05 04:10 evi1rich + + * src/: compemu_support.c, od-beos/Makefile.am, od-beos/memory.c, + od-generic/Makefile.am, od-generic/memory.c, + od-linux/Makefile.am, od-linux/memory.c: Split out JIT cache + allocation from core code and add platform-specific + implementations. + +2004-08-05 03:58 evi1rich + + * src/compemu_support.c: Typo in previous fix broken JIT natmem + translation. Fixed. + +2004-08-05 01:59 evi1rich + + * src/gencpu.c: Removed some more obsolete code. + +2004-08-04 17:13 evi1rich + + * src/blkdev.c: Rename ioctl global back to have_ioctl to avoid + conflict on BeOS. This got broken when merging with WinUAE + 0.8.27. + +2004-08-04 17:03 evi1rich + + * src/compemu_support.c: Merging with WinUAE 0.8.27 broke JIT when + built without natmem translation. Trivial fix. + +2004-08-04 14:43 evi1rich + + * src/targets/t-unix.h: On OS X, default config file name should be + "default.uaerc" since dot files don't show up in Finder. (I + previously did this by defining OPTIONSFILENAME when configuring + on OS X, but this is now done automagically.) + +2004-08-04 14:08 evi1rich + + * src/gui-muirexx/ami-gui.c: Fixes for MUIRexx GUI interface so + that it can be used with the SDL gfx target. + +2004-08-04 14:06 evi1rich + + * src/include/picasso96.h: Fix for building P96 emulation on an + AmigaOS target. + +2004-08-04 14:05 evi1rich + + * src/picasso96.c: Fix for PPC inline assembly code so that it'll + compile with GCC on OS X and elsewhere. Ugh! + +2004-08-04 02:19 evi1rich + + * src/: blkdev-libscg.c, cfgfile.c, include/options.h: Added + scsi_device config file option which specifies the name of the + SCSI device or SCSI bus to use with the SCSI emulation. This is + currently supported by the libscg back-end and will be passed + verbatim to libscg. The UAE_SCSI_DEVICE env variable is still + supported and will override the scsi_device option if present. + Example usage: set to 'ATAPI' to use the Linux-2.6 ATA packet + interface; set to 'IOCompactDiscServices/0' to use the first + CD-ROM drive on OS X. + +2004-08-04 01:16 evi1rich + + * configure.in: Let's call this 0.8.27 now. + +2004-08-04 01:02 evi1rich + + * src/sd-sdl/sound.c: Applied fix for 8-bit SDL sound from Heikki + Orsila. + +2004-08-04 00:49 evi1rich + + * src/od-amiga/main.c: Add support for SDL in AmigaOS target. + +2004-08-04 00:43 evi1rich + + * src/gui-gtk/cputypepanel.c: Added support for selecting 68060 + processor in GTK+ GUI. + +2004-08-04 00:28 evi1rich + + * src/memory.c: Only use host Kickstart ROM on 'classic' AmigaOS - + not OS4.0 or MorphOS. + +2004-08-04 00:03 evi1rich + + * src/gfx-sdl/sdlgfx.c: Debug-logging of key-presses was + accidentally left in. Fixed. + +2004-08-03 23:39 evi1rich + + * src/: blkdev.c, bsdsocket-posix.c, bsdsocket.c, compemu_fpp.c, + compemu_raw_x86.c, compemu_support.c, gencomp.c, gencpu.c, + hardfile.c, inputdevice.c, inputevents.def, keybuf.c, missing.c, + newcpu.c, savestate.c, scsiemul.c, uaelib.c, unzip.c, zfile.c, + gfx-amigaos/ami-win.c, gfx-beos/be-Input.cpp, gfx-sdl/sdlgfx.c, + gfx-sdl/sdlkeys.c, gfx-x11/x11keys.c, gfx-x11/xwin.c, + include/bsdsocket.h, include/cpu_prefetch.h, include/events.h, + include/gfxfilter.h, include/keyboard.h, include/newcpu.h, + include/unzip.h, include/xwin.h, include/zfile.h, + keymap/hotkeys_common.h: Final sync with WinUAE 0.8.27 plus some + tidying up. + +2004-08-03 23:31 evi1rich + + * src/main.c: Added support for scsilog command-line parameter + which enables - surprise, surprise - debug logging for the SCSI + emulation. + +2004-08-03 21:15 evi1rich + + * src/debug.c: Debuffer memory access routines need to have + REGPARAM2 attribute. Fixed. + +2004-08-03 15:18 evi1rich + + * src/newcpu.c: Fixed broken interrupt-handling. The new interrupt + code was not servicing interrupts when built without JIT support. + +2004-08-03 15:13 evi1rich + + * src/: custom.c, newcpu.c, include/newcpu.h: Merged new interrupt + handling code from WinUAE 0.8.27. + +2004-08-03 13:47 evi1rich + + * src/: gfx-sdl/rawkeys.c, gfx-sdl/sdlgfx.c, gfx-sdl/sdlgfx.h, + keymap/Makefile.am, keymap/keymap.c, keymap/keymap.h, + keymap/quartz_rawkeys.c, keymap/quartz_rawkeys.h, + keymap/x11pc_rawkeys.c, keymap/x11pc_rawkeys.h: Add modifier_hack + support to SDL gfx driver (and to the keymap layer). Also laid + some groundwork for eventually tidying up keymap layer. + +2004-08-03 13:04 evi1rich + + * src/keymap/: quartz_rawkeys.c, quartz_rawkeys.h: Fix up Quartz + raw key handling. + +2004-08-01 10:30 evi1rich + + * configure.in, src/filesys.c, src/sysconfig.h.in: Back out option + of using the SYSV global timezone for computing local date-stamps + on files in the virtual filesystem. The timezone global gives + only the offset to UTC from the primary timezone (it doesn't + account for DST), plus configure support was broken on *BSD + anyway (where there's a timezone() function). + +2004-08-01 10:27 evi1rich + + * src/: akiko.c, cia.c: Fixed broken usage of REGPARAM macro. + +2004-08-01 10:23 evi1rich + + * src/include/sysdeps.h: Fix for using REGPARAM macro on GCC 3.4.x. + +2004-07-31 22:11 evi1rich + + * m4/ac_var_timezone_externals.m4: Forgot to check in + ac_var_timezone_externals.m4 file. This is required for configure + support for the timzone fix in the virtual filesystem. + +2004-07-31 02:07 evi1rich + + * src/: custom.c, include/custom.h: Sync with WinUAE 0.8.27. + +2004-07-31 01:37 evi1rich + + * src/: blitter.c, custom.c, include/blitter.h: Sync with WinUAE + 0.8.27. + +2004-07-31 01:16 evi1rich + + * src/: custom.c, picasso96.c, include/picasso96.h: Sync with + WinUAE 0.8.27. + +2004-07-31 00:58 evi1rich + + * src/: memory.c, gui-muirexx/ami-rexx.c, include/autoconf.h, + include/blkdev.h, include/memory.h, include/newcpu.h, + include/savestate.h, include/scsidev.h, include/sysdeps.h: Sync + with WinUAE 0.8.27. + +2004-07-31 00:25 evi1rich + + * src/: drawing.c, include/drawing.h: Sync with WinUAE 0.8.27. + +2004-07-30 23:52 evi1rich + + * src/: ar.c, compemu_fpp.c, driveclick.c, expansion.c, + filesys.asm, fpp.c, inputdevice.c, include/inputdevice.h, + include/keybuf.h: Synced with WinUAE 0.8.27. + +2004-07-30 21:39 evi1rich + + * src/: audio.c, debug.c, identify.c, include/debug.h, + include/identify.h: Sync with WinUAE 0.8.27. + +2004-07-30 21:02 evi1rich + + * configure.in, src/filesys.c, src/sysconfig.h.in: Fix for + date-stamps on files in the virtual filesystem on Unix systems. + When the local timezone was not UTC, the date-stamp on files was + not being converted to the local timezone. This fix may need to + be applied elsewhere. I need to verify which systems return a + local date-stamp when stat()ing a file. + +2004-07-30 20:58 evi1rich + + * src/gui-gtk/: cpuspeedpanel.c, gtkui.c: In Gtk+ GUI, handle + change of Dont busy wait widget with a separate signal. This + fixes problem with this widget being incorrectly initialized. + +2004-07-30 15:31 evi1rich + + * src/: filesys.c, hardfile.c, include/filesys.h: Applied a patch + from Toni Wilen which implements the TD_GETGEOMETRY command for + hardfiles (and cleans up some other bits and pieces). This fixes + support for using the latest versions of SmartFilesystem with + hardfiles. + +2004-07-28 23:48 evi1rich + + * src/cia.c: Applied patch from Toni Wilen which should fix + problems with clock synchronization. + +2004-07-28 21:21 evi1rich + + * src/caps/caps.c: Added support for using the m68k-amigaos CAPS + plug-in on OS4.0. At the moment I have integrated the emulator + stubs for calling the CAPS routines into UAE. These should really + be in a stand-alone shared library (and thus transparent to UAE), + but I haven't been able to get that to work so far. + +2004-07-28 21:02 evi1rich + + * src/sd-amigaos/sound.c: Clear linkio when shutting down AmigaOS + sound driver. Fixes problems when restarting the audio system + (e.g. after a config change). + +2004-07-12 13:10 evi1rich + + * src/gui-gtk/gtkui.c: New cfgfile API broke saving config files. + Fixed (although it doesn't yet support the separate host and VM + configs). + +2004-07-12 13:08 evi1rich + + * src/: cfgfile.c, filesys.c, main.c, include/filesys.h, + include/options.h: Sync with WinUAE 0.8.27. + +2004-06-27 23:56 evi1rich + + * src/: main.c, od-amiga/main.c, od-amiga/support.c, + targets/t-amiga.h: Removed osdep_init() hack in main.c. It was + only used to set up timer.device on 68k Amigas. This is now + implemented from od-amiga/main.c. + +2004-06-27 23:10 evi1rich + + * amiga/source/bsdsocket.e, src/bsdsocket-posix.c: Another attempty + to get the old bsdsocket code to work. 1) Took out the abort + lock. Didn't work here either. 2) Merged some of Jeff's code + from the new bsdsocket handler for mapping socket options and + errnos. 3) Implemented new setsocketopt based on the Jeff's + code. 4) Tidied up WaitSelect(). 5) Fixed amiga-side of + WaitSelect(). When the select returns positive, we must return no + signals. + + Hey. AmTelnet now works. :-) + +2004-06-27 22:03 evi1rich + + * src/: bsdsocket-posix-new.c, bsdsocket.c, include/bsdsocket.h: + Merged latest bsdsocket-new patch from Jeff Shepherd. In Jeff's + words: 1> Mostly debug lines. They help me debug problems 2> + Fixed a bug in host_gethostbynameaddr where the addrtype wasn't + being passed to the socket thread. 3> Implemented + getprotobynumber by splitting the common code out of + getprotobyname. 4> Close all the open sockets when the library + closes. 5> Don't call shutdown on any socket unless explicitly + asked to. If you shutdown a socket waiting for accept, any socket + that was dup'ed from that socket will now fail their accept calls + with EINVAL as the errno. 6> Fixed a bug in getsockopt. 7> + Implemented SetDTableSize. 8> Implemented locksigqueue, + unlocksigqueue things. + +2004-06-25 03:08 evi1rich + + * configure.in: Added configure support for building FDI support + with the config option --enable-fdi (now that FDI is a + compile-time option). It is enabled by default. + +2004-06-25 03:05 evi1rich + + * src/: fdi2raw.c, include/fdi2raw.h: Sync with WinUAE 0.8.27. + +2004-06-25 01:07 evi1rich + + * src/include/sleep.h: Added trivial implementation of uae_msleep() + for AmigaOS using the amiga.lib TimeDelay() fn. Why didn't I + think of that before? + +2004-06-25 01:01 evi1rich + + * src/gfx-amigaos/ami-win.c: Fixed gfx-amigaos implementation of + flush_clear_screen(). It now properly clears based on the window + size, rather than the size of the UAE display area. Also, when + opening a user screen and the UAE display area is smaller than + the screen, centre the display on the screen. + +2004-06-20 03:52 evi1rich + + * src/gfx-beos/be-UAE.cpp: Removed duplicate debuggable and + mousehack fns from BeOS graphics driver. + +2004-06-20 03:29 evi1rich + + * configure.in, src/gfx-beos/be-UAE.cpp, src/od-beos/main.cpp, + src/gfx-beos/be-UAE.h, src/gfx-beos/be-Window.cpp, + src/gfx-beos/be-Window.h, src/gfx-beos/beos.cpp: A first cut at + getting Axel's BeOS graphcis driver to work, adapting to the + changes since 0.8.17. No P96 as yet, and lots of work to do. + +2004-06-20 02:58 evi1rich + + * src/gfx-beos/: be-Input.cpp, be-Input.h: Adapt BeOS gfx driver to + new current input API and remove joystick code (which is now + handled by a separate joystick driver). + +2004-06-20 02:45 evi1rich + + * src/gfx-beos/: Makefile.am, be-Input.cpp, be-Input.h, be-UAE.cpp, + be-UAE.h, be-Window.cpp, be-Window.h: Added Axel's BeOS graphics + driver from BeUAE (Note this doesn't work yet). + +2004-06-20 02:41 evi1rich + + * src/md-generic/exectasks.h: Fixed typo in dummy generic stack + magic stuff. Thanks to Uwe Pannecke for spotting this. + +2004-06-20 02:39 evi1rich + + * src/jd-beos/joystick.cpp: Added missing + get_joystick_widget_type() function to BeOS joystick driver. + +2004-06-20 02:26 evi1rich + + * configure.in: Config script wasn't exporting $JOYLIBS to + Makefiles. Fixes building of BeOS joystick driver. + +2004-06-16 12:01 evi1rich + + * src/bsdsocket-posix-new.c: A stray character crept into the code. + Fixed. + +2004-06-16 11:13 evi1rich + + * src/bsdsocket-posix-new.c: Merged some more of Jeff's work on the + new bsdsocket code. This adds null pointer checks to the + copysockaddr_x functions and fixes a problem when copying the + sockaddr when doing a recvfrom. + +2004-06-16 03:35 evi1rich + + * src/bsdsocket-posix-new.c: Fixed breakage on GCC-2.95 in new + bsdsocket code. + +2004-06-16 03:31 evi1rich + + * src/bsdsocket-posix-new.c: Applied patch from Jeff Shepherd to + tidy up the handling of the select abort mechanism in the new + bsdsocket code. + +2004-06-16 03:05 evi1rich + + * src/bsdsocket-posix-new.c: Applied patch from Jeff Shepherd which + adds supports for a whole raft of extra socket options to the new + bsdsocket code. + +2004-06-16 02:29 evi1rich + + * src/bsdsocket-posix-new.c: Applied patch from Jeff Shepherd which + fixes problems in the emulation of blocking socket calls in the + new bsdsocket code. This is similar to what I did in the old + code, but implemented slightly differently. Don't select on read + for recv and accept calls and don't select on write for send and + connect calls. This speeds things up and cures bogus accepts, + etc. + +2004-06-16 02:14 evi1rich + + * src/bsdsocket-posix-new.c: I've finally cracked the WaitSelect + problem in the new bsdsocket code - I think. When doing the wait + on the 68k side, multiple signals can arrive at the same time. + The trick seems to be if both the signal we're WaitSelecting on + and a signal that the sockets we're selecting on arrive at the + same time - then use this as a sign the thread has done the + select and don't bother waiting for it to finish. Fingers crossed + - this seems to cure all the deadlock problems (and no + semaphores required ;-). + +2004-06-16 00:45 evi1rich + + * src/: bsdsocket-posix-new.c, include/bsdsocket.h: Removed the + abort lock from the new bsdsocket code. It was causing more + problems than it was solving. + +2004-06-15 22:14 evi1rich + + * src/bsdsocket-posix-new.c: Applied a patch from Jeff Shepherd + which fixes a bug in dup2socket in the new bsdsocket code. + +2004-06-15 22:01 evi1rich + + * src/bsdsocket-posix-new.c: Fixed a race condition in the new + bsdsocket code when asking a socket thread to quit. + +2004-06-15 19:04 evi1rich + + * configure.in: Forgot to add src/gui-beos as a configure target. + Fixed. + +2004-06-15 14:13 evi1rich + + * src/Makefile.am, configure.in, src/od-beos/Makefile.am, + src/od-beos/beos.cpp, src/od-beos/gfx.h, src/od-beos/gui.cpp, + src/od-beos/sound.cpp, src/od-beos/sound.h, + src/gfx-beos/Makefile.am, src/gfx-beos/beos.cpp, + src/gfx-beos/gfx.h, src/gui-beos/Makefile.am, + src/gui-beos/gui.cpp, src/sd-beos/Makefile.am, + src/sd-beos/sound.cpp, src/sd-beos/sound.h: Move graphics, gui + and sound drivers for BeOS to separate directories. + +2004-06-15 12:48 evi1rich + + * configure.in, src/Makefile.am, src/td-beos/Makefile.am, + src/td-beos/thread.c, src/td-beos/thread.h: Added native BeOS + thread layer based on Axel's BeUAE implementation. + +2004-06-14 23:14 evi1rich + + * configure.in: Fixed typos that were stopping the new bsdsocket + emulation from being configured. + +2004-06-14 22:21 evi1rich + + * src/gui-gtk/gtkui.c: Forgot to turn off debugging in last GTK+ + change. + +2004-06-14 21:20 evi1rich + + * src/debug.c: Made activate_debugger() obey the target's + debuggable() function, so that UAE won't try and start the + debugger on systems that don't support it. Also, made + activate_debugger() try to switch gfx mode from full-screen to + windowed if necessary and possible. This solves the problem where + the user could be locked out if the gfx mode is non-cooperative + and the debugger is started. + +2004-06-14 16:14 evi1rich + + * src/gui-gtk/: gtkui.c, led.c: Fixed some bugs in the GTK+ UI. + Don't try and redraw the LED widgets if they are not actually + drawable - i.e. mapped and visible. + +2004-06-14 15:17 evi1rich + + * src/gui-gtk/gtkui.c: Fixed a bug with the GTK+ floppy dialogs. + The main GUI window must be instantiated before trying to display + a dialog - so check first. + +2004-06-14 15:08 evi1rich + + * src/: inputdevice.c, inputevents.def, gfx-amigaos/ami-win.c, + gfx-sdl/sdlkeys.c, gfx-x11/x11keys.c, include/keyboard.h, + keymap/hotkeys_common.h: Added support for 3 more hot-key + functions to do a warm reset, cold reset and to start the + debugger. + +2004-06-14 13:30 evi1rich + + * src/gui-gtk/: floppyfileentry.c, floppyfileentry.h, gtkui.c: + Allowed GTK+ floppy dialog to again be popped up with a hotkey + combination. Martin's patch broke this. + +2004-06-14 12:53 evi1rich + + * src/gui-gtk/floppyfileentry.c: GTK+ floppy dialogs now again + remember the last directory used. Martin's patch broke this. + +2004-06-14 02:40 evi1rich + + * src/gfx-amigaos/ami-win.c: Cleaned up AmigaOS gfx driver, + re-enabled appwindow support and made the main window's close + gadget quit UAE rather than start the debugger (which was + completely non-intuitive). + +2004-06-14 00:59 evi1rich + + * src/: fsusage.c, include/sleep.h, include/sysdeps.h, + jd-amigaos/joystick.c, md-ppc-gcc/support.c, od-amiga/ami-disk.c, + gfx-amigaos/ami-appw.c, gfx-amigaos/ami-win.c: Various trivial + fixes for building on AmigaOS 4. + +2004-06-14 00:52 evi1rich + + * src/gui-muirexx/ami-gui.c: Fixed MUIRexx GUI and made it obey the + use_gui config option. + +2004-06-14 00:50 evi1rich + + * src/sd-amigaos/sound.c: Fixed typo. + +2004-06-13 21:42 evi1rich + + * src/gfx-amigaos/: ami-appw.c, ami-win.c: Merged AmigaOS 4 support + in AmigaOS gfx driver. + +2004-06-13 21:33 evi1rich + + * configure.in, src/Makefile.am, src/gfx-amigaos/Makefile.am, + src/gfx-amigaos/ami-appw.c, src/gfx-amigaos/ami-win.c, + src/gfx-amigaos/gfx.h, src/od-amiga/Makefile.am, + src/od-amiga/UAEGUI.rexx, src/od-amiga/UAEWB, + src/od-amiga/UAEWB.aux, src/od-amiga/UAEWB.rexx, + src/od-amiga/ami-appw.c, src/od-amiga/ami-win.c, + src/od-amiga/gfx.h: Moved graphics driver for AmigaOS target to + src/gfx-amigaos. + +2004-06-13 16:02 evi1rich + + * configure.in, src/enforcer.c: Enforcer emulation was horribly + broken. Fixed this and enabled support independent of JIT natmem + access. Fixed configure support for enforcer emulation. + +2004-06-13 02:32 evi1rich + + * src/: disk.c, include/disk.h: Sync with WinUAE 0.8.27 + +2004-06-13 02:10 evi1rich + + * src/: disk.c, include/disk.h: Fixed remaining compiler warnings + in floppy emulation. + +2004-06-13 02:07 evi1rich + + * src/: caps/caps.c, include/caps.h: Sync with WinUAE 0.8.27 + +2004-06-13 02:04 evi1rich + + * src/caps/caps.c: Fixed CAPS support for AmigaOS. + +2004-06-12 20:58 evi1rich + + * configure.in: On OS X when linking against libscg also link + CoreFoudation framework. Fixes problem with newer versions of + libscg. + +2004-06-12 16:06 evi1rich + + * src/gfx-sdl/sdlgfx.c: Added some optimizations to the SDL gfx + driver: 1. The driver now only tries to use a hardware surface if + at least acclerated fills are supported by the underlying + system and then only for P96 screens (native screens will + always be software screens). 2. When using SDL Fill and Blit + routines don't call SDL_UpdateRect to show the changes on + screen. Just flags the modified rows of the display as dirty + and let them be updated in the normal way. This speeds up slow + systems enormously. 3. When using a hardware surface, don't + bother marking rows as invalid. It's not necessary. + +2004-06-11 02:03 evi1rich + + * src/picasso96.c: Simplified and optimized the code in the + Picasso96 emulation that flushes writes to the P96 framebuffer to + the real screen. + +2004-06-09 23:30 evi1rich + + * bootstrap.sh: Run aclocal in src/tools directory. + +2004-06-09 15:29 evi1rich + + * src/gui-gtk/gtkui.c: Fixed the delete handler of the main window + in the GTK+ GUI to correctly return FALSE so that the window is + destroyed in response to a click on the close widget. + +2004-06-08 22:31 evi1rich + + * src/blkdev-libscg.c: Fixed ATAPI detection in libscg SCSI driver + for platforms where scg_isatapi() is not implemented (e.g. OS X). + This makes audio CDs work under OS X. Thanks to Toni Wilen for + the atapi detection code. + +2004-06-07 22:28 evi1rich + + * src/: gencpu.c, tools/configure.in: Added a bigendian + optimization to gencpu which causes the OS X versions of GCC to + produce better code from gencpu's output. The odd things is that + on all other big-endian systems I've tried it leads to worse + code. Thus it is only enabled when targetting OS X (or, rather, + powerpc-darwin). + +2004-06-06 22:40 evi1rich + + * configure.in: Fixed typo in configuration of dummy joystick + driver. + +2004-06-06 22:30 evi1rich + + * configure.in, src/td-posix/thread.c, src/td-posix/thread.h: Added + support for using named semaphores when building against + pthreads. This fixes pthreads support on OS X (and presumably + Darwin). Hacked initial configure support for this - must add + proper configuration later. + +2004-06-06 21:49 evi1rich + + * configure.in, src/Makefile.am, src/od-amiga/Makefile.am, + src/od-amiga/support.c, src/od-amiga/thread.h, + src/td-amigaos/Makefile.am, src/td-amigaos/thread.c, + src/td-amigaos/thread.h, src/td-none/Makefile.am, + src/td-none/thread.c, src/td-posix/Makefile.am, + src/td-posix/thread.c, src/td-sdl/Makefile.am, + src/td-sdl/thread.c: Reorganized threading layers in preparation + for some upcoming fixes and additions. + +2004-06-06 15:58 evi1rich + + * src/jd-amigaos/joystick.c: Fixed compiler warning. Forgot to + mention that the AmigaOS joystick driver now builds on AmigaOS 4. + +2004-06-06 15:48 evi1rich + + * configure.in, src/Makefile.am, src/od-amiga/Makefile.am, + src/od-amiga/joystick.c, src/od-beos/Makefile.am, + src/od-beos/joystick.cpp, src/od-generic/Makefile.am, + src/od-generic/joystick.c, src/jd-amigaos/Makefile.am, + src/jd-amigaos/joystick.c, src/jd-beos/Makefile.am, + src/jd-beos/joystick.cpp, src/jd-linuxold/Makefile.am, + src/jd-linuxold/joystick.c, src/jd-none/Makefile.am, + src/jd-none/joystick.c, src/od-linux/Makefile.am, + src/od-linux/joystick.c: Separatee joystick drivers from os + targets. Makes it easier to support multiple APIs on an OS + target. + +2004-06-06 15:15 evi1rich + + * src/gui-muirexx/ami-gui.c: Added initial support for building on + AmigaOS 4 to MUIRexx GUI. + +2004-06-06 15:08 evi1rich + + * configure.in, src/Makefile.am, src/od-amiga/Makefile.am, + src/od-amiga/ami-rexx.c, src/gui-muirexx/Makefile.am, + src/gui-muirexx/UAEGUI.rexx, src/gui-muirexx/UAEWB, + src/gui-muirexx/UAEWB.aux, src/gui-muirexx/UAEWB.rexx, + src/gui-muirexx/ami-gui.c, src/gui-muirexx/ami-rexx.c, + src/od-amiga/ami-gui.c: Separeted MUIRexx GUI code from core + AmigaOS support and placed in src/gui-muirexx. Added companion + Rexx scripts to CVS. + +2004-06-06 14:22 evi1rich + + * src/gui-gtk/gtkui.c: Forget to check in GTK+ GUI changes for + disabling audio widgets when sound support is not present or + disabled. + +2004-06-06 03:58 evi1rich + + * src/od-generic/Makefile.am: Forgot to update od-generic Makefile + template when moving dummy audio driver. + +2004-06-06 03:54 evi1rich + + * configure.in, src/Makefile.am, src/audio.c, + src/od-generic/sound.c, src/od-generic/sound.h, + src/sd-none/Makefile.am, src/sd-none/sound.c, + src/sd-none/sound.h: Moved dummy sound ouput driver to + src/sd-none, added configure option --disable-audio to build with + dummy audio driver, disabled appropriate audio widgets in the + GTK+ UI when sound support is unavailable, and fixed warnings in + audio.c when building without sound support. + +2004-06-06 00:10 evi1rich + + * src/od-amiga/ami-rexx.c: Tidy up ARexx support in AmigaOS target. + Don't build yet on AmigaOS 4. + +2004-06-05 23:22 evi1rich + + * src/sd-amigaos/: sound.c, sound.h: Fixed sound support for + AmigaOS targets. Both AHI and audio.device sound output now work. + +2004-06-05 22:51 evi1rich + + * src/sd-amigaos/: Makefile.am, sound.c, sound.h: Move sound + support for AmigaOS targets to directory src/sd-amigaos. + +2004-06-05 22:49 evi1rich + + * configure.in, src/Makefile.am, src/od-amiga/Makefile.am, + src/od-amiga/sound.c, src/od-amiga/sound.h: Move sound support + for AmigaOS target to directory src/sd-amigaos and add configure + support for building with sound support on AmigaOS. + +2004-06-05 20:36 evi1rich + + * src/audio.c: Fixed a couple of compiler warnings in audio.c. + +2004-06-05 20:25 evi1rich + + * src/bsdsocket-posix.c: Fixed compiler warnings when building + without bsdsocket emulation enabled. + +2004-06-05 20:24 evi1rich + + * configure.in: Fixed typos in bsdsocket section of configure + script. + +2004-06-05 14:29 evi1rich + + * src/include/sysdeps.h: Don't try and redefine STATIC_INLINE + macro. + +2004-06-05 14:23 evi1rich + + * src/autoconf.c: Fixed autoconf code so that it will build without + stack magic again. + +2004-06-04 03:04 evi1rich + + * src/picasso96.c: Fix for building on GCC 2.95. + +2004-06-04 02:20 evi1rich + + * configure.in: Downgrade autoconf requirements to version 2.55 so + that'll it'll work on BeOS (autoconf 2.58 doesn't work on BeOS). + It'll complain about the AS_HELP_STRING macros, but it'll still + work (although the pretty-printing of confingure options won't + work). I'll fix this eventually... + +2004-06-04 01:24 evi1rich + + * src/bsdsocket-posix.c: Started trying to tidy up the mess that is + the old bsdsocket emulation. + + Also added an optimization when emulating a blocking socket using + select. When blocking on a recv/recvfrom, we just put the + "blocked" socket in the read set for select; likewise, when + blocking on a send/sendto, just put the socket in the write set. + +2004-06-03 03:55 evi1rich + + * configure.in: Fixed configure support for bsdsocket layer. Don't + build new bsdsocket layer unless explicity asked to, and only + build it on PPC and i386 archs. + +2004-06-03 03:52 evi1rich + + * src/: td-posix/thread.h, td-sdl/thread.h: Add the + uae_thread_self() call back to the POSIX and SDL thread layers, + since it's currently need by the old bsdsocket implementation. + It's actually broken on SDL, but it works well enough for what we + want it to do. + +2004-06-03 03:50 evi1rich + + * src/bsdsocket-posix.c: A bunch of fixes for the existing + bsdsocket emulation. + + Aborting of selects in a socket thread now works. The existing + implementation, which relied on sending a kill signal to the + socket thread, has been replaced (since, depending on the + underlying thread layer, we can't always rely on that working). + Instead, we create an additional socket for communicating an + abort signal on - which the socket thread will monitor (in + addition to the network sockets its already monitoring). This + idea was shamelessly stolen from Jeff Shepherd's work - although + I use a socket here rather than a pipe - because select may not + work on pipes on all platforms (BeOS and AmigaOS spring to mind - + but the code will still need to be adapted to use local network + sockets rather than - as it does just now - unix sockets). + + Also fixed memory leaks when using pthreads (or pthreads via SDL) + caused by threads being created as joinable by default and never + being joined with. We now join with a thread when it's given the + signal to shut down. + +2004-06-02 23:04 evi1rich + + * src/: picasso96.c, md-ppc-gcc/exectasks.h: Fixed PPC inline + assembly to work on with the OS X build of GCC. + +2004-06-02 10:16 evi1rich + + * src/: bsdsocket-posix-new.c, include/bsdsocket.h: Fixed + WaitSelect() in new bsdsocket emulation. AmFTP and other FTP + clients now mostly work. + +2004-06-01 22:27 evi1rich + + * src/bsdsocket-posix-new.c: Don't use host IOCTL request codes for + FIOGETOWN and FIOSETOWN in IoctlSocket in new bsdsock emulation. + Amiga uses different codes. + +2004-06-01 21:39 evi1rich + + * src/native2amiga.c: Add patch from Toni Wilen to protect + native2amiga calls with a semaphore. + +2004-06-01 21:34 evi1rich + + * src/autoconf.c: Tidy up trap handling. A vain attempt to make + this stuff slightly more readable. + +2004-06-01 21:29 evi1rich + + * src/: td-sdl/thread.h, td-posix/thread.h: Fix up problems + introduced with recent changes to SDL thread layer. + +2004-06-01 14:37 evi1rich + + * src/drawing.c: Fixed compiler warning. + +2004-06-01 11:45 evi1rich + + * src/sleep.c: Made busy-waiting sleep routine more robust. + +2004-06-01 10:56 evi1rich + + * src/picasso96.c: Cleaned up P96 emulation. + +2004-06-01 09:57 evi1rich + + * src/picasso96.c: Added work around for big-endian ARGB32 + screenmodes in Picasso96 emulation. There seems to be a bug in + P96 which causes colour guns to be swapped in P96's emulated + palette in big-endian ARGB32 modes. We work wround this by + reporting the mode as BGRA32 instead, and byte-swapping all + pixels when they are output to the display. + +2004-06-01 09:10 evi1rich + + * configure.in: Added configure support for for new bsdsocket code + (with the option --enable-bsdsock-new). + +2004-06-01 03:24 evi1rich + + * src/bsdsocket-posix-new.c: In the new bsdocket emulation layer, + we must join with the socket thread to allow it to die and clean + up it resources. When the underlying thread layer is pthreads, we + cannot always guarantee that threads are created as detached (for + example, SDL always creates joinable threads when using + pthreads), so if we don't join, the thread won't free it + resources, and we get massive memory leaks. + +2004-06-01 03:07 evi1rich + + * src/: td-posix/thread.h, td-sdl/thread.h: Implemented + uae_wait_thread() for pthread and SDL targets. This waits for a + specified thread to die. Waiting for a thread to terminate (or + joining with a thread) allows that thread to clean up it + resources properly (at least when the underlying thread system is + pthreads). + +2004-06-01 02:15 evi1rich + + * src/: bsdsocket-posix-new.c, bsdsocket.c, include/bsdsocket.h: + Merge Jeff Shepherd's work on the bsdsocket emulation which ports + the existing POSIX bsdsocket layer to be a back-end for + bsdsocket.c (and thus works like and share more code with the + WinUAE version). This still has lots of problems, is less + portable than the existing solution, and appears to be slower. + Hence, the previous version still remains. The new one is called + bsdsocket-posix-new.c, and will be enabled by the config option + --enable-bsdsock-new. + +2004-05-31 23:30 evi1rich + + * src/: od-amiga/exectasks.h, od-beos/exectasks.h, + od-generic/exectasks.h, md-68k/Makefile.am, md-68k/exectasks.h, + md-generic/Makefile.am, md-generic/exectasks.h, + md-i386-gcc/Makefile.am, md-i386-gcc/exectasks.h, + md-ppc/Makefile.am, md-ppc/exectasks.h, md-ppc-gcc/Makefile.am, + md-ppc-gcc/exectasks.h, od-linux/exectasks.h: Implemented stack + magic for PPC hosts. Split up stack magic code and moved into + machine-dependent dirs. + +2004-05-29 01:41 evi1rich + + * m4/: gtk-2.0.m4, gtk.m4, sdl.m4: Added m4 scripts for gtk, gtk2 + and sdl to CVS so that autoconf/automake will work on platforms + without these. + +2004-05-25 14:20 evi1rich + + * src/: blitter.c, custom.c, inputdevice.c, newcpu.c, + include/blitter.h, include/custom.h: Lots of clean up in the + custom chip emulation, particularly changing key state variables + to unsigned type where appropriate. + +2004-05-22 15:29 evi1rich + + * src/gfx-x11/xwin.c: Fixed bug in X11 hotkey handling. Key-presses + which matched a hotkey sequence were still being passed through + to the emulation. + +2004-05-22 15:17 evi1rich + + * src/misc.c: Fixed support for P96 refresh rate hack. + +2004-05-21 17:24 evi1rich + + * src/gfx-sdl/sdlgfx.c: Don't ask for a hardware surface in the SDL + driver. Using a hardware surface simply because one is available + is rarely a good idea. We would need to work out when it is + actually beneficial to use a hardware surface - for instance, if + sufficient hardare acceleration support is available. + +2004-05-21 17:18 evi1rich + + * src/md-ppc-gcc/m68k.h: Added a minor CPU Optimization for CPU + targets. The flag_struct bit-field was reorganized to allow the + generation of slightly better object code. + +2004-05-21 15:42 evi1rich + + * amiga/: bsdsocket.library, mousehack, timehack, transdisk, + transrom, uae-control, uae-control.info, uae_rcli, uaectrl: + Removed Amiga binaries from CVS repository. + +2004-05-21 15:27 evi1rich + + * src/gui-gtk/: floppyfileentry.c, floppyfileentry.h, gtkui.c: + Added support for floppy_path config option back to GTK+ GUI. + (Martin's new code did not support this). + +2004-05-21 14:47 evi1rich + + * configure.in: Fixed configure.in dependency. Requires + autoconf-2.58 or better. + +2004-05-21 14:46 evi1rich + + * bootstrap.sh: Fix bootstrap script to run autoconf in tools dir. + +2004-05-21 14:45 evi1rich + + * Makefile.in, aclocal.m4, configure, src/tools/aclocal.m4, + src/tools/configure, src/caps/Makefile.in, src/dms/Makefile.in, + src/Makefile.in, src/gfx-curses/Makefile.in, + src/gfx-sdl/Makefile.in, src/gfx-svga/Makefile.in, + src/gfx-x11/Makefile.in, src/gui-gtk/Makefile.in, + src/gui-none/Makefile.in, src/jd-sdl/Makefile.in, + src/keymap/Makefile.in, src/md-68k/Makefile.in, + src/md-generic/Makefile.in, src/md-i386-gcc/Makefile.in, + src/md-ppc/Makefile.in, src/md-ppc-gcc/Makefile.in, + src/od-amiga/Makefile.in, src/od-beos/Makefile.in, + src/od-generic/Makefile.in, src/od-linux/Makefile.in, + src/sd-sdl/Makefile.in, src/sd-solaris/Makefile.in, + src/sd-uss/Makefile.in: Removed autoconf/automake output from CVS + repository. + +2004-05-21 13:55 evi1rich + + * m4/uintmax_t.m4: Added missing autoconf macro dependencies. + +2004-05-21 04:21 evi1rich + + * src/picasso96.c: Fixed a bug in BlitPlanar2Direct and did some + tidying up. It can't handle source bitmaps deeper than 8 + bitplanes and it was failing to check for this case, causing the + stack to be overwritten and inevitably a crash. This bug showed + up, for example, with the v43 Installer. + +2004-05-21 03:49 evi1rich + + * src/picasso96.c: Fix debug logging. + +2004-05-21 03:47 evi1rich + + * src/picasso96.c: The previous fix for do_blit() was broken + because I neglected to take account of the fact that the source + and destination rectangles could overlap. I've now solved the + problem in a different and simpler way. do_blit() now blits from + the P96 framebuffer to the screen, but since the blit has already + been performed in the framebuffer, the rectangle blitted to the + screen must be the updated rectangle - as specified by the + destination coordinates. + +2004-05-19 17:11 evi1rich + + * src/gui-gtk/: floppyfileentry.c, floppyfileentry.h, gtkui.c: Did + some spring cleaning on the GTK+ GUI. Tidied up formatting of + code, fixed a whack of compiler warnings, and fixed GUI shut-down + bug. + +2004-05-19 16:10 evi1rich + + * src/gui-gtk/gtkui.c: Fixed some casting bugs in Martin's patch. + +2004-05-19 15:56 evi1rich + + * src/gui-gtk/: Makefile.am, Makefile.in, floppyfileentry.c, + floppyfileentry.h, gtkui.c, led.c, led.h: Applied patch from + Martion Garton to clean-up and modularize floppy image and LED + widgets in GTK+ GUI. + +2004-05-19 15:47 evi1rich + + * src/gui-gtk/gtkui.c: Applied patch from Martin Garton to fix + 64-bit support in the GTK+ GUI. + +2004-05-19 15:11 evi1rich + + * src/: filesys.c, fsusage.c, hardfile.c, include/filesys.h: Fixed + compiler warnings in hard drive emulation. + +2004-05-19 15:05 evi1rich + + * src/native2amiga.c: Removed unnecessary header dependencies from + native2amiga.c. + +2004-05-19 14:50 evi1rich + + * src/debug.c: Fixed compiler warnings in debugger. + +2004-05-19 14:38 evi1rich + + * src/cfgfile.c: Added support for reading and writing + .cpu_idle= option from and to config files and fixed some + compiler warnings. + +2004-05-19 14:32 evi1rich + + * src/gui-gtk/: cpuspeedpanel.c, gtkui.c: Fixed broken method for + setting idle-speed in GTK+ gui. + +2004-05-19 13:30 evi1rich + + * src/bsdsocket-posix.c: Fixed bug in the tls replacement in the + POSIX bsdsocket emulation and cleaned up some compiler warnings. + +2004-05-19 13:21 evi1rich + + * src/: inputdevice.c, include/gensound.h: Fix compiler warnings in + input device handler. + +2004-05-19 11:37 evi1rich + + * src/picasso96.c: Fixed typo. + +2004-05-19 02:21 evi1rich + + * src/picasso96.c: Fixed a blitting bug in the Picasso96 emulation. + When doing a screen-to-screen blit (for example when scrolling) + without acceleration by the underlying graphics system, the blit + would be first done in then the framebuffer, then on the display + buffer. In the case of a scroll operation, this in effect doubled + the operation - for example, causing double-line scrolls in the + shell console. The solution is, when doing s a screen-to-screen + blit, to do the screen buffer blit screen-to-screen - not from + the framebuffer. + +2004-05-19 01:54 evi1rich + + * src/picasso96.c: Fix compiler warnings in Picasso96 emulation. + +2004-05-19 01:43 evi1rich + + * src/fdi2raw.c: Fixed compiler warnings in FDI image handler. + +2004-05-19 01:28 evi1rich + + * src/scsiemul.c: Fixed compiler warnings in SCSI emulation. + +2004-05-19 01:25 evi1rich + + * src/: drawing.c, linetoscr.c: Fixed compiler warnings in drawing + code. + +2004-05-19 01:18 evi1rich + + * src/gfx-x11/xwin.c: Fix X11 support for Picasso96 emulation on + big-endian displays. + +2004-05-19 01:10 evi1rich + + * src/: autoconf.c, compemu_support.c, main.c: Don't include + obsolete compiler.h header. + +2004-05-19 01:01 evi1rich + + * src/: compiler.c, include/compiler.h, include/events_jit.h, + include/events_normal.h: Removed obsolete files. + +2004-05-19 00:56 evi1rich + + * src/gencpu.c: Fixed compiler warnings in code generated by + gencpu. + +2004-05-19 00:38 evi1rich + + * src/: Makefile.am, Makefile.in, compiler.c, filesys.c, fpp.c, + fsdb.c, gencomp.c, gencpu.c, main.c, newcpu.c, + include/compiler.h, include/newcpu.h: Cleaned up and removed + obsolete code from the CPU emulation. + +2004-05-18 23:44 evi1rich + + * src/events.c: Forgot to add new file events.c + +2004-05-18 23:19 evi1rich + + * src/blkdev-libscg.c: Fixed SCSI emulation using libscg on + platforms which don't support SCSI bus scanning (e.g. OS X). + Still need to add ATAPI-detection code for OS X. + + Print log message when libscg fails to open the bus. + + General tidying up. + +2004-05-18 22:23 evi1rich + + * configure, configure.in, src/compemu_support.c: Added a + compile-time option --enable-noflags which controls whether the + JIT no-flags opcode handlers are built, and fixed support for + using them. Previously the noflags handlers were being built, + but not used. Now they are not built by default but can be with + this option. Enabling the no-flags support does not seem to offer + any performance gain, but increases build time. + +2004-05-18 22:00 evi1rich + + * aclocal.m4, configure, src/Makefile.am, src/Makefile.in, + src/custom.c, src/newcpu.c, src/include/custom.h, + src/include/events.h, src/include/events_jit.h, + src/include/events_normal.h, src/include/newcpu.h: Tidied up + event handling. do_cycles() and friends are no longer inlined - + to reduce build time and size of compiled code. They are no in a + separate source file. Removed separate event headers for JIT and + non-JIT builds, and created a unified events header instead. + +2004-05-18 20:20 tag UAE-0_8_25-20040302 + +2004-05-18 20:20 evi1rich + + * Makefile.in, README, bootstrap.sh, config.h, COPYING, + Makefile.am, configure, aclocal.m4, CHANGES, config.guess, + config.sub, configure.in, depcomp, install-sh, missing, + mkinstalldirs, amiga/mousehack, amiga/transdisk, amiga/transrom, + amiga/uae-control.info, amiga/uae_rcli, amiga/uaectrl, + m4/acx_pthread.m4, m4/check_zlib.m4, m4/fsusage.m4, + m4/uintmax_t.m4, amiga/bsdsocket.library, amiga/timehack, + amiga/uae-control, amiga/source/mhint.asm, + amiga/source/mousehack.c, amiga/source/transrom.c, + amiga/source/uae-control.c, amiga/source/uae-control.h, + amiga/source/uae_pragmas.h, amiga/source/Makefile.gcc, + amiga/source/timehack.c, amiga/source/transdisk.c, + amiga/source/uae_rcli.c, amiga/source/uaectrl.c, + amiga/source/bsdsocket.e, docs/COMPATIBILITY, docs/FAQ, + docs/NEWS, docs/CREDITS, docs/README, docs/README.PROGRAMMERS, + debian/README, debian/README.Debian, debian/changelog, + debian/compat, debian/control, debian/docs, debian/menu, + debian/postinst, debian/prerm, debian/rules, src/table68k, + src/Makefile.in, src/filesys.asm, src/filesys.sh, + src/inputevents.def, src/install_libscg, src/ChangeLog, + src/Makefile.am, src/missing.c, src/readdisk.c, + src/sysconfig.h.in, src/main.c, src/fpp.c, src/newcpu.c, + src/memory.c, src/custom.c, src/cia.c, src/serial.c, + src/autoconf.c, src/blitter.c, src/ersatz.c, src/expansion.c, + src/keybuf.c, src/zfile.c, src/cfgfile.c, src/picasso96.c, + src/gfxutil.c, src/inputdevice.c, src/gfxlib.c, src/audio.c, + src/drawing.c, src/native2amiga.c, src/identify.c, src/disk.c, + src/savestate.c, src/uaeexe.c, src/uaelib.c, src/unzip.c, + src/driveclick.c, src/fdi2raw.c, src/hotkeys.c, src/sleep.c, + src/enforcer.c, src/misc.c, src/readcpu.c, src/writelog.c, + src/bsdsocket-posix.c, src/bsdsocket.c, src/build68k.c, + src/catweasel.c, src/cdrom.c, src/compemu_fpp.c, + src/compemu_optimizer.c, src/compemu_optimizer_x86.c, + src/compemu_raw_x86.c, src/compemu_support.c, src/compiler.c, + src/cpuopti.c, src/debug.c, src/filesys.c, src/fsdb.c, + src/fsdb_unix.c, src/fsusage.c, src/genblitter.c, src/gencpu.c, + src/gengenblitter.c, src/genp2c.c, src/gencomp.c, src/hardfile.c, + src/hardfile_unix.c, src/linetoscr.c, src/scsi-none.c, + src/scsiemul.c, src/svgancui.c, src/tui.c, src/akiko.c, + src/akiko2.c, src/blkdev-libscg.c, src/filesys_unix.c, src/ar.c, + src/blkdev.c, src/blitops.c, src/include/akiko.h, + src/include/ar.h, src/include/audio.h, src/include/autoconf.h, + src/include/blitter.h, src/include/blkdev.h, + src/include/bsdsocket.h, src/include/catweasel.h, + src/include/cia.h, src/include/commpipe.h, src/include/compemu.h, + src/include/compiler.h, src/include/cpu_prefetch.h, + src/include/custom.h, src/include/debug.h, src/include/disk.h, + src/include/drawing.h, src/include/ersatz.h, + src/include/events.h, src/include/events_jit.h, + src/include/events_normal.h, src/include/execlib.h, + src/include/fdi2raw.h, src/include/filesys.h, + src/include/fpp-ieee-be.h, src/include/fpp-unknown.h, + src/include/fsdb.h, src/include/fsusage.h, + src/include/genblitter.h, src/include/gensound.h, + src/include/gui.h, src/include/identify.h, + src/include/inputdevice.h, src/include/joystick.h, + src/include/keyboard.h, src/include/keybuf.h, + src/include/mackbd.h, src/include/memory.h, + src/include/native2amiga.h, src/include/newcpu.h, + src/include/noflags.h, src/include/options.h, + src/include/osemu.h, src/include/picasso96.h, + src/include/readcpu.h, src/include/savestate.h, + src/include/scsidev.h, src/include/serial.h, src/include/sleep.h, + src/include/caps.h, src/include/driveclick.h, + src/include/enforcer.h, src/include/gfxfilter.h, + src/include/hotkeys.h, src/include/sysdeps.h, src/include/tui.h, + src/include/uae.h, src/include/uaeexe.h, src/include/unzip.h, + src/include/xwin.h, src/include/zfile.h, src/targets/t-amiga.h, + src/targets/t-beos.h, src/targets/t-macos.h, + src/targets/t-unix.h, src/td-none/thread.h, + src/td-posix/thread.h, src/td-sdl/thread.h, + src/tools/configure.in, src/md-generic/m68k.h, + src/md-generic/maccess.h, src/md-generic/rpt.h, + src/tools/Makefile.in, src/tools/aclocal.m4, src/tools/configure, + src/tools/sysconfig.h.in, src/tools/target.h, + src/md-68k/Makefile.am, src/md-68k/Makefile.in, + src/md-68k/cpuopti, src/md-68k/m68k.h, src/md-68k/maccess.h, + src/md-68k/rpt.h, src/md-68k/support.c, + src/md-generic/Makefile.am, src/md-generic/Makefile.in, + src/md-generic/support.c, src/md-i386-gcc/Makefile.am, + src/md-i386-gcc/Makefile.in, src/md-i386-gcc/X86.S, + src/md-i386-gcc/m68k.h, src/md-i386-gcc/maccess.h, + src/md-i386-gcc/rpt.h, src/md-i386-gcc/support.c, + src/md-ppc/m68k.h, src/md-ppc/maccess.h, src/md-ppc/rpt.h, + src/gfx-x11/Makefile.am, src/gfx-x11/Makefile.in, + src/gfx-x11/gfx.h, src/gfx-x11/xwin.c, src/md-ppc/Makefile.am, + src/md-ppc/Makefile.in, src/md-ppc/support.c, + src/md-ppc-gcc/Makefile.am, src/md-ppc-gcc/Makefile.in, + src/md-ppc-gcc/m68k.h, src/md-ppc-gcc/maccess.h, + src/md-ppc-gcc/rpt.h, src/md-ppc-gcc/support.c, + src/gfx-curses/gfx.h, src/gfx-sdl/Makefile.am, + src/gfx-sdl/Makefile.in, src/gfx-sdl/gfx.h, + src/gfx-sdl/rawkeys.c, src/gfx-sdl/sdlgfx.c, + src/gfx-sdl/sdlgfx.h, src/gfx-sdl/sdlkeys.c, + src/gfx-x11/x11keys.c, src/gfx-curses/Makefile.am, + src/gfx-curses/Makefile.in, src/gfx-curses/ncurses.c, + src/gfx-svga/Makefile.am, src/gfx-svga/Makefile.in, + src/gfx-svga/gfx.h, src/gfx-svga/svga.c, src/sd-sdl/Makefile.am, + src/sd-sdl/Makefile.in, src/sd-sdl/sound.c, src/sd-sdl/sound.h, + src/sd-solaris/Makefile.am, src/sd-solaris/Makefile.in, + src/sd-solaris/sound.c, src/sd-solaris/sound.h, + src/sd-uss/sound.h, src/gui-gtk/Makefile.am, + src/gui-gtk/Makefile.in, src/gui-gtk/chooserwidget.h, + src/gui-gtk/cpuspeedpanel.h, src/gui-gtk/cputypepanel.h, + src/gui-gtk/util.h, src/gui-none/Makefile.am, + src/gui-none/Makefile.in, src/gui-none/nogui.c, + src/jd-sdl/Makefile.am, src/jd-sdl/Makefile.in, + src/jd-sdl/joystick.c, src/sd-uss/Makefile.am, + src/sd-uss/Makefile.in, src/sd-uss/sound.c, src/gui-gtk/gtkui.c, + src/gui-gtk/util.c, src/gui-gtk/chooserwidget.c, + src/gui-gtk/cpuspeedpanel.c, src/gui-gtk/cputypepanel.c, + src/od-amiga/UAEWB, src/od-amiga/UAEWB.aux, + src/od-generic/Makefile.am, src/od-generic/Makefile.in, + src/od-generic/exectasks.h, src/od-generic/joystick.c, + src/od-generic/main.c, src/od-generic/memory.h, + src/od-generic/sound.c, src/od-generic/sound.h, + src/od-amiga/UAEGUI.rexx, src/od-amiga/UAEWB.rexx, + src/od-amiga/amiga-kludges.h, src/od-amiga/exectasks.h, + src/od-amiga/gfx.h, src/od-amiga/memory.h, src/od-amiga/rpt.h, + src/od-amiga/scc, src/od-amiga/sound.h, src/od-amiga/thread.h, + src/od-amiga/Makefile.am, src/od-amiga/Makefile.in, + src/od-amiga/ami-appw.c, src/od-amiga/ami-disk.c, + src/od-amiga/ami-gui.c, src/od-amiga/ami-rexx.c, + src/od-amiga/ami-win.c, src/od-amiga/joystick.c, + src/od-amiga/main.c, src/od-amiga/support.c, + src/od-amiga/sound.c, src/od-beos/exectasks.h, src/od-beos/gfx.h, + src/od-beos/memory.h, src/od-beos/sound.h, src/od-beos/uae.rsrc, + src/od-beos/Makefile.am, src/od-beos/Makefile.in, + src/od-beos/beos.cpp, src/od-beos/gui.cpp, + src/od-beos/joystick.cpp, src/od-beos/main.cpp, + src/od-beos/sound.cpp, src/od-linux/exectasks.h, + src/od-linux/memory.h, src/od-linux/Makefile.am, + src/od-linux/Makefile.in, src/od-linux/joystick.c, + src/od-linux/main.c, src/caps/Makefile.am, src/caps/Makefile.in, + src/caps/caps.c, src/dms/Makefile.am, src/dms/Makefile.in, + src/dms/cdata.h, src/dms/crc_csum.c, src/dms/crc_csum.h, + src/dms/getbits.c, src/dms/getbits.h, src/dms/maketbl.c, + src/dms/maketbl.h, src/dms/pfile.c, src/dms/pfile.h, + src/dms/tables.c, src/dms/tables.h, src/dms/u_deep.h, + src/dms/u_heavy.h, src/dms/u_init.h, src/dms/u_medium.h, + src/dms/u_quick.h, src/dms/u_rle.h, src/keymap/Makefile.am, + src/keymap/Makefile.in, src/keymap/beos_rawkeys.c, + src/keymap/beos_rawkeys.h, src/keymap/hotkeys_common.h, + src/keymap/keymap_all.h, src/keymap/keymap_common.h, + src/keymap/quartz_rawkeys.c, src/keymap/quartz_rawkeys.h, + src/keymap/x11pc_rawkeys.c, src/keymap/x11pc_rawkeys.h, + src/dms/u_deep.c, src/dms/u_heavy.c, src/dms/u_init.c, + src/dms/u_medium.c, src/dms/u_quick.c, src/dms/u_rle.c: Initial + import of uae-0.8.25-20040302 + +2004-05-18 20:20 evi1rich + + * Makefile.in, README, bootstrap.sh, config.h, COPYING, + Makefile.am, configure, aclocal.m4, CHANGES, config.guess, + config.sub, configure.in, depcomp, install-sh, missing, + mkinstalldirs, amiga/mousehack, amiga/transdisk, amiga/transrom, + amiga/uae-control.info, amiga/uae_rcli, amiga/uaectrl, + m4/acx_pthread.m4, m4/check_zlib.m4, m4/fsusage.m4, + m4/uintmax_t.m4, amiga/bsdsocket.library, amiga/timehack, + amiga/uae-control, amiga/source/mhint.asm, + amiga/source/mousehack.c, amiga/source/transrom.c, + amiga/source/uae-control.c, amiga/source/uae-control.h, + amiga/source/uae_pragmas.h, amiga/source/Makefile.gcc, + amiga/source/timehack.c, amiga/source/transdisk.c, + amiga/source/uae_rcli.c, amiga/source/uaectrl.c, + amiga/source/bsdsocket.e, docs/COMPATIBILITY, docs/FAQ, + docs/NEWS, docs/CREDITS, docs/README, docs/README.PROGRAMMERS, + debian/README, debian/README.Debian, debian/changelog, + debian/compat, debian/control, debian/docs, debian/menu, + debian/postinst, debian/prerm, debian/rules, src/table68k, + src/Makefile.in, src/filesys.asm, src/filesys.sh, + src/inputevents.def, src/install_libscg, src/ChangeLog, + src/Makefile.am, src/missing.c, src/readdisk.c, + src/sysconfig.h.in, src/main.c, src/fpp.c, src/newcpu.c, + src/memory.c, src/custom.c, src/cia.c, src/serial.c, + src/autoconf.c, src/blitter.c, src/ersatz.c, src/expansion.c, + src/keybuf.c, src/zfile.c, src/cfgfile.c, src/picasso96.c, + src/gfxutil.c, src/inputdevice.c, src/gfxlib.c, src/audio.c, + src/drawing.c, src/native2amiga.c, src/identify.c, src/disk.c, + src/savestate.c, src/uaeexe.c, src/uaelib.c, src/unzip.c, + src/driveclick.c, src/fdi2raw.c, src/hotkeys.c, src/sleep.c, + src/enforcer.c, src/misc.c, src/readcpu.c, src/writelog.c, + src/bsdsocket-posix.c, src/bsdsocket.c, src/build68k.c, + src/catweasel.c, src/cdrom.c, src/compemu_fpp.c, + src/compemu_optimizer.c, src/compemu_optimizer_x86.c, + src/compemu_raw_x86.c, src/compemu_support.c, src/compiler.c, + src/cpuopti.c, src/debug.c, src/filesys.c, src/fsdb.c, + src/fsdb_unix.c, src/fsusage.c, src/genblitter.c, src/gencpu.c, + src/gengenblitter.c, src/genp2c.c, src/gencomp.c, src/hardfile.c, + src/hardfile_unix.c, src/linetoscr.c, src/scsi-none.c, + src/scsiemul.c, src/svgancui.c, src/tui.c, src/akiko.c, + src/akiko2.c, src/blkdev-libscg.c, src/filesys_unix.c, src/ar.c, + src/blkdev.c, src/blitops.c, src/include/akiko.h, + src/include/ar.h, src/include/audio.h, src/include/autoconf.h, + src/include/blitter.h, src/include/blkdev.h, + src/include/bsdsocket.h, src/include/catweasel.h, + src/include/cia.h, src/include/commpipe.h, src/include/compemu.h, + src/include/compiler.h, src/include/cpu_prefetch.h, + src/include/custom.h, src/include/debug.h, src/include/disk.h, + src/include/drawing.h, src/include/ersatz.h, + src/include/events.h, src/include/events_jit.h, + src/include/events_normal.h, src/include/execlib.h, + src/include/fdi2raw.h, src/include/filesys.h, + src/include/fpp-ieee-be.h, src/include/fpp-unknown.h, + src/include/fsdb.h, src/include/fsusage.h, + src/include/genblitter.h, src/include/gensound.h, + src/include/gui.h, src/include/identify.h, + src/include/inputdevice.h, src/include/joystick.h, + src/include/keyboard.h, src/include/keybuf.h, + src/include/mackbd.h, src/include/memory.h, + src/include/native2amiga.h, src/include/newcpu.h, + src/include/noflags.h, src/include/options.h, + src/include/osemu.h, src/include/picasso96.h, + src/include/readcpu.h, src/include/savestate.h, + src/include/scsidev.h, src/include/serial.h, src/include/sleep.h, + src/include/caps.h, src/include/driveclick.h, + src/include/enforcer.h, src/include/gfxfilter.h, + src/include/hotkeys.h, src/include/sysdeps.h, src/include/tui.h, + src/include/uae.h, src/include/uaeexe.h, src/include/unzip.h, + src/include/xwin.h, src/include/zfile.h, src/targets/t-amiga.h, + src/targets/t-beos.h, src/targets/t-macos.h, + src/targets/t-unix.h, src/td-none/thread.h, + src/td-posix/thread.h, src/td-sdl/thread.h, + src/tools/configure.in, src/md-generic/m68k.h, + src/md-generic/maccess.h, src/md-generic/rpt.h, + src/tools/Makefile.in, src/tools/aclocal.m4, src/tools/configure, + src/tools/sysconfig.h.in, src/tools/target.h, + src/md-68k/Makefile.am, src/md-68k/Makefile.in, + src/md-68k/cpuopti, src/md-68k/m68k.h, src/md-68k/maccess.h, + src/md-68k/rpt.h, src/md-68k/support.c, + src/md-generic/Makefile.am, src/md-generic/Makefile.in, + src/md-generic/support.c, src/md-i386-gcc/Makefile.am, + src/md-i386-gcc/Makefile.in, src/md-i386-gcc/X86.S, + src/md-i386-gcc/m68k.h, src/md-i386-gcc/maccess.h, + src/md-i386-gcc/rpt.h, src/md-i386-gcc/support.c, + src/md-ppc/m68k.h, src/md-ppc/maccess.h, src/md-ppc/rpt.h, + src/gfx-x11/Makefile.am, src/gfx-x11/Makefile.in, + src/gfx-x11/gfx.h, src/gfx-x11/xwin.c, src/md-ppc/Makefile.am, + src/md-ppc/Makefile.in, src/md-ppc/support.c, + src/md-ppc-gcc/Makefile.am, src/md-ppc-gcc/Makefile.in, + src/md-ppc-gcc/m68k.h, src/md-ppc-gcc/maccess.h, + src/md-ppc-gcc/rpt.h, src/md-ppc-gcc/support.c, + src/gfx-curses/gfx.h, src/gfx-sdl/Makefile.am, + src/gfx-sdl/Makefile.in, src/gfx-sdl/gfx.h, + src/gfx-sdl/rawkeys.c, src/gfx-sdl/sdlgfx.c, + src/gfx-sdl/sdlgfx.h, src/gfx-sdl/sdlkeys.c, + src/gfx-x11/x11keys.c, src/gfx-curses/Makefile.am, + src/gfx-curses/Makefile.in, src/gfx-curses/ncurses.c, + src/gfx-svga/Makefile.am, src/gfx-svga/Makefile.in, + src/gfx-svga/gfx.h, src/gfx-svga/svga.c, src/sd-sdl/Makefile.am, + src/sd-sdl/Makefile.in, src/sd-sdl/sound.c, src/sd-sdl/sound.h, + src/sd-solaris/Makefile.am, src/sd-solaris/Makefile.in, + src/sd-solaris/sound.c, src/sd-solaris/sound.h, + src/sd-uss/sound.h, src/gui-gtk/Makefile.am, + src/gui-gtk/Makefile.in, src/gui-gtk/chooserwidget.h, + src/gui-gtk/cpuspeedpanel.h, src/gui-gtk/cputypepanel.h, + src/gui-gtk/util.h, src/gui-none/Makefile.am, + src/gui-none/Makefile.in, src/gui-none/nogui.c, + src/jd-sdl/Makefile.am, src/jd-sdl/Makefile.in, + src/jd-sdl/joystick.c, src/sd-uss/Makefile.am, + src/sd-uss/Makefile.in, src/sd-uss/sound.c, src/gui-gtk/gtkui.c, + src/gui-gtk/util.c, src/gui-gtk/chooserwidget.c, + src/gui-gtk/cpuspeedpanel.c, src/gui-gtk/cputypepanel.c, + src/od-amiga/UAEWB, src/od-amiga/UAEWB.aux, + src/od-generic/Makefile.am, src/od-generic/Makefile.in, + src/od-generic/exectasks.h, src/od-generic/joystick.c, + src/od-generic/main.c, src/od-generic/memory.h, + src/od-generic/sound.c, src/od-generic/sound.h, + src/od-amiga/UAEGUI.rexx, src/od-amiga/UAEWB.rexx, + src/od-amiga/amiga-kludges.h, src/od-amiga/exectasks.h, + src/od-amiga/gfx.h, src/od-amiga/memory.h, src/od-amiga/rpt.h, + src/od-amiga/scc, src/od-amiga/sound.h, src/od-amiga/thread.h, + src/od-amiga/Makefile.am, src/od-amiga/Makefile.in, + src/od-amiga/ami-appw.c, src/od-amiga/ami-disk.c, + src/od-amiga/ami-gui.c, src/od-amiga/ami-rexx.c, + src/od-amiga/ami-win.c, src/od-amiga/joystick.c, + src/od-amiga/main.c, src/od-amiga/support.c, + src/od-amiga/sound.c, src/od-beos/exectasks.h, src/od-beos/gfx.h, + src/od-beos/memory.h, src/od-beos/sound.h, src/od-beos/uae.rsrc, + src/od-beos/Makefile.am, src/od-beos/Makefile.in, + src/od-beos/beos.cpp, src/od-beos/gui.cpp, + src/od-beos/joystick.cpp, src/od-beos/main.cpp, + src/od-beos/sound.cpp, src/od-linux/exectasks.h, + src/od-linux/memory.h, src/od-linux/Makefile.am, + src/od-linux/Makefile.in, src/od-linux/joystick.c, + src/od-linux/main.c, src/caps/Makefile.am, src/caps/Makefile.in, + src/caps/caps.c, src/dms/Makefile.am, src/dms/Makefile.in, + src/dms/cdata.h, src/dms/crc_csum.c, src/dms/crc_csum.h, + src/dms/getbits.c, src/dms/getbits.h, src/dms/maketbl.c, + src/dms/maketbl.h, src/dms/pfile.c, src/dms/pfile.h, + src/dms/tables.c, src/dms/tables.h, src/dms/u_deep.h, + src/dms/u_heavy.h, src/dms/u_init.h, src/dms/u_medium.h, + src/dms/u_quick.h, src/dms/u_rle.h, src/keymap/Makefile.am, + src/keymap/Makefile.in, src/keymap/beos_rawkeys.c, + src/keymap/beos_rawkeys.h, src/keymap/hotkeys_common.h, + src/keymap/keymap_all.h, src/keymap/keymap_common.h, + src/keymap/quartz_rawkeys.c, src/keymap/quartz_rawkeys.h, + src/keymap/x11pc_rawkeys.c, src/keymap/x11pc_rawkeys.h, + src/dms/u_deep.c, src/dms/u_heavy.c, src/dms/u_init.c, + src/dms/u_medium.c, src/dms/u_quick.c, src/dms/u_rle.c: Initial + revision + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..e3d0941 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +ACLOCAL_AMFLAGS = -I m4 + +EXTRA_DIST = m4 amiga docs CHANGES README + +SUBDIRS = src + +dist_noinst_SCRIPTS = bootstrap.sh + +dist-hook: + rm -rf `find $(distdir) -name CVS` + rm -rf `find $(distdir) -name *.bak` + rm -rf `find $(distdir) -name *~` + rm -rf `find $(distdir) -name *.orig` diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..1148297 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,601 @@ +# Makefile.in generated by automake 1.7.9 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = . + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_triplet = @host@ +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +ASMOBJS = @ASMOBJS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BSDSOCKOBJS = @BSDSOCKOBJS@ +BUILD_MACOSX_BUNDLE_FALSE = @BUILD_MACOSX_BUNDLE_FALSE@ +BUILD_MACOSX_BUNDLE_TRUE = @BUILD_MACOSX_BUNDLE_TRUE@ +CC = @CC@ +CCAS = @CCAS@ +CCASFLAGS = @CCASFLAGS@ +CCDEPMODE = @CCDEPMODE@ +CDOBJS = @CDOBJS@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CPUOBJS = @CPUOBJS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEBUGOBJS = @DEBUGOBJS@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +EXTRAOBJS = @EXTRAOBJS@ +FILEPRG = @FILEPRG@ +FILESYSOBJS = @FILESYSOBJS@ +GENCPUOPTS = @GENCPUOPTS@ +GFX_DEP = @GFX_DEP@ +GREP = @GREP@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_CONFIG = @GTK_CONFIG@ +GTK_LIBS = @GTK_LIBS@ +GUI_DEP = @GUI_DEP@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +JITOBJS = @JITOBJS@ +JOY_DEP = @JOY_DEP@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MACHDEP = @MACHDEP@ +MAKEDEPPRG = @MAKEDEPPRG@ +MAKEINFO = @MAKEINFO@ +MATHLIB = @MATHLIB@ +NO_SCHED_CFLAGS = @NO_SCHED_CFLAGS@ +OBJC = @OBJC@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJC_LDFLAGS = @OBJC_LDFLAGS@ +OBJEXT = @OBJEXT@ +OSDEP = @OSDEP@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +RCLPRG = @RCLPRG@ +RESOBJS = @RESOBJS@ +SCSIOBJS = @SCSIOBJS@ +SDL_CFLAGS = @SDL_CFLAGS@ +SDL_CONFIG = @SDL_CONFIG@ +SDL_LIBS = @SDL_LIBS@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SND_DEP = @SND_DEP@ +STRIP = @STRIP@ +TARGET = @TARGET@ +TARGET_BEOS_FALSE = @TARGET_BEOS_FALSE@ +TARGET_BEOS_TRUE = @TARGET_BEOS_TRUE@ +TARGET_BIGENDIAN_FALSE = @TARGET_BIGENDIAN_FALSE@ +TARGET_BIGENDIAN_TRUE = @TARGET_BIGENDIAN_TRUE@ +TARGET_WIN32_FALSE = @TARGET_WIN32_FALSE@ +TARGET_WIN32_TRUE = @TARGET_WIN32_TRUE@ +THREADDEP = @THREADDEP@ +UAE_RSRCFILE = @UAE_RSRCFILE@ +VERSION = @VERSION@ +WRCPRG = @WRCPRG@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_OBJC = @ac_ct_OBJC@ +ac_cv_c_inline = @ac_cv_c_inline@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__fastdepOBJC_FALSE = @am__fastdepOBJC_FALSE@ +am__fastdepOBJC_TRUE = @am__fastdepOBJC_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +ACLOCAL_AMFLAGS = -I m4 + +EXTRA_DIST = m4 amiga docs CHANGES README + +SUBDIRS = src + +dist_noinst_SCRIPTS = bootstrap.sh +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/src/sysconfig.h +CONFIG_CLEAN_FILES = +SCRIPTS = $(dist_noinst_SCRIPTS) + +DIST_SOURCES = + +RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ + ps-recursive install-info-recursive uninstall-info-recursive \ + all-recursive install-data-recursive install-exec-recursive \ + installdirs-recursive install-recursive uninstall-recursive \ + check-recursive installcheck-recursive +DIST_COMMON = README $(dist_noinst_SCRIPTS) $(srcdir)/Makefile.in \ + $(srcdir)/configure COPYING ChangeLog Makefile.am aclocal.m4 \ + config.guess config.sub configure configure.in depcomp \ + install-sh missing mkinstalldirs +DIST_SUBDIRS = $(SUBDIRS) +all: all-recursive + +.SUFFIXES: + +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) + +$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck +$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) + cd $(srcdir) && $(AUTOCONF) + +$(ACLOCAL_M4): configure.in m4/ac_var_timezone_externals.m4 m4/acx_pthread.m4 m4/as-objc.m4 m4/check_zlib.m4 m4/fsusage.m4 m4/gtk-2.0.m4 m4/gtk.m4 m4/sdl.m4 m4/type_socklen_t.m4 m4/uintmax_t.m4 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +uninstall-info-am: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @set fnord $$MAKEFLAGS; amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @set fnord $$MAKEFLAGS; amf=$$2; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ETAGS = etags +ETAGSFLAGS = + +CTAGS = ctags +CTAGSFLAGS = + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if (etags --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + else \ + include_option=--include; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -f $$subdir/TAGS && \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$tags$$unique" \ + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique + +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = . +distdir = $(PACKAGE)-$(VERSION) + +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } + +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print + +distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) + $(mkinstalldirs) $(distdir)/src/od-macosx + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d $(distdir)/$$subdir \ + || mkdir $(distdir)/$$subdir \ + || exit 1; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" \ + distdir=../$(distdir)/$$subdir \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist dist-all: distdir + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + $(am__remove_distdir) + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ + && rm -f $(distdir).tar.gz \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @echo "$(distdir).tar.gz is ready for distribution" | \ + sed 'h;s/./=/g;p;x;p;x' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile $(SCRIPTS) +installdirs: installdirs-recursive +installdirs-am: + +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ + clean-generic clean-recursive ctags ctags-recursive dist \ + dist-all dist-bzip2 dist-gzip distcheck distclean \ + distclean-generic distclean-recursive distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am \ + dvi-recursive info info-am info-recursive install install-am \ + install-data install-data-am install-data-recursive \ + install-exec install-exec-am install-exec-recursive \ + install-info install-info-am install-info-recursive install-man \ + install-recursive install-strip installcheck installcheck-am \ + installdirs installdirs-am installdirs-recursive \ + maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \ + ps-recursive tags tags-recursive uninstall uninstall-am \ + uninstall-info-am uninstall-info-recursive uninstall-recursive + + +dist-hook: + rm -rf `find $(distdir) -name CVS` + rm -rf `find $(distdir) -name *.bak` + rm -rf `find $(distdir) -name *~` + rm -rf `find $(distdir) -name *.orig` +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/README b/README new file mode 100644 index 0000000..9cd0b73 --- /dev/null +++ b/README @@ -0,0 +1,154 @@ +E-UAE 0.8.29-WIP4 +================= + +E-UAE is an Amiga emulator, a program that allows you to run software +designed for Amiga computers on other platforms, such as Linux or Mac +OS. It is based on UAE, the original Ubiquitous Amiga Emulator, and +WinUAE, the Windows version of UAE. While it owes a huge debt to these +two great projects, E-UAE diverges from both, aiming to improve +performance and features on a variety of host platforms. + +The name E-UAE stemmed from the fact that this project needed a name, +and, since it was an 'experimental' version of UAE, everybody was +calling it 'Experimental' UAE. While I have long since accepted that +moniker, I still don't intend the 'E' to mean anything it particular. +Although the project is currently 'experimental' - that is, it is a +long way from being anything close to finished - it should still be +robust enough to use. + +E-UAE currently builds and runs - with varying degrees of supported +features - on Unix and Unix-like platforms (including Linux, Solaris +and Mac OS X), BeOS, AmigaOS and clones (including AmigaOS 3.x, +AmigaOS 4.0, MorphOS and AROS), and Windows (with Cygwin or MinGW32). + +E-UAE is open-source software and is made available under the terms of +the GPL. See the COPYING file included with the E-UAE archive for +details. + +E-UAE is based on the work of dozens of contributors including Bernd +Schmidt (the original author and maintainer of UAE), Bernie Meyer (the +author of the x86 JIT compiler), Toni Wilen (the current maintainer of +WinUAE), and many more. + +Note that to make full use of E-UAE you will need access to an image +of some version of the Amiga Kickstart ROM (although E-UAE does include +a ROM emulation which may work with some old games). The Amiga +Kickstart ROMs are copyrighted material and may not be freely +distributed (so don't ask me for a copy). If you don't have an Amiga +from which you can legally make a ROM image, a selection of ROM images +are available for purchase online from Cloanto (publishers of the +Amiga Forever distribution). See http://www.amigaforever.com/ + + +What's new since 0.8.29-WIP3 +============================ + +A huge amount of work has gone into E-UAE since the last public +release. Not of all of this work will be readily apparent to users +since it took place under the surface. However, some user-visible +changes include: + +* Emulation core from WinUAE 1.3.x merged. +* Much more stable on SMP hosts. +* Builds on Solaris x86 (with GCC). +* Integrated mouse-hack feature merged from WinUAE (this synchronizes + the Amiga mouse pointer with the host pointer when E-UAE is running + in a window on your desktop) merged from WinUAE. The old AmigaOS + mousehack tool is no longer required. +* New, easier-to-use Linux SCSI back-end (Jochen Becher). +* Experimental GL renderer in SDL display back-end (originally from + Jochen Becher but mostly re-written). On most platforms this is yet + to offer much over the existing 2D renderer, but on Mac OS X it + offers significantly better performance. Enabled with + 'sdl.use_gl=true'. +* Support for the 'uae-configuration' tool merged from WinUAE. This is + an AmigaOS shell command which allows UAE settings to be queried and + modified from within the emulation environment. +* Better, smoother performance when cpu_speed=real (A500 speed). E-UAE + adapts better to changing system latencies. +* 'Sinc' audio interpolation added (Antti Lankila). +* Minor performance improvements in interpretive CPU emulator and JIT + engine. +* Mac OS X icon added (from Daniel Pimley). +* Lots of bugs fixes, including: + - Broken 'delayed' interrupt handling when JIT was disabled. + - Inconsistent refreshing of P96 screens. + - Filesystems being mounted twice. + - Hardfiles broken following a reset. + - Broken detection of XKB path in X11 driver (fix from Peter Volkov). + + +Still to do +=========== + +The following features of UAE and/or WinUAE are not yet supported yet +in E-UAE. These include: + +* Serial and parallel port emulation. +* AHI soundcard emulation. +* Catweasel support. +* Graphics filters, scaling, etc. +* Floppy drive sounds. + + +Known problems +============== + +Some significant misfeatures that I know about and am/will be working +to fix (eventually): + +* Only platforms supporting the GTK+ toolkit have a useable + configuration GUI (and the GTK+ GUI is still incomplete). However, + Mac OS X users may like to try Daniel Pimley's graphical front-end, + Hi Toro. See http://www.pimley.net/projects/. +* JIT direct memory access only works on Linux/x86 and, by default, + you may only emulate up to 32MB of direct ZIII RAM; select more than + that and the JIT will fall back on indirect memory access and hence + will be slower. This is due to a system limit on the size of a POSIX + shared memory segment. You can overcome this limit my modifying the + value of the procfs setting, /proc/sys/kernel/shmmax. +* Virtual filesystem doesn't support platforms which use UTF-8 for + filenames (e.g., OS X, Linux with a UTF-8 locale, etc.). Filenames + with characters outside of the core ASCII range will be mangled. +* OpenGL renderer is experimental, unfinished and has no error + recovery. +* Tear-free graphical output (with the gfx_vsync=true option) doesn't + work on most platforms yet (the exceptions being Mac OS X with the + SDL/GL renderer and AmigaOS4.0 with SDL). +* The Mac OS X version is currently for PowerPC hardware only (I don't + have an Intel Mac). Users with Macintel hardware may wish to try + Jens Weichert's Intel builds. See http://e-uae.de.vu/. +* The build scripts are a horrible, unmaintainable mess. +* Full documentation is lacking. + + +Using E-UAE +=========== + +Documentation is a work-in-progress. See the docs directory. + + +Compiling E-UAE yourself +======================== + +See the docs/compiling.txt file for more information about building +E-UAE. + + +CVS +=== + +Details about how to access the CVS repository containing the current +development version of E-UAE can be found at: + +http://sourceforge.net/cvs/?group_id=109723 + + +Contact +======= + +See http://www.freelists.org/list/uae for details of a mailing list +discussing problems with and development of E-UAE. + +Send bug reports, comments, patches, etc. to the above list or to: +Richard Drummond diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..3c82ed3 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,2173 @@ +# generated automatically by aclocal 1.7.9 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- + +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +AC_PREREQ([2.52]) + +# serial 6 + +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) + +# Do all the work for Automake. -*- Autoconf -*- + +# This macro actually does too much some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 +# Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 10 + +AC_PREREQ([2.54]) + +# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow +# the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_MISSING_PROG(AMTAR, tar) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl + +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $1 | $1:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) + +# Copyright 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.7.9])]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright 2001, 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 2 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# +# Check to make sure that the build environment is sane. +# + +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 3 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# -*- Autoconf -*- + + +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 3 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# AM_AUX_DIR_EXPAND + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +# Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50]) + +AC_DEFUN([AM_AUX_DIR_EXPAND], [ +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# AM_PROG_INSTALL_STRIP + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# -*- Autoconf -*- +# Copyright (C) 2003 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 1 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# serial 5 -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + : > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # (even with -Werror). So we grep stderr for any message + # that says an option was ignored. + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking Speeds up one-time builds + --enable-dependency-tracking Do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH]) +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +#serial 2 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue + # Extract the definition of DEP_FILES from the Makefile without + # running `make'. + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` + test -z "$DEPDIR" && continue + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n -e '/^U = / s///p' < "$mf"` + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" + # We invoke sed twice because it is the simplest approach to + # changing $(DEPDIR) to its actual value in the expansion. + for file in `sed -n -e ' + /^DEP_FILES = .*\\\\$/ { + s/^DEP_FILES = // + :loop + s/\\\\$// + p + n + /\\\\$/ b loop + p + } + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 2 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 5 + +AC_PREREQ(2.52) + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE]) +AC_SUBST([$1_FALSE]) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]) +fi])]) + + + +# AC_PROG_OBJC([LIST-OF-COMPILERS]) +# +AC_DEFUN([AS_PROG_OBJC], +[ +AC_CHECK_TOOLS(OBJC, + [m4_default([$1], [objcc objc gcc cc CC])], + none) +AC_SUBST(OBJC) +OBJC_LDFLAGS="-lobjc" +AC_SUBST(OBJC_LDFLAGS) +if test "x$OBJC" != xnone ; then + _AM_DEPENDENCIES(OBJC) + AC_MSG_CHECKING([if Objective C compiler works]) + cat >>conftest.m < +@interface Moo:Object +{ +} +- moo; +int main(); +@end + +@implementation Moo +- moo +{ + exit(0); +} + +int main() +{ + id moo; + moo = [[Moo new]]; + [[moo moo]]; + return 1; +} +@end +EOF + ${OBJC} conftest.m ${OBJC_LDFLAGS} >&5 2>&5 + if test -f a.out -o -f a.exe ; then + result=yes + else + result=no + echo failed program is: >&5 + cat conftest.m >&5 + fi + rm -f conftest.m a.out a.exe + AC_MSG_RESULT([$result]) +fi + +]) + + + +# Figure out how to run the assembler. -*- Autoconf -*- + +# serial 2 + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# AM_PROG_AS +# ---------- +AC_DEFUN([AM_PROG_AS], +[# By default we simply use the C compiler to build assembly code. +AC_REQUIRE([AC_PROG_CC]) +: ${CCAS='$(CC)'} +# Set ASFLAGS if not already set. +: ${CCASFLAGS='$(CFLAGS)'} +AC_SUBST(CCAS) +AC_SUBST(CCASFLAGS)]) + +# Configure paths for GTK+ +# Owen Taylor 1997-2001 + +dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) +dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, +dnl pass to pkg-config +dnl +AC_DEFUN([AM_PATH_GTK_2_0], +[dnl +dnl Get the cflags and libraries from pkg-config +dnl +AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], + , enable_gtktest=yes) + + pkg_config_args=gtk+-2.0 + for module in . $4 + do + case "$module" in + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + esac + done + + no_gtk="" + + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + + if test x$PKG_CONFIG != xno ; then + if pkg-config --atleast-pkgconfig-version 0.7 ; then + : + else + echo "*** pkg-config too old; version 0.7 or better required." + no_gtk=yes + PKG_CONFIG=no + fi + else + no_gtk=yes + fi + + min_gtk_version=ifelse([$1], ,2.0.0,$1) + AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" + enable_gtktest=no + fi + + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then + : + else + no_gtk=yes + fi + fi + + if test x"$no_gtk" = x ; then + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" +dnl +dnl Now check if the installed GTK+ is sufficiently new. (Also sanity +dnl checks the results of pkg-config to some extent) +dnl + rm -f conf.gtktest + AC_TRY_RUN([ +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + system ("touch conf.gtktest"); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://pkgconfig.sourceforge.net" + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK+ test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK+ or finding the wrong" + echo "*** version of GTK+. If it is not finding GTK+, 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" ], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + rm -f conf.gtktest +]) + +# Configure paths for GTK+ +# Owen Taylor 97-11-3 + +dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) +dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS +dnl +AC_DEFUN(AM_PATH_GTK, +[dnl +dnl Get the cflags and libraries from the gtk-config script +dnl +AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], + gtk_config_prefix="$withval", gtk_config_prefix="") +AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], + gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") +AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], + , enable_gtktest=yes) + + for module in . $4 + do + case "$module" in + gthread) + gtk_config_args="$gtk_config_args gthread" + ;; + esac + done + + if test x$gtk_config_exec_prefix != x ; then + gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" + if test x${GTK_CONFIG+set} != xset ; then + GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config + fi + fi + if test x$gtk_config_prefix != x ; then + gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" + if test x${GTK_CONFIG+set} != xset ; then + GTK_CONFIG=$gtk_config_prefix/bin/gtk-config + fi + fi + + AC_PATH_PROG(GTK_CONFIG, gtk-config, no) + min_gtk_version=ifelse([$1], ,0.99.7,$1) + AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) + no_gtk="" + if test "$GTK_CONFIG" = "no" ; then + no_gtk=yes + else + GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` + GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` + gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" +dnl +dnl Now check if the installed GTK is sufficiently new. (Also sanity +dnl checks the results of gtk-config to some extent +dnl + rm -f conf.gtktest + AC_TRY_RUN([ +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + system ("touch conf.gtktest"); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If gtk-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); + printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); + printf("*** before re-running configure\n"); + } +#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } +#endif /* defined (GTK_MAJOR_VERSION) ... */ + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); + printf("*** correct copy of gtk-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$GTK_CONFIG" = "no" ; then + echo "*** The gtk-config script installed by GTK could not be found" + echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the GTK_CONFIG environment variable to the" + echo "*** full path to gtk-config." + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK test program, checking why..." + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK or finding the wrong" + echo "*** version of GTK. If it is not finding GTK, 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" + echo "***" + echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" + echo "*** came with the system with the command" + echo "***" + echo "*** rpm --erase --nodeps gtk gtk-devel" ], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK was incorrectly installed" + echo "*** or that you have moved GTK since it was installed. In the latter case, you" + echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + rm -f conf.gtktest +]) + +dnl @synopsis TYPE_SOCKLEN_T +dnl +dnl Check whether sys/socket.h defines type socklen_t. Please note that +dnl some systems require sys/types.h to be included before sys/socket.h +dnl can be compiled. +dnl +dnl @category Misc +dnl @author Lars Brinkhoff +dnl @version 2005-01-11 +dnl @license GPLWithACException + +AC_DEFUN([TYPE_SOCKLEN_T], +[AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t, +[ + AC_TRY_COMPILE( + [#include + #include ], + [socklen_t len = 42; return 0;], + ac_cv_type_socklen_t=yes, + ac_cv_type_socklen_t=no) +]) + if test $ac_cv_type_socklen_t != yes; then + AC_DEFINE(socklen_t, int, [Substitute for socklen_t]) + fi +]) + + +# file-type.m4 serial 1 +dnl Copyright (C) 2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +AC_DEFUN([gl_FILE_TYPE], +[ + dnl Prerequisites of lib/file-type.h. + AC_REQUIRE([AC_HEADER_STAT]) +]) + +#serial 11 + +# From fileutils/configure.in + +AC_DEFUN([gl_FSUSAGE], +[ + AC_CHECK_HEADERS(sys/param.h) + AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs_types.h) + jm_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no]) + if test $gl_cv_fs_space = yes; then + AC_LIBOBJ(fsusage) + gl_PREREQ_FSUSAGE_EXTRA + fi +]) + +# Try to determine how a program can obtain filesystem usage information. +# If successful, define the appropriate symbol (see fsusage.c) and +# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND. +# +# jm_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) + +AC_DEFUN([jm_FILE_SYSTEM_USAGE], +[ + +echo "checking how to get filesystem space usage..." +ac_fsusage_space=no + +# Perform only the link test since it seems there are no variants of the +# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs) +# because that got a false positive on SCO OSR5. Adding the declaration +# of a `struct statvfs' causes this test to fail (as it should) on such +# systems. That system is reported to work fine with STAT_STATFS4 which +# is what it gets when this test fails. +if test $ac_fsusage_space = no; then + # SVR4 + AC_CACHE_CHECK([for statvfs function (SVR4)], fu_cv_sys_stat_statvfs, + [AC_TRY_LINK([#include +#ifdef __GLIBC__ +Do not use statvfs on systems with GNU libc, because that function stats +all preceding entries in /proc/mounts, and that makes df hang if even +one of the corresponding file systems is hard-mounted, but not available. +#endif +#include ], + [struct statvfs fsd; statvfs (0, &fsd);], + fu_cv_sys_stat_statvfs=yes, + fu_cv_sys_stat_statvfs=no)]) + if test $fu_cv_sys_stat_statvfs = yes; then + ac_fsusage_space=yes + AC_DEFINE(STAT_STATVFS, 1, + [ Define if there is a function named statvfs. (SVR4)]) + fi +fi + +if test $ac_fsusage_space = no; then + # DEC Alpha running OSF/1 + AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)]) + AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1, + [AC_TRY_RUN([ +#include +#include +#include + main () + { + struct statfs fsd; + fsd.f_fsize = 0; + exit (statfs (".", &fsd, sizeof (struct statfs))); + }], + fu_cv_sys_stat_statfs3_osf1=yes, + fu_cv_sys_stat_statfs3_osf1=no, + fu_cv_sys_stat_statfs3_osf1=no)]) + AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1) + if test $fu_cv_sys_stat_statfs3_osf1 = yes; then + ac_fsusage_space=yes + AC_DEFINE(STAT_STATFS3_OSF1, 1, + [ Define if statfs takes 3 args. (DEC Alpha running OSF/1)]) + fi +fi + +if test $ac_fsusage_space = no; then +# AIX + AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl +member (AIX, 4.3BSD)]) + AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize, + [AC_TRY_RUN([ +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif +#ifdef HAVE_SYS_VFS_H +#include +#endif + main () + { + struct statfs fsd; + fsd.f_bsize = 0; + exit (statfs (".", &fsd)); + }], + fu_cv_sys_stat_statfs2_bsize=yes, + fu_cv_sys_stat_statfs2_bsize=no, + fu_cv_sys_stat_statfs2_bsize=no)]) + AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize) + if test $fu_cv_sys_stat_statfs2_bsize = yes; then + ac_fsusage_space=yes + AC_DEFINE(STAT_STATFS2_BSIZE, 1, +[ Define if statfs takes 2 args and struct statfs has a field named f_bsize. + (4.3BSD, SunOS 4, HP-UX, AIX PS/2)]) + fi +fi + +if test $ac_fsusage_space = no; then +# SVR3 + AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)]) + AC_CACHE_VAL(fu_cv_sys_stat_statfs4, + [AC_TRY_RUN([#include +#include + main () + { + struct statfs fsd; + exit (statfs (".", &fsd, sizeof fsd, 0)); + }], + fu_cv_sys_stat_statfs4=yes, + fu_cv_sys_stat_statfs4=no, + fu_cv_sys_stat_statfs4=no)]) + AC_MSG_RESULT($fu_cv_sys_stat_statfs4) + if test $fu_cv_sys_stat_statfs4 = yes; then + ac_fsusage_space=yes + AC_DEFINE(STAT_STATFS4, 1, + [ Define if statfs takes 4 args. (SVR3, Dynix, Irix, Dolphin)]) + fi +fi + +if test $ac_fsusage_space = no; then +# 4.4BSD and NetBSD + AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl +member (4.4BSD and NetBSD)]) + AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize, + [AC_TRY_RUN([#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif + main () + { + struct statfs fsd; + fsd.f_fsize = 0; + exit (statfs (".", &fsd)); + }], + fu_cv_sys_stat_statfs2_fsize=yes, + fu_cv_sys_stat_statfs2_fsize=no, + fu_cv_sys_stat_statfs2_fsize=no)]) + AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize) + if test $fu_cv_sys_stat_statfs2_fsize = yes; then + ac_fsusage_space=yes + AC_DEFINE(STAT_STATFS2_FSIZE, 1, +[ Define if statfs takes 2 args and struct statfs has a field named f_fsize. + (4.4BSD, NetBSD)]) + fi +fi + +if test $ac_fsusage_space = no; then + # Ultrix + AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)]) + AC_CACHE_VAL(fu_cv_sys_stat_fs_data, + [AC_TRY_RUN([#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif +#ifdef HAVE_SYS_FS_TYPES_H +#include +#endif + main () + { + struct fs_data fsd; + /* Ultrix's statfs returns 1 for success, + 0 for not mounted, -1 for failure. */ + exit (statfs (".", &fsd) != 1); + }], + fu_cv_sys_stat_fs_data=yes, + fu_cv_sys_stat_fs_data=no, + fu_cv_sys_stat_fs_data=no)]) + AC_MSG_RESULT($fu_cv_sys_stat_fs_data) + if test $fu_cv_sys_stat_fs_data = yes; then + ac_fsusage_space=yes + AC_DEFINE(STAT_STATFS2_FS_DATA, 1, +[ Define if statfs takes 2 args and the second argument has + type struct fs_data. (Ultrix)]) + fi +fi + +if test $ac_fsusage_space = no; then + # SVR2 + AC_TRY_CPP([#include + ], + AC_DEFINE(STAT_READ_FILSYS, 1, + [Define if there is no specific function for reading filesystems usage + information and you have the header file. (SVR2)]) + ac_fsusage_space=yes) +fi + +AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) + +]) + + +# Check for SunOS statfs brokenness wrt partitions 2GB and larger. +# If exists and struct statfs has a member named f_spare, +# enable the work-around code in fsusage.c. +AC_DEFUN([jm_STATFS_TRUNCATES], +[ + AC_MSG_CHECKING([for statfs that truncates block counts]) + AC_CACHE_VAL(fu_cv_sys_truncating_statfs, + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#if !defined(sun) && !defined(__sun) +choke -- this is a workaround for a Sun-specific problem +#endif +#include +#include ]], + [[struct statfs t; long c = *(t.f_spare);]])], + [fu_cv_sys_truncating_statfs=yes], + [fu_cv_sys_truncating_statfs=no])]) + if test $fu_cv_sys_truncating_statfs = yes; then + AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1, + [Define if the block counts reported by statfs may be truncated to 2GB + and the correct values may be stored in the f_spare array. + (SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem. + SunOS 4.1.1 seems not to be affected.)]) + fi + AC_MSG_RESULT($fu_cv_sys_truncating_statfs) +]) + + +# Prerequisites of lib/fsusage.c not done by jm_FILE_SYSTEM_USAGE. +AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA], +[ + AC_REQUIRE([jm_AC_TYPE_UINTMAX_T]) + AC_CHECK_HEADERS(fcntl.h) + AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h) + jm_STATFS_TRUNCATES +]) + +# uintmax_t.m4 serial 7 (gettext-0.12) +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +AC_PREREQ(2.13) + +# Define uintmax_t to 'unsigned long' or 'unsigned long long' +# if it is not already defined in or . + +AC_DEFUN([jm_AC_TYPE_UINTMAX_T], +[ + AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([jm_AC_HEADER_STDINT_H]) + if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then + AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, + [Define to unsigned long or unsigned long long + if and don't define.]) + else + AC_DEFINE(HAVE_UINTMAX_T, 1, + [Define if you have the 'uintmax_t' type in or .]) + fi +]) +# inttypes_h.m4 serial 5 (gettext-0.12) +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([jm_AC_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, + [AC_TRY_COMPILE( + [#include +#include ], + [uintmax_t i = (uintmax_t) -1;], + jm_ac_cv_header_inttypes_h=yes, + jm_ac_cv_header_inttypes_h=no)]) + if test $jm_ac_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) + +# stdint_h.m4 serial 3 (gettext-0.12) +dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +# Define HAVE_STDINT_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([jm_AC_HEADER_STDINT_H], +[ + AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h, + [AC_TRY_COMPILE( + [#include +#include ], + [uintmax_t i = (uintmax_t) -1;], + jm_ac_cv_header_stdint_h=yes, + jm_ac_cv_header_stdint_h=no)]) + if test $jm_ac_cv_header_stdint_h = yes; then + AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) + +# ulonglong.m4 serial 3 +dnl Copyright (C) 1999-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Paul Eggert. + +# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. + +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG], +[ + AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, + [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], + [unsigned long long ullmax = (unsigned long long) -1; + return ull << i | ull >> i | ullmax / ull | ullmax % ull;], + ac_cv_type_unsigned_long_long=yes, + ac_cv_type_unsigned_long_long=no)]) + if test $ac_cv_type_unsigned_long_long = yes; then + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, + [Define if you have the 'unsigned long long' type.]) + fi +]) + +dnl Available from the GNU Autoconf Macro Archive at: +dnl http://www.gnu.org/software/ac-archive/htmldoc/check_zlib.html +dnl +AC_DEFUN([CHECK_ZLIB], +# +# Handle user hints +# +[AC_MSG_CHECKING(if zlib is wanted) +AC_ARG_WITH(zlib, +[ --with-zlib=DIR root directory path of zlib installation [defaults to + /usr/local or /usr if not found in /usr/local] + --without-zlib to disable zlib usage completely], +[if test "$withval" != no ; then + AC_MSG_RESULT(yes) + ZLIB_HOME="$withval" +else + AC_MSG_RESULT(no) +fi], [ +AC_MSG_RESULT(yes) +ZLIB_HOME=/usr/local +if test ! -f "${ZLIB_HOME}/include/zlib.h" +then + ZLIB_HOME=/usr +fi +]) + +# +# Locate zlib, if wanted +# +if test -n "${ZLIB_HOME}" +then + ZLIB_OLD_LDFLAGS=$LDFLAGS + ZLIB_OLD_CPPFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" + CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" + AC_LANG_SAVE + AC_LANG_C + AC_CHECK_LIB(z, inflateEnd, [zlib_cv_libz=yes], [zlib_cv_libz=no]) + AC_CHECK_HEADER(zlib.h, [zlib_cv_zlib_h=yes], [zlib_cvs_zlib_h=no]) + AC_LANG_RESTORE + if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" + then + # + # If both library and header were found, use them + # + AC_CHECK_LIB(z, inflateEnd) + AC_MSG_CHECKING(zlib in ${ZLIB_HOME}) + AC_MSG_RESULT(ok) + else + # + # If either header or library was not found, revert and bomb + # + AC_MSG_CHECKING(zlib in ${ZLIB_HOME}) + LDFLAGS="$ZLIB_OLD_LDFLAGS" + CPPFLAGS="$ZLIB_OLD_CPPFLAGS" + AC_MSG_RESULT(failed) + AC_MSG_ERROR(either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib) + fi +fi + +]) + +dnl Available from the GNU Autoconf Macro Archive at: +dnl http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.html +dnl +AC_DEFUN([ACX_PTHREAD], [ +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_LANG_SAVE +AC_LANG_C +acx_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) + AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) + AC_MSG_RESULT($acx_pthread_ok) + if test x"$acx_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all. + +acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# pthread: Linux, etcetera +# --thread-safe: KAI C++ + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthread or + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" + ;; +esac + +if test x"$acx_pthread_ok" = xno; then +for flag in $acx_pthread_flags; do + + case $flag in + none) + AC_MSG_CHECKING([whether pthreads work without any flags]) + ;; + + -*) + AC_MSG_CHECKING([whether pthreads work with $flag]) + PTHREAD_CFLAGS="$flag" + ;; + + *) + AC_MSG_CHECKING([for the pthreads library -l$flag]) + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + AC_TRY_LINK([#include ], + [pthread_t th; pthread_join(th, 0); + pthread_attr_init(0); pthread_cleanup_push(0, 0); + pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], + [acx_pthread_ok=yes]) + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + AC_MSG_RESULT($acx_pthread_ok) + if test "x$acx_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$acx_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: threads are created detached by default + # and the JOINABLE attribute has a nonstandard name (UNDETACHED). + AC_MSG_CHECKING([for joinable pthread attribute]) + AC_TRY_LINK([#include ], + [int attr=PTHREAD_CREATE_JOINABLE;], + ok=PTHREAD_CREATE_JOINABLE, ok=unknown) + if test x"$ok" = xunknown; then + AC_TRY_LINK([#include ], + [int attr=PTHREAD_CREATE_UNDETACHED;], + ok=PTHREAD_CREATE_UNDETACHED, ok=unknown) + fi + if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then + AC_DEFINE(PTHREAD_CREATE_JOINABLE, $ok, + [Define to the necessary symbol if this constant + uses a non-standard name on your system.]) + fi + AC_MSG_RESULT(${ok}) + if test x"$ok" = xunknown; then + AC_MSG_WARN([we do not know how to create joinable pthreads]) + fi + + AC_MSG_CHECKING([if more special flags are required for pthreads]) + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + AC_MSG_RESULT(${flag}) + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with cc_r + AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC}) +else + PTHREAD_CC="$CC" +fi + +AC_SUBST(PTHREAD_LIBS) +AC_SUBST(PTHREAD_CFLAGS) +AC_SUBST(PTHREAD_CC) + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$acx_pthread_ok" = xyes; then + ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) + : +else + acx_pthread_ok=no + $2 +fi +AC_LANG_RESTORE +])dnl ACX_PTHREAD + +# Configure paths for SDL +# Sam Lantinga 9/21/99 +# stolen from Manish Singh +# stolen back from Frank Belew +# stolen from Manish Singh +# Shamelessly stolen from Owen Taylor + +dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS +dnl +AC_DEFUN([AM_PATH_SDL], +[dnl +dnl Get the cflags and libraries from the sdl-config script +dnl +AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], + sdl_prefix="$withval", sdl_prefix="") +AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], + sdl_exec_prefix="$withval", sdl_exec_prefix="") +AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], + , enable_sdltest=yes) + + if test x$sdl_exec_prefix != x ; then + sdl_args="$sdl_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_args="$sdl_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + AC_REQUIRE([AC_CANONICAL_HOST]) + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) + min_sdl_version=ifelse([$1], ,0.11.0,$1) + AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_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_LIBS="$LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" +dnl +dnl Now check if the installed SDL is sufficiently new. (Also sanity +dnl checks the results of sdl-config to some extent +dnl + rm -f conf.sdltest + AC_TRY_RUN([ +#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; + } +} + +],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + 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" + LIBS="$LIBS $SDL_LIBS" + AC_TRY_LINK([ +#include +#include "SDL.h" + +int main(int argc, char *argv[]) +{ return 0; } +#undef main +#define main K_and_R_C_main +], [ return 0; ], + [ 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"], + [ 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" ]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(SDL_CFLAGS) + AC_SUBST(SDL_LIBS) + rm -f conf.sdltest +]) + diff --git a/amiga/source/Makefile.gcc b/amiga/source/Makefile.gcc new file mode 100644 index 0000000..7eaccda --- /dev/null +++ b/amiga/source/Makefile.gcc @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +# Makefile to build UAE amiga tools with GCC + +CC = gcc +CFLAGS = -O2 -noixemul -fomit-frame-pointer -msmall-code -fbaserel +LDFLAGS = $(CFLAGS) -s + +timehack: timehack.o + +clean: + -rm timehack timehack.o diff --git a/amiga/source/mhint.asm b/amiga/source/mhint.asm new file mode 100644 index 0000000..73e091a --- /dev/null +++ b/amiga/source/mhint.asm @@ -0,0 +1,25 @@ + SECTION code + xdef _mousehackint +_mousehackint: + moveq.l #1,d0 + jsr.l $F0FF70 + move.l d0,d1 + moveq.l #2,d0 + jsr.l $F0FF70 + cmp.l (a1),d1 + bne l1 + cmp.l 4(a1),d0 + beq l2 +l1: + move.l d0,4(a1) + move.l d1,(a1) + move.l 8(a1),d0 + move.l 12(a1),a1 + move.l 4.w,a6 + jsr -324(a6) ; Signal +l2: + lea $DFF000,a0 + moveq.l #0,d0 + rts + + END diff --git a/amiga/source/mousehack.c b/amiga/source/mousehack.c new file mode 100644 index 0000000..f27b2ee --- /dev/null +++ b/amiga/source/mousehack.c @@ -0,0 +1,141 @@ +/* + * IEvent mouse hack + * + * Compile with DCC + * + * Copyright 1997 Bernd Schmidt + */ + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +int (*calltrap)(__d0 int) = 0xF0FF70; + +extern void mousehackint(void); + +struct { + ULONG mx; + ULONG my; + ULONG sigbit; + struct Task *mt; +} foo; + +struct Interrupt myint = { + { 0, 0, NT_INTERRUPT, 5, "UAE mouse hack" }, + &foo, + mousehackint +}; + +int main(int argc, char **argv) +{ + struct IntuitionBase *ibase; + struct InputEvent *iev; + struct IOStdReq *ioreq = 0; + struct MsgPort *port; + + struct timerequest *timereq = 0; + struct MsgPort *timeport; + int oldx = 0, oldy = 0; + int i; + + i = (*calltrap) (0); + if (i == 0) { + fprintf(stderr, "mousehack not needed for this version of UAE.\n"); + exit (0); + } + if (i == -1) { + fprintf(stderr, "mousehack already running.\n"); + exit (5); + } + + i = AllocSignal (-1); + if (i < 0) + goto fail; + foo.sigbit = 1 << i; + + port = CreatePort(0, 0); + timeport = CreatePort (0, 0); + if (port) + ioreq = CreateStdIO(port); + + if (timeport) + timereq = CreateStdIO(timeport); + + if (ioreq == 0) + goto fail; + if (timereq == 0) + goto fail; + + iev = AllocMem (sizeof (struct InputEvent), MEMF_CLEAR + MEMF_PUBLIC); + if (iev == 0) + goto fail; + if (OpenDevice ("input.device", 0, ioreq, 0) != 0) + goto fail; + if (OpenDevice ("timer.device", 0, timereq, 0) != 0) + goto fail; + + foo.mx = (ULONG)-1; + foo.my = (ULONG)-1; + foo.mt = FindTask (0); + AddIntServer(INTB_VERTB, &myint); + + ibase = OpenLibrary ("intuition.library", 0); + SetTaskPri (foo.mt, 20); /* same as input.device */ + for (;;) { + int newx, newy; + + Wait (foo.sigbit); + ioreq->io_Command = IND_WRITEEVENT; + ioreq->io_Length = sizeof (struct InputEvent); + ioreq->io_Data = iev; + ioreq->io_Flags = IOF_QUICK; + iev->ie_Class = IECLASS_POINTERPOS; + iev->ie_SubClass = 0; + iev->ie_Code = 0; + iev->ie_Qualifier = 0; +#if 0 + newx = (*calltrap) (1); + newy = (*calltrap) (2); + + if (oldy != newy || oldx != newx) +#endif + { + timereq->tr_node.io_Flags = IOF_QUICK; + timereq->tr_node.io_Command = TR_GETSYSTIME; + DoIO (timereq); + iev->ie_TimeStamp = timereq->tr_time; + /* Those are signed, so I hope negative values are OK... */ + /* I wonder why I have to multiply those by 2... but it works, + * at least for me. */ + iev->ie_position.ie_xy.ie_x = foo.mx - ibase->ViewLord.DxOffset*2; + iev->ie_position.ie_xy.ie_y = foo.my - ibase->ViewLord.DyOffset*2; + + oldx = newx; + oldy = newy; + DoIO(ioreq); + } +#if 0 + timereq->tr_node.io_Flags = IOF_QUICK; + timereq->tr_time.tv_secs = 0; + timereq->tr_time.tv_micro = 20000; + timereq->tr_node.io_Command = TR_ADDREQUEST; + DoIO(timereq); +#endif + } + fail: + fprintf (stderr, "Couldn't start mousehack (that's bad!)\n"); + exit (5); +} diff --git a/amiga/source/timehack.c b/amiga/source/timehack.c new file mode 100644 index 0000000..a4fc8e4 --- /dev/null +++ b/amiga/source/timehack.c @@ -0,0 +1,172 @@ +/* + * synchronize system time with the host's time + * + * Compile with DCC (or SAS/C) or GCC + * + * Copyright 1997, 1999 Bernd Schmidt + * Copyright 1999 Patrick Ohly + * Copyright 2003 Richard Drummond + * + * 0.3 - 20031106 + * Silly me. Timehack was demanding clock be exactly in sync + * to 1us accuracy. Make it less strict and only update amiga + * time if it's out by more than 1ms. + * 0.2 - 20031011 + * Oops. I got the the sign of the offset wrong in TZ. Apparently + * negative values are ahead of UTC. Go figure . . . + * 0.1 - 20031011 + * Quick and dirty support for using TZ offset added. + * Can now be killed with ^C + * Can now be built with GCC + * Replaced fprintf() with fputs() for smaller code size with GCC. + */ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#ifdef __GNUC__ +#include +#include +#include +#include +#endif + + +#ifdef _DCC +int (*calltrap)(__d0 int, __a0 struct timeval *) = 0xF0FFA0; +#elif defined (__GNUC__) +int (*calltrap)(int __asm("d0"),struct timeval * __asm("a0")) = (APTR)0xF0FFA0; +#else +/* SAS */ +__asm int (*calltrap)(register __d0 int, register __a0 struct timeval *) = (APTR)0xF0FFA0; +#endif + +#ifdef __GNUC__ +/* Don't link with command-line parser to save code size */ +int __nocommandline = 0; +#endif + +/* We'll give this a verson number now. We have to + * to start somewhere - Rich */ +char verstag[] = "\0$VER: timehack 0.3"; + +#ifndef ABS +#define ABS(x) ((x)>=0?(x):-(x)) +#endif + + +/* + * get_tz_offset() + * + * Get offset from local time to UTC and return it as + * a timeval (seconds and usecs). The local timezone + * is read from the env variable TZ and this is expected + * to be in standard format, for example, EST+5. + * If TZ isn't present or can't be parsed, this will + * return an offset 0 seconds. + */ +struct timeval *get_tz_offset() +{ + static struct timeval tz_offset; + BPTR file; + char tz_str[7]; + + if ((file = Open ("ENV:TZ", MODE_OLDFILE))!=NULL) { + int len; + if ((len = Read (file, &tz_str[0], 6)) >= 4) { + tz_str[len]='\0'; + // N.B.: negative offsets in ENV:TZ are ahead of UTC + tz_offset.tv_secs = -1 * atol(&tz_str[3]) * 3600; + } + Close(file); + } else + tz_offset.tv_secs = 0; + + tz_offset.tv_micro = 0; + + return &tz_offset; +} + + +int main (int argc, char **argv) +{ + struct timerequest *timereq = 0; + struct MsgPort *timeport; + struct timeval *tz_offset; + struct Device *TimerBase; + int quit = 0; + int result = calltrap (0, 0); + + if (result == 1) + fputs ("timehack already running.\n", stderr); + else if (result == 2) + fputs ("timehack not supported with this version of UAE.\n", stderr); + if (result != 0) + exit (5); + + timeport = (struct MsgPort *) CreatePort (0, 0); + if (timeport) + timereq = (struct timerequest *) CreateStdIO(timeport); + + if (timereq == 0) + goto fail; + + if (OpenDevice ("timer.device", UNIT_VBLANK, (struct IORequest *) timereq, 0) != 0) + goto fail; + TimerBase = timereq->tr_node.io_Device; + + SetTaskPri (FindTask (NULL), 20); /* same as input.device */ + + tz_offset = get_tz_offset(); + + while (!quit) { + struct timeval cur_sys_time; + + timereq->tr_node.io_Command = TR_GETSYSTIME; + DoIO ((struct IORequest *)timereq); + cur_sys_time = timereq->tr_time; + calltrap (1, &timereq->tr_time); + if (timereq->tr_time.tv_secs != cur_sys_time.tv_secs + || (timereq->tr_time.tv_secs == cur_sys_time.tv_secs + && ABS(timereq->tr_time.tv_micro - cur_sys_time.tv_micro) > 1000)) + { + AddTime (&timereq->tr_time, tz_offset); + timereq->tr_node.io_Command = TR_SETSYSTIME; + DoIO ((struct IORequest *)timereq); + } + + timereq->tr_time.tv_secs = 1; + timereq->tr_time.tv_micro = 0; + timereq->tr_node.io_Command = TR_ADDREQUEST; + DoIO ((struct IORequest *)timereq); + + if (SetSignal(0L,SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C) + quit = TRUE; + } + /* Exit and error handling badly needs tidying up - Rich */ + CloseDevice ((struct IORequest *)timereq); + DeleteStdIO ((struct IOStdReq *)timereq); + DeletePort (timeport); + exit (0); + + fail: + fputs ("Couldn't start timehack (that's bad!)\n", stderr); + exit (5); +} diff --git a/amiga/source/transdisk.c b/amiga/source/transdisk.c new file mode 100644 index 0000000..1bf522d --- /dev/null +++ b/amiga/source/transdisk.c @@ -0,0 +1,166 @@ +/* + * Transdisk V4.2 + * Copyright 1995-97 Bernd Schmidt, Marcus Sundberg, Stefan Ropke, + * Rodney Hester, Joanne Dow + * + * Use DICE and 2.0 includes or above to compile. SAS C should work too. + */ + +#include +#include +#include +#include + +#include +#include +#include +#include + +#include +#include + +static void usage(void); + +static void usage(void) +{ + fprintf(stderr, "Usage: transdisk options\n"); + fprintf(stderr, "Recognized options:\n"); + fprintf(stderr, "-h: Assume device is high density\n"); + fprintf(stderr, "-d device unit: Use this device instead of DF0:\n"); + fprintf(stderr, "-s n: Begin transfer at track n\n"); + fprintf(stderr, "-e n: End transfer at track n\n"); + fprintf(stderr, "-w filename: writes the ADF file to disk\n\n"); + fprintf(stderr, "Example:\n"); + fprintf(stderr, "transdisk >RAM:df1.adf.1 -d trackdisk 1 -s 0 -e 39\n"); + fprintf(stderr, "transfers the first half of the floppy in DF1: into\n"); + fprintf(stderr, "a file in the RAM disk.\n"); + fprintf(stderr, "Or:\n"); + fprintf(stderr, "transdisk -w test.adf\n"); + fprintf(stderr, "writes the ADF-file test.adf to the disk in df0:\n"); +} + +int main(int argc, char **argv) +{ + char *filename, *openMode="rb"; + FILE *ADFFile; + int write=0; + struct IOStdReq *ioreq; + struct MsgPort *port; + + UBYTE *buffer; + char devicebuf[256]; + char *devicename = "trackdisk.device"; + char devicenum = 0; + int i; + int starttr = 0, endtr = 79; + int sectors = 11; + + for (i = 1; i < argc;) { + if (argv[i][0] != '-' || argv[i][2] != 0) { + usage(); + exit(1); + } + switch (argv[i][1]) { + case 'h': + sectors = 22; + i++; + break; + case 'd': + if (i+2 >= argc) { + usage(); + exit(1); + } + devicenum = atoi(argv[i+2]); + sprintf(devicebuf, "%s.device", argv[i+1]); + devicename = devicebuf; + i += 3; + break; + case 's': + if (i+1 >= argc) { + usage(); + exit(1); + } + starttr = atoi(argv[i+1]); + i += 2; + break; + case 'e': + if (i+1 >= argc) { + usage(); + exit(1); + } + endtr = atoi(argv[i+1]); + i += 2; + break; + case 'w': + if (i+1 >= argc) { + usage(); + exit(1); + } + filename=argv[i+1]; + write=1; + i += 2; + break; + default: + usage(); + exit(1); + } + } + fprintf(stderr,"Using %s unit %d\n", devicename, devicenum); + fprintf(stderr,"Tracks are %d sectors\n", sectors); + fprintf(stderr,"First track %d, last track %d\n", starttr, endtr); + + buffer = AllocMem(512, MEMF_CHIP); + if (write) { + ADFFile = fopen(filename,openMode); + + if (!ADFFile) { + fprintf(stderr,"Error while opening input file\n"); + exit (1); + } + } + + port = CreatePort(0, 0); + if (port) { + ioreq = CreateStdIO(port); + if (ioreq) { + if (OpenDevice(devicename, devicenum, (struct IORequest *) ioreq, 0) == 0) { + int tr, sec; + + ioreq->io_Command = write ? CMD_WRITE : CMD_READ; + ioreq->io_Length = 512; + ioreq->io_Data = buffer; + for (tr = starttr*2; tr < (endtr+1)*2; tr++) { + fprintf(stderr,"Track: %d\r",tr/2); + for (sec = 0; sec < sectors; sec++) { + fflush(stderr); + if (write) + if (fread(buffer, sizeof(UBYTE), 512, ADFFile) < 512) { + fprintf(stderr, "Error: ADF file to short?\n"); + exit(1); + } + ioreq->io_Offset = 512 * (tr * sectors + sec); + DoIO( (struct IORequest *) ioreq); + if (!write) + fwrite(buffer, sizeof(UBYTE), 512, stdout); + } + } + if (write) { /* Make sure the last track is written to disk */ + ioreq->io_Command = CMD_UPDATE; + DoIO( (struct IORequest *) ioreq); + } + ioreq->io_Command = TD_MOTOR; /* Turn Disk-motor off */ + ioreq->io_Length = 0; + DoIO( (struct IORequest *) ioreq); + CloseDevice( (struct IORequest *) ioreq); + } else + fprintf(stderr,"Unable to open %s unit %d\n", devicename, devicenum); + DeleteStdIO(ioreq); + } + DeletePort(port); + } + fprintf(stderr,"\n"); + FreeMem(buffer, 512); + if (write) + fclose (ADFFile); + return 0; +} diff --git a/amiga/source/transrom.c b/amiga/source/transrom.c new file mode 100644 index 0000000..333612a --- /dev/null +++ b/amiga/source/transrom.c @@ -0,0 +1,29 @@ +/* + * Transrom V4.1 + * Copyright 1995,1996 Bernd Schmidt, Marcus Sundberg, Stefan Ropke, + * Rodney Hester + * + * Use DICE and 2.0 includes or above to compile + */ + +#include + +int main(int argc, char **argv) +{ + int l; + + if (l=OpenLibrary("exec.library",35L)) /* Not sure about V35 */ + { + fprintf(stderr,"Writing 512K Kickstart image...\n"); + fflush(stderr); + fwrite((char *)0xF80000,sizeof(char),0x80000,stdout); + CloseLibrary(l); + } + else + { + fprintf(stderr,"Writing 256K Kickstart image...\n"); + fflush(stderr); + fwrite((char *)0xF80000,sizeof(char),0x40000,stdout); + } + return 0; +} diff --git a/amiga/source/uae-configuration.c b/amiga/source/uae-configuration.c new file mode 100755 index 0000000..403fda6 --- /dev/null +++ b/amiga/source/uae-configuration.c @@ -0,0 +1,66 @@ + +#define __NOLIBBASE__ +#include +#include + +#define OUTBUFSIZE 1000 + +long (*UaeConf) (...); + +struct Library *SysBase; +struct Library *DOSBase; + +char outbuf[OUTBUFSIZE+1]; + +__saveds long start (register __a0 param,register __d0 paramlen) +{ + long rc = 20; + long index; + BPTR out; + char *s; + BOOL brk = FALSE; + + UaeConf = (void *) 0xf0ff60; + + SysBase = *((struct Library **)4); + + if (DOSBase = OpenLibrary ("dos.library",0)) + { + out = Output(); + + if (*((ULONG *)UaeConf)) + { + index = -1; + + do { + outbuf[0] = 0; + rc = UaeConf (82,index,param,paramlen,outbuf,OUTBUFSIZE); + + if (outbuf[0] && out) + { + for (s = outbuf; *s; s++); + *s++ = '\n'; + Write (out,outbuf,s - outbuf); + } + + index++; + if (SetSignal(0,0) & SIGBREAKF_CTRL_C) + brk = TRUE; + } while (!brk && rc < 0); + + if (brk && out) + { + Write (out,"*** Break\n",10); + rc = 10; + } + + } + else + if (out) + Write (out,"Your version of WinUAE is too old\n",34); + + CloseLibrary (DOSBase); + } + + return (rc); +} diff --git a/amiga/source/uae-configuration.s b/amiga/source/uae-configuration.s new file mode 100755 index 0000000..d480698 --- /dev/null +++ b/amiga/source/uae-configuration.s @@ -0,0 +1,86 @@ + + ; uae-configuration Amiga-side part + ; (c) Toni Wilen 2004 + +OUTBUFSIZE = 1000 + + move.l a0,a3 + move.l d0,d3 + sub.l a4,a4 + moveq #20,d7 + + lea $f0ff60,a5 + tst.l (a5) + beq.s end + + move.l 4,a6 + lea dos(pc),a1 + moveq #0,d0 + jsr -$228(a6) ;OpenLibrary + tst.l d0 + beq.s end + move.l d0,a4 + move.l a4,a6 + + moveq #-1,d6 + +loop + lea outbuf,a2 + move.l #OUTBUFSIZE,-(sp) ;out len + move.l a2,-(sp) ;out + clr.b (a2) + move.l d3,-(sp) ;param len + move.l a3,-(sp) ;param + move.l d6,-(sp) ;index + moveq #82,d0 + move.l d0,-(sp) + jsr (a5) + lea 6*4(sp),sp + move.l d0,d7 + + ; do we have output? + move.l d3,-(sp) + tst.b (a2) + beq.s noout + jsr -$003c(a6) ;Output + move.l d0,d4 + beq.s noout + move.l d4,d1 + move.l a2,d2 + moveq #-1,d3 +out1 + addq.l #1,d3 + tst.b (a2)+ + bne.s out1 + jsr -$0030(a6) ; Write + move.l d4,d1 + lea lf(pc),a0 + move.l a0,d2 + moveq #1,d3 + jsr -$0030(a6) ; Write +noout + move.l (sp)+,d3 + + + tst.l d7 + bpl.s end + ; list all -mode + addq.l #1,d6 + bra loop +end + move.l a4,d0 + beq.s end2 + move.l d0,a1 + move.l 4,a6 + jsr -$19e(a6) ;CloseLibrary +end2 + move.l d7,d0 + rts + +dos dc.b "dos.library",0 +lf dc.b 10 + + section 2,bss + +outbuf + ds.b OUTBUFSIZE diff --git a/amiga/source/uae-control.c b/amiga/source/uae-control.c new file mode 100644 index 0000000..e30ff58 --- /dev/null +++ b/amiga/source/uae-control.c @@ -0,0 +1,563 @@ +/*********************************************************** +* UAE - The U*nix Amiga Emulator * +* * +* UAE-Control - Emulator control from inside emulation * +* (c) 1996 Tauno Taipaleenmaki * +* (c) 1998 Cloanto * +* * +* Version 1.1 * +* * +* Requires Amiga OS v. 36 or higher. Compiled with SAS/C * +* * +* Users with KS 1.3 or below should use the command line * +* version "uaectrl" * +***********************************************************/ + +#define VERSION_STRING "\0$VER: UAE-Control 1.1" +#define VERSION_SHELL " UAE-Control v. 1.1\n © 1996 Tauno Taipaleenmaki, © 1998 Cloanto\n\n" + +#include +#ifndef _DCC +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#include +#endif +#include +#include +#include +#include "UAE-Control.h" +#include "uae_pragmas.h" + +#define MAX_DRV_NAME 25 + +struct Window *window; +struct Screen *scr; +struct Gadget *glist; +APTR VisInfo; +struct UAE_CONFIG config; + +UBYTE *version_string = VERSION_STRING; + +struct TextAttr topaz8 = +{ + (STRPTR) "topaz.font", 8, 0x00, 0x01 +}; + +struct NewWindow newwindow = +{ + 0, 0, 0, 0, 0, 1, +IDCMP_CLOSEWINDOW | BUTTONIDCMP | CYCLEIDCMP | INTEGERIDCMP | STRINGIDCMP, + WFLG_DRAGBAR | WFLG_CLOSEGADGET | WFLG_ACTIVATE | WFLG_DEPTHGADGET, + NULL, NULL, NULL, NULL, NULL, + 0, 0, 0, 0, CUSTOMSCREEN +}; + +int setup_window(void); +void quit_program(int error, char *text); +void print_drive_status(void); +BOOL get_string(UBYTE * buff, LONG max_len); + + +/***************************************** +* Main program * +*****************************************/ +int main() +{ + int quit = 0, i; + struct IntuiMessage *msg; + struct Gadget *button; + struct StringInfo *strinfo; + char buf[257]; + UWORD koodi, msgID; + ULONG classi, number; + APTR address; + ULONG CycleTags[3]; + + CycleTags[0] = GTCY_Active; + CycleTags[1] = (ULONG) & number; + CycleTags[2] = TAG_DONE; + + /* Read UAE configuration */ + i = GetUaeConfig(&config); + i = setup_window(); + if (i == 0) { + quit_program(1, "Cannot setup a window!"); + return 1; + } + while (quit == 0) { + WaitPort(window->UserPort); + while (msg = (struct IntuiMessage *) GT_GetIMsg(window->UserPort)) { + classi = msg->Class; + koodi = msg->Code; + address = msg->IAddress; + if (classi == IDCMP_GADGETUP) { + msgID = ((struct Gadget *) msg->IAddress)->GadgetID; + button = (struct Gadget *) msg->IAddress; + if (button->SpecialInfo) { + strinfo = (struct StringInfo *) button->SpecialInfo; + } + } else + msgID = msg->Code; + + GT_ReplyIMsg((struct IntuiMessage *) msg); + switch (classi) { + case IDCMP_CLOSEWINDOW: + quit = 1; + break; + case IDCMP_GADGETUP: + switch (msgID) { + case GAD_EXITEMU: + ExitEmu(); + break; + case GAD_EJECT_DF0: + EjectDisk(0); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + break; + case GAD_EJECT_DF1: + EjectDisk(1); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + break; + case GAD_EJECT_DF2: + EjectDisk(2); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + break; + case GAD_EJECT_DF3: + EjectDisk(3); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + break; + case GAD_SOUND: + if (config.do_output_sound) + DisableSound(); + else + EnableSound(); + + Delay(30); + GetUaeConfig(&config); + break; + case GAD_JOYSTICK: + if (config.do_fake_joystick) + DisableJoystick(); + else + EnableJoystick(); + + Delay(30); + GetUaeConfig(&config); + break; + case GAD_FRAMERATE: + SetFrameRate(strinfo->LongInt); + Delay(30); + GetUaeConfig(&config); + break; + case GAD_INSERT_DF0: + strcpy(buf, config.df0_name); + if (get_string(buf, 255)) { + InsertDisk((UBYTE *) buf, 0); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + } + break; + case GAD_INSERT_DF1: + strcpy(buf, config.df1_name); + if (get_string(buf, 255)) { + InsertDisk((UBYTE *) buf, 1); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + } + break; + case GAD_INSERT_DF2: + strcpy(buf, config.df2_name); + if (get_string(buf, 255)) { + InsertDisk((UBYTE *) buf, 2); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + } + break; + case GAD_INSERT_DF3: + strcpy(buf, config.df3_name); + if (get_string(buf, 255)) { + InsertDisk((UBYTE *) buf, 3); + Delay(30); + GetUaeConfig(&config); + print_drive_status(); + } + break; + case GAD_LANGUAGE: + number = config.keyboard; + number++; + if (number == 5) + number = 0; + ChangeLanguage(number); + Delay(30); + GetUaeConfig(&config); + break; + case GAD_RESET: + ColdReboot(); + break; + case GAD_DEBUG: + DebugFunc(); + break; + default: + break; + } + break; + default: + break; + } + } + } + quit_program(0, ""); + return (0); +} + +/***************************************** +* Quits the program * +*****************************************/ +void quit_program(int error, char *text) +{ + if (error > 0) { + printf(VERSION_SHELL); + printf(" ERROR: %s\n", text); + } + if (scr) + UnlockPubScreen(NULL, scr); + if (window) + CloseWindow(window); + if (VisInfo) + FreeVisualInfo(VisInfo); + if (glist) + FreeGadgets(glist); +} + +/***************************************** +* Opens up the window & sets the gadgets * +*****************************************/ +int setup_window(void) +{ + struct Gadget *g; + struct NewGadget ng; + UWORD offy; + ULONG drawtags[20]; + static const char *keyb_langs[] = + { + "US", + "DE", + "SE", + "FR", + "IT", + NULL + }; + scr = LockPubScreen(NULL); + if (!scr) + return (0); + VisInfo = GetVisualInfo(scr, TAG_DONE); + if (!VisInfo) + return (0); + offy = scr->WBorTop + scr->RastPort.TxHeight + 1; + + /* Create buttons */ + g = CreateContext(&glist); + if (!g) + return (0); + + ng.ng_TextAttr = &topaz8; + ng.ng_VisualInfo = VisInfo; + ng.ng_Flags = PLACETEXT_IN; + ng.ng_LeftEdge = 284; + ng.ng_TopEdge = offy + 86; + ng.ng_Width = 96; + ng.ng_Height = 15; + ng.ng_GadgetText = (UBYTE *) "Hard Reset"; + ng.ng_GadgetID = GAD_RESET; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 105; + ng.ng_GadgetText = (UBYTE *) "Debug"; + ng.ng_GadgetID = GAD_DEBUG; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 135; + ng.ng_GadgetText = (UBYTE *) "Quit UAE"; + ng.ng_GadgetID = GAD_EXITEMU; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + /* Eject buttons */ + ng.ng_LeftEdge = 262; + ng.ng_TopEdge = offy + 11; + ng.ng_Width = 70; + ng.ng_GadgetID = GAD_EJECT_DF0; + ng.ng_GadgetText = (UBYTE *) "Eject"; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 28; + ng.ng_GadgetID = GAD_EJECT_DF1; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 45; + ng.ng_GadgetID = GAD_EJECT_DF2; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 62; + ng.ng_GadgetID = GAD_EJECT_DF3; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + /* Insert buttons */ + ng.ng_LeftEdge = 332; + ng.ng_TopEdge = offy + 11; + ng.ng_GadgetID = GAD_INSERT_DF0; + ng.ng_GadgetText = (UBYTE *) "Insert"; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 28; + ng.ng_GadgetID = GAD_INSERT_DF1; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 45; + ng.ng_GadgetID = GAD_INSERT_DF2; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_TopEdge = offy + 62; + ng.ng_GadgetID = GAD_INSERT_DF3; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + /* Sound & Joystick buttons */ + ng.ng_LeftEdge = 133; + ng.ng_TopEdge = 97; + ng.ng_GadgetID = GAD_SOUND; + ng.ng_GadgetText = (UBYTE *) "Sound:"; + ng.ng_Flags = PLACETEXT_LEFT; + g = CreateGadget(CHECKBOX_KIND, g, &ng, GTCB_Checked, config.do_output_sound ? 1 : 0, TAG_DONE); + + ng.ng_TopEdge = 114; + ng.ng_GadgetID = GAD_JOYSTICK; + ng.ng_GadgetText = (UBYTE *) "Fake Joystick:"; + g = CreateGadget(CHECKBOX_KIND, g, &ng, GTCB_Checked, config.do_fake_joystick ? 1 : 0, TAG_DONE); + + ng.ng_TopEdge = 129; + ng.ng_GadgetID = GAD_LANGUAGE; + ng.ng_GadgetText = (UBYTE *) "Language:"; + g = CreateGadget(CYCLE_KIND, g, &ng, + GTCY_Labels, (ULONG) keyb_langs, + GTCY_Active, config.keyboard, + TAG_DONE); + + ng.ng_TopEdge = 146; + ng.ng_GadgetID = GAD_FRAMERATE; + ng.ng_GadgetText = (UBYTE *) "Framerate:"; + g = CreateGadget(INTEGER_KIND, g, &ng, GTIN_Number, config.framerate, TAG_DONE); + + newwindow.Title = "UAE-Control"; + newwindow.Width = 419; + newwindow.Height = 171; + newwindow.LeftEdge = 20; + newwindow.TopEdge = 20; + newwindow.FirstGadget = glist; + newwindow.Screen = scr; /* Store screen ptr */ + window = OpenWindow(&newwindow); + if (!window) + return (0); + + /* Draw texts etc... */ + SetAPen(window->RPort, 1); + SetDrMd(window->RPort, JAM2); + Move(window->RPort, 19, offy + 11 + 10); + Text(window->RPort, (UBYTE *) "DF0:", 4); + Move(window->RPort, 19, offy + 28 + 10); + Text(window->RPort, (UBYTE *) "DF1:", 4); + Move(window->RPort, 19, offy + 45 + 10); + Text(window->RPort, (UBYTE *) "DF2:", 4); + Move(window->RPort, 19, offy + 62 + 10); + Text(window->RPort, (UBYTE *) "DF3:", 4); + + drawtags[0] = GT_VisualInfo; + drawtags[1] = (ULONG) VisInfo; + drawtags[2] = GTBB_Recessed; + drawtags[3] = 1; + drawtags[4] = TAG_DONE; + DrawBevelBoxA(window->RPort, 14, offy + 10, 390, 17, (struct TagItem *) &drawtags); + DrawBevelBoxA(window->RPort, 14, offy + 27, 390, 17, (struct TagItem *) &drawtags); + DrawBevelBoxA(window->RPort, 14, offy + 44, 390, 17, (struct TagItem *) &drawtags); + DrawBevelBoxA(window->RPort, 14, offy + 61, 390, 17, (struct TagItem *) &drawtags); + + print_drive_status(); + + return (1); +} + +void print_drive_status(void) +{ + char empty[80]; + int len; + UWORD offy = scr->WBorTop + scr->RastPort.TxHeight + 1; + + for (len = 0; len < 80; len++) + empty[len] = ' '; + empty[79] = '\0'; + + SetAPen(window->RPort, 1); + SetDrMd(window->RPort, JAM2); + + Move(window->RPort, 59, offy + 11 + 10); + if (config.disk_in_df0) { + len = strlen(config.df0_name); + if (len > MAX_DRV_NAME) + len = MAX_DRV_NAME; + Text(window->RPort, (UBYTE *) config.df0_name, len); + } else { + Text(window->RPort, (UBYTE *) empty, MAX_DRV_NAME); + } + Move(window->RPort, 59, offy + 28 + 10); + if (config.disk_in_df1) { + len = strlen(config.df1_name); + if (len > MAX_DRV_NAME) + len = MAX_DRV_NAME; + Text(window->RPort, (UBYTE *) config.df1_name, len); + } else { + Text(window->RPort, (UBYTE *) empty, MAX_DRV_NAME); + } + Move(window->RPort, 59, offy + 45 + 10); + if (config.disk_in_df2) { + len = strlen(config.df2_name); + if (len > MAX_DRV_NAME) + len = MAX_DRV_NAME; + Text(window->RPort, (UBYTE *) config.df2_name, len); + } else { + Text(window->RPort, (UBYTE *) empty, MAX_DRV_NAME); + } + Move(window->RPort, 59, offy + 62 + 10); + if (config.disk_in_df3) { + len = strlen(config.df3_name); + if (len > MAX_DRV_NAME) + len = MAX_DRV_NAME; + Text(window->RPort, (UBYTE *) config.df3_name, len); + } else { + Text(window->RPort, (UBYTE *) empty, MAX_DRV_NAME); + } +} + +BOOL +get_string(UBYTE * buff, LONG max_len) +{ + struct Gadget *g, *sg; + struct NewGadget ng; + struct Gadget *gl; + struct Window *win; + struct IntuiMessage *msg; + struct StringInfo *strinfo; + UWORD koodi, msgID; + ULONG classi; + APTR address; + UWORD offy; + BOOL quit, ok; + + g = CreateContext(&gl); + if (!g) + return FALSE; + + offy = scr->WBorTop + scr->RastPort.TxHeight + 1; + + ng.ng_TextAttr = &topaz8; + ng.ng_VisualInfo = VisInfo; + ng.ng_Flags = PLACETEXT_IN; + ng.ng_LeftEdge = 14; + ng.ng_TopEdge = offy + 34; + ng.ng_Width = 90; + ng.ng_Height = 15; + ng.ng_GadgetText = (UBYTE *) "OK"; + ng.ng_GadgetID = GAD_OK; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_LeftEdge = 246; + ng.ng_TopEdge = offy + 34; + ng.ng_GadgetText = (UBYTE *) "Cancel"; + ng.ng_GadgetID = GAD_CANCEL; + g = CreateGadget(BUTTON_KIND, g, &ng, TAG_DONE); + + ng.ng_LeftEdge = 14; + ng.ng_TopEdge = offy + 10; + ng.ng_Width = 322; + ng.ng_Height = 15; + ng.ng_GadgetText = NULL; + ng.ng_GadgetID = GAD_STRING; + sg = CreateGadget(STRING_KIND, g, &ng, + GTST_String, buff, + GTST_MaxChars, max_len, + TAG_DONE); + strinfo = (struct StringInfo *) sg->SpecialInfo; + ok = FALSE; + + newwindow.Title = "Amiga Disk File"; + newwindow.Width = 350; + newwindow.Height = 65; + newwindow.FirstGadget = gl; + newwindow.Screen = scr; + + newwindow.LeftEdge = scr->MouseX - (newwindow.Width / 2); + if (newwindow.LeftEdge + newwindow.Width > scr->Width) + newwindow.LeftEdge = scr->Width - newwindow.Width; + + newwindow.TopEdge = scr->MouseY - (newwindow.Height / 2); + if (newwindow.TopEdge + newwindow.Height > scr->Height) + newwindow.TopEdge = scr->Height - newwindow.Height; + + win = OpenWindow(&newwindow); + if (win) { + ActivateGadget(sg, win, NULL); + quit = FALSE; + while (!quit) { + WaitPort(win->UserPort); + while (msg = (struct IntuiMessage *) GT_GetIMsg(win->UserPort)) { + classi = msg->Class; + koodi = msg->Code; + address = msg->IAddress; + if (classi == IDCMP_GADGETUP) + msgID = ((struct Gadget *) msg->IAddress)->GadgetID; + else + msgID = msg->Code; + + GT_ReplyIMsg((struct IntuiMessage *) msg); + switch (classi) { + case IDCMP_CLOSEWINDOW: + quit = TRUE; + break; + case IDCMP_GADGETUP: + switch (msgID) { + case GAD_CANCEL: + quit = TRUE; + break; + case GAD_OK: + case GAD_STRING: + strcpy(buff, strinfo->Buffer); + quit = ok = TRUE; + break; + } + break; + default: + break; + } + } + } + CloseWindow(win); + } + FreeGadgets(gl); + + return ok; +} diff --git a/amiga/source/uae-control.h b/amiga/source/uae-control.h new file mode 100644 index 0000000..fd7f908 --- /dev/null +++ b/amiga/source/uae-control.h @@ -0,0 +1,53 @@ +/* + * UAE - The U*nix Amiga Emulator + * + * UAE-Control - Emulator control from inside emulation + * (c) 1996 Tauno Taipaleenmaki + * (c) 1998 Cloanto + */ + +#define GAD_RESET 1 +#define GAD_DEBUG 2 +#define GAD_EXITEMU 3 +#define GAD_EJECT_DF0 4 +#define GAD_INSERT_DF0 5 +#define GAD_EJECT_DF1 6 +#define GAD_INSERT_DF1 7 +#define GAD_EJECT_DF2 8 +#define GAD_INSERT_DF2 9 +#define GAD_EJECT_DF3 10 +#define GAD_INSERT_DF3 11 +#define GAD_SOUND 12 +#define GAD_JOYSTICK 13 +#define GAD_FRAMERATE 14 +#define GAD_CHIPMEMSIZE 15 +#define GAD_SLOWMEMSIZE 16 +#define GAD_FASTMEMSIZE 17 +#define GAD_LANGUAGE 18 + +#define GAD_OK 1 +#define GAD_CANCEL 2 +#define GAD_STRING 3 + +/* + * Configuration structure + */ +struct UAE_CONFIG +{ + ULONG version; + ULONG chipmemsize; + ULONG slowmemsize; + ULONG fastmemsize; + ULONG framerate; + ULONG do_output_sound; + ULONG do_fake_joystick; + ULONG keyboard; + UBYTE disk_in_df0; + UBYTE disk_in_df1; + UBYTE disk_in_df2; + UBYTE disk_in_df3; + char df0_name[256]; + char df1_name[256]; + char df2_name[256]; + char df3_name[256]; +}; diff --git a/amiga/source/uae_pragmas.h b/amiga/source/uae_pragmas.h new file mode 100644 index 0000000..1e81f45 --- /dev/null +++ b/amiga/source/uae_pragmas.h @@ -0,0 +1,78 @@ +static int (*calltrap)(...) = (int (*)(...))0xF0FF60; + +static int GetVersion(void) +{ + calltrap (0); +} +static int GetUaeConfig(struct UAE_CONFIG *a) +{ + calltrap (1, a); +} +static int SetUaeConfig(struct UAE_CONFIG *a) +{ + calltrap (2, a); +} +static int HardReset(void) +{ + calltrap (3); +} +static int Reset(void) +{ + calltrap (4); +} +static int EjectDisk(ULONG drive) +{ + calltrap (5, "", drive); +} +static int InsertDisk(UBYTE *name, ULONG drive) +{ + calltrap (5, name, drive); +} +static int EnableSound(void) +{ + calltrap (6, 2); +} +static int DisableSound(void) +{ + calltrap (6, 1); +} +static int EnableJoystick(void) +{ + calltrap (7, 1); +} +static int DisableJoystick(void) +{ + calltrap (7, 0); +} +static int SetFrameRate(ULONG rate) +{ + calltrap (8, rate); +} +static int ChgCMemSize(ULONG mem) +{ + calltrap (9, mem); +} +static int ChgSMemSize(ULONG mem) +{ + calltrap (10, mem); +} +static int ChgFMemSize(ULONG mem) +{ + calltrap (11, mem); +} +static int ChangeLanguage(ULONG lang) +{ + calltrap (12, lang); +} +static int ExitEmu(void) +{ + calltrap (13); +} +static int GetDisk(ULONG drive, UBYTE *name) +{ + calltrap (14, drive, name); +} +static int DebugFunc(void) +{ + calltrap (15); +} diff --git a/amiga/source/uae_rcli.c b/amiga/source/uae_rcli.c new file mode 100644 index 0000000..2b526ce --- /dev/null +++ b/amiga/source/uae_rcli.c @@ -0,0 +1,201 @@ +;/* compile with: execute uae_rcli.c +failat 11 +sc uae_rcli.c opt link to uae_rcli noicons +if ERROR + gcc uae_rcli.c -O3 -o uae_rcli -noixemul +endif +quit +*/ + +/* + * uae_rcli.c - UAE remote cli + * + * (c) 1997 by Samuel Devulder + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef __GNUC__ +#include "../../src/include/uaeexe.h" +#else +#include "//src/include/uaeexe.h" +#endif + +#define NAME "uae_rcli" +#define LEN 512 + +static int (*calltrap)(char *, int) = (void*)UAEEXE_ORG; +static int delay = 20; +static int debug = 0; +static int nofifo = 0; +static ULONG fifo; +static char buf[LEN]; + +/* + * lowlevel I/O + */ +static void WR(ULONG f,char *s) +{ + Write(f,s,strlen(s)); +} +static void PR(char *s) +{ + WR(Output(),s); +} + +/* + * self explanatory + */ +static void usage(char *name) +{ + PR("Usage: ");PR(name);PR(" [-h|?] [-debug] [-nofifo] []\n"); + exit(0); +} + +/* + * grab options + */ +static void parse_cmdline(int ac, char **av) +{ + char *name = *av++; + + for(;--ac;++av) { + if(!strcmp(*av,"-debug")) debug = 1; else + if(!strcmp(*av,"-nofifo")) nofifo = 1; else + if(!strcmp(*av,"-h")) usage(name); else + if(!strcmp(*av,"?")) usage(name); else + if(**av>='0' && **av<='9') delay = atoi(*av); else + {PR("Bad argument: \"");PR(*av);PR("\"\n");exit(0);} + } + if(!delay) delay = 1; +} + +/* + * See if command matches. Returns pointer to arguments. + */ +static char *match(char *src,char *cmd) +{ + while(*src == ' ' || *src == '\t') ++src; + while(*src && tolower(*src) == tolower(*cmd)) {++src;++cmd;} + while(*src==' ' || *src=='\t') ++src; + return (*cmd)?NULL:src; +} + +/* + * get command + */ +static int getcmd(void) +{ + if(debug) PR("-> Calltrap\n"); + if(calltrap(buf, LEN-1)) { + if(debug) PR("-> 1\n"); + return 1; + } else { + if(debug) PR("-> 0\n"); + return 0; + } +/* + PR(">> "); + if(fgets(buf,LEN-1,stdin) == NULL) strcpy(buf,"quit"); + if(*buf=='\n') return 0; + return 1; +*/ +} + +/* + * execute command + */ +static void my_exec(void) +{ + if(debug) {PR("-> Exec \"");PR(buf);PR("\"\n");} + if(fifo) { + WR(fifo,buf); + WR(fifo,"\n"); + } else { /* nofifo => emulate cli */ + char *s; + if((s=match(buf,"cd"))) { + if(*s==';' || !*s) { + char buff[128]; + getcwd(buff,sizeof(buff)-1); + PR(buff);PR("\n"); + } else { + chdir(s); + } + } else { + System(buf, NULL); + } + } + *buf = '\0'; +} + +/* + * Open without requester + */ +ULONG myOpen(char *name, ULONG mode) +{ + ULONG rt, wd; + struct Process *pr; + + pr = (void*)FindTask(NULL); + if(pr->pr_Task.tc_Node.ln_Type != NT_PROCESS) return 0; + + wd = (ULONG)pr->pr_WindowPtr; + pr->pr_WindowPtr = (APTR)-1; + rt = Open(name,mode); + pr->pr_WindowPtr = (APTR)wd; + + return rt; +} + +/* + * Guess :) + */ +int main(int ac, char **av) +{ + int running = 1; + + parse_cmdline(ac,av); + if(!nofifo) { + if(debug) PR("-> Open fifo\n"); + fifo = myOpen("fifo:"NAME"/wmke",MODE_NEWFILE); + if(!fifo) { + if(debug) PR("-> Starting fifo-handler\n"); + System("run nil: l:fifo-handler",NULL); + Delay(100); + if(debug) PR("-> Reopen fifo\n"); + fifo = myOpen("fifo:"NAME"/wmke",MODE_NEWFILE); + } + } + + if(fifo) { + if(debug) PR("-> Spawning shell\n"); + System("run execute fifo:"NAME"/rsk",NULL); + if(debug) WR(fifo,"echo \"-> Remote cli running\"\n"); + } else if(debug) PR("-> No fifo found\n"); + + do { + while(running && getcmd()) { + if(match(buf,"endcli")) running = 0; else + if(match(buf,"endshell")) running = 0; else + if(match(buf,"quit")) running = 0; + if(SetSignal(0L, SIGBREAKF_CTRL_C|SIGBREAKF_CTRL_D) & + (SIGBREAKF_CTRL_C|SIGBREAKF_CTRL_D)) { + running = 0; + } + if(running) my_exec(); + } + if(running) Delay(delay); + } while(running); + if(debug) PR("-> Exiting\n"); + (*calltrap)(0,0); + if(fifo) { + Close(fifo); + } +} diff --git a/amiga/source/uaectrl.c b/amiga/source/uaectrl.c new file mode 100644 index 0000000..c4b8832 --- /dev/null +++ b/amiga/source/uaectrl.c @@ -0,0 +1,164 @@ +/*********************************************************** + * UAE - The U*nix Amiga Emulator * + * * + * UAE-Ctrl -- Emulator Control from Inside Emulation * + * (c) 1996 Tauno Taipaleenmaki * + * * + * Version 0.1 * + * * + * Command line version, Should work with any KS version * + * * + ***********************************************************/ +#include +#include +#include +#include +#include +#include "uae-control.h" +#include "uae_pragmas.h" + +#define MAX_DRV_NAME 20 + +struct UAE_CONFIG config; + +void print_drive_status(void); +void quit_program(int error, char *text); + +/************************************ + * Main program * + ************************************/ +int main() +{ + int quit = 0,i, correct,number; + char buf[257]; + char *langs[]={ + "US\0","DE\0","SE\0","FR\0","IT\0", + }; + +/* Read UAE configuration */ + i = GetUaeConfig( &config ); + + while( quit == 0 ) { + printf(" UAE-Control v0.1\n\n"); + printf(" 1) Reset\n"); + printf(" 2) Debug\n"); + printf(" 3) Exit Emulator\n"); + printf(" 4) Change framerate (Currently : %ld)\n", config.framerate); + printf(" 5) Toggle sound (Currently : %s)\n", config.do_output_sound ? "ON" : "OFF"); + printf(" 6) Toggle fake joystick (Currently : %s)\n", config.do_fake_joystick ? "ON" : "OFF"); + printf(" 7) Change language (Currently : %s)\n", langs[config.keyboard]); + printf(" 8) Eject a disk\n"); + printf(" 9) Insert a disk\n"); + printf("10) Exit UAE-Control\n\n"); + correct = 0; + while( correct == 0 ) { + printf(" Command : "); + gets( buf ); + i = atoi( buf ); + if ((i > 0) && (i < 11)) + correct = 1; + } + switch( i ) { + case 1: + HardReset(); + break; + case 2: + DebugFunc(); + break; + case 3: + ExitEmu(); + break; + case 4: + printf(" Enter new framerate (1-20) :"); + gets( buf ); + number = atoi( buf ); + if (SetFrameRate (number)) + GetUaeConfig(&config); + else + printf(" Illegal value, not changed.\n"); + break; + case 5: + if (config.do_output_sound) + DisableSound(); + else + EnableSound(); + GetUaeConfig( &config ); + break; + case 6: + if (config.do_fake_joystick) + DisableJoystick(); + else + EnableJoystick(); + GetUaeConfig( &config ); + break; + case 7: + printf(" 1 = US, 2 = DE, 3 = SE, 4 = FR, 5 = IT\n"); + printf(" What will it be : "); + gets( buf ); + number = atoi( buf ); + if ((number >= 1) && (number <= 5)) { + ChangeLanguage( number-1 ); + GetUaeConfig( &config ); + } else { + printf(" Illegal value, not changed.\n"); + } + break; + case 8: + print_drive_status(); + printf(" Eject which drive (1-4): "); + gets( buf ); + number = atoi( buf ); + if ((number >= 1) && (number <=4 )) { + EjectDisk( number-1 ); + GetUaeConfig( &config ); + } else { + printf(" Illegal drive, not changed.\n"); + } + break; + case 9: + print_drive_status(); + printf(" Enter disk to drive (1-4): "); + gets( buf ); + number = atoi( buf ); + if ((number >= 1) && (number <= 4)) { + printf("Name of diskfile :"); + gets( buf ); + InsertDisk( (UBYTE *)&buf, number - 1 ); + GetUaeConfig( &config ); + } else { + printf(" Illegal drive, not changed.\n"); + } + break; + case 10: + quit = 1; + break; + } + } + quit_program(0, ""); + return(0); +} + +/****************************************** + * Prints drive status * + ******************************************/ +void print_drive_status(void) +{ + printf(" DF0 : %s\n", config.disk_in_df0 ? config.df0_name : "EMPTY"); + printf(" DF1 : %s\n", config.disk_in_df1 ? config.df1_name : "EMPTY"); + printf(" DF2 : %s\n", config.disk_in_df2 ? config.df2_name : "EMPTY"); + printf(" DF3 : %s\n", config.disk_in_df3 ? config.df3_name : "EMPTY"); +} + + + +/****************************************** + * Quits the program * + ******************************************/ +void quit_program(int error, char *text) +{ + if (error > 0) { + printf(" UAE-Control v0.1\n"); + printf(" (c)1996 Tauno Taipaleenmaki\n\n"); + printf(" ERROR: %s\n", text); + } +} diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..604099b --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +aclocal -I m4 \ +&& automake --foreign --add-missing \ +&& autoconf + +cd src/tools +aclocal +autoconf diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..1127162 --- /dev/null +++ b/config.guess @@ -0,0 +1,1415 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + +timestamp='2003-10-07' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +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." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mipseb-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + alpha:OSF1:*:*) + if test $UNAME_RELEASE = "V4.0"; then + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + fi + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit 0 ;; + Alpha*:OpenVMS:*:*) + echo alpha-hp-vms + exit 0 ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit 0;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit 0 ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit 0 ;; + DRS?6000:UNIX_SV:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7 && exit 0 ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit 0 ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit 0 ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c \ + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && exit 0 + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit 0 ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:[45]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + # avoid double evaluation of $set_cc_for_build + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + *:UNICOS/mp:*:*) + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + # Determine whether the default compiler uses glibc. + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #if __GLIBC__ >= 2 + LIBC=gnu + #else + LIBC= + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + # GNU/KFreeBSD systems have a "k" prefix to indicate we are using + # FreeBSD's kernel, but not the complete OS. + case ${LIBC} in gnu) kernel_only='k' ;; esac + echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit 0 ;; + x86:Interix*:[34]*) + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + exit 0 ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit 0 ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit 0 ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit 0 ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit 0 ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit 0 ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit 0 ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit 0 ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit 0 ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit 0 ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit 0 ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit 0 ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit 0 ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit 0 ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit 0 ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit 0 ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit 0 ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit 0 ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit 0 ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit 0 ;; + i*86:*:5:[78]*) + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit 0 ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit 0 ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit 0 ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit 0 ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Darwin:*:*) + case `uname -p` in + *86) UNAME_PROCESSOR=i686 ;; + powerpc) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit 0 ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit 0 ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit 0 ;; + NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit 0 ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit 0 ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit 0 ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit 0 ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit 0 ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit 0 ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit 0 ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit 0 ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit 0 ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit 0 ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit 0 ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +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` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.sub b/config.sub new file mode 100755 index 0000000..79657cd --- /dev/null +++ b/config.sub @@ -0,0 +1,1510 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + +timestamp='2003-10-07' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +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." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit 0;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32r | m68000 | m68k | m88k | mcore \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | msp430 \ + | ns16k | ns32k \ + | openrisc | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xscale | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* \ + | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32r-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | msp430-* \ + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ + | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + mmix*) + basic_machine=mmix-knuth + os=-mmixware + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nv1) + basic_machine=nv1-cray + os=-unicosmp + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + or32 | or32-*) + basic_machine=or32-unknown + os=-coff + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparc | sparcv9 | sparcv9b) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-ibm) + os=-aix + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 0000000..25ddaf9 --- /dev/null +++ b/configure @@ -0,0 +1,21264 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.61 for E-UAE 0.8.29-WIP4. +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006 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=: + # Zsh 3.x and 4.x performs 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 + + + + +# PATH needs CR +# 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 + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +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.) +as_nl=' +' +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +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 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi +done + +# Required to use basename. +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 + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + +if test "x$CONFIG_SHELL" = x; then + if (eval ":") 2>/dev/null; then + as_have_required=yes +else + as_have_required=no +fi + + if test $as_have_required = yes && (eval ": +(as_func_return () { + (exit \$1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test \$exitcode = 0) || { (exit 1); exit 1; } + +( + as_lineno_1=\$LINENO + as_lineno_2=\$LINENO + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } +") 2> /dev/null; then + : +else + as_candidate_shells= + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + case $as_dir in + /*) + for as_base in sh bash ksh sh5; do + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + done;; + esac +done +IFS=$as_save_IFS + + + for as_shell in $as_candidate_shells $SHELL; do + # Try only shells that exist, to save several forks. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { ("$as_shell") 2> /dev/null <<\_ASEOF +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs 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 + + +: +_ASEOF +}; then + CONFIG_SHELL=$as_shell + as_have_required=yes + if { "$as_shell" 2> /dev/null <<\_ASEOF +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs 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_func_return () { + (exit $1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = "$1" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test $exitcode = 0) || { (exit 1); exit 1; } + +( + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } + +_ASEOF +}; then + break +fi + +fi + + done + + if test "x$CONFIG_SHELL" != x; then + for as_var in BASH_ENV ENV + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + done + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + + if test $as_have_required = no; then + echo This script requires a shell more modern than all the + echo shells that I found on your system. Please install a + echo modern shell, or manually run the script under such a + echo shell if you do have one. + { (exit 1); exit 1; } +fi + + +fi + +fi + + + +(eval "as_func_return () { + (exit \$1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test \$exitcode = 0") || { + echo No shell found that supports shell functions. + echo Please tell autoconf@gnu.org about your system, + echo including any error possibly output before this + echo message +} + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. 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" || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # 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 +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +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 +fi +echo >conf$$.file +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 -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +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=: +else + test -d ./-p && rmdir ./-p + 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 + +# 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 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, 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=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Identity of this package. +PACKAGE_NAME='E-UAE' +PACKAGE_TARNAME='e-uae' +PACKAGE_VERSION='0.8.29-WIP4' +PACKAGE_STRING='E-UAE 0.8.29-WIP4' +PACKAGE_BUGREPORT='' + +ac_unique_file="bootstrap.sh" +# 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_header_list= +ac_subst_vars='SHELL +PATH_SEPARATOR +PACKAGE_NAME +PACKAGE_TARNAME +PACKAGE_VERSION +PACKAGE_STRING +PACKAGE_BUGREPORT +exec_prefix +prefix +program_transform_name +bindir +sbindir +libexecdir +datarootdir +datadir +sysconfdir +sharedstatedir +localstatedir +includedir +oldincludedir +docdir +infodir +htmldir +dvidir +pdfdir +psdir +libdir +localedir +mandir +DEFS +ECHO_C +ECHO_N +ECHO_T +LIBS +build_alias +host_alias +target_alias +build +build_cpu +build_vendor +build_os +host +host_cpu +host_vendor +host_os +target +target_cpu +target_vendor +target_os +INSTALL_PROGRAM +INSTALL_SCRIPT +INSTALL_DATA +CYGPATH_W +PACKAGE +VERSION +ACLOCAL +AUTOCONF +AUTOMAKE +AUTOHEADER +MAKEINFO +AMTAR +install_sh +STRIP +INSTALL_STRIP_PROGRAM +AWK +SET_MAKE +am__leading_dot +CC +CFLAGS +LDFLAGS +CPPFLAGS +ac_ct_CC +EXEEXT +OBJEXT +DEPDIR +am__include +am__quote +AMDEP_TRUE +AMDEP_FALSE +AMDEPBACKSLASH +CCDEPMODE +am__fastdepCC_TRUE +am__fastdepCC_FALSE +CPP +CXX +CXXFLAGS +ac_ct_CXX +CXXDEPMODE +am__fastdepCXX_TRUE +am__fastdepCXX_FALSE +OBJC +ac_ct_OBJC +OBJC_LDFLAGS +OBJCDEPMODE +am__fastdepOBJC_TRUE +am__fastdepOBJC_FALSE +CCAS +CCASFLAGS +RANLIB +AR +MAKEDEPPRG +FILEPRG +WRCPRG +RCLPRG +GREP +EGREP +PKG_CONFIG +GTK_CFLAGS +GTK_LIBS +GTK_CONFIG +LIBOBJS +PTHREAD_CC +PTHREAD_LIBS +PTHREAD_CFLAGS +XMKMF +X_CFLAGS +X_PRE_LIBS +X_LIBS +X_EXTRA_LIBS +SDL_CONFIG +SDL_CFLAGS +SDL_LIBS +TARGET_BIGENDIAN_TRUE +TARGET_BIGENDIAN_FALSE +TARGET_BEOS_TRUE +TARGET_BEOS_FALSE +TARGET_WIN32_TRUE +TARGET_WIN32_FALSE +BUILD_MACOSX_BUNDLE_TRUE +BUILD_MACOSX_BUNDLE_FALSE +ac_cv_c_inline +NO_SCHED_CFLAGS +GENCPUOPTS +TARGET +MACHDEP +OSDEP +THREADDEP +GFX_DEP +SND_DEP +JOY_DEP +GUI_DEP +EXTRAOBJS +CPUOBJS +JITOBJS +RESOBJS +ASMOBJS +SCSIOBJS +CDOBJS +DEBUGOBJS +FILESYSOBJS +BSDSOCKOBJS +UAE_RSRCFILE +MATHLIB +top_srcdir +subdirs +LTLIBOBJS' +ac_subst_files='' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +CXX +CXXFLAGS +CCC +XMKMF' +ac_subdirs_all='src/tools' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# 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' +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=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_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` + eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` + eval enable_$ac_feature=\$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 ;; + + -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_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` + eval with_$ac_package=\$ac_optarg ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` + eval with_$ac_package=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 ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + 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'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute directory names. +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 +do + eval ac_val=\$$ac_var + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; } +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 + 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 +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 .` || + { echo "$as_me: error: Working directory cannot be determined" >&2 + { (exit 1); exit 1; }; } +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + { echo "$as_me: error: pwd does not report name of working directory" >&2 + { (exit 1); exit 1; }; } + + +# 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 -- "$0" || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X"$0" | + 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 .." + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 + { (exit 1); exit 1; }; } + 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 E-UAE 0.8.29-WIP4 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 + [$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] + --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/e-uae] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +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] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of E-UAE 0.8.29-WIP4:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking Speeds up one-time builds + --enable-dependency-tracking Do not reject slow dependency extractors + --disable-gtktest do not try to compile and run a test GTK+ program + --disable-gtktest Do not try to compile and run a test GTK program + --disable-largefile omit support for large files + --enable-profiling Build a profiling (SLOW!) version + --enable-aga Enable AGA chipset emulation (default yes) + --enable-cdtv Enable CDTV emulation (default no) + --enable-cd32 Enable CD32 emulation (default no) + --enable-cycle-exact-cpu + Enable cycle-exact CPU emulation (default yes) + --enable-compatible-cpu Enable compatible CPU emulation (default yes) + --enable-jit Enable JIT compiler (currently x86 only) + --enable-natmem Enable JIT direct memory support (default auto) + --enable-noflags Enable noflags support in JIT (default no) + --enable-threads Enable thread support (default auto) + --enable-autoconfig Enable emulaton of autoconfig devices (default auto) + --enable-scsi-device Enable emulaton of SCSI devices (default no) + --enable-bsdsock Enable bsdsocket.library emulation + --disable-debugger Disable internal debugger/monitor (default no) + --disable-state-saving Disable support for saving state snapshots (default + no) + --enable-enforcer Enable ersatz Enforcer support (default auto) + --enable-action-replay Enable Action Replay cartridge emulation (default + yes) + --enable-dga X11 version: Use the DGA extension + --enable-vidmode X11 version: Use the XF86VidMode extension + --enable-ui Use a user interface if possible (default on) + --enable-audio Enable audio output (default auto) + --enable-fdi Enable FDI support (default yes) + --disable-sdltest Do not try to compile and run a test SDL program + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-gtk-prefix=PFX Prefix where GTK is installed (optional) + --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) + --with-zlib=DIR root directory path of zlib installation defaults to + /usr/local or /usr if not found in /usr/local + --without-zlib to disable zlib usage completely + --with-sdl Use SDL library for low-level functions + --with-sdl-sound Use SDL library for sound + --with-sdl-gfx Use SDL library for graphics + --with-sdl-gl Allow GL for 2D acceleration with SDL graphics + --with-curses Use ncurses library for graphics + --with-cocoa-gui Use Cocoa for GUI on OS X + --with-libscg-prefix Absolute path to where libscg is installed + (optional) + --with-libscg-includedir + Absolute path to libscg headers are installed + (default LIBSCG_PREFIX/include) + --with-libscg-libdir Absolute path to libscg libs are installed (default + LIBSCG_PREFIX/lib) + --with-alsa Use ALSA library for sound + --with-x use the X Window System + --with-sdl-prefix=PFX Prefix where SDL is installed (optional) + --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) + --with-caps Build with support for CAPS/IPF disk images) + (default auto) + --with-caps-prefix Prefix where CAPS API is installed (optional) + +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 C/C++/Objective C preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + XMKMF Path to xmkmf, Makefile generator for X Window System + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_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" || continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`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 + 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 +E-UAE configure 0.8.29-WIP4 +generated by GNU Autoconf 2.61 + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006 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 +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 E-UAE $as_me 0.8.29-WIP4, which was +generated by GNU Autoconf 2.61. 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=. + 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=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$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 + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export 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 + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + 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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_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 + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + 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'; { (exit 1); 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 + +# 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 + + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -n "$CONFIG_SITE"; then + set x "$CONFIG_SITE" +elif test "x$prefix" != xNONE; then + set x "$prefix/share/config.site" "$prefix/etc/config.site" +else + set x "$ac_default_prefix/share/config.site" \ + "$ac_default_prefix/etc/config.site" +fi +shift +for ac_site_file +do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + 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. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +ac_header_list="$ac_header_list utime.h" +# 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,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +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 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`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. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +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 + + + +ac_config_headers="$ac_config_headers src/sysconfig.h" + +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 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} + { (exit 1); exit 1; }; } +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 || + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} + { (exit 1); exit 1; }; } + +{ echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; } +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 && + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 +echo "$as_me: error: invalid value of canonical build" >&2;} + { (exit 1); exit 1; }; };; +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 + + +{ echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; } +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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` || + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} + { (exit 1); exit 1; }; } +fi + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 +echo "$as_me: error: invalid value of canonical host" >&2;} + { (exit 1); exit 1; }; };; +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 + + +{ echo "$as_me:$LINENO: checking target system type" >&5 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; } +if test "${ac_cv_target+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} + { (exit 1); exit 1; }; } +fi + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 +echo "${ECHO_T}$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 +echo "$as_me: error: invalid value of canonical target" >&2;} + { (exit 1); exit 1; }; };; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- +am__api_version="1.7" +# 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. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done +IFS=$as_save_IFS + + +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 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$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' + +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +{ echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm -f conftest.sed + + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { echo "$as_me:$LINENO: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SET_MAKE= +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + + # test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='e-uae' + VERSION='0.8.29-WIP4' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +install_sh=${install_sh-"$am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. + + + + + +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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&5 +echo "$as_me: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + +# Provide some information about the compiler. +echo "$as_me:$LINENO: checking for C compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (ac_try="$ac_compiler --version >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compiler --version >&5") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -v >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compiler -v >&5") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -V >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compiler -V >&5") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out 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. +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +# +# List of possible output files, starting from the most likely. +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) +# only as a last resort. b.out is created by i960 compilers. +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' +# +# The IRIX 6 linker writes into existing files which may not be +# executable, retaining their permissions. Remove them first so a +# subsequent execution test works. +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; 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 | *.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 + +{ echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6; } +if test -z "$ac_file"; then + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables +See \`config.log' for more details." >&5 +echo "$as_me: error: C compiler cannot create executables +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext + +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:$LINENO: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + fi + fi +fi +{ echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + +rm -f a.out a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6; } + +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; 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 | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; 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 ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + 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 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } +GCC=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + CFLAGS="" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +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 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$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 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include +/* 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" + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_c89=$ac_arg +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +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) + { echo "$as_me:$LINENO: result: none needed" >&5 +echo "${ECHO_T}none needed" >&6; } ;; + xno) + { echo "$as_me:$LINENO: result: unsupported" >&5 +echo "${ECHO_T}unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; +esac + + +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 +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi + + +{ echo "$as_me:$LINENO: result: $_am_result" >&5 +echo "${ECHO_T}$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + + +if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + + +depcc="$CC" am_compiler_list= + +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + : > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # (even with -Werror). So we grep stderr for any message + # that says an option was ignored. + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +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 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi + +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi + +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f 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 +{ echo "$as_me:$LINENO: result: $CPP" >&5 +echo "${ECHO_T}$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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi + +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi + +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&5 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +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 + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + 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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +echo "$as_me:$LINENO: checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (ac_try="$ac_compiler --version >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compiler --version >&5") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -v >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compiler -v >&5") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -V >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compiler -V >&5") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_compiler_gnu=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } +if test "${ac_cv_prog_cxx_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cxx_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + CXXFLAGS="" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cxx_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +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_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +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 + +depcc="$CXX" am_compiler_list= + +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + : > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # (even with -Werror). So we grep stderr for any message + # that says an option was ignored. + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in objcc objc gcc cc CC + 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 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_OBJC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$OBJC"; then + ac_cv_prog_OBJC="$OBJC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +OBJC=$ac_cv_prog_OBJC +if test -n "$OBJC"; then + { echo "$as_me:$LINENO: result: $OBJC" >&5 +echo "${ECHO_T}$OBJC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$OBJC" && break + done +fi +if test -z "$OBJC"; then + ac_ct_OBJC=$OBJC + for ac_prog in objcc objc gcc cc CC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_OBJC"; then + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJC="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC +if test -n "$ac_ct_OBJC"; then + { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5 +echo "${ECHO_T}$ac_ct_OBJC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$ac_ct_OBJC" && break +done + + if test "x$ac_ct_OBJC" = x; then + OBJC="none" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + OBJC=$ac_ct_OBJC + fi +fi + + +OBJC_LDFLAGS="-lobjc" + +if test "x$OBJC" != xnone ; then + +depcc="$OBJC" am_compiler_list='gcc3 gcc' + +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } +if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_OBJC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + : > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # (even with -Werror). So we grep stderr for any message + # that says an option was ignored. + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + am_cv_OBJC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_OBJC_dependencies_compiler_type=none +fi + +fi +{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; } +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then + am__fastdepOBJC_TRUE= + am__fastdepOBJC_FALSE='#' +else + am__fastdepOBJC_TRUE='#' + am__fastdepOBJC_FALSE= +fi + + + { echo "$as_me:$LINENO: checking if Objective C compiler works" >&5 +echo $ECHO_N "checking if Objective C compiler works... $ECHO_C" >&6; } + cat >>conftest.m < +@interface Moo:Object +{ +} +- moo; +int main(); +@end + +@implementation Moo +- moo +{ + exit(0); +} + +int main() +{ + id moo; + moo = [Moo new]; + [moo moo]; + return 1; +} +@end +EOF + ${OBJC} conftest.m ${OBJC_LDFLAGS} >&5 2>&5 + if test -f a.out -o -f a.exe ; then + result=yes + else + result=no + echo failed program is: >&5 + cat conftest.m >&5 + fi + rm -f conftest.m a.out a.exe + { echo "$as_me:$LINENO: result: $result" >&5 +echo "${ECHO_T}$result" >&6; } +fi + + +# By default we simply use the C compiler to build assembly code. + +: ${CCAS='$(CC)'} +# Set ASFLAGS if not already set. +: ${CCASFLAGS='$(CFLAGS)'} + + +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SET_MAKE= +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 +echo "${ECHO_T}$ac_ct_AR" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +# 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. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done +IFS=$as_save_IFS + + +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 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$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' + +# Extract the first word of "makedepend", so it can be a program name with args. +set dummy makedepend; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_MAKEDEPPRG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MAKEDEPPRG in + [\\/]* | ?:[\\/]*) + ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_MAKEDEPPRG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_MAKEDEPPRG" && ac_cv_path_MAKEDEPPRG="not-found" + ;; +esac +fi +MAKEDEPPRG=$ac_cv_path_MAKEDEPPRG +if test -n "$MAKEDEPPRG"; then + { echo "$as_me:$LINENO: result: $MAKEDEPPRG" >&5 +echo "${ECHO_T}$MAKEDEPPRG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +# Extract the first word of "file", so it can be a program name with args. +set dummy file; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_FILEPRG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $FILEPRG in + [\\/]* | ?:[\\/]*) + ac_cv_path_FILEPRG="$FILEPRG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_FILEPRG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found" + ;; +esac +fi +FILEPRG=$ac_cv_path_FILEPRG +if test -n "$FILEPRG"; then + { echo "$as_me:$LINENO: result: $FILEPRG" >&5 +echo "${ECHO_T}$FILEPRG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +# Extract the first word of "wrc", so it can be a program name with args. +set dummy wrc; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_WRCPRG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $WRCPRG in + [\\/]* | ?:[\\/]*) + ac_cv_path_WRCPRG="$WRCPRG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_WRCPRG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found" + ;; +esac +fi +WRCPRG=$ac_cv_path_WRCPRG +if test -n "$WRCPRG"; then + { echo "$as_me:$LINENO: result: $WRCPRG" >&5 +echo "${ECHO_T}$WRCPRG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +# Extract the first word of "rcl", so it can be a program name with args. +set dummy rcl; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_RCLPRG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $RCLPRG in + [\\/]* | ?:[\\/]*) + ac_cv_path_RCLPRG="$RCLPRG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_RCLPRG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found" + ;; +esac +fi +RCLPRG=$ac_cv_path_RCLPRG +if test -n "$RCLPRG"; then + { echo "$as_me:$LINENO: result: $RCLPRG" >&5 +echo "${ECHO_T}$RCLPRG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + + + +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } +if test "${ac_cv_path_GREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Extract the first word of "grep ggrep" to use in msg output +if test -z "$GREP"; then +set dummy grep ggrep; ac_prog_name=$2 +if test "${ac_cv_path_GREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + 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" + { test -f "$ac_path_GREP" && $as_test_x "$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 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + 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 + ac_count=`expr $ac_count + 1` + 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 + + +fi + +GREP="$ac_cv_path_GREP" +if test -z "$GREP"; then + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + { (exit 1); exit 1; }; } +fi + +else + ac_cv_path_GREP=$GREP +fi + + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ echo "$as_me:$LINENO: checking for egrep" >&5 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + # Extract the first word of "egrep" to use in msg output +if test -z "$EGREP"; then +set dummy egrep; ac_prog_name=$2 +if test "${ac_cv_path_EGREP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + 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" + { test -f "$ac_path_EGREP" && $as_test_x "$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 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + 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 + ac_count=`expr $ac_count + 1` + 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 + + +fi + +EGREP="$ac_cv_path_EGREP" +if test -z "$EGREP"; then + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + { (exit 1); exit 1; }; } +fi + +else + ac_cv_path_EGREP=$EGREP +fi + + + fi +fi +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + + +{ echo "$as_me:$LINENO: checking for AIX" >&5 +echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef _AIX + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +cat >>confdefs.h <<\_ACEOF +#define _ALL_SOURCE 1 +_ACEOF + +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi +rm -f conftest* + + +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } +if test "${ac_cv_search_strerror+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 strerror (); +int +main () +{ +return strerror (); + ; + return 0; +} +_ACEOF +for ac_lib in '' cposix; 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 + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_search_strerror=$ac_res +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_strerror+set}" = set; then + break +fi +done +if test "${ac_cv_search_strerror+set}" = set; then + : +else + ac_cv_search_strerror=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; } +ac_res=$ac_cv_search_strerror +if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +NR_WARNINGS=0 +NR_ERRORS=0 + +ADDITIONAL_CFLAGS= +OPTIMIZE_CFLAGS= +WARNING_CFLAGS= +DEBUG_CFLAGS= +NO_SCHED_CFLAGS= + + +{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 +echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } +if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lossaudio $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_ossaudio__oss_ioctl=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_ossaudio__oss_ioctl=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 +echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } +if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then + HAVE_LIBOSSAUDIO=yes +else + HAVE_LIBOSSAUDIO=no +fi + + +# Check whether --enable-gtktest was given. +if test "${enable_gtktest+set}" = set; then + enableval=$enable_gtktest; +else + enable_gtktest=yes +fi + + + pkg_config_args=gtk+-2.0 + for module in . + do + case "$module" in + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + esac + done + + no_gtk="" + + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 +echo "${ECHO_T}$PKG_CONFIG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + + if test x$PKG_CONFIG != xno ; then + if pkg-config --atleast-pkgconfig-version 0.7 ; then + : + else + echo "*** pkg-config too old; version 0.7 or better required." + no_gtk=yes + PKG_CONFIG=no + fi + else + no_gtk=yes + fi + + min_gtk_version=2.0.0 + { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 +echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" + enable_gtktest=no + fi + + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then + : + else + no_gtk=yes + fi + fi + + if test x"$no_gtk" = x ; then + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" + rm -f conf.gtktest + if test "$cross_compiling" = yes; then + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + system ("touch conf.gtktest"); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} + +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +no_gtk=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 +echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } + HAVE_GTK=yes + else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://pkgconfig.sourceforge.net" + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK+ test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK+ or finding the wrong" + echo "*** version of GTK+. If it is not finding GTK+, 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 "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + HAVE_GTK=no + fi + + + rm -f conf.gtktest + +if [ "x$HAVE_GTK" = "xno" ]; then + +# Check whether --with-gtk-prefix was given. +if test "${with_gtk_prefix+set}" = set; then + withval=$with_gtk_prefix; gtk_config_prefix="$withval" +else + gtk_config_prefix="" +fi + + +# Check whether --with-gtk-exec-prefix was given. +if test "${with_gtk_exec_prefix+set}" = set; then + withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" +else + gtk_config_exec_prefix="" +fi + +# Check whether --enable-gtktest was given. +if test "${enable_gtktest+set}" = set; then + enableval=$enable_gtktest; +else + enable_gtktest=yes +fi + + + for module in . + do + case "$module" in + gthread) + gtk_config_args="$gtk_config_args gthread" + ;; + esac + done + + if test x$gtk_config_exec_prefix != x ; then + gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" + if test x${GTK_CONFIG+set} != xset ; then + GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config + fi + fi + if test x$gtk_config_prefix != x ; then + gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" + if test x${GTK_CONFIG+set} != xset ; then + GTK_CONFIG=$gtk_config_prefix/bin/gtk-config + fi + fi + + # Extract the first word of "gtk-config", so it can be a program name with args. +set dummy gtk-config; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_GTK_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $GTK_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_GTK_CONFIG="$GTK_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" + ;; +esac +fi +GTK_CONFIG=$ac_cv_path_GTK_CONFIG +if test -n "$GTK_CONFIG"; then + { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 +echo "${ECHO_T}$GTK_CONFIG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + min_gtk_version=1.0.0 + { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 +echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; } + no_gtk="" + if test "$GTK_CONFIG" = "no" ; then + no_gtk=yes + else + GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` + GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` + gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" + rm -f conf.gtktest + if test "$cross_compiling" = yes; then + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + system ("touch conf.gtktest"); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If gtk-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); + printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); + printf("*** before re-running configure\n"); + } +#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } +#endif /* defined (GTK_MAJOR_VERSION) ... */ + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); + printf("*** correct copy of gtk-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} + +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +no_gtk=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + HAVE_GTK=yes + else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + if test "$GTK_CONFIG" = "no" ; then + echo "*** The gtk-config script installed by GTK could not be found" + echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the GTK_CONFIG environment variable to the" + echo "*** full path to gtk-config." + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK test program, checking why..." + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK or finding the wrong" + echo "*** version of GTK. If it is not finding GTK, 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" + echo "***" + echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" + echo "*** came with the system with the command" + echo "***" + echo "*** rpm --erase --nodeps gtk gtk-devel" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK was incorrectly installed" + echo "*** or that you have moved GTK since it was installed. In the latter case, you" + echo "*** may want to edit the gtk-config script: $GTK_CONFIG" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + HAVE_GTK=no + fi + + + rm -f conf.gtktest + +fi + + + + + + +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include <$ac_hdr> + +int +main () +{ +if ((DIR *) 0) +return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_Header=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `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 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } +if test "${ac_cv_search_opendir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_search_opendir=$ac_res +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_opendir+set}" = set; then + break +fi +done +if test "${ac_cv_search_opendir+set}" = set; then + : +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 +echo "${ECHO_T}$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 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } +if test "${ac_cv_search_opendir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_search_opendir=$ac_res +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_opendir+set}" = set; then + break +fi +done +if test "${ac_cv_search_opendir+set}" = set; then + : +else + ac_cv_search_opendir=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 +echo "${ECHO_T}$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 + +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } +if test "${ac_cv_header_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_header_stdc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + 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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +cat >>confdefs.h <<\_ACEOF +#define STDC_HEADERS 1 +_ACEOF + +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=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_Header=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + +for ac_header in fcntl.h sys/ioctl.h sys/time.h utime.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + +for ac_header in values.h ncurses.h curses.h sys/termios.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + +for ac_header in sys/stat.h sys/ipc.h sys/shm.h sys/mman.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in sys/filio.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + +for ac_header in libraries/cybergraphics.h cybergraphx/cybergraphics.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +for ac_header in devices/ahi.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + +for ac_header in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +for ac_header in machine/joystick.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +if test "${ac_cv_header_amigainput_amigainput_h+set}" = set; then + { echo "$as_me:$LINENO: checking for amigainput/amigainput.h" >&5 +echo $ECHO_N "checking for amigainput/amigainput.h... $ECHO_C" >&6; } +if test "${ac_cv_header_amigainput_amigainput_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_amigainput_amigainput_h" >&5 +echo "${ECHO_T}$ac_cv_header_amigainput_amigainput_h" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking amigainput/amigainput.h usability" >&5 +echo $ECHO_N "checking amigainput/amigainput.h usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking amigainput/amigainput.h presence" >&5 +echo $ECHO_N "checking amigainput/amigainput.h presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: amigainput/amigainput.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: amigainput/amigainput.h: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for amigainput/amigainput.h" >&5 +echo $ECHO_N "checking for amigainput/amigainput.h... $ECHO_C" >&6; } +if test "${ac_cv_header_amigainput_amigainput_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_amigainput_amigainput_h=$ac_header_preproc +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_amigainput_amigainput_h" >&5 +echo "${ECHO_T}$ac_cv_header_amigainput_amigainput_h" >&6; } + +fi +if test $ac_cv_header_amigainput_amigainput_h = yes; then + HAVE_AMIGAINPUT=yes +else + HAVE_AMIGAINPUT=no +fi + + + + +for ac_header in byteswap.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 +echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } +if test "${ac_cv_header_stdbool_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#ifndef bool + "error: bool is not defined" +#endif +#ifndef false + "error: false is not defined" +#endif +#if false + "error: false is not 0" +#endif +#ifndef true + "error: true is not defined" +#endif +#if true != 1 + "error: true is not 1" +#endif +#ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" +#endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + bool e = &s; + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; +# if defined __xlc__ || defined __GNUC__ + /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 + reported by James Lemley on 2005-10-05; see + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html + This test is not quite right, since xlc is allowed to + reject this program, as the initializer for xlcbug is + not one of the forms that C requires support for. + However, doing the test right would require a runtime + test, and that would make cross-compilation harder. + Let us hope that IBM fixes the xlc bug, and also adds + support for this kind of constant expression. In the + meantime, this test will reject xlc, which is OK, since + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, to detect more + quickly whether someone messes up the test in the + future. */ + char digs[] = "0123456789"; + int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); +# endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_header_stdbool_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_header_stdbool_h=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 +echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } +{ echo "$as_me:$LINENO: checking for _Bool" >&5 +echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } +if test "${ac_cv_type__Bool+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef _Bool ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type__Bool=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type__Bool=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 +echo "${ECHO_T}$ac_cv_type__Bool" >&6; } +if test $ac_cv_type__Bool = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF + + +fi + +if test $ac_cv_header_stdbool_h = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_STDBOOL_H 1 +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } +if test "${ac_cv_c_const+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +/* FIXME: Include the comments suggested by Paul. */ +#ifndef __cplusplus + /* Ultrix mips cc rejects this. */ + typedef int charset[2]; + const charset cs; + /* 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. */ + char *t; + 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 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; + } + { /* 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 +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_c_const=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_c_const=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 +echo "${ECHO_T}$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +cat >>confdefs.h <<\_ACEOF +#define const +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking for inline" >&5 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; } +if test "${ac_cv_c_inline+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_c_inline=$ac_kw +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 +echo "${ECHO_T}$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 + +{ echo "$as_me:$LINENO: checking for mode_t" >&5 +echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } +if test "${ac_cv_type_mode_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef mode_t ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_mode_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_mode_t=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 +echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } +if test $ac_cv_type_mode_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define mode_t int +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking for off_t" >&5 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } +if test "${ac_cv_type_off_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef off_t ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_off_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_off_t=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; } +if test $ac_cv_type_off_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define off_t long int +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking for size_t" >&5 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } +if test "${ac_cv_type_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef size_t ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_size_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_size_t=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; } +if test $ac_cv_type_size_t = yes; then + : +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 +echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } +if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static struct stat ac_aggr; +if (ac_aggr.st_blocks) +return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_member_struct_stat_st_blocks=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static struct stat ac_aggr; +if (sizeof ac_aggr.st_blocks) +return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_member_struct_stat_st_blocks=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_member_struct_stat_st_blocks=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 +{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 +echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } +if test $ac_cv_member_struct_stat_st_blocks = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 +_ACEOF + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ST_BLOCKS 1 +_ACEOF + +else + case " $LIBOBJS " in + *" fileblocks.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" + ;; +esac + +fi + + +{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } +if test "${ac_cv_header_time+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_header_time=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_header_time=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 +echo "${ECHO_T}$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +cat >>confdefs.h <<\_ACEOF +#define TIME_WITH_SYS_TIME 1 +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } +if test "${ac_cv_struct_tm+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_struct_tm=time.h +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_struct_tm=sys/time.h +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 +echo "${ECHO_T}$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +cat >>confdefs.h <<\_ACEOF +#define TM_IN_SYS_TIME 1 +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking for working volatile" >&5 +echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } +if test "${ac_cv_c_volatile+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + +volatile int x; +int * volatile y = (int *) 0; +return !x && !y; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_c_volatile=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_c_volatile=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 +echo "${ECHO_T}$ac_cv_c_volatile" >&6; } +if test $ac_cv_c_volatile = no; then + +cat >>confdefs.h <<\_ACEOF +#define volatile +_ACEOF + +fi + +{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 +echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } +if test "${ac_cv_c_bigendian+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # See if sys/param.h defines the BYTE_ORDER macro. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + # It does; now see whether it defined to BIG_ENDIAN or not. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian +#endif + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_c_bigendian=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_c_bigendian=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # It does not; compile a test program. +if test "$cross_compiling" = yes; then + # try to guess the endianness by grepping values into an object file + ac_cv_c_bigendian=unknown + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 }; +void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } +short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; +short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; +void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } +int +main () +{ + _ascii (); _ebcdic (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; 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 +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_c_bigendian=no +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 +echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } +case $ac_cv_c_bigendian in + yes) + +cat >>confdefs.h <<\_ACEOF +#define WORDS_BIGENDIAN 1 +_ACEOF + ;; + no) + ;; + *) + { { echo "$as_me:$LINENO: error: unknown endianness +presetting ac_cv_c_bigendian=no (or yes) will help" >&5 +echo "$as_me: error: unknown endianness +presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} + { (exit 1); exit 1; }; } ;; +esac + + +{ echo "$as_me:$LINENO: checking for char" >&5 +echo $ECHO_N "checking for char... $ECHO_C" >&6; } +if test "${ac_cv_type_char+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef char ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_char=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_char=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 +echo "${ECHO_T}$ac_cv_type_char" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of char" >&5 +echo $ECHO_N "checking size of char... $ECHO_C" >&6; } +if test "${ac_cv_sizeof_char+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef char ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef char ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef char ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef char ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef char ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_char=$ac_lo;; +'') if test "$ac_cv_type_char" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (char) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_char=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef char ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_char=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type_char" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (char) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_char=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 +echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_CHAR $ac_cv_sizeof_char +_ACEOF + + +{ echo "$as_me:$LINENO: checking for short" >&5 +echo $ECHO_N "checking for short... $ECHO_C" >&6; } +if test "${ac_cv_type_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef short ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_short=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_short=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 +echo "${ECHO_T}$ac_cv_type_short" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of short" >&5 +echo $ECHO_N "checking size of short... $ECHO_C" >&6; } +if test "${ac_cv_sizeof_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef short ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef short ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef short ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef short ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef short ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_short=$ac_lo;; +'') if test "$ac_cv_type_short" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (short) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_short=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef short ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_short=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type_short" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (short) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_short=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 +echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + +{ echo "$as_me:$LINENO: checking for int" >&5 +echo $ECHO_N "checking for int... $ECHO_C" >&6; } +if test "${ac_cv_type_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef int ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_int=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_int=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 +echo "${ECHO_T}$ac_cv_type_int" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of int" >&5 +echo $ECHO_N "checking size of int... $ECHO_C" >&6; } +if test "${ac_cv_sizeof_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef int ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef int ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef int ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef int ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef int ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_int=$ac_lo;; +'') if test "$ac_cv_type_int" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (int) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_int=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef int ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_int=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type_int" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (int) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_int=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 +echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + +{ echo "$as_me:$LINENO: checking for long" >&5 +echo $ECHO_N "checking for long... $ECHO_C" >&6; } +if test "${ac_cv_type_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef long ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_long=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 +echo "${ECHO_T}$ac_cv_type_long" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of long" >&5 +echo $ECHO_N "checking size of long... $ECHO_C" >&6; } +if test "${ac_cv_sizeof_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_long=$ac_lo;; +'') if test "$ac_cv_type_long" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (long) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_long=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_long=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type_long" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (long) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_long=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +{ echo "$as_me:$LINENO: checking for long long" >&5 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; } +if test "${ac_cv_type_long_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef long long ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_long_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_long_long=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 +echo "${ECHO_T}$ac_cv_type_long_long" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of long long" >&5 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } +if test "${ac_cv_sizeof_long_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long long ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_long_long=$ac_lo;; +'') if test "$ac_cv_type_long_long" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (long long) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_long_long=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef long long ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_long_long=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type_long_long" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (long long) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_long_long=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF + + +{ echo "$as_me:$LINENO: checking for __int64" >&5 +echo $ECHO_N "checking for __int64... $ECHO_C" >&6; } +if test "${ac_cv_type___int64+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef __int64 ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type___int64=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type___int64=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 +echo "${ECHO_T}$ac_cv_type___int64" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of __int64" >&5 +echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; } +if test "${ac_cv_sizeof___int64+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef __int64 ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef __int64 ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef __int64 ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef __int64 ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef __int64 ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof___int64=$ac_lo;; +'') if test "$ac_cv_type___int64" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (__int64) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof___int64=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef __int64 ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof___int64=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type___int64" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (__int64) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof___int64=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5 +echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF___INT64 $ac_cv_sizeof___int64 +_ACEOF + + +{ echo "$as_me:$LINENO: checking for void *" >&5 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; } +if test "${ac_cv_type_void_p+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +typedef void * ac__type_new_; +int +main () +{ +if ((ac__type_new_ *) 0) + return 0; +if (sizeof (ac__type_new_)) + return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_void_p=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_void_p=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 +echo "${ECHO_T}$ac_cv_type_void_p" >&6; } + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ echo "$as_me:$LINENO: checking size of void *" >&5 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } +if test "${ac_cv_sizeof_void_p+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef void * ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef void * ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef void * ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef void * ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo= ac_hi= +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef void * ac__type_sizeof_; +int +main () +{ +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_lo=`expr '(' $ac_mid ')' + 1` +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_void_p=$ac_lo;; +'') if test "$ac_cv_type_void_p" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (void *) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_void_p=0 + fi ;; +esac +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + typedef void * ac__type_sizeof_; +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (((long int) (sizeof (ac__type_sizeof_))) < 0) + { + long int i = longval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%ld\n", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ((long int) (sizeof (ac__type_sizeof_)))) + return 1; + fprintf (f, "%lu\n", i); + } + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_void_p=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +if test "$ac_cv_type_void_p" = yes; then + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (void *) +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } + else + ac_cv_sizeof_void_p=0 + fi +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.val +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p +_ACEOF + + + +{ echo "$as_me:$LINENO: checking for socklen_t" >&5 +echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } +if test "${ac_cv_type_socklen_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #include +int +main () +{ +socklen_t len = 42; return 0; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_socklen_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_socklen_t=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 +echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } + if test $ac_cv_type_socklen_t != yes; then + +cat >>confdefs.h <<\_ACEOF +#define socklen_t int +_ACEOF + + fi + + +if test $ac_cv_c_compiler_gnu = yes; then + { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 +echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } +if test "${ac_cv_prog_gcc_traditional+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_pattern="Autoconf.*'x'" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 +echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi + +{ echo "$as_me:$LINENO: checking for working memcmp" >&5 +echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } +if test "${ac_cv_func_memcmp_working+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_memcmp_working=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_memcmp_working=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 +echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" + ;; +esac + + +{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } +if test "${ac_cv_type_signal+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + +int +main () +{ +return *(signal (0, 0)) (0) == 1; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_type_signal=int +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_signal=void +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 +echo "${ECHO_T}$ac_cv_type_signal" >&6; } + +cat >>confdefs.h <<_ACEOF +#define RETSIGTYPE $ac_cv_type_signal +_ACEOF + + + + + + +for ac_header in $ac_header_list +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + + +{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5 +echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; } +if test "${ac_cv_func_utime_null+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + rm -f conftest.data; >conftest.data +# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. +if test "$cross_compiling" = yes; then + ac_cv_func_utime_null=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + #ifdef HAVE_UTIME_H + # include + #endif +int +main () +{ +struct stat s, t; + return ! (stat ("conftest.data", &s) == 0 + && utime ("conftest.data", 0) == 0 + && stat ("conftest.data", &t) == 0 + && t.st_mtime >= s.st_mtime + && t.st_mtime - s.st_mtime < 120); + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_utime_null=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_func_utime_null=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5 +echo "${ECHO_T}$ac_cv_func_utime_null" >&6; } +if test $ac_cv_func_utime_null = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_UTIME_NULL 1 +_ACEOF + +fi +rm -f conftest.data + + + + + + + + +for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* 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 $ac_func (); +/* 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_$ac_func || defined __stub___$ac_func +choke me +#endif + +int +main () +{ +return $ac_func (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_var=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + + + + + +for ac_func in select strerror strstr isnan isinf setitimer alarm sync +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* 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 $ac_func (); +/* 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_$ac_func || defined __stub___$ac_func +choke me +#endif + +int +main () +{ +return $ac_func (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_var=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + + + +for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* 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 $ac_func (); +/* 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_$ac_func || defined __stub___$ac_func +choke me +#endif + +int +main () +{ +return $ac_func (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_var=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + +for ac_func in strcasecmp stricmp strcmpi +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* 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 $ac_func (); +/* 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_$ac_func || defined __stub___$ac_func +choke me +#endif + +int +main () +{ +return $ac_func (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_var=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + +for ac_func in nanosleep usleep sleep +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* 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 $ac_func (); +/* 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_$ac_func || defined __stub___$ac_func +choke me +#endif + +int +main () +{ +return $ac_func (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_var=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + +for ac_func in localtime_r timegm gmtime_r +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* 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 $ac_func (); +/* 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_$ac_func || defined __stub___$ac_func +choke me +#endif + +int +main () +{ +return $ac_func (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_var=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_var'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 +echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } +if test "${ac_cv_sys_largefile_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_sys_largefile_CC=' -n32'; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 +echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } +if test "${ac_cv_sys_file_offset_bits+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_sys_file_offset_bits=no; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_sys_file_offset_bits=64; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 +echo "${ECHO_T}$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 -f conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 +echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } +if test "${ac_cv_sys_large_files+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_sys_large_files=no; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_sys_large_files=1; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 +echo "${ECHO_T}$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 -f conftest* + fi +fi + + +{ echo "$as_me:$LINENO: checking for bswap_16" >&5 +echo $ECHO_N "checking for bswap_16... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #if HAVE_BYTESWAP_H + # include + #endif + +int +main () +{ + + bswap_16 (0x12); + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_BSWAP_16 1 +_ACEOF + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +{ echo "$as_me:$LINENO: checking for bswap_32" >&5 +echo $ECHO_N "checking for bswap_32... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #if HAVE_BYTESWAP_H + # include + #endif + +int +main () +{ + + bswap_32 (0x1234); + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_BSWAP_32 1 +_ACEOF + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + + + + +for ac_header in sys/param.h sys/vfs.h sys/fs_types.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in sys/mount.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef HAVE_SYS_PARAM_H +# include +#endif + + +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + eval "$as_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_Header=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +echo "checking how to get filesystem space usage..." +ac_fsusage_space=no + +# Perform only the link test since it seems there are no variants of the +# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs) +# because that got a false positive on SCO OSR5. Adding the declaration +# of a `struct statvfs' causes this test to fail (as it should) on such +# systems. That system is reported to work fine with STAT_STATFS4 which +# is what it gets when this test fails. +if test $ac_fsusage_space = no; then + # SVR4 + { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5 +echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; } +if test "${fu_cv_sys_stat_statvfs+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#ifdef __GLIBC__ +Do not use statvfs on systems with GNU libc, because that function stats +all preceding entries in /proc/mounts, and that makes df hang if even +one of the corresponding file systems is hard-mounted, but not available. +#endif +#include +int +main () +{ +struct statvfs fsd; statvfs (0, &fsd); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + fu_cv_sys_stat_statvfs=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + fu_cv_sys_stat_statvfs=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; } + if test $fu_cv_sys_stat_statvfs = yes; then + ac_fsusage_space=yes + +cat >>confdefs.h <<\_ACEOF +#define STAT_STATVFS 1 +_ACEOF + + fi +fi + +if test $ac_fsusage_space = no; then + # DEC Alpha running OSF/1 + { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5 +echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; } + if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs3_osf1=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +#include + main () + { + struct statfs fsd; + fsd.f_fsize = 0; + exit (statfs (".", &fsd, sizeof (struct statfs))); + } +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fu_cv_sys_stat_statfs3_osf1=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +fu_cv_sys_stat_statfs3_osf1=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi + + { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; } + if test $fu_cv_sys_stat_statfs3_osf1 = yes; then + ac_fsusage_space=yes + +cat >>confdefs.h <<\_ACEOF +#define STAT_STATFS3_OSF1 1 +_ACEOF + + fi +fi + +if test $ac_fsusage_space = no; then +# AIX + { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 +echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; } + if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs2_bsize=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif +#ifdef HAVE_SYS_VFS_H +#include +#endif + main () + { + struct statfs fsd; + fsd.f_bsize = 0; + exit (statfs (".", &fsd)); + } +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fu_cv_sys_stat_statfs2_bsize=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +fu_cv_sys_stat_statfs2_bsize=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi + + { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; } + if test $fu_cv_sys_stat_statfs2_bsize = yes; then + ac_fsusage_space=yes + +cat >>confdefs.h <<\_ACEOF +#define STAT_STATFS2_BSIZE 1 +_ACEOF + + fi +fi + +if test $ac_fsusage_space = no; then +# SVR3 + { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 +echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; } + if test "${fu_cv_sys_stat_statfs4+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs4=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + main () + { + struct statfs fsd; + exit (statfs (".", &fsd, sizeof fsd, 0)); + } +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fu_cv_sys_stat_statfs4=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +fu_cv_sys_stat_statfs4=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi + + { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; } + if test $fu_cv_sys_stat_statfs4 = yes; then + ac_fsusage_space=yes + +cat >>confdefs.h <<\_ACEOF +#define STAT_STATFS4 1 +_ACEOF + + fi +fi + +if test $ac_fsusage_space = no; then +# 4.4BSD and NetBSD + { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 +echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; } + if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs2_fsize=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif + main () + { + struct statfs fsd; + fsd.f_fsize = 0; + exit (statfs (".", &fsd)); + } +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fu_cv_sys_stat_statfs2_fsize=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +fu_cv_sys_stat_statfs2_fsize=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi + + { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; } + if test $fu_cv_sys_stat_statfs2_fsize = yes; then + ac_fsusage_space=yes + +cat >>confdefs.h <<\_ACEOF +#define STAT_STATFS2_FSIZE 1 +_ACEOF + + fi +fi + +if test $ac_fsusage_space = no; then + # Ultrix + { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 +echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; } + if test "${fu_cv_sys_stat_fs_data+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_fs_data=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif +#ifdef HAVE_SYS_FS_TYPES_H +#include +#endif + main () + { + struct fs_data fsd; + /* Ultrix's statfs returns 1 for success, + 0 for not mounted, -1 for failure. */ + exit (statfs (".", &fsd) != 1); + } +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + fu_cv_sys_stat_fs_data=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +fu_cv_sys_stat_fs_data=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi + + { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; } + if test $fu_cv_sys_stat_fs_data = yes; then + ac_fsusage_space=yes + +cat >>confdefs.h <<\_ACEOF +#define STAT_STATFS2_FS_DATA 1 +_ACEOF + + fi +fi + +if test $ac_fsusage_space = no; then + # SVR2 + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + +cat >>confdefs.h <<\_ACEOF +#define STAT_READ_FILSYS 1 +_ACEOF + + ac_fsusage_space=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f conftest.err conftest.$ac_ext +fi + +if test $ac_fsusage_space = yes; then + gl_cv_fs_space=yes +else + gl_cv_fs_space=no +fi + + + +if test $gl_cv_fs_space = yes; then + case " $LIBOBJS " in + *" fsusage.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS fsusage.$ac_objext" + ;; +esac + + + { echo "$as_me:$LINENO: checking for inttypes.h" >&5 +echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } +if test "${jm_ac_cv_header_inttypes_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + jm_ac_cv_header_inttypes_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + jm_ac_cv_header_inttypes_h=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 +echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } + if test $jm_ac_cv_header_inttypes_h = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 +_ACEOF + + fi + + + { echo "$as_me:$LINENO: checking for stdint.h" >&5 +echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } +if test "${jm_ac_cv_header_stdint_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + jm_ac_cv_header_stdint_h=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + jm_ac_cv_header_stdint_h=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 +echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } + if test $jm_ac_cv_header_stdint_h = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H_WITH_UINTMAX 1 +_ACEOF + + fi + + + { echo "$as_me:$LINENO: checking for unsigned long long" >&5 +echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } +if test "${ac_cv_type_unsigned_long_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +unsigned long long ull = 1ULL; int i = 63; +int +main () +{ +unsigned long long ullmax = (unsigned long long) -1; + return ull << i | ull >> i | ullmax / ull | ullmax % ull; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_type_unsigned_long_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_type_unsigned_long_long=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 +echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } + if test $ac_cv_type_unsigned_long_long = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_UNSIGNED_LONG_LONG 1 +_ACEOF + + fi + + + + + if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then + + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + +cat >>confdefs.h <<_ACEOF +#define uintmax_t $ac_type +_ACEOF + + else + +cat >>confdefs.h <<\_ACEOF +#define HAVE_UINTMAX_T 1 +_ACEOF + + fi + + + + +for ac_header in fcntl.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + +for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5 +echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; } + if test "${fu_cv_sys_truncating_statfs+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#if !defined(sun) && !defined(__sun) +choke -- this is a workaround for a Sun-specific problem +#endif +#include +#include +int +main () +{ +struct statfs t; long c = *(t.f_spare); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + fu_cv_sys_truncating_statfs=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + fu_cv_sys_truncating_statfs=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + if test $fu_cv_sys_truncating_statfs = yes; then + +cat >>confdefs.h <<\_ACEOF +#define STATFS_TRUNCATES_BLOCK_COUNTS 1 +_ACEOF + + fi + { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5 +echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; } + + +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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_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 + test "x$cache_file" != "x/dev/null" && + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 +echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +# +# Handle user hints +# +{ echo "$as_me:$LINENO: checking if zlib is wanted" >&5 +echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6; } + +# Check whether --with-zlib was given. +if test "${with_zlib+set}" = set; then + withval=$with_zlib; if test "$withval" != no ; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + ZLIB_HOME="$withval" +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi +else + +{ echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +ZLIB_HOME=/usr/local +if test ! -f "${ZLIB_HOME}/include/zlib.h" +then + ZLIB_HOME=/usr +fi + +fi + + +# +# Locate zlib, if wanted +# +if test -n "${ZLIB_HOME}" +then + ZLIB_OLD_LDFLAGS=$LDFLAGS + ZLIB_OLD_CPPFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" + CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" + + 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 + + { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 +echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } +if test "${ac_cv_lib_z_inflateEnd+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 inflateEnd (); +int +main () +{ +return inflateEnd (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_z_inflateEnd=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_z_inflateEnd=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 +echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } +if test $ac_cv_lib_z_inflateEnd = yes; then + zlib_cv_libz=yes +else + zlib_cv_libz=no +fi + + if test "${ac_cv_header_zlib_h+set}" = set; then + { echo "$as_me:$LINENO: checking for zlib.h" >&5 +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } +if test "${ac_cv_header_zlib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 +echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 +echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for zlib.h" >&5 +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } +if test "${ac_cv_header_zlib_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_zlib_h=$ac_header_preproc +fi +{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } + +fi +if test $ac_cv_header_zlib_h = yes; then + zlib_cv_zlib_h=yes +else + zlib_cvs_zlib_h=no +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 "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" + then + # + # If both library and header were found, use them + # + +{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 +echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } +if test "${ac_cv_lib_z_inflateEnd+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 inflateEnd (); +int +main () +{ +return inflateEnd (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_z_inflateEnd=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_z_inflateEnd=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 +echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } +if test $ac_cv_lib_z_inflateEnd = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + + { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 +echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } + { echo "$as_me:$LINENO: result: ok" >&5 +echo "${ECHO_T}ok" >&6; } + else + # + # If either header or library was not found, revert and bomb + # + { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 +echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } + LDFLAGS="$ZLIB_OLD_LDFLAGS" + CPPFLAGS="$ZLIB_OLD_CPPFLAGS" + { echo "$as_me:$LINENO: result: failed" >&5 +echo "${ECHO_T}failed" >&6; } + { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 +echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} + { (exit 1); exit 1; }; } + fi +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 + +acx_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 +echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + acx_pthread_ok=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 +echo "${ECHO_T}$acx_pthread_ok" >&6; } + if test x"$acx_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all. + +acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# pthread: Linux, etcetera +# --thread-safe: KAI C++ + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthread or + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" + ;; +esac + +if test x"$acx_pthread_ok" = xno; then +for flag in $acx_pthread_flags; do + + case $flag in + none) + { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 +echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } + ;; + + -*) + { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 +echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } + PTHREAD_CFLAGS="$flag" + ;; + + *) + { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 +echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +pthread_t th; pthread_join(th, 0); + pthread_attr_init(0); pthread_cleanup_push(0, 0); + pthread_create(0,0,0,0); pthread_cleanup_pop(0); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + acx_pthread_ok=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 +echo "${ECHO_T}$acx_pthread_ok" >&6; } + if test "x$acx_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$acx_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: threads are created detached by default + # and the JOINABLE attribute has a nonstandard name (UNDETACHED). + { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 +echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +int attr=PTHREAD_CREATE_JOINABLE; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ok=PTHREAD_CREATE_JOINABLE +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ok=unknown +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + if test x"$ok" = xunknown; then + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +int attr=PTHREAD_CREATE_UNDETACHED; + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ok=PTHREAD_CREATE_UNDETACHED +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ok=unknown +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + fi + if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then + +cat >>confdefs.h <<\_ACEOF +#define PTHREAD_CREATE_JOINABLE $ok +_ACEOF + + fi + { echo "$as_me:$LINENO: result: ${ok}" >&5 +echo "${ECHO_T}${ok}" >&6; } + if test x"$ok" = xunknown; then + { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 +echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} + fi + + { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 +echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + { echo "$as_me:$LINENO: result: ${flag}" >&5 +echo "${ECHO_T}${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with cc_r + # Extract the first word of "cc_r", so it can be a program name with args. +set dummy cc_r; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$PTHREAD_CC"; then + ac_cv_prog_PTHREAD_CC="$PTHREAD_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_PTHREAD_CC="cc_r" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" +fi +fi +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 +echo "${ECHO_T}$PTHREAD_CC" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +else + PTHREAD_CC="$CC" +fi + + + + + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$acx_pthread_ok" = xyes; then + HAVE_PTHREAD=yes + : +else + acx_pthread_ok=no + HAVE_PTHREAD=no +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 [ "x$HAVE_PTHREAD" = "xyes" ]; then + SAVE_CFLAGS="$CFLAGS" + SAVE_LIBS="$LIBS" + CFLAGS="$PTHREAD_CFLAGS $CFLAGS" + LIBS="$PTHREAD_LIBS" + { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 +echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; } +if test "${ac_cv_search_sem_init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 sem_init (); +int +main () +{ +return sem_init (); + ; + return 0; +} +_ACEOF +for ac_lib in '' rt posix4; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib "$SAVE_LIBS" $ac_func_search_save_LIBS" + fi + 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_search_sem_init=$ac_res +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_sem_init+set}" = set; then + break +fi +done +if test "${ac_cv_search_sem_init+set}" = set; then + : +else + ac_cv_search_sem_init=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 +echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } +ac_res=$ac_cv_search_sem_init +if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + PTHREAD_LIBS="$LIBS" + CFLAGS="$SAVE_CFLAGS" + LIBS="$SAVE_LIBS" +fi + +SAVE_LIBS="$LIBS" +LIBS="$LIBS -ldl" +{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dl_dlopen=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } +if test $ac_cv_lib_dl_dlopen = yes; then + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_DLOPEN 1 +_ACEOF + + +else + + LIBS="$SAVE_LIBS" + + +fi + + +HAVE_USS_SOUND=no +if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then + if [ "x$HAVE_LIBOSSAUDIO" = "xyes" ]; then + SAVE_LIBS="$LIBS" + LIBS="$LIBS -lossaudio" + fi + { echo "$as_me:$LINENO: checking whether sys/soundcard.h or machine/soundcard.h works" >&5 +echo $ECHO_N "checking whether sys/soundcard.h or machine/soundcard.h works... $ECHO_C" >&6; } + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include "confdefs.h" +#ifdef HAVE_SYS_SOUNDCARD_H +#include +#else +#include +#endif +#include + +int +main () +{ +int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +HAVE_USS_SOUND=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + if [ "x$HAVE_LIBOSSAUDIO" = "xyes" ]; then + LIBS="$SAVE_LIBS" + fi +fi + + +{ echo "$as_me:$LINENO: checking host OS support" >&5 +echo $ECHO_N "checking host OS support... $ECHO_C" >&6; } + +HOST_OS=generic +OSDEP=od-generic + +case $host_os in + linux*) + HOST_OS=linux + OSDEP=od-linux + ;; + darwin*) + HOST_OS=darwin + OSDEP=od-macosx + ;; + beos) + HOST_OS=beos + OSDEP=od-beos + ;; + amigaos) + HOST_OS=amiga + OSDEP=od-amiga + ;; + morphos) + HOST_OS=morphos + OSDEP=od-amiga + ;; + aros) + HOST_OS=aros + OSDEP=od-amiga + ;; + mingw32*) + HOST_OS=win32 + OSDEP=od-win32 +esac + +{ echo "$as_me:$LINENO: result: $HOST_OS" >&5 +echo "${ECHO_T}$HOST_OS" >&6; } + +{ echo "$as_me:$LINENO: checking host cpu support" >&5 +echo $ECHO_N "checking host cpu support... $ECHO_C" >&6; } + +HOST_CPU=generic +MDFPP_H=fpp-unknown.h + +case $host_cpu in + i[3-6]86) + HOST_CPU=i386 + MDFPP_H=fpp-ieee.h + ;; + amd64 | x86_64) + HOST_CPU=amd64 + MDFPP_H=fpp-ieee.h + ;; + powerpc) + HOST_CPU=ppc + MDFPP_H=fpp-ieee.h + ;; + m68k) + HOST_CPU=68k + MDFPP_H=fpp-ieee.h + ;; +esac + +{ echo "$as_me:$LINENO: result: $HOST_CPU" >&5 +echo "${ECHO_T}$HOST_CPU" >&6; } +MACHDEP="md-$HOST_CPU" + + + +cat >>confdefs.h <<\_ACEOF +#define MULTIPLICATION_PROFITABLE 1 +_ACEOF + + + +HAVE_GCC27=no +HAVE_GCC30=no +HAVE_GLIBC2=no + +{ echo "$as_me:$LINENO: checking for GCC 2.7 or higher" >&5 +echo $ECHO_N "checking for GCC 2.7 or higher... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#if (__GNUC__ - 1 > 0 && __GNUC_MINOR__ - 1 > 5) || __GNUC__ - 1 > 1 + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; }; HAVE_GCC27=yes +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi +rm -f conftest* + + +if [ "x$HAVE_GCC27" = "xyes" ]; then + { echo "$as_me:$LINENO: checking for GCC 3.0 or higher" >&5 +echo $ECHO_N "checking for GCC 3.0 or higher... $ECHO_C" >&6; } + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#if __GNUC__ - 1 > 1 + yes + #endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; }; HAVE_GCC30=yes +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi +rm -f conftest* + +fi + +if test $ac_cv_c_compiler_gnu = yes; then + if test $HAVE_GCC27 != yes; then + { echo "$as_me:$LINENO: WARNING: Version 2.7 or better of GCC is recommended" >&5 +echo "$as_me: WARNING: Version 2.7 or better of GCC is recommended" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + fi +else + if test $uae_cv_prog_cc_watcom != yes; then + { echo "$as_me:$LINENO: WARNING: UAE may not compile and run correctly with your compiler" >&5 +echo "$as_me: WARNING: UAE may not compile and run correctly with your compiler" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + fi +fi + +if test $ac_cv_c_compiler_gnu = yes; then + if [ "$HOST_CPU" = i386 -o "$HOST_CPU" = ppc -o "$HOST_CPU" = amd64 ]; then + MACHDEP="$MACHDEP-gcc" + fi +fi + +if [ "x$HAVEGCC27" = "xyes" -a "$HOST_CPU" = "i386" ]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -mno-schedule-prologue" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +int main(){return 0;} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -mno-schedule-prologue" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$SAVECFLAGS +fi +if [ "x$HAVEGCC27" = "xyes" -a "$HOST_CPU" = "i386" ]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +int main(){return 0;} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -mpreferred-stack-boundary=2" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$SAVECFLAGS +fi +if [ "x$HAVEGCC27" = "xyes" -a "$HOST_CPU" = "i386" ]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -fno-exceptions" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +int main(){return 0;} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -fno-exceptions" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$SAVECFLAGS +fi + +if [ "$HOST_OS" = "darwin" ]; then + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -mdynamic-no-pic" +fi + +if [ "x$ac_cv_header_features_h" = "xyes" ]; then + { echo "$as_me:$LINENO: checking for glibc-2.0 or higher" >&5 +echo $ECHO_N "checking for glibc-2.0 or higher... $ECHO_C" >&6; } + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#if __GLIBC__ - 1 >= 1 + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; }; HAVE_GLIBC2=yes +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi +rm -f conftest* + +fi + + +TARGET=x11 +TARGETDEP=t-unix.h +if [ "$HAVE_PTHREAD" = "yes" ]; then + THREADDEP=td-posix + THREADNAME=posix +else + THREADDEP=td-none + THREADNAME=none +fi +if [ "x$no_x" != "xyes" ]; then + GFX_DEP=gfx-x11 + GFX_NAME=x11 +else + GFX_DEP= + GXF_NAME= +fi +GUI_DEP=gui-none +GUI_NAME=none +GUI_LIBS= +SND_DEP=sd-none +SND_NAME=none +JOY_DEP=jd-none +JOY_NAME=none + +DO_PROFILING=no +if [ "$HOST_CPU" = "i386" ]; then + WANT_JIT=yes +else + WANT_JIT=no +fi +NATMEM=no +NOFLAGS=no +WANT_DGA=no +WANT_VIDMODE=no +WANT_THREADS=dunno +NEED_THREAD_SUPPORT=no +WANT_AUTOCONFIG=dunno +WANT_SCSIEMU=no +WANT_AGA=yes +WANT_CD32=dunno +WANT_CDTV=dunno +WANT_BSDSOCK=dunno +WANT_UI=dunno +WANT_AUDIO=dunno +WANT_COMPATIBLE=yes +WANT_CYCLEEXACT=yes +WANT_CAPS=no +WANT_FDI=yes +WANT_ENFORCER=dunno + +MATHLIB=-lm + +if [ "$HOST_OS" = "linux" ]; then + JOY_DEP=jd-linuxold + JOY_NAME="linux" + if [ "$HOST_CPU" = "i386" ]; then + NATMEM="0x50000000" + fi +else if [ "$OSDEP" = "od-beos" ]; then + TARGET=beos + TARGETDEP=t-beos.h + THREADDEP=td-beos + THREADNAME="native BeOS" + GFX_DEP=gfx-beos + GFX_NAME="native BeOS" + GFX_LIBS="-lgame" + GUI_DEP="gui-beos" + GUI_NAME="native BeOS" + GUI_LIBS="-lbe -ltracker" + JOY_DEP=jd-beos + JOY_NAME="native BeOS" + JOY_LIBS="-ldevice" + SND_DEP=sd-beos + SND_NAME="native BeOS" + SND_LIBS="-lmedia" + WANT_BSDSOCK=no + MATHLIB="" + UAE_RSRCFILE="$OSDEP/uae.rsrc" +else if [ "$OSDEP" = "od-amiga" ]; then + TARGET=amiga + TARGETDEP=t-amiga.h + THREADDEP=td-amigaos + THREADNAME="native AmigaOS" + GFX_DEP=gfx-amigaos + GFX_NAME="native AmigaOS" + GUI_DEP=gui-muirexx + GUI_NAME="MUIRexx" + SND_DEP=sd-amigaos + SND_NAME="native AmigaOS/AHI" + if [ "x$HAVE_AMIGAINPUT" = "xyes" ]; then + JOY_DEP=jd-amigainput + JOY_NAME="AmigaInput" + else + JOY_DEP=jd-amigaos + JOY_NAME="Amiga lowlevel.library" + fi + WANT_BSDSOCK=no +else if [ "$OSDEP" = "od-win32" ]; then + TARGET=win32 + TARGETDEP=t-win32.h + WANT_BSDSOCK=no +fi +fi +fi +fi + +if [ "$OSDEP" != "od-win32" ]; then + EXTRAOBJS=writelog.o +fi + + + + +# Check whether --enable-profiling was given. +if test "${enable_profiling+set}" = set; then + enableval=$enable_profiling; DO_PROFILING=$enableval +fi + +# Check whether --enable-aga was given. +if test "${enable_aga+set}" = set; then + enableval=$enable_aga; WANT_AGA=$enableval +fi + +# Check whether --enable-cdtv was given. +if test "${enable_cdtv+set}" = set; then + enableval=$enable_cdtv; WANT_CDTV=$enableval +fi + +# Check whether --enable-cd32 was given. +if test "${enable_cd32+set}" = set; then + enableval=$enable_cd32; WANT_CD32=$enableval +fi + +# Check whether --enable-cycle-exact-cpu was given. +if test "${enable_cycle_exact_cpu+set}" = set; then + enableval=$enable_cycle_exact_cpu; WANT_CYCLEEXACT=$enableval +fi + +# Check whether --enable-compatible-cpu was given. +if test "${enable_compatible_cpu+set}" = set; then + enableval=$enable_compatible_cpu; WANT_COMPATIBLE=$enableval +fi + +# Check whether --enable-jit was given. +if test "${enable_jit+set}" = set; then + enableval=$enable_jit; WANT_JIT=$enableval +fi + +# Check whether --enable-natmem was given. +if test "${enable_natmem+set}" = set; then + enableval=$enable_natmem; NATMEM=$enableval +fi + +# Check whether --enable-noflags was given. +if test "${enable_noflags+set}" = set; then + enableval=$enable_noflags; NOFLAGS=$enableval +fi + +# Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then + enableval=$enable_threads; WANT_THREADS=$enableval +fi + +# Check whether --enable-autoconfig was given. +if test "${enable_autoconfig+set}" = set; then + enableval=$enable_autoconfig; WANT_AUTOCONFIG=$enableval +fi + +# Check whether --enable-scsi-device was given. +if test "${enable_scsi_device+set}" = set; then + enableval=$enable_scsi_device; WANT_SCSIEMU=$enableval +fi + +# Check whether --enable-bsdsock was given. +if test "${enable_bsdsock+set}" = set; then + enableval=$enable_bsdsock; WANT_BSDSOCK=$enableval +fi + +# Check whether --enable-debugger was given. +if test "${enable_debugger+set}" = set; then + enableval=$enable_debugger; WANT_DEBUGGER=$enableval +fi + +# Check whether --enable-state-saving was given. +if test "${enable_state_saving+set}" = set; then + enableval=$enable_state_saving; WANT_STATESAVING=$enableval +fi + +# Check whether --enable-enforcer was given. +if test "${enable_enforcer+set}" = set; then + enableval=$enable_enforcer; WANT_ENFORCER=$enableval +fi + +# Check whether --enable-action-replay was given. +if test "${enable_action_replay+set}" = set; then + enableval=$enable_action_replay; WANT_ACTION_REPLAY=$enableval +fi + +# Check whether --enable-dga was given. +if test "${enable_dga+set}" = set; then + enableval=$enable_dga; WANT_DGA=$enableval +fi + +# Check whether --enable-vidmode was given. +if test "${enable_vidmode+set}" = set; then + enableval=$enable_vidmode; WANT_VIDMODE=$enableval +fi + +# Check whether --enable-ui was given. +if test "${enable_ui+set}" = set; then + enableval=$enable_ui; WANT_UI=$enableval +fi + +# Check whether --enable-audio was given. +if test "${enable_audio+set}" = set; then + enableval=$enable_audio; WANT_AUDIO=$enableval +fi + +# Check whether --enable-fdi was given. +if test "${enable_fdi+set}" = set; then + enableval=$enable_fdi; WANT_FDI=$enableval +fi + + + +# Check whether --with-sdl was given. +if test "${with_sdl+set}" = set; then + withval=$with_sdl; WANT_SDL=$withval +fi + + +# Check whether --with-sdl-sound was given. +if test "${with_sdl_sound+set}" = set; then + withval=$with_sdl_sound; WANT_SDLSND=$withval +fi + + +# Check whether --with-sdl-gfx was given. +if test "${with_sdl_gfx+set}" = set; then + withval=$with_sdl_gfx; WANT_SDLGFX=$withval +fi + + +# Check whether --with-sdl-gl was given. +if test "${with_sdl_gl+set}" = set; then + withval=$with_sdl_gl; WANT_SDLGL=$withval +fi + + + +# Check whether --with-curses was given. +if test "${with_curses+set}" = set; then + withval=$with_curses; WANT_NCURSES=$withval +fi + + + +# Check whether --with-cocoa-gui was given. +if test "${with_cocoa_gui+set}" = set; then + withval=$with_cocoa_gui; WANT_COCOA_UI=$withval +fi + + + +# Check whether --with-libscg-prefix was given. +if test "${with_libscg_prefix+set}" = set; then + withval=$with_libscg_prefix; LIBSCG_PREFIX=$withval +fi + + +# Check whether --with-libscg-includedir was given. +if test "${with_libscg_includedir+set}" = set; then + withval=$with_libscg_includedir; LIBSCG_INCLUDEDIR=$withval +fi + + +# Check whether --with-libscg-libdir was given. +if test "${with_libscg_libdir+set}" = set; then + withval=$with_libscg_libdir; LIBSCG_LIBDIR=$withval +fi + + + +# Check whether --with-alsa was given. +if test "${with_alsa+set}" = set; then + withval=$with_alsa; WANT_ALSA=$withval +fi + + +{ echo "$as_me:$LINENO: checking configuration options" >&5 +echo $ECHO_N "checking configuration options... $ECHO_C" >&6; } + +if [ "x$WANT_SDLGL" = "xyes" ]; then + WANT_SDLGFX=yes +fi + +if [ "x$WANT_SDLSND" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then + WANT_SDL=yes +fi +if [ "x$WANT_SDL" = "xno" ]; then + WANT_SDLGFX=no + WANT_SDLSND=no + WANT_SDLGL=no +fi + +if [ "x$WANT_DGA" = "xyes" -a "x$WANT_SDLGFX" = "xyes" ]; then + { echo "$as_me:$LINENO: WARNING: DGA support cannot be enabled for non-X11 targets!" >&5 +echo "$as_me: WARNING: DGA support cannot be enabled for non-X11 targets!" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_DGA=no +fi + +if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then + { echo "$as_me:$LINENO: WARNING: Ignoring --enable-dga, since X was disabled or not found" >&5 +echo "$as_me: WARNING: Ignoring --enable-dga, since X was disabled or not found" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_DGA=no +fi + +if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then + { echo "$as_me:$LINENO: WARNING: The XF86VidMode extension can only be used in DGA mode. Disabling it" >&5 +echo "$as_me: WARNING: The XF86VidMode extension can only be used in DGA mode. Disabling it" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_VIDMODE=no +fi + +{ echo "$as_me:$LINENO: result: ok" >&5 +echo "${ECHO_T}ok" >&6; } + + +{ echo "$as_me:$LINENO: checking for X" >&5 +echo $ECHO_N "checking for X... $ECHO_C" >&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 #( + *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 +echo "$as_me: error: Cannot use X directory names containing '" >&2;} + { (exit 1); exit 1; }; };; #( + *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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; 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 | /lib) ;; + *) 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/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + # We can compile using X headers with no special include directory. +ac_x_includes= +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + 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.$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" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + LIBS=$ac_save_LIBS +for ac_dir in `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; 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_ipa8_conftest.oo \ + 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 + { echo "$as_me:$LINENO: result: $have_x" >&5 +echo "${ECHO_T}$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'" + { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 +echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } +fi + +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +cat >>confdefs.h <<\_ACEOF +#define X_DISPLAY_MISSING 1 +_ACEOF + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 +echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + ac_xsave_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + X_LIBS="$X_LIBS -R$x_libraries" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + X_LIBS="$X_LIBS -R $x_libraries" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: result: neither works" >&5 +echo "${ECHO_T}neither works" >&6; } +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + ac_c_werror_flag=$ac_xsave_c_werror_flag + LIBS=$ac_xsave_LIBS + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 XOpenDisplay (); +int +main () +{ +return XOpenDisplay (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_dnet_dnet_ntoa=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dnet_dnet_ntoa=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 +echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 dnet_ntoa (); +int +main () +{ +return dnet_ntoa (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_dnet_stub_dnet_ntoa=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dnet_stub_dnet_ntoa=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + { echo "$as_me:$LINENO: checking for gethostbyname" >&5 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } +if test "${ac_cv_func_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define gethostbyname to an innocuous variant, in case declares gethostbyname. + For example, HP-UX 11i declares gettimeofday. */ +#define gethostbyname innocuous_gethostbyname + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef gethostbyname + +/* 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 gethostbyname (); +/* 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_gethostbyname || defined __stub___gethostbyname +choke me +#endif + +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_func_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_gethostbyname=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } + + if test $ac_cv_func_gethostbyname = no; then + { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_nsl_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_nsl_gethostbyname=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } +if test $ac_cv_lib_nsl_gethostbyname = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 +echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_bsd_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_bsd_gethostbyname=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } +if test $ac_cv_lib_bsd_gethostbyname = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + { echo "$as_me:$LINENO: checking for connect" >&5 +echo $ECHO_N "checking for connect... $ECHO_C" >&6; } +if test "${ac_cv_func_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define connect to an innocuous variant, in case declares connect. + For example, HP-UX 11i declares gettimeofday. */ +#define connect innocuous_connect + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char connect (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef connect + +/* 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 connect (); +/* 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_connect || defined __stub___connect +choke me +#endif + +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_func_connect=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_connect=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 +echo "${ECHO_T}$ac_cv_func_connect" >&6; } + + if test $ac_cv_func_connect = no; then + { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } +if test "${ac_cv_lib_socket_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_socket_connect=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_socket_connect=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } +if test $ac_cv_lib_socket_connect = yes; then + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + { echo "$as_me:$LINENO: checking for remove" >&5 +echo $ECHO_N "checking for remove... $ECHO_C" >&6; } +if test "${ac_cv_func_remove+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define remove to an innocuous variant, in case declares remove. + For example, HP-UX 11i declares gettimeofday. */ +#define remove innocuous_remove + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char remove (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef remove + +/* 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 remove (); +/* 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_remove || defined __stub___remove +choke me +#endif + +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_func_remove=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_remove=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 +echo "${ECHO_T}$ac_cv_func_remove" >&6; } + + if test $ac_cv_func_remove = no; then + { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 +echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } +if test "${ac_cv_lib_posix_remove+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 remove (); +int +main () +{ +return remove (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_posix_remove=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_posix_remove=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 +echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } +if test $ac_cv_lib_posix_remove = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + { echo "$as_me:$LINENO: checking for shmat" >&5 +echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } +if test "${ac_cv_func_shmat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shmat to an innocuous variant, in case declares shmat. + For example, HP-UX 11i declares gettimeofday. */ +#define shmat innocuous_shmat + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmat (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shmat + +/* 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 shmat (); +/* 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_shmat || defined __stub___shmat +choke me +#endif + +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_func_shmat=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_shmat=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 +echo "${ECHO_T}$ac_cv_func_shmat" >&6; } + + if test $ac_cv_func_shmat = no; then + { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 +echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } +if test "${ac_cv_lib_ipc_shmat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 shmat (); +int +main () +{ +return shmat (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_ipc_shmat=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_ipc_shmat=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 +echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } +if test $ac_cv_lib_ipc_shmat = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 +echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 IceConnectionNumber (); +int +main () +{ +return IceConnectionNumber (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_ICE_IceConnectionNumber=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_ICE_IceConnectionNumber=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + + +{ echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 +echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; } +if test "${ac_cv_lib_ncurses_waddch+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 waddch (); +int +main () +{ +return waddch (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_ncurses_waddch=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_ncurses_waddch=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 +echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; } +if test $ac_cv_lib_ncurses_waddch = yes; then + HAVE_NCURSES_LIB=yes +else + HAVE_NCURSES_LIB=no +fi + + +if [ "x$WANT_SDL" != "xno" ]; then + + if [ "$HOST_OS" = "darwin" ]; then + + + SDL_CFLAGS="-I/Library/Frameworks/SDL.framework/Headers -D_REENTRANT" + SDL_LIBS="-framework Cocoa -framework SDL -lobjc" + + { echo "$as_me:$LINENO: checking for SDL framework" >&5 +echo $ECHO_N "checking for SDL framework... $ECHO_C" >&6; } + + SAVE_CPPFLAGS=$CPPFLAGS + SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include "confdefs.h" + #include + #undef main + +int +main () +{ + + SDL_Init(SDL_INIT_VIDEO); + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + HAVE_SDL=yes + WANT_COCOA_UI=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + HAVE_SDL=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + + CPPFLAGS="$SAVE_CPPFLAGS" + LIBS="$SAVE_LIBS" + else + +# 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_args="$sdl_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_args="$sdl_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + # Extract the first word of "sdl-config", so it can be a program name with args. +set dummy sdl-config; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_SDL_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$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 + { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 +echo "${ECHO_T}$SDL_CONFIG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + min_sdl_version=1.2.0 + { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 +echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; } + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_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_LIBS="$LIBS" + CFLAGS="$CFLAGS $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 >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +no_sdl=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + HAVE_SDL=yes + else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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" + LIBS="$LIBS $SDL_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; 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 "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + 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_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_LIBS="" + HAVE_SDL=no + fi + + + rm -f conf.sdltest + + fi + + if [ "x$WANT_SDL" = "xyes" -a "x$HAVE_SDL" = "xno" ]; then + { echo "$as_me:$LINENO: WARNING: SDL support wanted, but libSDL could not be found" >&5 +echo "$as_me: WARNING: SDL support wanted, but libSDL could not be found" >&2;} + WANT_SDL=no + NR_ERRORS=`expr $NR_ERRORS + 1` + fi +fi + + +if test $ac_cv_c_compiler_gnu = yes; then + WARNING_CFLAGS="$WARNING_CFLAGS -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes" + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -fomit-frame-pointer" +fi + +if [ "x$DO_PROFILING" = "xyes" ]; then + if [ "x$HAVE_GCC27" = "xyes" ]; then + OPTIMIZE_CFLAGS="" + DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING" + LDFLAGS="-pg" + else + DO_PROFILING=no + { echo "$as_me:$LINENO: WARNING: Don't know how to set up profiling for your compiler" >&5 +echo "$as_me: WARNING: Don't know how to set up profiling for your compiler" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + fi +fi + +UAE_CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS" + + + +ASMOBJS= +UAE_DEFINES="$UAE_DEFINES -DFPUEMU -DCPUEMU_0" +CPUOBJS="cpuemu_0.o" + +if [ "x$WANT_COMPATIBLE" != "xno" ]; then + UAE_DEFINES="$UAE_DEFINES -DCPUEMU_5" + CPUOBJS="$CPUOBJS cpuemu_5.o" +fi + +if [ "x$WANT_CYCLEEXACT" != "xno" ]; then + UAE_DEFINES="$UAE_DEFINES -DCPUEMU_6" + CPUOBJS="$CPUOBJS cpuemu_6.o" +fi + + +if [ "x$HAVE_GCC27" = "xyes" -a "$HOST_CPU" = "i386" -a "x$DO_PROFILING" = "xno" ]; then + UAE_CFLAGS="$UAE_CFLAGS -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\"" + UAE_DEFINES="$UAE_DEFINES -DUNALIGNED_PROFITABLE" +else if [ "x$HAVE_GCC27" = "xyes" -a "$HOST_CPU" = "68k" ]; then + UAE_CFLAGS="$UAE_CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\"" + UAE_DEFINES="$UAE_DEFINES -DUNALIGNED_PROFITABLE -DM68K_FLAG_OPT=1 -DSTATIC_INLINE=\"static inline\"" +else + UAE_CFLAGS="$UAE_CFLAGS -DREGPARAM=" +fi +fi + + +if [ "x$HAVE_GCC27" = "xyes" ]; then + if [ "$HOST_CPU" = "i386" -o "$HOST_CPU" = "ppc" -o "$HOST_CPU" = "68k" ]; then + GENCPUOPTS="--optimized-flags" + fi +fi + + +{ echo "$as_me:$LINENO: checking whether to build JIT compiler" >&5 +echo $ECHO_N "checking whether to build JIT compiler... $ECHO_C" >&6; } +JITOBJS="" +if [ "x$WANT_JIT" != "xno" -a "$HOST_CPU" = "i386" ]; then + UAE_DEFINES="$UAE_DEFINES -DJIT" + if [ "x$NATMEM" = "xyes" ]; then + NATMEM="0x50000000" + fi + if [ "x$NATMEM" != "xno" ]; then + UAE_DEFINES="$UAE_DEFINES -DNATMEM_OFFSET=$NATMEM" + fi + JITOBJS="compstbl.o compemu.o compemu_support.o compemu_fpp.o" + if [ "x$NOFLAGS" != "xno" ]; then + JITOBJS="$JITOBJS cpustbl_nf.o" + JITOBJS="$JITOBJS cpuemu_nf_0.o" + if [ "x$WANT_COMPATIBLE" != "xno" ]; then + JITOBJS="$JITOBJS cpuemu_nf_5.o" + fi + if [ "x$WANT_CYCLEEXACT" != "xno" ]; then + JITOBJS="$JITOBJS cpuemu_nf_6.o" + fi + fi + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + + { echo "$as_me:$LINENO: checking whether assembler supports --execstack option" >&5 +echo $ECHO_N "checking whether assembler supports --execstack option... $ECHO_C" >&6; } + SAVE_CFLAGS="$CFLAGS" + CFLAGS="-Wa,--execstack $CFLAGS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +int main (void) {return 0;} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + UAE_CFLAGS="-Wa,--execstack $UAE_CFLAGS" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$SAVE_CFLAGS" +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_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 + test "x$cache_file" != "x/dev/null" && + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 +echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +{ echo "$as_me:$LINENO: checking for graphics target to build" >&5 +echo $ECHO_N "checking for graphics target to build... $ECHO_C" >&6; } + +if [ "x$WANT_NCURSES" != "xno" -a "x$WANT_SDL" = "xno" -a "x$GFX_DEP" = "x" ]; then + WANT_NCURSES=yes +fi + +if [ "x$WANT_NCURSES" = "xyes" ]; then + if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then + GFX_LIBS="-lncurses" + GFX_CFLAGS= + GFX_CPPFLAGS= + GFX_DEP=gfx-curses + GFX_NAME=ncurses + else + { echo "$as_me:$LINENO: WARNING: ncurses support wanted, but libncurses could not be found" >&5 +echo "$as_me: WARNING: ncurses support wanted, but libncurses could not be found" >&2;} + fi +fi + + +if [ "x$WANT_SDL" = "xyes" -o "x$GFX_DEP" = "x" ]; then + if [ "x$HAVE_SDL" = "xyes" -a "x$WANT_SDLGFX" != "xno" ]; then + WANT_SDL=yes + if [ "x$WANT_SDLGFX" = "xyes" -o "x$GFX_DEP" = "x" ]; then + GFX_DEP=gfx-sdl + GFX_NAME=SDL + GFX_LIBS="" + GFX_CFLAGS="" + GFX_CPPFLAGS="" + if [ "x$WANT_SDLGL" = "xyes" ]; then + GFX_CFLAGS="-DUSE_GL" + if [ "x$OSDEP" = "xod-macosx" ]; then + GFX_LIBS="-framework OpenGL" + else + GFX_LIBS="-lGL -lGLU" + fi + fi + fi + fi +fi + + +if [ "x$GFX_DEP" = "x" ]; then + { echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6; } + { { echo "$as_me:$LINENO: error: Could not find a useable graphics target" >&5 +echo "$as_me: error: Could not find a useable graphics target" >&2;} + { (exit 1); exit 1; }; } +fi + +{ echo "$as_me:$LINENO: result: \"$GFX_NAME\"" >&5 +echo "${ECHO_T}\"$GFX_NAME\"" >&6; } + +if [ "$GFX_DEP" = "gfx-x11" ]; then + + if [ "x$WANT_DGA" = "xyes" ]; then + TMP_SAVE_LIBS=$LIBS + LIBS="$X_LIBS $LIBS" + { echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 +echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; } +if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXxf86dga $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 XF86DGAQueryExtension (); +int +main () +{ +return XF86DGAQueryExtension (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 +echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6; } +if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then + HAVE_DGA=yes +else + HAVE_DGA=no +fi + + echo $LIBS + LIBS=$TMP_SAVE_LIBS + if [ "x$HAVE_DGA" = "xno" ]; then + { echo "$as_me:$LINENO: WARNING: Could not find DGA extension, ignoring --enable-dga" >&5 +echo "$as_me: WARNING: Could not find DGA extension, ignoring --enable-dga" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_DGA=no + else + X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION" + X_EXTRA_LIBS="$X_EXTRA_LIBS -lXxf86dga" + fi + fi + + if [ "x$WANT_VIDMODE" = "xyes" ]; then + TMP_SAVE_LIBS=$LIBS + LIBS="$X_LIBS $LIBS" + { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 +echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; } +if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lXxf86vm $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* 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 XF86VidModeQueryExtension (); +int +main () +{ +return XF86VidModeQueryExtension (); + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 +echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } +if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then + HAVE_VIDMODE=yes +else + HAVE_VIDMODE=no +fi + + LIBS=$TMP_SAVE_LIBS + if [ "x$HAVE_VIDMODE" = "xno" ]; then + { echo "$as_me:$LINENO: WARNING: Could not find VidMode extension, ignoring --enable-vidmode" >&5 +echo "$as_me: WARNING: Could not find VidMode extension, ignoring --enable-vidmode" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_VIDMODE=no + else + X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION" + X_EXTRA_LIBS="$X_EXTRA_LIBS -lXxf86vm" + fi + fi + + + { echo "$as_me:$LINENO: checking whether to compile XKB extension support" >&5 +echo $ECHO_N "checking whether to compile XKB extension support... $ECHO_C" >&6; } + TMP_SAVE_LIBS=$LIBS + TMP_SAVE_CFLAGS=$CFLAGS + LIBS="$X_LIBS $LIBS -lxkbfile" + CFLAGS="$CFLAGS $X_CFLAGS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include "confdefs.h" + #include + #ifdef HAVE_SYS_TYPES_H + # include + #endif + #include + #include + #include +int +main () +{ + + int major, minor; + XkbRF_RulesPtr rules; + XkbLibraryVersion (&major, &minor); + rules = XkbRF_Load ("dummy", "", True, True); + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + X_CFLAGS="$X_CFLAGS -DUSE_XKB" + X_EXTRA_LIBS="$X_EXTRA_LIBS -lxkbfile" + xkb_rules_dir_found="no" + for xkb_rules_dir in /usr/share/X11/xkb/rules /usr/lib/X11/xkb/rules /usr/X11R6/lib/X11/xkb/rules + do + if test -d $xkb_rules_dir ; then + X_CFLAGS="$X_CFLAGS -DXKB_PATH=\\\"$xkb_rules_dir/\\\"" + xkb_rules_dir_found="yes" + break + fi + done + if test "x$xkb_rules_dir_found" = "xno" ; then + { { echo "$as_me:$LINENO: error: Could not find xkb path." >&5 +echo "$as_me: error: Could not find xkb path." >&2;} + { (exit 1); exit 1; }; } + fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$TMP_SAVE_LIBS + CFLAGS=$TMP_SAVE_CFLAGS + + + if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then + { echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5 +echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6; } + TMP_SAVE_CFLAGS=$CFLAGS + TMP_SAVE_LIBS=$LIBS + CFLAGS="$CFLAGS $X_CFLAGS" + LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + #include "confdefs.h" + #ifdef HAVE_SYS_TYPES_H + #include + #endif + #include + #include + #include + #include + #include + #include + #include +int +main () +{ + + static XShmSegmentInfo shminfo; + static Display *display; + XShmAttach(display, &shminfo); + XSync(display,0); + shmctl(shminfo.shmid, IPC_RMID, 0); + + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + SHM_SUPPORT_LINKS=1 + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + SHM_SUPPORT_LINKS=0 + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + fi + CFLAGS=$TMP_SAVE_CFLAGS + LIBS=$TMP_SAVE_LIBS + + GFX_CFLAGS="$X_CFLAGS" + GFX_CPPFLAGS="-DSHM_SUPPORT_LINKS=$SHM_SUPPORT_LINKS" + GFX_LIBS="$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS" +fi + + +{ echo "$as_me:$LINENO: checking for sound target to build" >&5 +echo $ECHO_N "checking for sound target to build... $ECHO_C" >&6; } + +if [ "x$WANT_AUDIO" != "xno" ]; then + if [ "x$SND_NAME" = "xnone" ]; then + if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then + SND_DEP=sd-solaris + SND_NAME=Solaris/NetBSD + USE_SOUND=yes + else if [ "x$WANT_ALSA" = "xyes" ]; then + SND_DEP=sd-alsa + SND_LIBS="-lasound" + SND_NAME=ALSA + USE_SOUND=yes + else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then + SND_DEP=sd-uss + if [ "x$HAVE_LIBOSSAUDIO" = "xyes" ]; then + SND_LIBS="-lossaudio" + fi + SND_NAME=OSS + USE_SOUND=yes + fi + fi + fi + fi + + if [ "x$WANT_SDLSND" = "xyes" -o "x$SND_DEP" = "x" ]; then + if [ "x$HAVE_SDL" = "xyes" -a "x$WANT_SDLSND" != "xno" ]; then + SND_DEP=sd-sdl + SND_LIBS= + SND_NAME=SDL + NEED_THREAD_SUPPORT=yes + fi + fi + + { echo "$as_me:$LINENO: result: \"$SND_NAME\"" >&5 +echo "${ECHO_T}\"$SND_NAME\"" >&6; } +else + { echo "$as_me:$LINENO: result: \"sound support disabled\"" >&5 +echo "${ECHO_T}\"sound support disabled\"" >&6; } + SND_DEP=sd-none + SND_LIBS= + SND_NAME=none +fi + +{ echo "$as_me:$LINENO: checking which UI target to build" >&5 +echo $ECHO_N "checking which UI target to build... $ECHO_C" >&6; } +if [ "x$WANT_UI" = "xno" ]; then + GUI_DEP=gui-none + GUI_LIBS= + GUI_NAME=none +else + if [ "$HOST_OS" = "darwin" ]; then + if [ "x$WANT_COCOA_UI" != "xno" -o "x$HAVE_GTK" = "xno" ]; then + GUI_DEP=gui-cocoa + GUI_CFLAGS="$CFLAGS -DNO_MAIN_IN_MAIN_C" + GUI_LIBS="-framework Cocoa" + GUI_NAME="Cocoa" + fi + fi + if [ "$GUI_DEP" = "gui-none" ]; then + if [ "x$HAVE_GTK" = "xno" ]; then + { echo "$as_me:$LINENO: WARNING: UI wanted, but no UI useable target found" >&5 +echo "$as_me: WARNING: UI wanted, but no UI useable target found" >&2;} + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_UI=no + else + GUI_DEP=gui-gtk + GUI_LIBS="$GTK_LIBS" + GUI_NAME="GTK+" + GUI_CFLAGS="$CFLAGS" + NEED_THREAD_SUPPORT=yes + if [ "x$WANT_THREADS" = "xno" ]; then + { { echo "$as_me:$LINENO: error: Thread support disabled, but GTK+ UI requires threads" >&5 +echo "$as_me: error: Thread support disabled, but GTK+ UI requires threads" >&2;} + { (exit 1); exit 1; }; } + fi + fi + fi +fi +{ echo "$as_me:$LINENO: result: \"$GUI_NAME\"" >&5 +echo "${ECHO_T}\"$GUI_NAME\"" >&6; } + + +{ echo "$as_me:$LINENO: checking whether to build AGA emulation" >&5 +echo $ECHO_N "checking whether to build AGA emulation... $ECHO_C" >&6; } +if [ "x$WANT_AGA" != "xno" ]; then + UAE_DEFINES="$UAE_DEFINES -DAGA" + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +{ echo "$as_me:$LINENO: checking whether to build support for Autconfig devices" >&5 +echo $ECHO_N "checking whether to build support for Autconfig devices... $ECHO_C" >&6; } +if [ "x$WANT_AUTOCONFIG" != "xno" ]; then + UAE_DEFINES="$UAE_DEFINES -DAUTOCONFIG" + + UAE_DEFINES="$UAE_DEFINES -DFILESYS" + NEED_THREAD_SUPPORT=yes + FILESYSOBJS="filesys.o fsdb.o fsusage.o hardfile.o" + if [ "x$HOST_OS" != "xwin32" ]; then + FILESYSOBJS="$FILESYSOBJS filesys_unix.o fsdb_unix.o hardfile_unix.o" + else + FILESYSOBJS="$FILESYSOBJS" + fi + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +{ echo "$as_me:$LINENO: checking whether to build SCSI emulation" >&5 +echo $ECHO_N "checking whether to build SCSI emulation... $ECHO_C" >&6; } +if [ "x$WANT_SCSIEMU" = "xyes" ]; then + if [ "x$WANT_AUTOCONFIG" = "xno" ]; then + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + { echo "$as_me:$LINENO: WARNING: Autoconfig support not enabled, so SCSI emulation cannot be enabled" >&5 +echo "$as_me: WARNING: Autoconfig support not enabled, so SCSI emulation cannot be enabled" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_SCSIEMU=no + else + if [ "$OSDEP" = "od-amiga" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SCSIOBJS="scsiemul.o blkdev.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU" + NEED_THREAD_SUPPORT=yes + else + SCGLIBS="-lscg -lschily" + if [ "$HOST_OS" = "darwin" ]; then + SCGLIBS="$SCGLIBS -framework IOKit -framework CoreFoundation" + fi + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + { echo "$as_me:$LINENO: checking for libscg and libschily" >&5 +echo $ECHO_N "checking for libscg and libschily... $ECHO_C" >&6; } + OLDLIBS="$LIBS" + OLDCPPFLAGS="$CPPFLAGS" + if [ "x$LIBSCG_PREFIX" != "x" ]; then + LIBSCG_CPPFLAGS="-I$LIBSCG_PREFIX/include" + LIBSCG_LIBS="-L$LIBSCG_PREFIX/lib" + fi + if [ "x$LIBSCG_INCLUDEDIR" != "x" ]; then + LIBSCG_CPPFLAGS="-I$LIBSCG_INCLUDEDIR" + fi + if [ "x$LIBSCG_LIBDIR" != "x" ]; then + LIBSCG_LIBS="-L$LIBSCG_LIBDIR $SCGLIBS" + else + LIBSCG_LIBS="$SCGLIBS" + fi + LIBS="$LIBS $LIBSCG_LIBS" + CPPFLAGS="$CPPFLAGS $LIBSCG_CPPFLAGS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +typedef int BOOL; +#include "scg/scgcmd.h" +#include "scg/scsitransp.h" +#include "scg/scsireg.h" +int +main () +{ +{SCSI *scgp = scg_open (0, 0, 0, 0, 0);} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SCSIOBJS="scsiemul.o blkdev.o blkdev-libscg.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU" + UAE_CPPFLAGS="$UAE_CPPFLAGS $LIBSCG_CPPFLAGS" + UAE_LIBS="$UAE_LIBS $LIBSCG_LIBS" + NEED_THREAD_SUPPORT=yes + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + { echo "$as_me:$LINENO: checking for libscg and libschily in UAE source tree" >&5 +echo $ECHO_N "checking for libscg and libschily in UAE source tree... $ECHO_C" >&6; } + LIBSCG_CPPFLAGS="$OLDCPPFLAGS -I$srcdir/src/include" + LIBSCG_LIBS="-L$srcdir/src $OLDLIBS $SCGLIBS" + CPPFLAGS="$LIBSCG_CPPFLAGS" + LIBS="$LIBSCG_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +typedef int BOOL; +#include "scg/scgcmd.h" +#include "scg/scsitransp.h" +#include "scg/scsireg.h" +int +main () +{ +{SCSI *scgp = scg_open (0, 0, 0, 0, 0);} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SCSIOBJS="scsiemul.o blkdev.o blkdev-libscg.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU" + NEED_THREAD_SUPPORT=yes + if [ "$srcdir" != "." ]; then + ac_config_links="$ac_config_links src/libscg.a:src/libscg.a" + + ac_config_links="$ac_config_links src/libschily.a:src/libschily.a" + + UAE_LIBS="$UAE_LIBS $LIBSCG_LIBS" + else + UAE_LIBS="$UAE_LIBS -L. $SCGLIBS" + fi + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + + { echo "$as_me:$LINENO: checking for Linux cdrom support via ioctl" >&5 +echo $ECHO_N "checking for Linux cdrom support via ioctl... $ECHO_C" >&6; } + LIBS="$OLDLIBS" + CPPFLAGS="$OLDCPPFLAGS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +int +main () +{ +{struct cdrom_generic_command cmd; ioctl (0, CDROM_SEND_PACKET, &cmd);} + ; + return 0; +} +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SCSIOBJS="scsiemul.o blkdev.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU -DSCSIEMU_LINUX_IOCTL" + NEED_THREAD_SUPPORT=yes + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + NR_WARNINGS=`expr $NR_WARNINGS + 1` + echo "Please refer to the UAE SCSI device section in docs/README for installation instructions." + WANT_SCSIEMU=no + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$OLDLIBS" + CPPFLAGS="$OLDCPPFLAGS" + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + fi + fi +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi +if [ "x$WANT_SCSIEMU" != "xyes" ]; then + SCSIOBJS="scsi-none.o" + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +if [ "x$WANT_CDTV" != "xyes" -a "x$WANT_SCSIEMU" != "xyes" ]; then + WANT_CDTV=no +fi +{ echo "$as_me:$LINENO: checking whether to build CDTV emulation" >&5 +echo $ECHO_N "checking whether to build CDTV emulation... $ECHO_C" >&6; } +if [ "x$WANT_CDTV" != "xno" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + if [ "x$WANT_SCSIEMU" != "xyes" ]; then + { echo "$as_me:$LINENO: WARNING: SCSI support is not enabled or cannot be built. Disabling CDTV emulation" >&5 +echo "$as_me: WARNING: SCSI support is not enabled or cannot be built. Disabling CDTV emulation" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_CDTV=no + else + UAE_DEFINES="$UAE_DEFINES -DCDTV" + CDOBJS="cdrom.o" + fi +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +if [ "x$WANT_CD32" != "xyes" ]; then + if [ "x$WANT_SCSIEMU" != "xyes" -o "x$WANT_AGA" = "xno" ]; then + WANT_CD32=no + fi +fi +{ echo "$as_me:$LINENO: checking whether to build CD32 emulation" >&5 +echo $ECHO_N "checking whether to build CD32 emulation... $ECHO_C" >&6; } +if [ "x$WANT_CD32" != "xno" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + if [ "x$WANT_SCSIEMU" != "xyes" ]; then + { echo "$as_me:$LINENO: WARNING: SCSI support is not enabled or cannot be built. Disabling CD32 emulation" >&5 +echo "$as_me: WARNING: SCSI support is not enabled or cannot be built. Disabling CD32 emulation" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_CD32=no + else + if [ "x$WANT_AGA" != "xyes" ]; then + { echo "$as_me:$LINENO: WARNING: AGA emulation is not enabled. Disabling CD32 emulation" >&5 +echo "$as_me: WARNING: AGA emulation is not enabled. Disabling CD32 emulation" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_CD32=no + else + UAE_DEFINES="$UAE_DEFINES -DCD32" + if [ "x$WANT_CDTV" = "xno" ]; then + CDOBJS="cdrom.o" + fi + CDOBJS="$CDOBJS akiko.o" + fi + fi +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +{ echo "$as_me:$LINENO: checking whether to build bsdsocket.library emulation" >&5 +echo $ECHO_N "checking whether to build bsdsocket.library emulation... $ECHO_C" >&6; } +if [ "x$WANT_BSDSOCK" != "xno" ]; then + if [ "x$WANT_AUTOCONFIG" = "xno" ]; then + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + { echo "$as_me:$LINENO: WARNING: Autoconfig support not enabled, so bsdsocket emulation cannot be enabled" >&5 +echo "$as_me: WARNING: Autoconfig support not enabled, so bsdsocket emulation cannot be enabled" >&2;} + NR_WARNINGS=`expr $NR_WARNINGS + 1` + else + NEED_THREAD_SUPPORT=yes + UAE_DEFINES="$UAE_DEFINES -DBSDSOCKET" + BSDSOCKOBJS="bsdsocket-posix-new.o bsdsocket.o" + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + fi +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + BSDSOCKOBJS="bsdsocket.o" +fi + + +{ echo "$as_me:$LINENO: checking whether to build with threads" >&5 +echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6; } +if [ "x$WANT_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + { echo "$as_me:$LINENO: checking which thread target to build" >&5 +echo $ECHO_N "checking which thread target to build... $ECHO_C" >&6; } + + if [ "x$WANT_SDL" = "xyes" -o "$THREADDEP" = "td-none" ]; then + if [ "x$HAVE_SDL" = "xyes" -a "x$WANT_SDL" != "xno" ]; then + WANT_SDL=yes + THREADDEP=td-sdl + THREADNAME=SDL + fi + fi + + if [ "$THREADDEP" = "td-none" ]; then + { { echo "$as_me:$LINENO: error: Thread support wanted or required, but no thread target found" >&5 +echo "$as_me: error: Thread support wanted or required, but no thread target found" >&2;} + { (exit 1); exit 1; }; } + fi + + if [ "$THREADDEP" = "td-posix" ]; then + CC="$PTHREAD_CC" + UAE_CFLAGS="$UAE_CFLAGS $PTHREAD_CFLAGS" + UAE_LIBS="$UAE_LIBS $PTHREAD_LIBS" + + if [ "$HOST_OS" = "darwin" ]; then + UAE_DEFINES="$UAE_DEFINES -DUSE_NAMED_SEMAPHORES" + fi + fi + + UAE_DEFINES="$UAE_DEFINES -DSUPPORT_THREADS" + { echo "$as_me:$LINENO: result: $THREADNAME" >&5 +echo "${ECHO_T}$THREADNAME" >&6; } +else + THREADDEP=td-none + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +if [ "x$WANT_SDL" = "xyes" ]; then + UAE_DEFINES="$UAE_DEFINES -DUSE_SDL" + JOY_DEP=jd-sdl + UAE_LIBS="$UAE_LIBS $SDL_LIBS" + UAE_CPPFLAGS="$UAE_CPPFLAGS $SDL_CFLAGS" +fi + + +WANT_CAPS=dunno + +# Check whether --with-caps was given. +if test "${with_caps+set}" = set; then + withval=$with_caps; WANT_CAPS=$withval +fi + + +# Check whether --with-caps-prefix was given. +if test "${with_caps_prefix+set}" = set; then + withval=$with_caps_prefix; CAPS_PREFIX=$withval +fi + +if [ "x$WANT_CAPS" != "xno" ]; then + SAVE_CPPFLAGS="$CPPFLAGS" + CAPS_CPPFLAGS="-I$CAPS_PREFIX/include" + if [ "x$CAPS_PREFIX" != "x" ]; then + CPPFLAGS="$CPPFLAGS $CAPS_CPPFLAGS" + fi + +for ac_header in caps/capsimage.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + HAVE_CAPS=yes +else + HAVE_CAPS=no +fi + +done + + if [ "$HAVE_CAPS" = "yes" ]; then + UAE_DEFINES="$UAE_DEFINES -DCAPS" + UAE_CPPFLAGS="$UAE_CPPFLAGS $CAPS_CPPFLAGS" + else + if [ "$WANT_CAPS" = "yes" ]; then + { echo "$as_me:$LINENO: WARNING: CAPS support wanted, but CAPS API not found" >&5 +echo "$as_me: WARNING: CAPS support wanted, but CAPS API not found" >&2;} + WANT_CAPS=no + fi + fi + CPPFLAGS="$SAVE_CPPFLAGS" +fi + + +if [ "x$WANT_FDI" != "xno" ]; then + UAE_DEFINES="$UAE_DEFINES -DFDI2RAW" +fi + + +{ echo "$as_me:$LINENO: checking whether to build internal debugger/monitor" >&5 +echo $ECHO_N "checking whether to build internal debugger/monitor... $ECHO_C" >&6; } +if [ "x$WANT_DEBUGGER" != "xno" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + UAE_DEFINES="$UAE_DEFINES -DDEBUGGER" + DEBUGOBJS="debug.o identify.o" +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +{ echo "$as_me:$LINENO: checking whether to build support for saving/loading emulator state" >&5 +echo $ECHO_N "checking whether to build support for saving/loading emulator state... $ECHO_C" >&6; } +if [ "x$WANT_STATESAVING" != "xno" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + UAE_DEFINES="$UAE_DEFINES -DSAVESTATE" +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +{ echo "$as_me:$LINENO: checking whether to build with enforcer" >&5 +echo $ECHO_N "checking whether to build with enforcer... $ECHO_C" >&6; } +if [ "x$WANT_ENFORCER" != "xno" ]; then + if [ "x$WANT_AUTOCONFIG" != "xno" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + UAE_DEFINES="$UAE_DEFINES -DENFORCER" + else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + { echo "$as_me:$LINENO: WARNING: Autoconfig support not enabled, so enforcer emulation cannot be enabled" >&5 +echo "$as_me: WARNING: Autoconfig support not enabled, so enforcer emulation cannot be enabled" >&2;} + fi +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +{ echo "$as_me:$LINENO: checking whether to build Action Replay emulation" >&5 +echo $ECHO_N "checking whether to build Action Replay emulation... $ECHO_C" >&6; } +if [ "x$WANT_ACTION_REPLAY" != "xno" ]; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + UAE_DEFINES="$UAE_DEFINES -DACTION_REPLAY" +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +LIBS="$LIBS $UAE_LIBS $GUI_LIBS $GFX_LIBS $SND_LIBS $JOY_LIBS $MATHLIB" +CPPFLAGS="$CPPFLAGS $UAE_DEFINES $UAE_CPPFLAGS $GFX_CPPFLAGS" +CFLAGS="$CFLAGS $UAE_CFLAGS $GUI_CFLAGS $GFX_CFLAGS $SND_CFLAGS $JOY_CFLAGS" + +ac_config_links="$ac_config_links src/target.h:src/targets/$TARGETDEP" + +ac_config_links="$ac_config_links src/machdep:src/$MACHDEP" + +ac_config_links="$ac_config_links src/md-fpp.h:src/include/$MDFPP_H" + +ac_config_links="$ac_config_links src/osdep:src/$OSDEP" + +ac_config_links="$ac_config_links src/gfxdep:src/$GFX_DEP" + +ac_config_links="$ac_config_links src/sounddep:src/$SND_DEP" + +ac_config_links="$ac_config_links src/threaddep:src/$THREADDEP" + +ac_config_links="$ac_config_links src/joydep:src/$JOY_DEP" + +ac_config_links="$ac_config_links src/guidep:src/$GUI_DEP" + + +ac_config_files="$ac_config_files Makefile src/Makefile src/dms/Makefile src/caps/Makefile src/md-generic/Makefile src/md-i386-gcc/Makefile src/md-ppc-gcc/Makefile src/md-ppc/Makefile src/md-68k/Makefile src/md-amd64-gcc/Makefile src/od-generic/Makefile src/od-linux/Makefile src/od-amiga/Makefile src/od-beos/Makefile src/od-macosx/Makefile src/od-macosx/Info.plist src/od-win32/Makefile src/td-none/Makefile src/td-amigaos/Makefile src/td-beos/Makefile src/td-posix/Makefile src/td-sdl/Makefile src/td-win32/Makefile src/gfx-amigaos/Makefile src/gfx-beos/Makefile src/gfx-x11/Makefile src/gfx-sdl/Makefile src/gfx-curses/Makefile src/gfx-svga/Makefile src/sd-alsa/Makefile src/sd-amigaos/Makefile src/sd-beos/Makefile src/sd-none/Makefile src/sd-sdl/Makefile src/sd-solaris/Makefile src/sd-uss/Makefile src/jd-none/Makefile src/jd-amigainput/Makefile src/jd-amigaos/Makefile src/jd-beos/Makefile src/jd-linuxold/Makefile src/jd-sdl/Makefile src/gui-none/Makefile src/gui-beos/Makefile src/gui-cocoa/Makefile src/gui-gtk/Makefile src/gui-muirexx/Makefile src/keymap/Makefile src/test/Makefile" + + + + +if test x$ac_cv_c_bigendian = xyes; then + TARGET_BIGENDIAN_TRUE= + TARGET_BIGENDIAN_FALSE='#' +else + TARGET_BIGENDIAN_TRUE='#' + TARGET_BIGENDIAN_FALSE= +fi + + + +if test x$OSDEP = xod-beos; then + TARGET_BEOS_TRUE= + TARGET_BEOS_FALSE='#' +else + TARGET_BEOS_TRUE='#' + TARGET_BEOS_FALSE= +fi + + + +if test x$OSDEP = xod-win32; then + TARGET_WIN32_TRUE= + TARGET_WIN32_FALSE='#' +else + TARGET_WIN32_TRUE='#' + TARGET_WIN32_FALSE= +fi + + + +if test x$OSDEP = xod-macosx; then + BUILD_MACOSX_BUNDLE_TRUE= + BUILD_MACOSX_BUNDLE_FALSE='#' +else + BUILD_MACOSX_BUNDLE_TRUE='#' + BUILD_MACOSX_BUNDLE_FALSE= +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +if [ "x$cross_compiling" != "xyes" ]; then + subdirs="$subdirs src/tools" + +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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_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 + test "x$cache_file" != "x/dev/null" && + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 +echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +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= +for ac_i in : $LIBOBJS; 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=`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. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${TARGET_BIGENDIAN_TRUE}" && test -z "${TARGET_BIGENDIAN_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"TARGET_BIGENDIAN\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"TARGET_BIGENDIAN\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${TARGET_BEOS_TRUE}" && test -z "${TARGET_BEOS_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"TARGET_BEOS\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"TARGET_BEOS\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${TARGET_WIN32_TRUE}" && test -z "${TARGET_WIN32_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"TARGET_WIN32\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"TARGET_WIN32\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${BUILD_MACOSX_BUNDLE_TRUE}" && test -z "${BUILD_MACOSX_BUNDLE_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"BUILD_MACOSX_BUNDLE\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"BUILD_MACOSX_BUNDLE\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $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} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## 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=: + # Zsh 3.x and 4.x performs 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 + + + + +# PATH needs CR +# 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 + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +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.) +as_nl=' +' +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +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 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi +done + +# Required to use basename. +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 + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. 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" || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # 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 +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +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 +fi +echo >conf$$.file +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 -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +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=: +else + test -d ./-p && rmdir ./-p + 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 + +# 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 + +# 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 E-UAE $as_me 0.8.29-WIP4, which was +generated by GNU Autoconf 2.61. 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 + +cat >>$CONFIG_STATUS <<_ACEOF +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_links="$ac_config_links" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + -q, --quiet 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 + +Configuration links: +$config_links + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version="\\ +E-UAE config.status 0.8.29-WIP4 +configured by $0, generated by GNU Autoconf 2.61, + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" + +Copyright (C) 2006 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' +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +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=$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 ) + echo "$ac_cs_version"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + { echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + 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. + -*) { echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$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 +if \$ac_cs_recheck; then + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + CONFIG_SHELL=$SHELL + export CONFIG_SHELL + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "src/sysconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/sysconfig.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "src/libscg.a") CONFIG_LINKS="$CONFIG_LINKS src/libscg.a:src/libscg.a" ;; + "src/libschily.a") CONFIG_LINKS="$CONFIG_LINKS src/libschily.a:src/libschily.a" ;; + "src/target.h") CONFIG_LINKS="$CONFIG_LINKS src/target.h:src/targets/$TARGETDEP" ;; + "src/machdep") CONFIG_LINKS="$CONFIG_LINKS src/machdep:src/$MACHDEP" ;; + "src/md-fpp.h") CONFIG_LINKS="$CONFIG_LINKS src/md-fpp.h:src/include/$MDFPP_H" ;; + "src/osdep") CONFIG_LINKS="$CONFIG_LINKS src/osdep:src/$OSDEP" ;; + "src/gfxdep") CONFIG_LINKS="$CONFIG_LINKS src/gfxdep:src/$GFX_DEP" ;; + "src/sounddep") CONFIG_LINKS="$CONFIG_LINKS src/sounddep:src/$SND_DEP" ;; + "src/threaddep") CONFIG_LINKS="$CONFIG_LINKS src/threaddep:src/$THREADDEP" ;; + "src/joydep") CONFIG_LINKS="$CONFIG_LINKS src/joydep:src/$JOY_DEP" ;; + "src/guidep") CONFIG_LINKS="$CONFIG_LINKS src/guidep:src/$GUI_DEP" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/dms/Makefile") CONFIG_FILES="$CONFIG_FILES src/dms/Makefile" ;; + "src/caps/Makefile") CONFIG_FILES="$CONFIG_FILES src/caps/Makefile" ;; + "src/md-generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/md-generic/Makefile" ;; + "src/md-i386-gcc/Makefile") CONFIG_FILES="$CONFIG_FILES src/md-i386-gcc/Makefile" ;; + "src/md-ppc-gcc/Makefile") CONFIG_FILES="$CONFIG_FILES src/md-ppc-gcc/Makefile" ;; + "src/md-ppc/Makefile") CONFIG_FILES="$CONFIG_FILES src/md-ppc/Makefile" ;; + "src/md-68k/Makefile") CONFIG_FILES="$CONFIG_FILES src/md-68k/Makefile" ;; + "src/md-amd64-gcc/Makefile") CONFIG_FILES="$CONFIG_FILES src/md-amd64-gcc/Makefile" ;; + "src/od-generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/od-generic/Makefile" ;; + "src/od-linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/od-linux/Makefile" ;; + "src/od-amiga/Makefile") CONFIG_FILES="$CONFIG_FILES src/od-amiga/Makefile" ;; + "src/od-beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/od-beos/Makefile" ;; + "src/od-macosx/Makefile") CONFIG_FILES="$CONFIG_FILES src/od-macosx/Makefile" ;; + "src/od-macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES src/od-macosx/Info.plist" ;; + "src/od-win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/od-win32/Makefile" ;; + "src/td-none/Makefile") CONFIG_FILES="$CONFIG_FILES src/td-none/Makefile" ;; + "src/td-amigaos/Makefile") CONFIG_FILES="$CONFIG_FILES src/td-amigaos/Makefile" ;; + "src/td-beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/td-beos/Makefile" ;; + "src/td-posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/td-posix/Makefile" ;; + "src/td-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/td-sdl/Makefile" ;; + "src/td-win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/td-win32/Makefile" ;; + "src/gfx-amigaos/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx-amigaos/Makefile" ;; + "src/gfx-beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx-beos/Makefile" ;; + "src/gfx-x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx-x11/Makefile" ;; + "src/gfx-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx-sdl/Makefile" ;; + "src/gfx-curses/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx-curses/Makefile" ;; + "src/gfx-svga/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx-svga/Makefile" ;; + "src/sd-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-alsa/Makefile" ;; + "src/sd-amigaos/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-amigaos/Makefile" ;; + "src/sd-beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-beos/Makefile" ;; + "src/sd-none/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-none/Makefile" ;; + "src/sd-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-sdl/Makefile" ;; + "src/sd-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-solaris/Makefile" ;; + "src/sd-uss/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd-uss/Makefile" ;; + "src/jd-none/Makefile") CONFIG_FILES="$CONFIG_FILES src/jd-none/Makefile" ;; + "src/jd-amigainput/Makefile") CONFIG_FILES="$CONFIG_FILES src/jd-amigainput/Makefile" ;; + "src/jd-amigaos/Makefile") CONFIG_FILES="$CONFIG_FILES src/jd-amigaos/Makefile" ;; + "src/jd-beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/jd-beos/Makefile" ;; + "src/jd-linuxold/Makefile") CONFIG_FILES="$CONFIG_FILES src/jd-linuxold/Makefile" ;; + "src/jd-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/jd-sdl/Makefile" ;; + "src/gui-none/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui-none/Makefile" ;; + "src/gui-beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui-beos/Makefile" ;; + "src/gui-cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui-cocoa/Makefile" ;; + "src/gui-gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui-gtk/Makefile" ;; + "src/gui-muirexx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui-muirexx/Makefile" ;; + "src/keymap/Makefile") CONFIG_FILES="$CONFIG_FILES src/keymap/Makefile" ;; + "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; + + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + 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 + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +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= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || +{ + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +# +# Set up the sed scripts for CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "$CONFIG_FILES"; then + +_ACEOF + + + +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + cat >conf$$subs.sed <<_ACEOF +SHELL!$SHELL$ac_delim +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim +PACKAGE_NAME!$PACKAGE_NAME$ac_delim +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim +PACKAGE_STRING!$PACKAGE_STRING$ac_delim +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim +exec_prefix!$exec_prefix$ac_delim +prefix!$prefix$ac_delim +program_transform_name!$program_transform_name$ac_delim +bindir!$bindir$ac_delim +sbindir!$sbindir$ac_delim +libexecdir!$libexecdir$ac_delim +datarootdir!$datarootdir$ac_delim +datadir!$datadir$ac_delim +sysconfdir!$sysconfdir$ac_delim +sharedstatedir!$sharedstatedir$ac_delim +localstatedir!$localstatedir$ac_delim +includedir!$includedir$ac_delim +oldincludedir!$oldincludedir$ac_delim +docdir!$docdir$ac_delim +infodir!$infodir$ac_delim +htmldir!$htmldir$ac_delim +dvidir!$dvidir$ac_delim +pdfdir!$pdfdir$ac_delim +psdir!$psdir$ac_delim +libdir!$libdir$ac_delim +localedir!$localedir$ac_delim +mandir!$mandir$ac_delim +DEFS!$DEFS$ac_delim +ECHO_C!$ECHO_C$ac_delim +ECHO_N!$ECHO_N$ac_delim +ECHO_T!$ECHO_T$ac_delim +LIBS!$LIBS$ac_delim +build_alias!$build_alias$ac_delim +host_alias!$host_alias$ac_delim +target_alias!$target_alias$ac_delim +build!$build$ac_delim +build_cpu!$build_cpu$ac_delim +build_vendor!$build_vendor$ac_delim +build_os!$build_os$ac_delim +host!$host$ac_delim +host_cpu!$host_cpu$ac_delim +host_vendor!$host_vendor$ac_delim +host_os!$host_os$ac_delim +target!$target$ac_delim +target_cpu!$target_cpu$ac_delim +target_vendor!$target_vendor$ac_delim +target_os!$target_os$ac_delim +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim +INSTALL_DATA!$INSTALL_DATA$ac_delim +CYGPATH_W!$CYGPATH_W$ac_delim +PACKAGE!$PACKAGE$ac_delim +VERSION!$VERSION$ac_delim +ACLOCAL!$ACLOCAL$ac_delim +AUTOCONF!$AUTOCONF$ac_delim +AUTOMAKE!$AUTOMAKE$ac_delim +AUTOHEADER!$AUTOHEADER$ac_delim +MAKEINFO!$MAKEINFO$ac_delim +AMTAR!$AMTAR$ac_delim +install_sh!$install_sh$ac_delim +STRIP!$STRIP$ac_delim +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim +AWK!$AWK$ac_delim +SET_MAKE!$SET_MAKE$ac_delim +am__leading_dot!$am__leading_dot$ac_delim +CC!$CC$ac_delim +CFLAGS!$CFLAGS$ac_delim +LDFLAGS!$LDFLAGS$ac_delim +CPPFLAGS!$CPPFLAGS$ac_delim +ac_ct_CC!$ac_ct_CC$ac_delim +EXEEXT!$EXEEXT$ac_delim +OBJEXT!$OBJEXT$ac_delim +DEPDIR!$DEPDIR$ac_delim +am__include!$am__include$ac_delim +am__quote!$am__quote$ac_delim +AMDEP_TRUE!$AMDEP_TRUE$ac_delim +AMDEP_FALSE!$AMDEP_FALSE$ac_delim +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim +CCDEPMODE!$CCDEPMODE$ac_delim +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim +CPP!$CPP$ac_delim +CXX!$CXX$ac_delim +CXXFLAGS!$CXXFLAGS$ac_delim +ac_ct_CXX!$ac_ct_CXX$ac_delim +CXXDEPMODE!$CXXDEPMODE$ac_delim +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim +OBJC!$OBJC$ac_delim +ac_ct_OBJC!$ac_ct_OBJC$ac_delim +OBJC_LDFLAGS!$OBJC_LDFLAGS$ac_delim +OBJCDEPMODE!$OBJCDEPMODE$ac_delim +am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim +am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim +CCAS!$CCAS$ac_delim +_ACEOF + + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +if test -n "$ac_eof"; then + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` + ac_eof=`expr $ac_eof + 1` +fi + +cat >>$CONFIG_STATUS <<_ACEOF +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +_ACEOF +sed ' +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +s/^/s,@/; s/!/@,|#_!!_#|/ +:n +t n +s/'"$ac_delim"'$/,g/; t +s/$/\\/; p +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +CEOF$ac_eof +_ACEOF + + +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + cat >conf$$subs.sed <<_ACEOF +CCASFLAGS!$CCASFLAGS$ac_delim +RANLIB!$RANLIB$ac_delim +AR!$AR$ac_delim +MAKEDEPPRG!$MAKEDEPPRG$ac_delim +FILEPRG!$FILEPRG$ac_delim +WRCPRG!$WRCPRG$ac_delim +RCLPRG!$RCLPRG$ac_delim +GREP!$GREP$ac_delim +EGREP!$EGREP$ac_delim +PKG_CONFIG!$PKG_CONFIG$ac_delim +GTK_CFLAGS!$GTK_CFLAGS$ac_delim +GTK_LIBS!$GTK_LIBS$ac_delim +GTK_CONFIG!$GTK_CONFIG$ac_delim +LIBOBJS!$LIBOBJS$ac_delim +PTHREAD_CC!$PTHREAD_CC$ac_delim +PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim +PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim +XMKMF!$XMKMF$ac_delim +X_CFLAGS!$X_CFLAGS$ac_delim +X_PRE_LIBS!$X_PRE_LIBS$ac_delim +X_LIBS!$X_LIBS$ac_delim +X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim +SDL_CONFIG!$SDL_CONFIG$ac_delim +SDL_CFLAGS!$SDL_CFLAGS$ac_delim +SDL_LIBS!$SDL_LIBS$ac_delim +TARGET_BIGENDIAN_TRUE!$TARGET_BIGENDIAN_TRUE$ac_delim +TARGET_BIGENDIAN_FALSE!$TARGET_BIGENDIAN_FALSE$ac_delim +TARGET_BEOS_TRUE!$TARGET_BEOS_TRUE$ac_delim +TARGET_BEOS_FALSE!$TARGET_BEOS_FALSE$ac_delim +TARGET_WIN32_TRUE!$TARGET_WIN32_TRUE$ac_delim +TARGET_WIN32_FALSE!$TARGET_WIN32_FALSE$ac_delim +BUILD_MACOSX_BUNDLE_TRUE!$BUILD_MACOSX_BUNDLE_TRUE$ac_delim +BUILD_MACOSX_BUNDLE_FALSE!$BUILD_MACOSX_BUNDLE_FALSE$ac_delim +ac_cv_c_inline!$ac_cv_c_inline$ac_delim +NO_SCHED_CFLAGS!$NO_SCHED_CFLAGS$ac_delim +GENCPUOPTS!$GENCPUOPTS$ac_delim +TARGET!$TARGET$ac_delim +MACHDEP!$MACHDEP$ac_delim +OSDEP!$OSDEP$ac_delim +THREADDEP!$THREADDEP$ac_delim +GFX_DEP!$GFX_DEP$ac_delim +SND_DEP!$SND_DEP$ac_delim +JOY_DEP!$JOY_DEP$ac_delim +GUI_DEP!$GUI_DEP$ac_delim +EXTRAOBJS!$EXTRAOBJS$ac_delim +CPUOBJS!$CPUOBJS$ac_delim +JITOBJS!$JITOBJS$ac_delim +RESOBJS!$RESOBJS$ac_delim +ASMOBJS!$ASMOBJS$ac_delim +SCSIOBJS!$SCSIOBJS$ac_delim +CDOBJS!$CDOBJS$ac_delim +DEBUGOBJS!$DEBUGOBJS$ac_delim +FILESYSOBJS!$FILESYSOBJS$ac_delim +BSDSOCKOBJS!$BSDSOCKOBJS$ac_delim +UAE_RSRCFILE!$UAE_RSRCFILE$ac_delim +MATHLIB!$MATHLIB$ac_delim +top_srcdir!$top_srcdir$ac_delim +subdirs!$subdirs$ac_delim +LTLIBOBJS!$LTLIBOBJS$ac_delim +_ACEOF + + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +if test -n "$ac_eof"; then + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` + ac_eof=`expr $ac_eof + 1` +fi + +cat >>$CONFIG_STATUS <<_ACEOF +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end +_ACEOF +sed ' +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +s/^/s,@/; s/!/@,|#_!!_#|/ +:n +t n +s/'"$ac_delim"'$/,g/; t +s/$/\\/; p +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +:end +s/|#_!!_#|//g +CEOF$ac_eof +_ACEOF + + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ 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[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF +fi # test -n "$CONFIG_FILES" + + +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 +echo "$as_me: error: Invalid tag $ac_tag." >&2;} + { (exit 1); exit 1; }; };; + :[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="$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 || + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 +echo "$as_me: error: cannot find input file: $ac_f" >&2;} + { (exit 1); exit 1; }; };; + esac + ac_file_inputs="$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 "`IFS=: + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + fi + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin";; + 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 || +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" + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`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 || +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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`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 +# 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= + +case `sed -n '/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p +' $ac_file_inputs` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + 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 + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s&@configure_input@&$configure_input&;t t +s&@top_builddir@&$ac_top_builddir_sub&;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 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +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 "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out"; rm -f "$tmp/out";; + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; + esac + ;; + :H) + # + # CONFIG_HEADER + # +_ACEOF + +# Transform confdefs.h into a sed script `conftest.defines', that +# substitutes the proper values into config.h.in to produce config.h. +rm -f conftest.defines conftest.tail +# First, append a space to every undef/define line, to ease matching. +echo 's/$/ /' >conftest.defines +# Then, protect against being on the right side of a sed subst, or in +# an unquoted here document, in config.status. If some macros were +# called several times there might be several #defines for the same +# symbol, which is useless. But do not sort them, since the last +# AC_DEFINE must be honored. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where +# NAME is the cpp macro being defined, VALUE is the value it is being given. +# PARAMS is the parameter list in the macro definition--in most cases, it's +# just an empty string. +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' +ac_dB='\\)[ (].*,\\1define\\2' +ac_dC=' ' +ac_dD=' ,' + +uniq confdefs.h | + sed -n ' + t rset + :rset + s/^[ ]*#[ ]*define[ ][ ]*// + t ok + d + :ok + s/[\\&,]/\\&/g + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p + ' >>conftest.defines + +# Remove the space that was appended to ease matching. +# Then 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. +# (The regexp can be short, since the line contains either #define or #undef.) +echo 's/ $// +s,^[ #]*u.*,/* & */,' >>conftest.defines + +# Break up conftest.defines: +ac_max_sed_lines=50 + +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" +# et cetera. +ac_in='$ac_file_inputs' +ac_out='"$tmp/out1"' +ac_nxt='"$tmp/out2"' + +while : +do + # Write a here document: + cat >>$CONFIG_STATUS <<_ACEOF + # First, check the format of the line: + cat >"\$tmp/defines.sed" <<\\CEOF +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def +b +:def +_ACEOF + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail + grep . conftest.tail >/dev/null || break + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines conftest.tail + +echo "ac_result=$ac_in" >>$CONFIG_STATUS +cat >>$CONFIG_STATUS <<\_ACEOF + if test x"$ac_file" != x-; then + echo "/* $configure_input */" >"$tmp/config.h" + cat "$ac_result" >>"$tmp/config.h" + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f $ac_file + mv "$tmp/config.h" $ac_file + fi + else + echo "/* $configure_input */" + cat "$ac_result" + fi + rm -f "$tmp/out12" +# Compute $ac_file's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $ac_file | $ac_file:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $ac_file" >`$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 || +echo X$ac_file | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + :L) + # + # CONFIG_LINK + # + + { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 +echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} + + if test ! -r "$srcdir/$ac_source"; then + { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 +echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} + { (exit 1); exit 1; }; } + fi + rm -f "$ac_file" + + # Try a relative symlink, then a hard link, then a copy. + case $srcdir in + [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; + *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; + esac + ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || + ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null || + cp -p "$srcdir/$ac_source" "$ac_file" || + { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 +echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} + { (exit 1); exit 1; }; } + ;; + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 +echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue + # Extract the definition of DEP_FILES from the Makefile without + # running `make'. + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` + test -z "$DEPDIR" && continue + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n -e '/^U = / s///p' < "$mf"` + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" + # We invoke sed twice because it is the simplest approach to + # changing $(DEPDIR) to its actual value in the expansion. + for file in `sed -n -e ' + /^DEP_FILES = .*\\\\$/ { + s/^DEP_FILES = // + :loop + s/\\\\$// + p + n + /\\\\$/ b loop + p + } + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + { as_dir=$dirpart/$fdir + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`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 || +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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + ;; + + esac +done # for ac_tag + + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + + +# 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 || { (exit 1); exit 1; } +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file and --srcdir arguments so they do not pile up. + ac_sub_configure_args= + ac_prev= + eval "set x $ac_configure_args" + shift + for ac_arg + do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -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=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + *) + case $ac_arg in + *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_arg="--prefix=$prefix" + case $ac_arg in + *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" + + # Pass --silent + if test "$silent" = yes; then + ac_sub_configure_args="--silent $ac_sub_configure_args" + fi + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d "$srcdir/$ac_dir" || continue + + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" + echo "$as_me:$LINENO: $ac_msg" >&5 + echo "$ac_msg" >&6 + { as_dir="$ac_dir" + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`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 || +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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`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" + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f "$ac_srcdir/configure.gnu"; then + ac_sub_configure=$ac_srcdir/configure.gnu + elif test -f "$ac_srcdir/configure"; then + ac_sub_configure=$ac_srcdir/configure + elif test -f "$ac_srcdir/configure.in"; then + # This should be Cygnus configure. + ac_sub_configure=$ac_aux_dir/configure + else + { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 +echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative name. + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + + { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 +echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} + { (exit 1); exit 1; }; } + fi + + cd "$ac_popdir" + done +fi + + +if [ "x$cross_compiling" = "xyes" ]; then + export CC=$CC_FOR_BUILD + export CFLAGS=$CFLAGS_FOR_BUILD + export LDFLAGS=$LDFLAGS_FOR_BUILD + export LIBS=$LIBS_FOR_BUILD + mkdir -p src/tools + cd src/tools && ../../"$srcdir"/src/tools/configure --cache-file=/dev/null --host=$build --target=$host +fi diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..12a1f91 --- /dev/null +++ b/configure.in @@ -0,0 +1,1544 @@ +dnl Process this file with autoconf to produce a configure script. +dnl Written 1996, 1997, 1998 Bernd Schmidt +dnl +dnl Updated, re-written and generally mauled 2003 Richard Drummond + +AC_PREREQ(2.55) +AC_INIT(E-UAE, 0.8.29-WIP4, ,e-uae) +AC_CONFIG_SRCDIR([bootstrap.sh]) +AM_CONFIG_HEADER([src/sysconfig.h]) +AC_CANONICAL_TARGET +AM_INIT_AUTOMAKE(1.7 dist-bzip2 foreign) + +dnl +dnl Checks for programs. +dnl + +AC_PROG_CC +AC_PROG_CPP +AC_PROG_CXX +AS_PROG_OBJC +AM_PROG_AS +AC_PROG_MAKE_SET +AC_PROG_RANLIB +AC_CHECK_TOOL(AR, ar) +AC_PROG_INSTALL +AC_PATH_PROG(MAKEDEPPRG, makedepend, not-found) +AC_PATH_PROG(FILEPRG, file, not-found) +AC_PATH_PROG(WRCPRG, wrc, not-found) +AC_PATH_PROG(RCLPRG, rcl, not-found) + +AC_AIX +AC_ISC_POSIX + +NR_WARNINGS=0 +NR_ERRORS=0 + +ADDITIONAL_CFLAGS= +OPTIMIZE_CFLAGS= +WARNING_CFLAGS= +DEBUG_CFLAGS= +NO_SCHED_CFLAGS= + +dnl +dnl Checks for libraries. +dnl +dnl Replace main' with a function in -lMedia_s: (Ian!) +dnl AC_CHECK_LIB(Media_s, main, HAVE_MEDIA_LIB=yes, HAVE_MEDIA_LIB=no) +dnl Replace main' with a function in -lNeXT_s: +dnl AC_CHECK_LIB(NeXT_s, main, HAVE_NEXT_LIB=yes, HAVE_NEXT_LIB=no) +dnl AC_CHECK_LIB(moto, cos, HAVE_MOTO_LIB=yes, HAVE_MOTO_LIB=no) +dnl AC_CHECK_LIB(amiga, OpenLibrary, HAVE_AMIGA_LIB=yes, HAVE_AMIGA_LIB=n) +dnl AC_CHECK_LIB(vga, vga_setmode, HAVE_SVGA_LIB=yes, HAVE_SVGA_LIB=no) + +AC_CHECK_LIB(ossaudio,_oss_ioctl, HAVE_LIBOSSAUDIO=yes, HAVE_LIBOSSAUDIO=no) + +dnl Prefer Gtk2.x over Gtk1.x if both are available +AM_PATH_GTK_2_0(2.0.0,HAVE_GTK=yes,HAVE_GTK=no) +if [[ "x$HAVE_GTK" = "xno" ]]; then + AM_PATH_GTK(1.0.0,HAVE_GTK=yes,HAVE_GTK=no) +fi + +dnl +dnl Checks for header files. +dnl +AC_HEADER_DIRENT +AC_HEADER_STDC + +AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/time.h utime.h]) +AC_CHECK_HEADERS([values.h ncurses.h curses.h sys/termios.h]) +AC_CHECK_HEADERS([sys/stat.h sys/ipc.h sys/shm.h sys/mman.h]) +AC_CHECK_HEADERS([sys/filio.h]) + +AC_CHECK_HEADERS([libraries/cybergraphics.h cybergraphx/cybergraphics.h]) + +AC_CHECK_HEADERS([devices/ahi.h]) +AC_CHECK_HEADERS([sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h]) + +AC_CHECK_HEADERS([machine/joystick.h]) +AC_CHECK_HEADER([amigainput/amigainput.h], HAVE_AMIGAINPUT=yes, HAVE_AMIGAINPUT=no) + +AC_CHECK_HEADERS([byteswap.h]) + +dnl +dnl Checks for typedefs, structures, and compiler characteristics. +dnl +AC_HEADER_STDBOOL +AC_C_CONST +AC_C_INLINE +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_SIZE_T +AC_STRUCT_ST_BLOCKS +AC_HEADER_TIME +AC_STRUCT_TM +AC_C_VOLATILE +AC_C_BIGENDIAN + +AC_CHECK_SIZEOF(char, 1) +AC_CHECK_SIZEOF(short, 2) +AC_CHECK_SIZEOF(int, 4) +AC_CHECK_SIZEOF(long, 4) +AC_CHECK_SIZEOF(long long, 8) +AC_CHECK_SIZEOF(__int64, 8) +AC_CHECK_SIZEOF(void *) + +TYPE_SOCKLEN_T + +dnl +dnl Checks for library functions. +dnl +AC_PROG_GCC_TRADITIONAL +AC_FUNC_MEMCMP +AC_TYPE_SIGNAL +AC_FUNC_UTIME_NULL +AC_CHECK_FUNCS(getcwd getopt strdup gettimeofday sigaction mkdir rmdir) +AC_CHECK_FUNCS(select strerror strstr isnan isinf setitimer alarm sync) +AC_CHECK_FUNCS(tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf) +AC_CHECK_FUNCS(strcasecmp stricmp strcmpi) +AC_CHECK_FUNCS(nanosleep usleep sleep) + +dnl AC_CHECK_FUNCS(statvfs statfs) +dnl AC_VAR_TIMEZONE_EXTERNALS - broken on *BSD +AC_CHECK_FUNCS(localtime_r timegm gmtime_r) +AC_SYS_LARGEFILE + +AC_MSG_CHECKING(for bswap_16) +AC_TRY_LINK([ + #if HAVE_BYTESWAP_H + # include + #endif +],[ + bswap_16 (0x12); +],[ + AC_DEFINE(HAVE_BSWAP_16, 1, [Define to 1 if you have the 'bswap_16' function.]) + AC_MSG_RESULT(yes) +],[ + AC_MSG_RESULT(no) +]) +AC_MSG_CHECKING(for bswap_32) +AC_TRY_LINK([ + #if HAVE_BYTESWAP_H + # include + #endif +],[ + bswap_32 (0x1234); +],[ + AC_DEFINE(HAVE_BSWAP_32, 1, [Define to 1 if you have the 'bswap_32' function.]) + AC_MSG_RESULT(yes) +],[ + AC_MSG_RESULT(no) +]) + +dnl +dnl Checks for fsuage +dnl +AC_CHECK_HEADERS(sys/param.h sys/vfs.h sys/fs_types.h) +AC_CHECK_HEADERS(sys/mount.h, [], [], +[#ifdef HAVE_SYS_PARAM_H +# include +#endif +]) +jm_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no]) +if test $gl_cv_fs_space = yes; then + AC_LIBOBJ(fsusage) + gl_PREREQ_FSUSAGE_EXTRA +fi + +AC_CACHE_SAVE + +dnl +dnl Check for libz +dnl +CHECK_ZLIB + + +dnl +dnl Check for pthreads +dnl +ACX_PTHREAD(HAVE_PTHREAD=yes,HAVE_PTHREAD=no) + +dnl Solaris, for example, needs additional libs to use POSIX semaphores. +if [[ "x$HAVE_PTHREAD" = "xyes" ]]; then + SAVE_CFLAGS="$CFLAGS" + SAVE_LIBS="$LIBS" + CFLAGS="$PTHREAD_CFLAGS $CFLAGS" + LIBS="$PTHREAD_LIBS" + AC_SEARCH_LIBS(sem_init, rt posix4,,,"$SAVE_LIBS") + PTHREAD_LIBS="$LIBS" + CFLAGS="$SAVE_CFLAGS" + LIBS="$SAVE_LIBS" +fi + +dnl +dnl Check for dlopen +dnl +SAVE_LIBS="$LIBS" +LIBS="$LIBS -ldl" +AC_CHECK_LIB(dl, dlopen, [ + AC_DEFINE(HAVE_DLOPEN, 1, "Define to 1 if you have 'dlopen' function) + ], [ + LIBS="$SAVE_LIBS" + ] +) + +dnl +dnl Check availability of OSS +dnl +HAVE_USS_SOUND=no +if [[ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]]; then + if [[ "x$HAVE_LIBOSSAUDIO" = "xyes" ]]; then + SAVE_LIBS="$LIBS" + LIBS="$LIBS -lossaudio" + fi + dnl Avoid surprises + AC_MSG_CHECKING(whether sys/soundcard.h or machine/soundcard.h works) + AC_TRY_LINK([ +#include "confdefs.h" +#ifdef HAVE_SYS_SOUNDCARD_H +#include +#else +#include +#endif +#include +], +[int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);], +AC_MSG_RESULT(yes) +HAVE_USS_SOUND=yes, +AC_MSG_RESULT(no)) + if [[ "x$HAVE_LIBOSSAUDIO" = "xyes" ]]; then + LIBS="$SAVE_LIBS" + fi +fi + + +dnl +dnl Find out which platform to build for +dnl +AC_MSG_CHECKING([host OS support]) + +dnl default is generic Unix-like OS +HOST_OS=generic +OSDEP=od-generic + +case $host_os in + linux*) + HOST_OS=linux + OSDEP=od-linux + ;; + darwin*) + HOST_OS=darwin + OSDEP=od-macosx + ;; + beos) + HOST_OS=beos + OSDEP=od-beos + ;; + amigaos) + HOST_OS=amiga + OSDEP=od-amiga + ;; + morphos) + HOST_OS=morphos + OSDEP=od-amiga + ;; + aros) + HOST_OS=aros + OSDEP=od-amiga + ;; + mingw32*) + HOST_OS=win32 + OSDEP=od-win32 +esac + +AC_MSG_RESULT([$HOST_OS]) + +dnl +dnl Find out what CPU arch to build for +dnl +AC_MSG_CHECKING([host cpu support]) + +dnl default is to use no CPU-specific features +HOST_CPU=generic +MDFPP_H=fpp-unknown.h + +case $host_cpu in + i[[3-6]]86) + HOST_CPU=i386 + MDFPP_H=fpp-ieee.h + ;; + amd64 | x86_64) + HOST_CPU=amd64 + MDFPP_H=fpp-ieee.h + ;; + powerpc) + HOST_CPU=ppc + MDFPP_H=fpp-ieee.h + ;; + m68k) + HOST_CPU=68k + MDFPP_H=fpp-ieee.h + ;; +esac + +AC_MSG_RESULT([$HOST_CPU]) +MACHDEP="md-$HOST_CPU" + +dnl +dnl MULTIPLICATION_PROFITABLE? +dnl +dnl We always set this for now. It's only used in the audio emulation, +dnl where the option is to do multiplication or table look-up. On just +dnl about any CPU it's worthwhile running E-UAE on, multiplication will be +dnl better. + +AC_DEFINE(MULTIPLICATION_PROFITABLE, 1, [Define to 1 if your CPU profitably supports multiplication.]) + + +dnl +dnl Find out what compiler we have +dnl +HAVE_GCC27=no +HAVE_GCC30=no +HAVE_GLIBC2=no + +AC_MSG_CHECKING([for GCC 2.7 or higher]) +AC_EGREP_CPP(yes, +[#if (__GNUC__ - 1 > 0 && __GNUC_MINOR__ - 1 > 5) || __GNUC__ - 1 > 1 + yes +#endif +], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no)) + +if [[ "x$HAVE_GCC27" = "xyes" ]]; then + AC_MSG_CHECKING([for GCC 3.0 or higher]) + AC_EGREP_CPP(yes, + [#if __GNUC__ - 1 > 1 + yes + #endif + ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no)) +fi + +if test $ac_cv_prog_gcc = yes; then + if test $HAVE_GCC27 != yes; then + AC_MSG_WARN([Version 2.7 or better of GCC is recommended]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + fi +else + if test $uae_cv_prog_cc_watcom != yes; then + AC_MSG_WARN([UAE may not compile and run correctly with your compiler]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + fi +fi + +if test $ac_cv_prog_gcc = yes; then + if [[ "$HOST_CPU" = i386 -o "$HOST_CPU" = ppc -o "$HOST_CPU" = amd64 ]]; then + MACHDEP="$MACHDEP-gcc" + fi +fi + +dnl +dnl Now we know the compiler, check some compiler options +dnl +if [[ "x$HAVEGCC27" = "xyes" -a "$HOST_CPU" = "i386" ]]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -mno-schedule-prologue" + AC_TRY_COMPILE(,int main(){return 0;}, OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -mno-schedule-prologue") + CFLAGS=$SAVECFLAGS +fi +if [[ "x$HAVEGCC27" = "xyes" -a "$HOST_CPU" = "i386" ]]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" + AC_TRY_COMPILE(,int main(){return 0;}, OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -mpreferred-stack-boundary=2") + CFLAGS=$SAVECFLAGS +fi +dnl If GCC supports exceptions, we don't want them. +dnl +if [[ "x$HAVEGCC27" = "xyes" -a "$HOST_CPU" = "i386" ]]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -fno-exceptions" + AC_TRY_COMPILE(,int main(){return 0;}, OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -fno-exceptions") + CFLAGS=$SAVECFLAGS +fi + +dnl on OS X, we don't want position-independent code, so +dnl include the option -mdynamic-no-pic. +dnl +if [[ "$HOST_OS" = "darwin" ]]; then + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -mdynamic-no-pic" +fi + +if [[ "x$ac_cv_header_features_h" = "xyes" ]]; then + AC_MSG_CHECKING(for glibc-2.0 or higher) + AC_EGREP_CPP(yes, +[#include +#if __GLIBC__ - 1 >= 1 + yes +#endif +], [AC_MSG_RESULT(yes); HAVE_GLIBC2=yes], AC_MSG_RESULT(no)) +fi + + +dnl +dnl Generic default targets +dnl +TARGET=x11 +TARGETDEP=t-unix.h +if [[ "$HAVE_PTHREAD" = "yes" ]]; then + THREADDEP=td-posix + THREADNAME=posix +else + THREADDEP=td-none + THREADNAME=none +fi +if [[ "x$no_x" != "xyes" ]]; then + GFX_DEP=gfx-x11 + GFX_NAME=x11 +else + GFX_DEP= + GXF_NAME= +fi +GUI_DEP=gui-none +GUI_NAME=none +GUI_LIBS= +SND_DEP=sd-none +SND_NAME=none +JOY_DEP=jd-none +JOY_NAME=none + +DO_PROFILING=no +if [[ "$HOST_CPU" = "i386" ]]; then + WANT_JIT=yes +else + WANT_JIT=no +fi +NATMEM=no +NOFLAGS=no +WANT_DGA=no +WANT_VIDMODE=no +WANT_THREADS=dunno +NEED_THREAD_SUPPORT=no +WANT_AUTOCONFIG=dunno +WANT_SCSIEMU=no +WANT_AGA=yes +WANT_CD32=dunno +WANT_CDTV=dunno +WANT_BSDSOCK=dunno +WANT_UI=dunno +WANT_AUDIO=dunno +WANT_COMPATIBLE=yes +WANT_CYCLEEXACT=yes +WANT_CAPS=no +WANT_FDI=yes +WANT_ENFORCER=dunno + +MATHLIB=-lm + +dnl +dnl Override defaults for specfic targets +dnl +if [[ "$HOST_OS" = "linux" ]]; then + JOY_DEP=jd-linuxold + JOY_NAME="linux" + if [[ "$HOST_CPU" = "i386" ]]; then + NATMEM="0x50000000" + fi +else if [[ "$OSDEP" = "od-beos" ]]; then + TARGET=beos + TARGETDEP=t-beos.h + THREADDEP=td-beos + THREADNAME="native BeOS" + GFX_DEP=gfx-beos + GFX_NAME="native BeOS" + GFX_LIBS="-lgame" + GUI_DEP="gui-beos" + GUI_NAME="native BeOS" + GUI_LIBS="-lbe -ltracker" + JOY_DEP=jd-beos + JOY_NAME="native BeOS" + JOY_LIBS="-ldevice" + SND_DEP=sd-beos + SND_NAME="native BeOS" + SND_LIBS="-lmedia" + WANT_BSDSOCK=no + MATHLIB="" + UAE_RSRCFILE="$OSDEP/uae.rsrc" +else if [[ "$OSDEP" = "od-amiga" ]]; then + TARGET=amiga + TARGETDEP=t-amiga.h + THREADDEP=td-amigaos + THREADNAME="native AmigaOS" + GFX_DEP=gfx-amigaos + GFX_NAME="native AmigaOS" + GUI_DEP=gui-muirexx + GUI_NAME="MUIRexx" + SND_DEP=sd-amigaos + SND_NAME="native AmigaOS/AHI" + if [[ "x$HAVE_AMIGAINPUT" = "xyes" ]]; then + JOY_DEP=jd-amigainput + JOY_NAME="AmigaInput" + else + JOY_DEP=jd-amigaos + JOY_NAME="Amiga lowlevel.library" + fi + WANT_BSDSOCK=no +else if [[ "$OSDEP" = "od-win32" ]]; then + TARGET=win32 + TARGETDEP=t-win32.h + WANT_BSDSOCK=no +fi +fi +fi +fi + +dnl +dnl Win32 build has its own writelog.c +dnl +if [[ "$OSDEP" != "od-win32" ]]; then + EXTRAOBJS=writelog.o +fi + + + +dnl +dnl Options +dnl + +AC_ARG_ENABLE(profiling, AS_HELP_STRING([--enable-profiling], [Build a profiling (SLOW!) version]), [DO_PROFILING=$enableval],[]) +AC_ARG_ENABLE(aga, AS_HELP_STRING([--enable-aga], [Enable AGA chipset emulation (default yes)]), [WANT_AGA=$enableval],[]) +AC_ARG_ENABLE(cdtv, AS_HELP_STRING([--enable-cdtv], [Enable CDTV emulation (default no)]), [WANT_CDTV=$enableval],[]) +AC_ARG_ENABLE(cd32, AS_HELP_STRING([--enable-cd32], [Enable CD32 emulation (default no)]), [WANT_CD32=$enableval],[]) +AC_ARG_ENABLE(cycle-exact-cpu, AS_HELP_STRING([--enable-cycle-exact-cpu], [Enable cycle-exact CPU emulation (default yes)]), [WANT_CYCLEEXACT=$enableval],[]) +AC_ARG_ENABLE(compatible-cpu, AS_HELP_STRING([--enable-compatible-cpu], [Enable compatible CPU emulation (default yes)]), [WANT_COMPATIBLE=$enableval],[]) +AC_ARG_ENABLE(jit, AS_HELP_STRING([--enable-jit], [Enable JIT compiler (currently x86 only)]), [WANT_JIT=$enableval],[]) +AC_ARG_ENABLE(natmem, AS_HELP_STRING([--enable-natmem], [Enable JIT direct memory support (default auto)]), [NATMEM=$enableval],[]) +AC_ARG_ENABLE(noflags, AS_HELP_STRING([--enable-noflags], [Enable noflags support in JIT (default no)]), [NOFLAGS=$enableval],[]) +AC_ARG_ENABLE(threads, AS_HELP_STRING([--enable-threads], [Enable thread support (default auto)]), [WANT_THREADS=$enableval],[]) +AC_ARG_ENABLE(autoconfig, AS_HELP_STRING([--enable-autoconfig], [Enable emulaton of autoconfig devices (default auto)]), [WANT_AUTOCONFIG=$enableval],[]) +AC_ARG_ENABLE(scsi-device, AS_HELP_STRING([--enable-scsi-device], [Enable emulaton of SCSI devices (default no)]), [WANT_SCSIEMU=$enableval],[]) +AC_ARG_ENABLE(bsdsock, AS_HELP_STRING([--enable-bsdsock], [Enable bsdsocket.library emulation]), [WANT_BSDSOCK=$enableval],[]) +AC_ARG_ENABLE(debugger, AS_HELP_STRING([--disable-debugger], [Disable internal debugger/monitor (default no)]), [WANT_DEBUGGER=$enableval],[]) +AC_ARG_ENABLE(state-saving, AS_HELP_STRING([--disable-state-saving], [Disable support for saving state snapshots (default no)]), [WANT_STATESAVING=$enableval],[]) +AC_ARG_ENABLE(enforcer, AS_HELP_STRING([--enable-enforcer], [Enable ersatz Enforcer support (default auto)]), [WANT_ENFORCER=$enableval],[]) +AC_ARG_ENABLE(action-replay, AS_HELP_STRING([--enable-action-replay], [Enable Action Replay cartridge emulation (default yes)]), [WANT_ACTION_REPLAY=$enableval],[]) +AC_ARG_ENABLE(dga, AS_HELP_STRING([--enable-dga], [X11 version: Use the DGA extension]), [WANT_DGA=$enableval],[]) +AC_ARG_ENABLE(vidmode, AS_HELP_STRING([--enable-vidmode], [X11 version: Use the XF86VidMode extension]), [WANT_VIDMODE=$enableval],[]) +AC_ARG_ENABLE(ui, AS_HELP_STRING([--enable-ui], [Use a user interface if possible (default on)]), [WANT_UI=$enableval],[]) +AC_ARG_ENABLE(audio, AS_HELP_STRING([--enable-audio], [Enable audio output (default auto)]), [WANT_AUDIO=$enableval],[]) +AC_ARG_ENABLE(fdi, AS_HELP_STRING([--enable-fdi], [Enable FDI support (default yes)]), [WANT_FDI=$enableval],[]) + +AC_ARG_WITH(sdl, + AS_HELP_STRING([--with-sdl], [Use SDL library for low-level functions]), + [WANT_SDL=$withval], []) +AC_ARG_WITH(sdl-sound, + AS_HELP_STRING([--with-sdl-sound], [Use SDL library for sound]), + [WANT_SDLSND=$withval], []) +AC_ARG_WITH(sdl-gfx, + AS_HELP_STRING([--with-sdl-gfx], [Use SDL library for graphics]), + [WANT_SDLGFX=$withval], []) +AC_ARG_WITH(sdl-gl, + AS_HELP_STRING([--with-sdl-gl], [Allow GL for 2D acceleration with SDL graphics]), + [WANT_SDLGL=$withval], []) + +AC_ARG_WITH(curses, + AS_HELP_STRING([--with-curses], [Use ncurses library for graphics]), + [WANT_NCURSES=$withval], []) + +AC_ARG_WITH(cocoa-gui, + AS_HELP_STRING([--with-cocoa-gui], [Use Cocoa for GUI on OS X]), + [WANT_COCOA_UI=$withval], []) + +AC_ARG_WITH(libscg-prefix, + AS_HELP_STRING([--with-libscg-prefix], [Absolute path to where libscg is installed (optional)]), + [LIBSCG_PREFIX=$withval], []) +AC_ARG_WITH(libscg-includedir, + AS_HELP_STRING([--with-libscg-includedir], [Absolute path to libscg headers are installed (default LIBSCG_PREFIX/include)]), + [LIBSCG_INCLUDEDIR=$withval], []) +AC_ARG_WITH(libscg-libdir, + AS_HELP_STRING([--with-libscg-libdir], [Absolute path to libscg libs are installed (default LIBSCG_PREFIX/lib)]), + [LIBSCG_LIBDIR=$withval], []) + +AC_ARG_WITH(alsa, + AS_HELP_STRING([--with-alsa], [Use ALSA library for sound]), + [WANT_ALSA=$withval],[]) + +dnl +dnl Some simple plausibility tests... +dnl +AC_MSG_CHECKING([configuration options]) + +if [[ "x$WANT_SDLGL" = "xyes" ]]; then + WANT_SDLGFX=yes +fi + +if [[ "x$WANT_SDLSND" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]]; then + WANT_SDL=yes +fi +if [[ "x$WANT_SDL" = "xno" ]]; then + WANT_SDLGFX=no + WANT_SDLSND=no + WANT_SDLGL=no +fi + +if [[ "x$WANT_DGA" = "xyes" -a "x$WANT_SDLGFX" = "xyes" ]]; then + AC_MSG_WARN([DGA support cannot be enabled for non-X11 targets!]) + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_DGA=no +fi + +if [[ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]]; then + AC_MSG_WARN([Ignoring --enable-dga, since X was disabled or not found]) + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_DGA=no +fi + +if [[ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]]; then + AC_MSG_WARN([The XF86VidMode extension can only be used in DGA mode. Disabling it]) + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_VIDMODE=no +fi + +AC_MSG_RESULT(ok) + + +dnl Check for X +AC_PATH_XTRA + +dnl Check for ncurses +AC_CHECK_LIB(ncurses, waddch, HAVE_NCURSES_LIB=yes, HAVE_NCURSES_LIB=no) + +dnl Check for SDL +if [[ "x$WANT_SDL" != "xno" ]]; then + + if [[ "$HOST_OS" = "darwin" ]]; then + + dnl Assume this is MacOS X and try to use SDL framework + + SDL_CFLAGS="-I/Library/Frameworks/SDL.framework/Headers -D_REENTRANT" + SDL_LIBS="-framework Cocoa -framework SDL -lobjc" + + AC_MSG_CHECKING(for SDL framework) + + SAVE_CPPFLAGS=$CPPFLAGS + SAVE_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + + AC_TRY_LINK( + [ + #include "confdefs.h" + #include + #undef main + ], + [ + SDL_Init(SDL_INIT_VIDEO); + ], + AC_MSG_RESULT(yes) + HAVE_SDL=yes + WANT_COCOA_UI=yes, + AC_MSG_RESULT(no) + HAVE_SDL=no) + + CPPFLAGS="$SAVE_CPPFLAGS" + LIBS="$SAVE_LIBS" + else + AM_PATH_SDL(1.2.0,HAVE_SDL=yes,HAVE_SDL=no) + fi + + if [[ "x$WANT_SDL" = "xyes" -a "x$HAVE_SDL" = "xno" ]]; then + AC_MSG_WARN([SDL support wanted, but libSDL could not be found]) + WANT_SDL=no + NR_ERRORS=`expr $NR_ERRORS + 1` + fi +fi + + +if test $ac_cv_prog_gcc = yes; then + WARNING_CFLAGS="$WARNING_CFLAGS -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes" + OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -fomit-frame-pointer" +fi + +if [[ "x$DO_PROFILING" = "xyes" ]]; then + if [[ "x$HAVE_GCC27" = "xyes" ]]; then + OPTIMIZE_CFLAGS="" + DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING" + LDFLAGS="-pg" + else + DO_PROFILING=no + AC_MSG_WARN([Don't know how to set up profiling for your compiler]) + NR_ERRORS=`expr $NR_ERRORS + 1` + fi +fi + +UAE_CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS" + + +dnl +dnl Check CPU emulation options +dnl + +dnl Now configure the CPU emulation proper +ASMOBJS= +UAE_DEFINES="$UAE_DEFINES -DFPUEMU -DCPUEMU_0" +CPUOBJS="cpuemu_0.o" + +if [[ "x$WANT_COMPATIBLE" != "xno" ]]; then + UAE_DEFINES="$UAE_DEFINES -DCPUEMU_5" + CPUOBJS="$CPUOBJS cpuemu_5.o" +fi + +if [[ "x$WANT_CYCLEEXACT" != "xno" ]]; then + UAE_DEFINES="$UAE_DEFINES -DCPUEMU_6" + CPUOBJS="$CPUOBJS cpuemu_6.o" +fi + + +if [[ "x$HAVE_GCC27" = "xyes" -a "$HOST_CPU" = "i386" -a "x$DO_PROFILING" = "xno" ]]; then + dnl strength-reduce is turned off not because of paranoia, but because it + dnl actually makes the code worse in some cases on the i386 (generates too + dnl many registers, which all end up on the stack). + UAE_CFLAGS="$UAE_CFLAGS -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\"" + UAE_DEFINES="$UAE_DEFINES -DUNALIGNED_PROFITABLE" +else if [[ "x$HAVE_GCC27" = "xyes" -a "$HOST_CPU" = "68k" ]]; then + UAE_CFLAGS="$UAE_CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\"" + UAE_DEFINES="$UAE_DEFINES -DUNALIGNED_PROFITABLE -DM68K_FLAG_OPT=1 -DSTATIC_INLINE=\"static inline\"" +else + UAE_CFLAGS="$UAE_CFLAGS -DREGPARAM=" +fi +fi + + +dnl +dnl Check whether to build with optimized CCR flags handling +dnl +if [[ "x$HAVE_GCC27" = "xyes" ]]; then + if [[ "$HOST_CPU" = "i386" -o "$HOST_CPU" = "ppc" -o "$HOST_CPU" = "68k" ]]; then + GENCPUOPTS="--optimized-flags" + fi +fi + + +dnl +dnl Check whether to build JIT +dnl +AC_MSG_CHECKING([whether to build JIT compiler]) +JITOBJS="" +if [[ "x$WANT_JIT" != "xno" -a "$HOST_CPU" = "i386" ]]; then + UAE_DEFINES="$UAE_DEFINES -DJIT" + if [[ "x$NATMEM" = "xyes" ]]; then + NATMEM="0x50000000" + fi + if [[ "x$NATMEM" != "xno" ]]; then + UAE_DEFINES="$UAE_DEFINES -DNATMEM_OFFSET=$NATMEM" + fi + JITOBJS="compstbl.o compemu.o compemu_support.o compemu_fpp.o" + if [[ "x$NOFLAGS" != "xno" ]]; then + JITOBJS="$JITOBJS cpustbl_nf.o" + JITOBJS="$JITOBJS cpuemu_nf_0.o" + if [[ "x$WANT_COMPATIBLE" != "xno" ]]; then + JITOBJS="$JITOBJS cpuemu_nf_5.o" + fi + if [[ "x$WANT_CYCLEEXACT" != "xno" ]]; then + JITOBJS="$JITOBJS cpuemu_nf_6.o" + fi + fi + AC_MSG_RESULT(yes) + + AC_MSG_CHECKING([whether assembler supports --execstack option]) + SAVE_CFLAGS="$CFLAGS" + CFLAGS="-Wa,--execstack $CFLAGS" + AC_TRY_COMPILE(, int main (void) {return 0;}, + [AC_MSG_RESULT(yes) + UAE_CFLAGS="-Wa,--execstack $UAE_CFLAGS"], + AC_MSG_RESULT(no) + ) + CFLAGS="$SAVE_CFLAGS" +else + AC_MSG_RESULT(no) +fi + +AC_CACHE_SAVE + +dnl +dnl Check which graphics target to build +dnl +AC_MSG_CHECKING([for graphics target to build]) + +dnl Check whether we wanted to use ncurses +dnl +dnl First check if we need to uses ncurses because no +dnl other gfx support is available +if [[ "x$WANT_NCURSES" != "xno" -a "x$WANT_SDL" = "xno" -a "x$GFX_DEP" = "x" ]]; then + WANT_NCURSES=yes +fi + +if [[ "x$WANT_NCURSES" = "xyes" ]]; then + if [[ "x$HAVE_NCURSES_LIB" = "xyes" ]]; then + GFX_LIBS="-lncurses" + GFX_CFLAGS= + GFX_CPPFLAGS= + GFX_DEP=gfx-curses + GFX_NAME=ncurses + else + AC_MSG_WARN([ncurses support wanted, but libncurses could not be found]) + fi +fi + + +dnl Check whether we actually wanted to use SDL or whether +dnl we need to use SDL because we couldn't find any other +dnl graphics support +dnl +if [[ "x$WANT_SDL" = "xyes" -o "x$GFX_DEP" = "x" ]]; then + if [[ "x$HAVE_SDL" = "xyes" -a "x$WANT_SDLGFX" != "xno" ]]; then + WANT_SDL=yes + if [[ "x$WANT_SDLGFX" = "xyes" -o "x$GFX_DEP" = "x" ]]; then + GFX_DEP=gfx-sdl + GFX_NAME=SDL + GFX_LIBS="" + GFX_CFLAGS="" + GFX_CPPFLAGS="" + if [[ "x$WANT_SDLGL" = "xyes" ]]; then + GFX_CFLAGS="-DUSE_GL" + if [[ "x$OSDEP" = "xod-macosx" ]]; then + GFX_LIBS="-framework OpenGL" + else + GFX_LIBS="-lGL -lGLU" + fi + fi + fi + fi +fi + + +dnl If we got here and we still haven't found a graphics target +dnl then bail out. +dnl +if [[ "x$GFX_DEP" = "x" ]]; then + AC_MSG_RESULT(none) + AC_MSG_ERROR([Could not find a useable graphics target]) +fi + +AC_MSG_RESULT("$GFX_NAME") + +dnl +dnl If we're using X, find out what extensions are wanted/available +dnl +if [[ "$GFX_DEP" = "gfx-x11" ]]; then + dnl If the user wants DGA, see if we have it. + dnl This must come after we checked for X11. + + if [[ "x$WANT_DGA" = "xyes" ]]; then + TMP_SAVE_LIBS=$LIBS + LIBS="$X_LIBS $LIBS" + AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension, HAVE_DGA=yes, HAVE_DGA=no, [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ]) + echo $LIBS + LIBS=$TMP_SAVE_LIBS + if [[ "x$HAVE_DGA" = "xno" ]]; then + AC_MSG_WARN([Could not find DGA extension, ignoring --enable-dga]) + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_DGA=no + else + X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION" + X_EXTRA_LIBS="$X_EXTRA_LIBS -lXxf86dga" + fi + fi + + if [[ "x$WANT_VIDMODE" = "xyes" ]]; then + TMP_SAVE_LIBS=$LIBS + LIBS="$X_LIBS $LIBS" + AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension, HAVE_VIDMODE=yes, HAVE_VIDMODE=no, [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ]) + LIBS=$TMP_SAVE_LIBS + if [[ "x$HAVE_VIDMODE" = "xno" ]]; then + AC_MSG_WARN([Could not find VidMode extension, ignoring --enable-vidmode]) + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_VIDMODE=no + else + X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION" + X_EXTRA_LIBS="$X_EXTRA_LIBS -lXxf86vm" + fi + fi + + dnl Check if we can compile with XKB/XKBfile support + + AC_MSG_CHECKING(whether to compile XKB extension support) + TMP_SAVE_LIBS=$LIBS + TMP_SAVE_CFLAGS=$CFLAGS + LIBS="$X_LIBS $LIBS -lxkbfile" + CFLAGS="$CFLAGS $X_CFLAGS" + AC_TRY_LINK([ + #include "confdefs.h" + #include + #ifdef HAVE_SYS_TYPES_H + # include + #endif + #include + #include + #include ],[ + int major, minor; + XkbRF_RulesPtr rules; + XkbLibraryVersion (&major, &minor); + rules = XkbRF_Load ("dummy", "", True, True); + ], + AC_MSG_RESULT(yes) + X_CFLAGS="$X_CFLAGS -DUSE_XKB" + X_EXTRA_LIBS="$X_EXTRA_LIBS -lxkbfile" + xkb_rules_dir_found="no" + for xkb_rules_dir in /usr/share/X11/xkb/rules /usr/lib/X11/xkb/rules /usr/X11R6/lib/X11/xkb/rules + do + if test -d $xkb_rules_dir ; then + X_CFLAGS="$X_CFLAGS -DXKB_PATH=\\\"$xkb_rules_dir/\\\"" + xkb_rules_dir_found="yes" + break + fi + done + if test "x$xkb_rules_dir_found" = "xno" ; then + AC_MSG_ERROR([[Could not find xkb path.]]) + fi, + AC_MSG_RESULT(no) + ) + LIBS=$TMP_SAVE_LIBS + CFLAGS=$TMP_SAVE_CFLAGS + +dnl See if we can at least compile SHM support + + if [[ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]]; then + AC_MSG_CHECKING(whether the X11 MIT-SHM extension can be compiled in) + TMP_SAVE_CFLAGS=$CFLAGS + TMP_SAVE_LIBS=$LIBS + CFLAGS="$CFLAGS $X_CFLAGS" + LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS" + AC_TRY_LINK([ + #include "confdefs.h" + #ifdef HAVE_SYS_TYPES_H + #include + #endif + #include + #include + #include + #include + #include + #include + #include ],[ + static XShmSegmentInfo shminfo; + static Display *display; + XShmAttach(display, &shminfo); + XSync(display,0); + shmctl(shminfo.shmid, IPC_RMID, 0); + ], + SHM_SUPPORT_LINKS=1 + AC_MSG_RESULT(yes), + SHM_SUPPORT_LINKS=0 + AC_MSG_RESULT(no)) + fi + CFLAGS=$TMP_SAVE_CFLAGS + LIBS=$TMP_SAVE_LIBS + + GFX_CFLAGS="$X_CFLAGS" + GFX_CPPFLAGS="-DSHM_SUPPORT_LINKS=$SHM_SUPPORT_LINKS" + GFX_LIBS="$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS" +fi + + +dnl +dnl +dnl Check which sound target to use +AC_MSG_CHECKING([for sound target to build]) + +if [[ "x$WANT_AUDIO" != "xno" ]]; then + if [[ "x$SND_NAME" = "xnone" ]]; then + if [[ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]]; then + SND_DEP=sd-solaris + SND_NAME=Solaris/NetBSD + USE_SOUND=yes + else if [[ "x$WANT_ALSA" = "xyes" ]]; then + SND_DEP=sd-alsa + SND_LIBS="-lasound" + SND_NAME=ALSA + USE_SOUND=yes + else if [[ "x$HAVE_USS_SOUND" = "xyes" ]]; then + SND_DEP=sd-uss + if [[ "x$HAVE_LIBOSSAUDIO" = "xyes" ]]; then + SND_LIBS="-lossaudio" + fi + SND_NAME=OSS + USE_SOUND=yes + fi + fi + fi + fi + + dnl + dnl Did we actually want to use SDL for sound, or should we + dnl use it 'cos there's nothing else? + dnl + if [[ "x$WANT_SDLSND" = "xyes" -o "x$SND_DEP" = "x" ]]; then + if [[ "x$HAVE_SDL" = "xyes" -a "x$WANT_SDLSND" != "xno" ]]; then + SND_DEP=sd-sdl + SND_LIBS= + SND_NAME=SDL + NEED_THREAD_SUPPORT=yes + fi + fi + + AC_MSG_RESULT("$SND_NAME") +else + AC_MSG_RESULT("sound support disabled") + SND_DEP=sd-none + SND_LIBS= + SND_NAME=none +fi + +dnl +dnl Did we want a GUI? +dnl +AC_MSG_CHECKING([which UI target to build]) +if [[ "x$WANT_UI" = "xno" ]]; then + GUI_DEP=gui-none + GUI_LIBS= + GUI_NAME=none +else + dnl Hack for building Cocoa gui on OS X + dnl We really should reall check for the presence of objc and Cocoa first + if [[ "$HOST_OS" = "darwin" ]]; then + if [[ "x$WANT_COCOA_UI" != "xno" -o "x$HAVE_GTK" = "xno" ]]; then + GUI_DEP=gui-cocoa + GUI_CFLAGS="$CFLAGS -DNO_MAIN_IN_MAIN_C" + GUI_LIBS="-framework Cocoa" + GUI_NAME="Cocoa" + fi + fi + if [[ "$GUI_DEP" = "gui-none" ]]; then + if [[ "x$HAVE_GTK" = "xno" ]]; then + AC_MSG_WARN([UI wanted, but no UI useable target found]) + NR_ERRORS=`expr $NR_ERRORS + 1` + WANT_UI=no + else + GUI_DEP=gui-gtk + GUI_LIBS="$GTK_LIBS" + GUI_NAME="GTK+" + GUI_CFLAGS="$CFLAGS" + NEED_THREAD_SUPPORT=yes + if [[ "x$WANT_THREADS" = "xno" ]]; then + AC_MSG_ERROR([Thread support disabled, but GTK+ UI requires threads]) + fi + fi + fi +fi +AC_MSG_RESULT("$GUI_NAME") + + +dnl +dnl Do we want AGA emulation +dnl +AC_MSG_CHECKING([whether to build AGA emulation]) +if [[ "x$WANT_AGA" != "xno" ]]; then + UAE_DEFINES="$UAE_DEFINES -DAGA" + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Do we want Autoconfig? +dnl +AC_MSG_CHECKING([whether to build support for Autconfig devices]) +if [[ "x$WANT_AUTOCONFIG" != "xno" ]]; then + UAE_DEFINES="$UAE_DEFINES -DAUTOCONFIG" + + dnl Configure hard disk emulation + UAE_DEFINES="$UAE_DEFINES -DFILESYS" + NEED_THREAD_SUPPORT=yes + FILESYSOBJS="filesys.o fsdb.o fsusage.o hardfile.o" + if [[ "x$HOST_OS" != "xwin32" ]]; then + FILESYSOBJS="$FILESYSOBJS filesys_unix.o fsdb_unix.o hardfile_unix.o" + else + FILESYSOBJS="$FILESYSOBJS" + fi + dnl Filesys support currently requires threads, because hardfile + dnl support requires threads and we can't currently separate the + dnl two. + dnl + dnl However, we don't currently build the threaded filesys implementation + dnl because it performs poorly. + dnl + dnl UAE_DEFINES="$UAE_DEFINES -DUAE_FILESYS_THREADS" + + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Do we want SCSI emulation? +dnl This needs tidying up. ;-) +dnl +AC_MSG_CHECKING([whether to build SCSI emulation]) +if [[ "x$WANT_SCSIEMU" = "xyes" ]]; then + if [[ "x$WANT_AUTOCONFIG" = "xno" ]]; then + AC_MSG_RESULT(no) + AC_MSG_WARN([Autoconfig support not enabled, so SCSI emulation cannot be enabled]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_SCSIEMU=no + else + if [[ "$OSDEP" = "od-amiga" ]]; then + AC_MSG_RESULT(yes) + SCSIOBJS="scsiemul.o blkdev.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU" + NEED_THREAD_SUPPORT=yes + else + SCGLIBS="-lscg -lschily" + if [[ "$HOST_OS" = "darwin" ]]; then + SCGLIBS="$SCGLIBS -framework IOKit -framework CoreFoundation" + fi + AC_MSG_RESULT(yes) + AC_MSG_CHECKING([for libscg and libschily]) + OLDLIBS="$LIBS" + OLDCPPFLAGS="$CPPFLAGS" + if [[ "x$LIBSCG_PREFIX" != "x" ]]; then + LIBSCG_CPPFLAGS="-I$LIBSCG_PREFIX/include" + LIBSCG_LIBS="-L$LIBSCG_PREFIX/lib" + fi + if [[ "x$LIBSCG_INCLUDEDIR" != "x" ]]; then + LIBSCG_CPPFLAGS="-I$LIBSCG_INCLUDEDIR" + fi + if [[ "x$LIBSCG_LIBDIR" != "x" ]]; then + LIBSCG_LIBS="-L$LIBSCG_LIBDIR $SCGLIBS" + else + LIBSCG_LIBS="$SCGLIBS" + fi + LIBS="$LIBS $LIBSCG_LIBS" + CPPFLAGS="$CPPFLAGS $LIBSCG_CPPFLAGS" + AC_TRY_LINK([ +typedef int BOOL; +#include "scg/scgcmd.h" +#include "scg/scsitransp.h" +#include "scg/scsireg.h"], +[{SCSI *scgp = scg_open (0, 0, 0, 0, 0);}], + [ + AC_MSG_RESULT(yes) + SCSIOBJS="scsiemul.o blkdev.o blkdev-libscg.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU" + UAE_CPPFLAGS="$UAE_CPPFLAGS $LIBSCG_CPPFLAGS" + UAE_LIBS="$UAE_LIBS $LIBSCG_LIBS" + NEED_THREAD_SUPPORT=yes + ], + [ + AC_MSG_RESULT(no) + AC_MSG_CHECKING([for libscg and libschily in UAE source tree]) + LIBSCG_CPPFLAGS="$OLDCPPFLAGS -I$srcdir/src/include" + LIBSCG_LIBS="-L$srcdir/src $OLDLIBS $SCGLIBS" + CPPFLAGS="$LIBSCG_CPPFLAGS" + LIBS="$LIBSCG_LIBS" + AC_TRY_LINK([ +typedef int BOOL; +#include "scg/scgcmd.h" +#include "scg/scsitransp.h" +#include "scg/scsireg.h"], +[{SCSI *scgp = scg_open (0, 0, 0, 0, 0);}], + [ + AC_MSG_RESULT(yes) + SCSIOBJS="scsiemul.o blkdev.o blkdev-libscg.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU" + NEED_THREAD_SUPPORT=yes + if [[ "$srcdir" != "." ]]; then + AC_CONFIG_LINKS(src/libscg.a:src/libscg.a) + AC_CONFIG_LINKS(src/libschily.a:src/libschily.a) + UAE_LIBS="$UAE_LIBS $LIBSCG_LIBS" + else + UAE_LIBS="$UAE_LIBS -L. $SCGLIBS" + fi + ], + [ + AC_MSG_RESULT(no) + + AC_MSG_CHECKING([for Linux cdrom support via ioctl]) + LIBS="$OLDLIBS" + CPPFLAGS="$OLDCPPFLAGS" + AC_TRY_LINK([ +#include ], +[{struct cdrom_generic_command cmd; ioctl (0, CDROM_SEND_PACKET, &cmd);}], + [ + AC_MSG_RESULT(yes) + SCSIOBJS="scsiemul.o blkdev.o" + UAE_DEFINES="$UAE_DEFINES -DSCSIEMU -DSCSIEMU_LINUX_IOCTL" + NEED_THREAD_SUPPORT=yes + ], + [ + + AC_MSG_RESULT(no) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + echo "Please refer to the UAE SCSI device section in docs/README for installation instructions." + WANT_SCSIEMU=no + ]) + ]) + LIBS="$OLDLIBS" + CPPFLAGS="$OLDCPPFLAGS" + ]) + fi + fi +else + AC_MSG_RESULT(no) +fi +if [[ "x$WANT_SCSIEMU" != "xyes" ]]; then + SCSIOBJS="scsi-none.o" + AC_MSG_RESULT(no) +fi + + +dnl +dnl Do we want CDTV emulation ? +dnl +if [[ "x$WANT_CDTV" != "xyes" -a "x$WANT_SCSIEMU" != "xyes" ]]; then + WANT_CDTV=no +fi +AC_MSG_CHECKING([whether to build CDTV emulation]) +if [[ "x$WANT_CDTV" != "xno" ]]; then + AC_MSG_RESULT(yes) + if [[ "x$WANT_SCSIEMU" != "xyes" ]]; then + AC_MSG_WARN([SCSI support is not enabled or cannot be built. Disabling CDTV emulation]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_CDTV=no + else + UAE_DEFINES="$UAE_DEFINES -DCDTV" + CDOBJS="cdrom.o" + fi +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Do we want CD32 emulation ? +dnl +if [[ "x$WANT_CD32" != "xyes" ]]; then + if [[ "x$WANT_SCSIEMU" != "xyes" -o "x$WANT_AGA" = "xno" ]]; then + WANT_CD32=no + fi +fi +AC_MSG_CHECKING([whether to build CD32 emulation]) +if [[ "x$WANT_CD32" != "xno" ]]; then + AC_MSG_RESULT(yes) + if [[ "x$WANT_SCSIEMU" != "xyes" ]]; then + AC_MSG_WARN([SCSI support is not enabled or cannot be built. Disabling CD32 emulation]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_CD32=no + else + if [[ "x$WANT_AGA" != "xyes" ]]; then + AC_MSG_WARN([AGA emulation is not enabled. Disabling CD32 emulation]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + WANT_CD32=no + else + UAE_DEFINES="$UAE_DEFINES -DCD32" + if [[ "x$WANT_CDTV" = "xno" ]]; then + CDOBJS="cdrom.o" + fi + CDOBJS="$CDOBJS akiko.o" + fi + fi +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Do we want bsdsocket.library emulation? +dnl +AC_MSG_CHECKING([whether to build bsdsocket.library emulation]) +if [[ "x$WANT_BSDSOCK" != "xno" ]]; then + if [[ "x$WANT_AUTOCONFIG" = "xno" ]]; then + AC_MSG_RESULT(no) + AC_MSG_WARN([Autoconfig support not enabled, so bsdsocket emulation cannot be enabled]) + NR_WARNINGS=`expr $NR_WARNINGS + 1` + else + NEED_THREAD_SUPPORT=yes + UAE_DEFINES="$UAE_DEFINES -DBSDSOCKET" + BSDSOCKOBJS="bsdsocket-posix-new.o bsdsocket.o" + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) + BSDSOCKOBJS="bsdsocket.o" +fi + + +dnl +dnl Check whether we want or need threads +dnl +AC_MSG_CHECKING([whether to build with threads]) +if [[ "x$WANT_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]]; then + AC_MSG_RESULT(yes) + AC_MSG_CHECKING([which thread target to build]) + + if [[ "x$WANT_SDL" = "xyes" -o "$THREADDEP" = "td-none" ]]; then + if [[ "x$HAVE_SDL" = "xyes" -a "x$WANT_SDL" != "xno" ]]; then + WANT_SDL=yes + THREADDEP=td-sdl + THREADNAME=SDL + fi + fi + + if [[ "$THREADDEP" = "td-none" ]]; then + AC_MSG_ERROR([Thread support wanted or required, but no thread target found]) + fi + + if [[ "$THREADDEP" = "td-posix" ]]; then + CC="$PTHREAD_CC" + UAE_CFLAGS="$UAE_CFLAGS $PTHREAD_CFLAGS" + UAE_LIBS="$UAE_LIBS $PTHREAD_LIBS" + + dnl Hack to use named semaphores on OS X/darwin + dnl This needs to be properly checked when detecting pthreads! + if [[ "$HOST_OS" = "darwin" ]]; then + UAE_DEFINES="$UAE_DEFINES -DUSE_NAMED_SEMAPHORES" + fi + fi + + UAE_DEFINES="$UAE_DEFINES -DSUPPORT_THREADS" + AC_MSG_RESULT($THREADNAME) +else + THREADDEP=td-none + AC_MSG_RESULT(no) +fi + + +dnl +dnl So, are we using SDL? +dnl +if [[ "x$WANT_SDL" = "xyes" ]]; then + UAE_DEFINES="$UAE_DEFINES -DUSE_SDL" + JOY_DEP=jd-sdl + UAE_LIBS="$UAE_LIBS $SDL_LIBS" + UAE_CPPFLAGS="$UAE_CPPFLAGS $SDL_CFLAGS" +fi + + +dnl +dnl Check for CAPS API +dnl +WANT_CAPS=dunno +AC_ARG_WITH(caps, AS_HELP_STRING([--with-caps], [Build with support for CAPS/IPF disk images) (default auto)]), [WANT_CAPS=$withval],[]) +AC_ARG_WITH(caps-prefix, AS_HELP_STRING([--with-caps-prefix], [Prefix where CAPS API is installed (optional)]), [CAPS_PREFIX=$withval],[]) +if [[ "x$WANT_CAPS" != "xno" ]]; then + SAVE_CPPFLAGS="$CPPFLAGS" + CAPS_CPPFLAGS="-I$CAPS_PREFIX/include" + if [[ "x$CAPS_PREFIX" != "x" ]]; then + CPPFLAGS="$CPPFLAGS $CAPS_CPPFLAGS" + fi + AC_CHECK_HEADERS(caps/capsimage.h, [HAVE_CAPS=yes], [HAVE_CAPS=no]) + if [[ "$HAVE_CAPS" = "yes" ]]; then + UAE_DEFINES="$UAE_DEFINES -DCAPS" + UAE_CPPFLAGS="$UAE_CPPFLAGS $CAPS_CPPFLAGS" + else + if [[ "$WANT_CAPS" = "yes" ]]; then + AC_MSG_WARN([CAPS support wanted, but CAPS API not found]) + WANT_CAPS=no + fi + fi + CPPFLAGS="$SAVE_CPPFLAGS" +fi + + +dnl +dnl Check whether FDI support wanted +dnl +if [[ "x$WANT_FDI" != "xno" ]]; then + UAE_DEFINES="$UAE_DEFINES -DFDI2RAW" +fi + + +dnl +dnl Build debugger? +dnl +AC_MSG_CHECKING([whether to build internal debugger/monitor]) +if [[ "x$WANT_DEBUGGER" != "xno" ]]; then + AC_MSG_RESULT(yes) + UAE_DEFINES="$UAE_DEFINES -DDEBUGGER" + DEBUGOBJS="debug.o identify.o" +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Support state saving/loading? +dnl +AC_MSG_CHECKING([whether to build support for saving/loading emulator state]) +if [[ "x$WANT_STATESAVING" != "xno" ]]; then + AC_MSG_RESULT(yes) + UAE_DEFINES="$UAE_DEFINES -DSAVESTATE" +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Build fake enforcer? +dnl +AC_MSG_CHECKING([whether to build with enforcer]) +if [[ "x$WANT_ENFORCER" != "xno" ]]; then + if [[ "x$WANT_AUTOCONFIG" != "xno" ]]; then + AC_MSG_RESULT(yes) + UAE_DEFINES="$UAE_DEFINES -DENFORCER" + else + AC_MSG_RESULT(no) + AC_MSG_WARN([Autoconfig support not enabled, so enforcer emulation cannot be enabled]) + fi +else + AC_MSG_RESULT(no) +fi + + +dnl +dnl Build Action Replay emulation +dnl +AC_MSG_CHECKING([whether to build Action Replay emulation]) +if [[ "x$WANT_ACTION_REPLAY" != "xno" ]]; then + AC_MSG_RESULT(yes) + UAE_DEFINES="$UAE_DEFINES -DACTION_REPLAY" +else + AC_MSG_RESULT(no) +fi + + +LIBS="$LIBS $UAE_LIBS $GUI_LIBS $GFX_LIBS $SND_LIBS $JOY_LIBS $MATHLIB" +CPPFLAGS="$CPPFLAGS $UAE_DEFINES $UAE_CPPFLAGS $GFX_CPPFLAGS" +CFLAGS="$CFLAGS $UAE_CFLAGS $GUI_CFLAGS $GFX_CFLAGS $SND_CFLAGS $JOY_CFLAGS" + +AC_CONFIG_LINKS(src/target.h:src/targets/$TARGETDEP) +AC_CONFIG_LINKS(src/machdep:src/$MACHDEP) +AC_CONFIG_LINKS(src/md-fpp.h:src/include/$MDFPP_H) +AC_CONFIG_LINKS(src/osdep:src/$OSDEP) +AC_CONFIG_LINKS(src/gfxdep:src/$GFX_DEP) +AC_CONFIG_LINKS(src/sounddep:src/$SND_DEP) +AC_CONFIG_LINKS(src/threaddep:src/$THREADDEP) +AC_CONFIG_LINKS(src/joydep:src/$JOY_DEP) +AC_CONFIG_LINKS(src/guidep:src/$GUI_DEP) + +AC_CONFIG_FILES([Makefile + src/Makefile + src/dms/Makefile + src/caps/Makefile + src/md-generic/Makefile + src/md-i386-gcc/Makefile + src/md-ppc-gcc/Makefile + src/md-ppc/Makefile + src/md-68k/Makefile + src/md-amd64-gcc/Makefile + src/od-generic/Makefile + src/od-linux/Makefile + src/od-amiga/Makefile + src/od-beos/Makefile + src/od-macosx/Makefile + src/od-macosx/Info.plist + src/od-win32/Makefile + src/td-none/Makefile + src/td-amigaos/Makefile + src/td-beos/Makefile + src/td-posix/Makefile + src/td-sdl/Makefile + src/td-win32/Makefile + src/gfx-amigaos/Makefile + src/gfx-beos/Makefile + src/gfx-x11/Makefile + src/gfx-sdl/Makefile + src/gfx-curses/Makefile + src/gfx-svga/Makefile + src/sd-alsa/Makefile + src/sd-amigaos/Makefile + src/sd-beos/Makefile + src/sd-none/Makefile + src/sd-sdl/Makefile + src/sd-solaris/Makefile + src/sd-uss/Makefile + src/jd-none/Makefile + src/jd-amigainput/Makefile + src/jd-amigaos/Makefile + src/jd-beos/Makefile + src/jd-linuxold/Makefile + src/jd-sdl/Makefile + src/gui-none/Makefile + src/gui-beos/Makefile + src/gui-cocoa/Makefile + src/gui-gtk/Makefile + src/gui-muirexx/Makefile + src/keymap/Makefile + src/test/Makefile +]) + +AM_CONDITIONAL(TARGET_BIGENDIAN, test x$ac_cv_c_bigendian = xyes) +AM_CONDITIONAL(TARGET_BEOS, test x$OSDEP = xod-beos) +AM_CONDITIONAL(TARGET_WIN32, test x$OSDEP = xod-win32) +AM_CONDITIONAL(BUILD_MACOSX_BUNDLE, test x$OSDEP = xod-macosx) + +AC_SUBST(ac_cv_c_inline) +AC_SUBST(WRCPRG) +AC_SUBST(NO_SCHED_CFLAGS) +AC_SUBST(GENCPUOPTS) +AC_SUBST(TARGET) +AC_SUBST(MACHDEP) +AC_SUBST(OSDEP) +AC_SUBST(THREADDEP) +AC_SUBST(GFX_DEP) +AC_SUBST(SND_DEP) +AC_SUBST(JOY_DEP) +AC_SUBST(GUI_DEP) +AC_SUBST(EXTRAOBJS) +AC_SUBST(CPUOBJS) +AC_SUBST(JITOBJS) +AC_SUBST(RESOBJS) +AC_SUBST(ASMOBJS) +AC_SUBST(SCSIOBJS) +AC_SUBST(CDOBJS) +AC_SUBST(DEBUGOBJS) +AC_SUBST(FILESYSOBJS) +AC_SUBST(BSDSOCKOBJS) +AC_SUBST(UAE_RSRCFILE) +AC_SUBST(SET_MAKE) +AC_SUBST(MATHLIB) +AC_SUBST(top_srcdir) + +dnl If we're not cross-compiling then, the config script in src/tools +dnl can be called by config.status as normal +dnl +if [[ "x$cross_compiling" != "xyes" ]]; then + AC_CONFIG_SUBDIRS(src/tools) +fi + +AC_OUTPUT + +dnl However, if we are cross-compiling, then we need to call +dnl configure in src/tools manually ourselves. This is because +dnl autoconf currently has no support for building host tools +dnl when cross-compiling. Okay. This is a hack. But it works. Can +dnl anybody think of a better way of doing this? +dnl +if [[ "x$cross_compiling" = "xyes" ]]; then + export CC=$CC_FOR_BUILD + export CFLAGS=$CFLAGS_FOR_BUILD + export LDFLAGS=$LDFLAGS_FOR_BUILD + export LIBS=$LIBS_FOR_BUILD + mkdir -p src/tools + cd src/tools && ../../"$srcdir"/src/tools/configure --cache-file=/dev/null --host=$build --target=$host +fi diff --git a/depcomp b/depcomp new file mode 100755 index 0000000..edb5d38 --- /dev/null +++ b/depcomp @@ -0,0 +1,479 @@ +#! /bin/sh + +# depcomp - compile a program generating dependencies as side-effects +# Copyright 1999, 2000, 2003 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi +# `libtool' can also be set to `yes' or `no'. + +if test -z "$depfile"; then + base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` + dir=`echo "$object" | sed 's,/.*$,/,'` + if test "$dir" = "$object"; then + dir= + fi + # FIXME: should be _deps on DOS. + depfile="$dir.deps/$base" +fi + +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` + tmpdepfile="$stripped.u" + if test "$libtool" = yes; then + "$@" -Wc,-M + else + "$@" -M + fi + stat=$? + + if test -f "$tmpdepfile"; then : + else + stripped=`echo "$stripped" | sed 's,^.*/,,'` + tmpdepfile="$stripped.u" + fi + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + outname="$stripped.o" + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + tmpdepfile1="$dir.libs/$base.lo.d" + tmpdepfile2="$dir.libs/$base.d" + "$@" -Wc,-MD + else + tmpdepfile1="$dir$base.o.d" + tmpdepfile2="$dir$base.d" + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + if test -f "$tmpdepfile1"; then + tmpdepfile="$tmpdepfile1" + else + tmpdepfile="$tmpdepfile2" + fi + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no + for arg in "$@"; do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix="`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + "$@" || exit $? + IFS=" " + for arg + do + case "$arg" in + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 diff --git a/docs/bsdsocket.txt b/docs/bsdsocket.txt new file mode 100644 index 0000000..fd820d0 --- /dev/null +++ b/docs/bsdsocket.txt @@ -0,0 +1,33 @@ +Networking +========== + +The Amiga environment running within UAE may share the host machine's +network access via an emulation of the bsdsocket.library (this library +provides the standard Amiga networking API). This isn't supported on +all target platforms yet, but it should work on Linux, Unix and +Mac OS X. + +The emulation of the bsdsocket.library API is not complete, but should +be sufficient to allow you to use most popular AmigaOS network +clients, such as web browsers and mail readers. + +To enable the bsdsocket.library emulation (assuming you are using a +version of E-UAE with this feature compiled in), add the option + +bsdsocket_emu=true + +to your config file. + +Note that you do not need to install any real Amiga network stack - such +as AmiTCP or Miami - to be able to use the bsdsocket emulation. + +Also note that when using the bsdsocket.library emulation that your +AmigaOS environment will use the same IP address as the host platform. +This may limit the types of networking software you can run in the +emulated Amiga environment. For example, Amiga software will not be +able to bind to ports already in use by host software, and your host +operating system may impose access controls on certain ranges of ports. + +Older versions of E-UAE required that a bsdsocket.library wrapper file +be installed somewhere in the LIBS: path in your Amiga environment. +This is no longer the case, and this file should now be removed. diff --git a/docs/cmd-line.txt b/docs/cmd-line.txt new file mode 100644 index 0000000..c6475b6 --- /dev/null +++ b/docs/cmd-line.txt @@ -0,0 +1,196 @@ +Command line options for E-UAE +============================== + +E-UAE supports the following command-line options. Note that, where +applicable, these will over-ride any similar options specified in the +default configuration file. + +In the following, should be substituted with an appropriate file path +and with an integer. + +This document (like the rest of the documentation) is a work-in-progress. + + +-h + Displays summary of configuration options. + + +-f + Load the configuration file specified by . See configuration.txt for + more information about configuration files. For example: + + -f ~/my_uae_configs/a1200.uaerc + + +-s