dopewars-1.6.2/000755 000765 000024 00000000000 14256243623 013262 5ustar00benstaff000000 000000 dopewars-1.6.2/configure.ac000644 000765 000024 00000037237 14256242765 015572 0ustar00benstaff000000 000000 dnl Process this file with autoconf to produce a configure script. AC_INIT([dopewars], [1.6.2]) AC_CONFIG_SRCDIR([src/dopewars.c]) AC_CONFIG_AUX_DIR(auxbuild) AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_TARGET AC_USE_SYSTEM_EXTENSIONS dnl Initialize automake dnl 'foreign' because we have README.md instead of README AM_INIT_AUTOMAKE([foreign]) dnl Write configuration defines into config.h AM_CONFIG_HEADER([src/config.h]) dnl We need this for the Darwin test, plus gettext uses it anyway AC_CANONICAL_HOST dnl Checks for programs. AC_PROG_CC AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LIBTOOL dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h stdlib.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_HEADER_TIME AC_STRUCT_TM dnl Fix Apple's stupid C preprocessor case "$host_os" in darwin*) CPPFLAGS="$CPPFLAGS -no-cpp-precomp" esac dnl Process client options AC_ARG_ENABLE(gui-client, [ --enable-gui-client include graphical client (GTK+/Win32)], [ GUI_CLIENT="$enableval" ],[ GUI_CLIENT="probe" ]) AC_ARG_ENABLE(curses-client, [ --enable-curses-client include curses client], [ CURSES_CLIENT="$enableval" ],[ CURSES_CLIENT="probe" ]) AC_ARG_ENABLE(gui-server, [ --enable-gui-server use a simple GTK+/Win32 GUI for the server], [ GUI_SERVER="$enableval" ],[ GUI_SERVER="probe" ]) AC_ARG_ENABLE(gtk4, [ --enable-gtk4 use GTK 4 if available (experimental)], [ USE_GTK4="$enableval" ],[ USE_GTK4="no" ]) AC_ARG_ENABLE(gtk3, [ --disable-gtk3 use GTK+ 2.x, even if 3.x is found], [ USE_GTK3="$enableval" ],[ USE_GTK3="yes" ]) AC_ARG_WITH(esd, [ --without-esd do not support ESD sound output], [ USE_ESD="$withval" ], [ USE_ESD="probe" ]) AC_ARG_WITH(sdl, [ --without-sdl do not support SDL sound output], [ USE_SDL="$withval" ], [ USE_SDL="probe" ]) if test "$host_vendor" = "apple" ; then APPLE=yes AC_DEFINE(APPLE, 1, [Are we building on an Apple Mac?]) default_cocoa="yes" else APPLE=no default_cocoa="no" fi AM_CONDITIONAL(APPLE, test "$APPLE" = "yes") AC_ARG_WITH(cocoa, [ --without-cocoa do not support Cocoa (Mac) sound output], [ USE_COCOA="$withval" ], [ USE_COCOA="${default_cocoa}" ]) ESD=no SDL=no COCOA=no dnl Test for Cygwin environment AC_CYGWIN dnl Let the user override this with the --enable-nativewin32 option AC_ARG_ENABLE(nativewin32, [ --enable-nativewin32 build a native Win32 binary under Cygwin], [ CYGWIN="$enableval" ]) if test "$CYGWIN" = "yes" ; then AC_MSG_RESULT([Configuring for native Win32 binary under Cygwin]) AC_DEFINE(CYGWIN, 1, [Define if building under the Cygwin environment]) dnl Otherwise we get the error dnl 'conditional "am__fastdepOBJC" was never defined' am__fastdepOBJC_TRUE='#' am__fastdepOBJC_FALSE= AC_CHECK_TOOL([WINDRES], [windres], [windres]) dnl This flag allows linking with MSVC-generated DLLs. -fnative-struct was dnl used by gcc 2, and -mms-bitfields by gcc 3, so it is tested for here. bkp_CFLAGS="$CFLAGS" AC_MSG_CHECKING(for compiler MSVC compatibility flag) CFLAGS="$CFLAGS -mms-bitfields" AC_COMPILE_IFELSE([ AC_LANG_PROGRAM() ], [ mscompat="-mms-bitfields" ], [ mscompat="-fnative-struct" ]) AC_MSG_RESULT($mscompat) CFLAGS="$bkp_CFLAGS" dnl If using older Cygwin -mno-cygwin is included in CPPFLAGS so the dnl right headers are detected (in /usr/include/mingw/ rather than dnl /usr/include) later on - e.g. sys/param.h isn't in mingw. bkp_CFLAGS="$CFLAGS" AC_MSG_CHECKING(for no-Cygwin flag) CFLAGS="$CFLAGS -no-cygwin" AC_COMPILE_IFELSE([ AC_LANG_PROGRAM() ], [ nocyg="-no-cygwin" ], [ nocyg="" ]) AC_MSG_RESULT($nocyg) CFLAGS="$bkp_CFLAGS" dnl Libraries and flags CFLAGS="$CFLAGS -mwindows $mscompat $nocyg" CPPFLAGS="$CPPFLAGS $nocyg" LIBS="$LIBS -lwsock32 -lcomctl32 -luxtheme -lmpr" LDFLAGS="$LDFLAGS $nocyg" AM_PATH_GLIB_2_0(2.0.0, , [AC_MSG_ERROR(GLib is required)]) dnl Find libcurl for metaserver support dnl 7.17.0 or later is needed as prior versions did not copy input strings LIBCURL_CHECK_CONFIG(7.17.0) dnl We need to compile and then link in the Windows resources WNDRES="dopewars.res" AC_SUBST(WNDRES) dnl Add support for the Windows multimedia system SOUND_LIBS="$SOUND_LIBS -lwinmm" PLUGOBJS="$PLUGOBJS plugins/sound_winmm.o" AC_DEFINE(HAVE_WINMM, 1, [Do we have the Windows multimedia system?]) dnl Use graphical server by default if test "$GUI_SERVER" = "probe"; then GUI_SERVER="yes" fi dnl Read high score files, docs and locale files from current directory datadir="." localstatedir="." else AC_MSG_RESULT([Configuring for Unix binary]) dnl On true Unix systems, test for valid curses-like libraries if test "$CURSES_CLIENT" != "no" ; then AC_CHECK_LIB(ncurses,newterm) if test "$ac_cv_lib_ncurses_newterm" = "no" ; then AC_CHECK_LIB(curses,newterm) if test "$ac_cv_lib_curses_newterm" = "no" ; then AC_CHECK_LIB(cur_colr,newterm) if test "$ac_cv_lib_cur_colr_newterm" = "no" ; then if test "$CURSES_CLIENT" = "yes" ; then AC_MSG_ERROR(Cannot find any curses-type library) else AC_MSG_WARN(Cannot find any curses-type library) CURSES_CLIENT="no" fi fi fi fi fi gtk2_found="probe" if test "$GUI_CLIENT" != "no" -o "$GUI_SERVER" != "no"; then PKG_PROG_PKG_CONFIG() gtk4_found="no" if test "$USE_GTK4" = "yes" ; then PKG_CHECK_MODULES([GTK], [gtk4], gtk4_found="yes", gtk4_found="no") fi if test "$gtk4_found" = "no" ; then gtk3_found="no" if test "$USE_GTK3" = "yes" ; then PKG_CHECK_MODULES([GTK], [gtk+-3.0], gtk3_found="yes", gtk3_found="no") fi if test "$gtk3_found" = "no" ; then AM_PATH_GTK_2_0(2.0.0,gtk2_found="yes",gtk2_found="no") if test "$gtk2_found" = "no" ; then if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then AC_MSG_ERROR(Cannot find GTK+) else AC_MSG_WARN(Cannot find GTK+; not building GUI client or server) GUI_CLIENT="no" GUI_SERVER="no" fi fi fi fi fi dnl We NEED glib AM_PATH_GLIB_2_0(2.0.0, , [AC_MSG_ERROR(GLib is required)]) dnl Find libcurl for metaserver support dnl 7.17.0 or later is needed as prior versions did not copy input strings LIBCURL_CHECK_CONFIG(7.17.0) dnl Add esound support if available if test "$USE_ESD" != "no"; then AM_PATH_ESD(0.0.20, ESD=yes) if test "$ESD" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $ESD_CFLAGS" SOUND_LIBS="$SOUND_LIBS $ESD_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_esd.o" AC_SUBST(ESD_LIBS) AC_DEFINE(HAVE_ESD, 1, [Do we have the ESD sound library?]) elif test "$USE_ESD" = "yes"; then AC_MSG_ERROR(Cannot find ESD library) fi fi dnl Add SDL_mixer sound support if available if test "$USE_SDL" != "no"; then SDL_ALL=no SDL2=yes AM_PATH_SDL2(2.0.0, SDL=yes) if test "$SDL" != "yes"; then SDL2=no AM_PATH_SDL(1.0.0, SDL=yes) fi if test "$SDL" = "yes"; then headers=no libs=no ORIG_CPPFLAGS="$CPPFLAGS" ORIG_LDFLAGS="$LDFLAGS" CPPFLAGS="$ORIG_CPPFLAGS $SDL_CFLAGS" LDLAGS="$ORIG_LDFLAGS $SDL_LIBS" AC_CHECK_HEADER(SDL_mixer.h, headers=yes) if test "$SDL2" = "yes"; then AC_CHECK_LIB(SDL2_mixer, Mix_OpenAudio, libs=yes) else AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, libs=yes) fi CPPFLAGS="$ORIG_CPPFLAGS" LDFLAGS="$ORIG_LDFLAGS" if test "$libs" = "yes"; then if test "$headers" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS" if test "$SDL2" = "yes"; then SDL_LIBS="$SDL_LIBS -lSDL2_mixer" else SDL_LIBS="$SDL_LIBS -lSDL_mixer" fi SOUND_LIBS="$SOUND_LIBS $SDL_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_sdl.o" AC_SUBST(SDL_LIBS) AC_DEFINE(HAVE_SDL_MIXER, 1, [Do we have the SDL_mixer sound library?]) SDL_ALL=yes if test "$APPLE" = "yes"; then SDL_LIBS="$SDL_LIBS -module" fi fi fi fi if test "$USE_SDL" = "yes" -a "$SDL_ALL" = "no"; then AC_MSG_ERROR(Cannot find SDL library) fi fi dnl Add Cocoa (Mac) sound support if on Mac and so requested if test "$USE_COCOA" != "no"; then AC_PROG_OBJC COCOA="yes" PLUGOBJS="$PLUGOBJS plugins/sound_cocoa.o" AC_DEFINE(HAVE_COCOA, 1, [Do we have the Cocoa sound library?]) else dnl Otherwise we get the error dnl 'conditional "am__fastdepOBJC" was never defined' am__fastdepOBJC_TRUE='#' am__fastdepOBJC_FALSE= fi dnl Use console server by default if test "$GUI_SERVER" = "probe"; then GUI_SERVER="no" fi dnl Some systems use int rather than socklen_t as an argument to getsockopt AC_MSG_CHECKING([for socklen_t data type]) AC_TRY_COMPILE([#include #include ],[socklen_t val], [AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_SOCKLEN_T, 1, [Do we have the socklen_t data type?])], [AC_MSG_RESULT([no])]) fi AM_CONDITIONAL(ESD, test "$ESD" = "yes") AM_CONDITIONAL(SDL, test "$SDL" = "yes") AM_CONDITIONAL(COCOA, test "$COCOA" = "yes") dnl If probing was unsuccessful, these will be set to "no"; therefore, dnl if still set to "probe" then everything worked, so set to "yes" if test "$GUI_CLIENT" = "probe"; then GUI_CLIENT="yes" fi if test "$CURSES_CLIENT" = "probe"; then CURSES_CLIENT="yes" fi dnl Do i18n stuff ALL_LINGUAS="de pl pt_BR fr fr_CA nn es es_ES en_GB" AM_GNU_GETTEXT([external]) if test "$gt_cv_func_gettext_libintl" = "yes"; then LIBS="-lintl $LIBS" fi if test "$GUI_CLIENT" = "yes" ; then AC_DEFINE(GUI_CLIENT, 1, [Use the graphical client?]) fi if test "$CURSES_CLIENT" = "yes" ; then AC_DEFINE(CURSES_CLIENT, 1, [Use the (n)curses client?]) fi if test "$GUI_SERVER" = "yes" ; then AC_DEFINE(GUI_SERVER, 1, [Use a graphical server?]) fi dnl Can we use a long long datatype for price_t ? AC_CHECK_SIZEOF(long long) dnl Checks for library functions. AC_FUNC_MEMCMP AC_FUNC_SETVBUF_REVERSED AC_FUNC_STRFTIME AC_CHECK_FUNCS(strdup strstr getopt getopt_long fork issetugid localtime_r gmtime_r) dnl Enable plugins only if we can find the dlopen function, and dnl the user does not disable them with --disable-plugins or --disable-shared AC_ARG_ENABLE(plugins, [ --enable-plugins use dynamically-loaded sound modules], [ plugins="$enableval" ],[ plugins="probe" ]) if test "$enable_shared" = "no" ; then plugins="no" fi if test "$plugins" != "no" ; then AC_SEARCH_LIBS(dlopen, dl) AC_CHECK_FUNC(dlopen, [plugins="yes"], [plugins="no"]) fi if test "$plugins" = "yes" ; then AC_DEFINE(PLUGINS, 1, [Define if using dynamically-loaded sound modules]) plugindir="${libdir}/dopewars" AC_SUBST(plugindir) DP_EXPAND_DIR(PLUGINDIR, '${plugindir}') AC_DEFINE_UNQUOTED(PLUGINDIR, "$PLUGINDIR", [The directory containing the plugins]) PLUGOBJS="" else PLUGLIBS="$SOUND_LIBS" AC_SUBST(PLUGLIBS) fi AC_SUBST(PLUGOBJS) AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") dnl Enable networking by default under Win32, but on Unix systems dnl make it dependent on the availability of select and socket network="no" if test "$CYGWIN" = "yes" ; then network="yes" else dnl Check for socket and select even if networking gets manually dnl disabled below, since select is used if available for dnl millisecond sleeping AC_SEARCH_LIBS(socket,socket network) AC_SEARCH_LIBS(gethostbyname,nsl socket) AC_CHECK_FUNCS(socket gethostbyname select) if test "$ac_cv_func_select" = "yes" ; then if test "$ac_cv_func_socket" = "yes" ; then if test "$ac_cv_func_gethostbyname" = "yes" ; then network="yes" fi fi fi fi dnl Let the user override this with the --enable-networking option AC_ARG_ENABLE(networking, [ --enable-networking dopewars will use TCP/IP to connect to servers], [ network="$enableval" ]) dnl Inform the user of the status of networking if test "$network" = "yes" ; then AC_DEFINE(NETWORKING, 1, [Define if dopewars should use TCP/IP networking to connect to servers]) fi AC_ARG_ENABLE(strict, [ --enable-strict if using gcc, enable extra warnings above -Wall], [ extrawarnings="$enableval" ]) dnl Enable full warnings if using gcc if test -n "$GCC"; then if test "$extrawarnings" = "yes" ; then CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wsign-compare -Waggregate-return -Wredundant-decls -Wnested-externs -Wunused" else CFLAGS="$CFLAGS -Wall" fi fi dnl Tell dopewars where the high scores, docs and locale files are DP_EXPAND_DIR(DPSCOREDIR, '${localstatedir}') AC_DEFINE_UNQUOTED(DPSCOREDIR, "$DPSCOREDIR", [The directory containing the high score file]) AC_SUBST(DPSCOREDIR) DP_EXPAND_DIR(DPDATADIR, '${datadir}') AC_DEFINE_UNQUOTED(DPDATADIR, "$DPDATADIR", [The directory containing the sounds]) AC_SUBST(DPDATADIR) DP_EXPAND_DIR(DPDOCDIR, '${docdir}') AC_DEFINE_UNQUOTED(DPDOCDIR, "$DPDOCDIR", [The directory containing the docs]) localedir=${datadir}/locale AC_SUBST(localedir) DP_EXPAND_DIR(LOCALEDIR, '${localedir}') AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [The directory containing locale files]) dnl Add in the required clients AM_CONDITIONAL(GUI_CLIENT, test "$GUI_CLIENT" = "yes") if test "$GUI_CLIENT" = "yes" ; then GUILIB="gui_client/libguiclient.a" AC_SUBST(GUILIB) fi AM_CONDITIONAL(CURSES_CLIENT, test "$CURSES_CLIENT" = "yes") if test "$CURSES_CLIENT" = "yes" ; then CURSESLIB="curses_client/libcursesclient.a" AC_SUBST(CURSESLIB) fi dnl Compile in the gtkport stuff for any kind of GUI AM_CONDITIONAL(GTKPORT, test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes") if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then GTKPORTLIB="gtkport/libgtkport.a" AC_SUBST(GTKPORTLIB) fi dnl Compile in the cursesport stuff for the curses client only AM_CONDITIONAL(CURSESPORT, test "$CURSES_CLIENT" = "yes") if test "$CURSES_CLIENT" = "yes" ; then CURSESPORTLIB="cursesport/libcursesport.a" AC_SUBST(CURSESPORTLIB) fi AC_SUBST(SOUND_CFLAGS) AC_SUBST(SOUND_LIBS) AC_OUTPUT([ Makefile src/Makefile src/gui_client/Makefile src/curses_client/Makefile src/gtkport/Makefile src/cursesport/Makefile src/plugins/Makefile sounds/Makefile sounds/19.5degs/Makefile doc/Makefile doc/help/Makefile rpm/dopewars.spec doc/dopewars.6 win32/install.nsi po/Makefile.in], []) echo echo "dopewars has been configured as follows:" echo if test "$CYGWIN" = "yes" ; then echo "Building native Windows (Win32) version" else echo "Building Unix version" fi echo echo "CLIENTS" if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then echo " - No clients will be compiled (binary will be server/AI only)" else if test "$CURSES_CLIENT" = "yes" ; then echo " - Text-mode (curses) client" fi if test "$GUI_CLIENT" = "yes" ; then echo " - Graphical (GTK+ or Win32) client" fi fi echo if test "$network" = "yes" ; then echo "TCP/IP networking support enabled for multi-player games" echo echo "SERVER" if test "$GUI_SERVER" = "yes" ; then echo " - Graphical server" else echo " - Text-mode server" fi else echo "Networking support DISABLED; single-player mode only" fi echo dopewars-1.6.2/INSTALL000644 000765 000024 00000026474 14256000064 014316 0ustar00benstaff000000 000000 PREREQUISITES ============= dopewars _requires_ the GLib library for compilation, even when not using the GTK+ client. Other libraries may be required for additional features:- Unix/Linux: - Get GLib from http://www.gtk.org/ - For the GTK+ client, GTK+ libraries are needed, also from http://www.gtk.org/ (GTK+2 and GTK+3 are supported). To actually compile dopewars, you'll probably need your distribution's "gtk-devel" package. - For the curses client, curses, ncurses or libcurses_color libraries and headers are required. Windows: - dopewars can be built via cross-compilation using MinGW. See the win32 directory for more information. INSTALLATION ============ dopewars installation should require no more than the following:- ./configure make make install (To build a version from git, you must have the automake and autoconf packages installed. Run ./autogen.sh instead of ./configure - this generates the Makefiles and configure script. You will also need the gettext package if you want to enable NLS support, in order to generate the necessary .po files.) The configure script checks to see if your system is a "normal" Unix or the cross-compile for Windows (MinGW) environment. For a smaller binary, you may wish to build a "stripped" binary by specifying the -s option in LDFLAGS. In a Bourne-compatible shell, this can be achieved with a command similar to the following:- LDFLAGS="-s" ./configure The dopewars high score file is written as /usr/local/var/dopewars.sco on Unix systems or ./dopewars.sco on Win32 systems by default. On Unix systems, translations, documentation, sounds and graphics are installed in the locale, doc, dopewars and pixmaps directories respectively under /usr/local/share. (On Windows systems, these directories are under the current directory.) On Unix systems, you can move the score file with the --localstatedir flag to configure, the sounds with the --datadir flag, and the documentation with the --docdir flag. (On Win32 systems, these flags are ignored.) The dopewars binary can also be moved from /usr/local/bin/dopewars with the --bindir flag. For example:- ./configure --bindir=/usr/bin --localstatedir=/var/lib/games will configure the system to write the dopewars binary as /usr/bin/dopewars and the high score as /var/lib/games/dopewars.sco Other options to ./configure include:- --enable-networking: Compile dopewars with support for running as a server, and/or to connect to existing servers over a TCP/IP network. (Without networking, dopewars will only be useable in single-player mode.) If this option is not specified, the configure script will enable networking only if it believes your system has the necessary support functions (select and socket). You can also explicitly disable networking with --enable-networking=no or --disable-networking --enable-gui-client: Compile a graphical dopewars client, using GTK+ on Unix systems and the standard libaries under Windows. If unspecified, this is enabled only if your system has the necessary libraries (e.g. GTK+) installed. --enable-curses-client: Compile a text-mode client, using ncurses or similar on Unix systems and the standard libraries under Windows. If unspecified, this is enabled only if you have ncurses (or similar) installed. --enable-gui-server: Use a (very basic) graphical interface to the dopewars server. If not specified, this is enabled under Windows and disabled under Unix (where a simple text-mode server is used instead). --enable-strict If using gcc to compile dopewars (recommended) then this turns on extra warning messages (useful for debugging, etc.) Unfortunately a lot of these warnings can be safely ignored, so this is not the default. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. dopewars-1.6.2/configure000755 000765 000024 00002560041 14256243571 015203 0ustar00benstaff000000 000000 #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for dopewars 1.6.2. # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="as_nop=: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$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 || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='dopewars' PACKAGE_TARNAME='dopewars' PACKAGE_VERSION='1.6.2' PACKAGE_STRING='dopewars 1.6.2' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="src/dopewars.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= gt_needs= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS SOUND_LIBS SOUND_CFLAGS CURSESPORTLIB CURSESPORT_FALSE CURSESPORT_TRUE GTKPORTLIB GTKPORT_FALSE GTKPORT_TRUE CURSESLIB CURSES_CLIENT_FALSE CURSES_CLIENT_TRUE GUILIB GUI_CLIENT_FALSE GUI_CLIENT_TRUE DPDATADIR DPSCOREDIR PLUGINS_FALSE PLUGINS_TRUE PLUGOBJS PLUGLIBS plugindir LIBOBJS POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS CPP XGETTEXT_EXTRA_OPTIONS MSGMERGE_FOR_MSGFMT_OPTION MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS COCOA_FALSE COCOA_TRUE SDL_FALSE SDL_TRUE ESD_FALSE ESD_TRUE am__fastdepOBJC_FALSE am__fastdepOBJC_TRUE OBJCDEPMODE ac_ct_OBJC OBJCFLAGS OBJC SDL_CONFIG SDL2_CONFIG SDL_LIBS SDL_CFLAGS ESD_LIBS ESD_CFLAGS ESD_CONFIG GTK_LIBS GTK_CFLAGS WNDRES LIBCURL LIBCURL_CPPFLAGS _libcurl_config GLIB_COMPILE_RESOURCES GLIB_MKENUMS GOBJECT_QUERY GLIB_GENMARSHAL GLIB_LIBS GLIB_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG WINDRES APPLE_FALSE APPLE_TRUE OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_silent_rules enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock enable_gui_client enable_curses_client enable_gui_server enable_gtk4 enable_gtk3 with_esd with_sdl with_cocoa enable_nativewin32 enable_glibtest with_libcurl enable_gtktest with_esd_prefix with_esd_exec_prefix enable_esdtest with_sdl_prefix with_sdl_exec_prefix enable_sdltest enable_nls enable_rpath with_libiconv_prefix with_libintl_prefix enable_plugins enable_networking enable_strict ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS GLIB_COMPILE_RESOURCES GTK_CFLAGS GTK_LIBS SDL_CFLAGS SDL_LIBS OBJC OBJCFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures dopewars 1.6.2 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] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/dopewars] --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 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 dopewars 1.6.2:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-gui-client include graphical client (GTK+/Win32) --enable-curses-client include curses client --enable-gui-server use a simple GTK+/Win32 GUI for the server --enable-gtk4 use GTK 4 if available (experimental) --disable-gtk3 use GTK+ 2.x, even if 3.x is found --enable-nativewin32 build a native Win32 binary under Cygwin --disable-glibtest do not try to compile and run a test GLIB program --disable-gtktest do not try to compile and run a test GTK+ program --disable-esdtest Do not try to compile and run a test ESD program --disable-sdltest Do not try to compile and run a test SDL program --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --enable-plugins use dynamically-loaded sound modules --enable-networking dopewars will use TCP/IP to connect to servers --enable-strict if using gcc, enable extra warnings above -Wall Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --without-esd do not support ESD sound output --without-sdl do not support SDL sound output --without-cocoa do not support Cocoa (Mac) sound output --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers in PREFIX/include --with-esd-prefix=PFX Prefix where ESD is installed (optional) --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) --with-sdl-prefix=PFX Prefix where SDL is installed (optional) --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config GLIB_GENMARSHAL value of glib_genmarshal for glib-2.0, overriding pkg-config GOBJECT_QUERY value of gobject_query for glib-2.0, overriding pkg-config GLIB_MKENUMS value of glib_mkenums for glib-2.0, overriding pkg-config GLIB_COMPILE_RESOURCES value of glib_compile_resources for gio-2.0, overriding pkg-config GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config SDL_CFLAGS C compiler flags for SDL, overriding pkg-config SDL_LIBS linker flags for SDL, overriding pkg-config OBJC Objective C compiler command OBJCFLAGS Objective C compiler flags CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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 configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. 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 printf "%s\n" "$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 dopewars configure 1.6.2 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. */ #include #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_try_run LINENO # ---------------------- # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_objc_try_compile LINENO # ----------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_objc_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_objc_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_objc_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid; break else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=$ac_mid; break else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else $as_nop ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval (void) { return $2; } static unsigned long int ulongval (void) { return $2; } #include #include int main (void) { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : echo >>conftest.val; read $3 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 dopewars $as_me 1.6.2, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "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=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*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 do not provoke an error unfortunately, instead are silently treated as an "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 is necessary to write \x00 == 0 to get something that is 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 **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" gt_needs="$gt_needs " # Auxiliary files required by this configure script. ac_aux_files="config.rpath ltmain.sh missing install-sh compile config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/auxbuild" # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 printf %s "checking target system type... " >&6; } if test ${ac_cv_target+y} then : printf %s "(cached) " >&6 else $as_nop 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` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 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}- # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && 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 $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; 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 ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" 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_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes else $as_nop ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include mbstate_t x; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 #include mbstate_t x; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h if test $ac_cv_header_minix_config_h = yes then : MINIX=yes printf "%s\n" "#define _MINIX 1" >>confdefs.h printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h else $as_nop MINIX= fi if test $ac_cv_safe_to_define___extensions__ = yes then : printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h fi if test $ac_cv_should_define__xopen_source = yes then : printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h fi am__api_version='1.16' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. case $as_dir in #(( ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test ${ac_cv_path_install+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$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' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # 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 ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file 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 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". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file 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 $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ 'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P 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. MKDIR_P="$ac_install_sh -d" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$MKDIR_P" >&6; } 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi 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='dopewars' VERSION='1.6.2' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # 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"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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". rm -rf conftest.dir 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 am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac 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 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # 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. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj 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 # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$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 # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_headers="$ac_config_headers src/config.h" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; 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 ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 printf %s "checking for library containing strerror... " >&6; } if test ${ac_cv_search_strerror+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char strerror (); int main (void) { 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 if ac_fn_c_try_link "$LINENO" then : ac_cv_search_strerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_strerror+y} then : break fi done if test ${ac_cv_search_strerror+y} then : else $as_nop ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 printf "%s\n" "printf" >&6; } ;; print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 printf "%s\n" "print -r" >&6; } ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 printf "%s\n" "cat" >&6; } ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_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 do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in sed gsed do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_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_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 else $as_nop if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in fgrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 printf "%s\n" "$DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 else $as_nop i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 printf %s "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 printf "%s\n" "$xsi_shell" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 printf %s "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 printf "%s\n" "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 printf %s "checking how to convert $build file names to toolchain format... " >&6; } if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_reload_flag='-r' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 printf %s "checking command to parse $NM output from $compiler object... " >&6; } if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 else $as_nop # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test ${with_sysroot+y} then : withval=$with_sysroot; else $as_nop with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 printf "%s\n" "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 printf "%s\n" "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test ${enable_libtool_lock+y} then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 else $as_nop 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes else $as_nop lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext 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 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 printf "%s\n" "$MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 printf "%s\n" "$DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 printf "%s\n" "$NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 printf "%s\n" "$ac_ct_NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 printf "%s\n" "$LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 printf "%s\n" "$ac_ct_LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 printf "%s\n" "$OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 printf "%s\n" "$ac_ct_OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 printf "%s\n" "$OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 printf "%s\n" "$ac_ct_OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes else $as_nop lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes then : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test ${enable_shared+y} then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else $as_nop enable_shared=yes fi # Check whether --enable-static was given. if test ${enable_static+y} then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else $as_nop enable_static=yes fi # Check whether --with-pic was given. if test ${with_pic+y} then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else $as_nop pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test ${enable_fast_install+y} then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else $as_nop enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 else $as_nop rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" 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 # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test "$hard_links" = no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 else $as_nop save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes else $as_nop lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 printf "%s\n" "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 printf "%s\n" "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else $as_nop lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen="shl_load" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char shl_load (); int main (void) { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes else $as_nop ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else $as_nop ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen="dlopen" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes else $as_nop ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dld_link (); int main (void) { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes else $as_nop ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } ;; esac fi # Report which library types will actually be built { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 printf %s "checking if libtool supports shared libraries... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 printf "%s\n" "$can_build_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 printf %s "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 printf "%s\n" "$enable_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 printf "%s\n" "$enable_static" >&6; } 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 CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: # Autoupdate added the next two lines to ensure that your configure # script's behavior did not change. They are probably safe to remove. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if test ${ac_cv_header_sys_wait_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main (void) { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_header_sys_wait_h=yes else $as_nop ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" if test "x$ac_cv_header_fcntl_h" = xyes then : printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" if test "x$ac_cv_header_sys_time_h" = xyes then : printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" if test "x$ac_cv_header_unistd_h" = xyes then : printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes then : printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h fi # Obsolete code to be removed. if test $ac_cv_header_sys_time_h = yes; then printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi # End of obsolete code. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } if test ${ac_cv_struct_tm+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_struct_tm=time.h else $as_nop ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 printf "%s\n" "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h fi case "$host_os" in darwin*) CPPFLAGS="$CPPFLAGS -no-cpp-precomp" esac # Check whether --enable-gui-client was given. if test ${enable_gui_client+y} then : enableval=$enable_gui_client; GUI_CLIENT="$enableval" else $as_nop GUI_CLIENT="probe" fi # Check whether --enable-curses-client was given. if test ${enable_curses_client+y} then : enableval=$enable_curses_client; CURSES_CLIENT="$enableval" else $as_nop CURSES_CLIENT="probe" fi # Check whether --enable-gui-server was given. if test ${enable_gui_server+y} then : enableval=$enable_gui_server; GUI_SERVER="$enableval" else $as_nop GUI_SERVER="probe" fi # Check whether --enable-gtk4 was given. if test ${enable_gtk4+y} then : enableval=$enable_gtk4; USE_GTK4="$enableval" else $as_nop USE_GTK4="no" fi # Check whether --enable-gtk3 was given. if test ${enable_gtk3+y} then : enableval=$enable_gtk3; USE_GTK3="$enableval" else $as_nop USE_GTK3="yes" fi # Check whether --with-esd was given. if test ${with_esd+y} then : withval=$with_esd; USE_ESD="$withval" else $as_nop USE_ESD="probe" fi # Check whether --with-sdl was given. if test ${with_sdl+y} then : withval=$with_sdl; USE_SDL="$withval" else $as_nop USE_SDL="probe" fi if test "$host_vendor" = "apple" ; then APPLE=yes printf "%s\n" "#define APPLE 1" >>confdefs.h default_cocoa="yes" else APPLE=no default_cocoa="no" fi if test "$APPLE" = "yes"; then APPLE_TRUE= APPLE_FALSE='#' else APPLE_TRUE='#' APPLE_FALSE= fi # Check whether --with-cocoa was given. if test ${with_cocoa+y} then : withval=$with_cocoa; USE_COCOA="$withval" else $as_nop USE_COCOA="${default_cocoa}" fi ESD=no SDL=no COCOA=no case $host_os in *cygwin* ) CYGWIN=yes;; * ) CYGWIN=no;; esac # Check whether --enable-nativewin32 was given. if test ${enable_nativewin32+y} then : enableval=$enable_nativewin32; CYGWIN="$enableval" fi if test "$CYGWIN" = "yes" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Configuring for native Win32 binary under Cygwin" >&5 printf "%s\n" "Configuring for native Win32 binary under Cygwin" >&6; } printf "%s\n" "#define CYGWIN 1" >>confdefs.h am__fastdepOBJC_TRUE='#' am__fastdepOBJC_FALSE= if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. set dummy ${ac_tool_prefix}windres; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_WINDRES+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$WINDRES"; then ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_WINDRES="${ac_tool_prefix}windres" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi WINDRES=$ac_cv_prog_WINDRES if test -n "$WINDRES"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 printf "%s\n" "$WINDRES" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_WINDRES"; then ac_ct_WINDRES=$WINDRES # Extract the first word of "windres", so it can be a program name with args. set dummy windres; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_WINDRES+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_WINDRES"; then ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_WINDRES="windres" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES if test -n "$ac_ct_WINDRES"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 printf "%s\n" "$ac_ct_WINDRES" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_WINDRES" = x; then WINDRES="windres" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac WINDRES=$ac_ct_WINDRES fi else WINDRES="$ac_cv_prog_WINDRES" fi bkp_CFLAGS="$CFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler MSVC compatibility flag" >&5 printf %s "checking for compiler MSVC compatibility flag... " >&6; } CFLAGS="$CFLAGS -mms-bitfields" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : mscompat="-mms-bitfields" else $as_nop mscompat="-fnative-struct" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mscompat" >&5 printf "%s\n" "$mscompat" >&6; } CFLAGS="$bkp_CFLAGS" bkp_CFLAGS="$CFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for no-Cygwin flag" >&5 printf %s "checking for no-Cygwin flag... " >&6; } CFLAGS="$CFLAGS -no-cygwin" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : nocyg="-no-cygwin" else $as_nop nocyg="" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nocyg" >&5 printf "%s\n" "$nocyg" >&6; } CFLAGS="$bkp_CFLAGS" CFLAGS="$CFLAGS -mwindows $mscompat $nocyg" CPPFLAGS="$CPPFLAGS $nocyg" LIBS="$LIBS -lwsock32 -lcomctl32 -luxtheme -lmpr" LDFLAGS="$LDFLAGS $nocyg" # Check whether --enable-glibtest was given. if test ${enable_glibtest+y} then : enableval=$enable_glibtest; else $as_nop enable_glibtest=yes fi min_glib_version=2.0.0 pkg_config_args="glib-2.0 >= $min_glib_version" for module in . do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.16 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 printf %s "checking for GLIB... " >&6; } if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$pkg_config_args" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$pkg_config_args" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_config_args" 2>&1` else GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_config_args" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 : elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } : else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } : fi if test -n "$GLIB_GENMARSHAL"; then pkg_cv_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GLIB_GENMARSHAL=$pkg_cv_GLIB_GENMARSHAL if test "x$GLIB_GENMARSHAL" = x"" then : fi if test -n "$GOBJECT_QUERY"; then pkg_cv_GOBJECT_QUERY="$GOBJECT_QUERY" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GOBJECT_QUERY=`$PKG_CONFIG --variable="gobject_query" "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GOBJECT_QUERY=$pkg_cv_GOBJECT_QUERY if test "x$GOBJECT_QUERY" = x"" then : fi if test -n "$GLIB_MKENUMS"; then pkg_cv_GLIB_MKENUMS="$GLIB_MKENUMS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_MKENUMS=`$PKG_CONFIG --variable="glib_mkenums" "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GLIB_MKENUMS=$pkg_cv_GLIB_MKENUMS if test "x$GLIB_MKENUMS" = x"" then : fi if test -n "$GLIB_COMPILE_RESOURCES"; then pkg_cv_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable="glib_compile_resources" "gio-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GLIB_COMPILE_RESOURCES=$pkg_cv_GLIB_COMPILE_RESOURCES if test "x$GLIB_COMPILE_RESOURCES" = x"" then : fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 printf %s "checking for GLIB - version >= $min_glib_version... " >&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 GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes then : echo $ac_n "cross compiling; assumed OK... $ac_c" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { unsigned int major, minor, micro; fclose (fopen ("conf.glibtest", "w")); if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. 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 ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB 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 GLIB, 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 if ac_fn_c_try_run "$LINENO" then : else $as_nop no_glib=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 printf "%s\n" "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } : else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, 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 $as_nop echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" as_fn_error $? "GLib is required" "$LINENO" 5 fi rm -f conf.glibtest # Check whether --with-libcurl was given. if test ${with_libcurl+y} then : withval=$with_libcurl; _libcurl_with=$withval else $as_nop _libcurl_with=7.17.0 fi if test "$_libcurl_with" != "no" ; then 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" _libcurl_try_link=yes if test -d "$_libcurl_with" ; then LIBCURL_CPPFLAGS="-I$withval/include" _libcurl_ldflags="-L$withval/lib" # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path__libcurl_config+y} then : printf %s "(cached) " >&6 else $as_nop case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "$withval/bin" do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 printf "%s\n" "$_libcurl_config" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path__libcurl_config+y} then : printf %s "(cached) " >&6 else $as_nop case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 printf "%s\n" "$_libcurl_config" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test x$_libcurl_config != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 printf %s "checking for the version of libcurl... " >&6; } if test ${libcurl_cv_lib_curl_version+y} then : printf %s "(cached) " >&6 else $as_nop libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; } _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` _libcurl_wanted=`echo 0 | $_libcurl_version_parse` if test $_libcurl_wanted -gt 0 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5 printf %s "checking for libcurl >= version ... " >&6; } if test ${libcurl_cv_lib_version_ok+y} then : printf %s "(cached) " >&6 else $as_nop if test $_libcurl_version -ge $_libcurl_wanted ; then libcurl_cv_lib_version_ok=yes else libcurl_cv_lib_version_ok=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; } fi if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then if test x"$LIBCURL_CPPFLAGS" = "x" ; then LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` fi if test x"$LIBCURL" = "x" ; then LIBCURL=`$_libcurl_config --libs` # This is so silly, but Apple actually has a bug in their # curl-config script. Fixed in Tiger, but there are still # lots of Panther installs around. case "${host}" in powerpc-apple-darwin7*) LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` ;; esac fi # All curl-config scripts support --feature _libcurl_features=`$_libcurl_config --feature` # Is it modern enough to have --protocols? (7.12.4) if test $_libcurl_version -ge 461828 ; then _libcurl_protocols=`$_libcurl_config --protocols` fi else _libcurl_try_link=no fi unset _libcurl_wanted fi if test $_libcurl_try_link = yes ; then # we didn't find curl-config, so let's see if the user-supplied # link line (or failing that, "-lcurl") is enough. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 printf %s "checking whether libcurl is usable... " >&6; } if test ${libcurl_cv_lib_curl_usable+y} then : printf %s "(cached) " >&6 else $as_nop _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBCURL $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { /* Try and use a few common options to force a failure if we are missing symbols or can't link. */ int x; curl_easy_setopt(NULL,CURLOPT_URL,NULL); x=CURL_ERROR_SIZE; x=CURLOPT_WRITEFUNCTION; x=CURLOPT_WRITEDATA; x=CURLOPT_ERRORBUFFER; x=CURLOPT_STDERR; x=CURLOPT_VERBOSE; if (x) {;} ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : libcurl_cv_lib_curl_usable=yes else $as_nop libcurl_cv_lib_curl_usable=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; } if test $libcurl_cv_lib_curl_usable = yes ; then # Does curl_free() exist in this version of libcurl? # If not, fake it with free() _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBS $LIBCURL" ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" if test "x$ac_cv_func_curl_free" = xyes then : else $as_nop printf "%s\n" "#define curl_free free" >>confdefs.h fi CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h for _libcurl_feature in $_libcurl_features ; do cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 _ACEOF eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes done if test "x$_libcurl_protocols" = "x" ; then # We don't have --protocols, so just assume that all # protocols are available _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" if test x$libcurl_feature_SSL = xyes ; then _libcurl_protocols="$_libcurl_protocols HTTPS" # FTPS wasn't standards-compliant until version # 7.11.0 (0x070b00 == 461568) if test $_libcurl_version -ge 461568; then _libcurl_protocols="$_libcurl_protocols FTPS" fi fi # RTSP, IMAP, POP3 and SMTP were added in # 7.20.0 (0x071400 == 463872) if test $_libcurl_version -ge 463872; then _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" fi fi for _libcurl_protocol in $_libcurl_protocols ; do cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 _ACEOF eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes done else unset LIBCURL unset LIBCURL_CPPFLAGS fi fi unset _libcurl_try_link unset _libcurl_version_parse unset _libcurl_config unset _libcurl_feature unset _libcurl_features unset _libcurl_protocol unset _libcurl_protocols unset _libcurl_version unset _libcurl_ldflags fi if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then # This is the IF-NO path : else # This is the IF-YES path : fi unset _libcurl_with WNDRES="dopewars.res" SOUND_LIBS="$SOUND_LIBS -lwinmm" PLUGOBJS="$PLUGOBJS plugins/sound_winmm.o" printf "%s\n" "#define HAVE_WINMM 1" >>confdefs.h if test "$GUI_SERVER" = "probe"; then GUI_SERVER="yes" fi datadir="." localstatedir="." else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Configuring for Unix binary" >&5 printf "%s\n" "Configuring for Unix binary" >&6; } if test "$CURSES_CLIENT" != "no" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newterm in -lncurses" >&5 printf %s "checking for newterm in -lncurses... " >&6; } if test ${ac_cv_lib_ncurses_newterm+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char newterm (); int main (void) { return newterm (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_ncurses_newterm=yes else $as_nop ac_cv_lib_ncurses_newterm=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_newterm" >&5 printf "%s\n" "$ac_cv_lib_ncurses_newterm" >&6; } if test "x$ac_cv_lib_ncurses_newterm" = xyes then : printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h LIBS="-lncurses $LIBS" fi if test "$ac_cv_lib_ncurses_newterm" = "no" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newterm in -lcurses" >&5 printf %s "checking for newterm in -lcurses... " >&6; } if test ${ac_cv_lib_curses_newterm+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char newterm (); int main (void) { return newterm (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_curses_newterm=yes else $as_nop ac_cv_lib_curses_newterm=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_newterm" >&5 printf "%s\n" "$ac_cv_lib_curses_newterm" >&6; } if test "x$ac_cv_lib_curses_newterm" = xyes then : printf "%s\n" "#define HAVE_LIBCURSES 1" >>confdefs.h LIBS="-lcurses $LIBS" fi if test "$ac_cv_lib_curses_newterm" = "no" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newterm in -lcur_colr" >&5 printf %s "checking for newterm in -lcur_colr... " >&6; } if test ${ac_cv_lib_cur_colr_newterm+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcur_colr $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char newterm (); int main (void) { return newterm (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_cur_colr_newterm=yes else $as_nop ac_cv_lib_cur_colr_newterm=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_newterm" >&5 printf "%s\n" "$ac_cv_lib_cur_colr_newterm" >&6; } if test "x$ac_cv_lib_cur_colr_newterm" = xyes then : printf "%s\n" "#define HAVE_LIBCUR_COLR 1" >>confdefs.h LIBS="-lcur_colr $LIBS" fi if test "$ac_cv_lib_cur_colr_newterm" = "no" ; then if test "$CURSES_CLIENT" = "yes" ; then as_fn_error $? "Cannot find any curses-type library" "$LINENO" 5 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any curses-type library" >&5 printf "%s\n" "$as_me: WARNING: Cannot find any curses-type library" >&2;} CURSES_CLIENT="no" fi fi fi fi fi gtk2_found="probe" if test "$GUI_CLIENT" != "no" -o "$GUI_SERVER" != "no"; then if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi gtk4_found="no" if test "$USE_GTK4" = "yes" ; then pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 printf %s "checking for GTK... " >&6; } if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk4") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk4\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk4") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk4" 2>&1` else GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk4" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 gtk4_found="no" elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } gtk4_found="no" else GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } gtk4_found="yes" fi fi if test "$gtk4_found" = "no" ; then gtk3_found="no" if test "$USE_GTK3" = "yes" ; then pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 printf %s "checking for GTK... " >&6; } if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1` else GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 gtk3_found="no" elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } gtk3_found="no" else GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } gtk3_found="yes" fi fi if test "$gtk3_found" = "no" ; then # Check whether --enable-gtktest was given. if test ${enable_gtktest+y} then : enableval=$enable_gtktest; else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 printf %s "checking for GTK+ - version >= $min_gtk_version... " >&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 $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 if ac_fn_c_try_run "$LINENO" then : else $as_nop no_gtk=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 printf "%s\n" "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } gtk2_found="yes" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding 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 $as_nop 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.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" gtk2_found="no" fi rm -f conf.gtktest if test "$gtk2_found" = "no" ; then if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then as_fn_error $? "Cannot find GTK+" "$LINENO" 5 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GTK+; not building GUI client or server" >&5 printf "%s\n" "$as_me: WARNING: Cannot find GTK+; not building GUI client or server" >&2;} GUI_CLIENT="no" GUI_SERVER="no" fi fi fi fi fi # Check whether --enable-glibtest was given. if test ${enable_glibtest+y} then : enableval=$enable_glibtest; else $as_nop enable_glibtest=yes fi min_glib_version=2.0.0 pkg_config_args="glib-2.0 >= $min_glib_version" for module in . do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.16 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 printf %s "checking for GLIB... " >&6; } if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$pkg_config_args" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_config_args\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_config_args") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$pkg_config_args" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_config_args" 2>&1` else GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_config_args" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 : elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } : else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } : fi if test -n "$GLIB_GENMARSHAL"; then pkg_cv_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GLIB_GENMARSHAL=$pkg_cv_GLIB_GENMARSHAL if test "x$GLIB_GENMARSHAL" = x"" then : fi if test -n "$GOBJECT_QUERY"; then pkg_cv_GOBJECT_QUERY="$GOBJECT_QUERY" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GOBJECT_QUERY=`$PKG_CONFIG --variable="gobject_query" "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GOBJECT_QUERY=$pkg_cv_GOBJECT_QUERY if test "x$GOBJECT_QUERY" = x"" then : fi if test -n "$GLIB_MKENUMS"; then pkg_cv_GLIB_MKENUMS="$GLIB_MKENUMS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_MKENUMS=`$PKG_CONFIG --variable="glib_mkenums" "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GLIB_MKENUMS=$pkg_cv_GLIB_MKENUMS if test "x$GLIB_MKENUMS" = x"" then : fi if test -n "$GLIB_COMPILE_RESOURCES"; then pkg_cv_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable="glib_compile_resources" "gio-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi GLIB_COMPILE_RESOURCES=$pkg_cv_GLIB_COMPILE_RESOURCES if test "x$GLIB_COMPILE_RESOURCES" = x"" then : fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 printf %s "checking for GLIB - version >= $min_glib_version... " >&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 GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes then : echo $ac_n "cross compiling; assumed OK... $ac_c" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { unsigned int major, minor, micro; fclose (fopen ("conf.glibtest", "w")); if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. 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 ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB 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 GLIB, 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 if ac_fn_c_try_run "$LINENO" then : else $as_nop no_glib=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 printf "%s\n" "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } : else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, 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 $as_nop echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" as_fn_error $? "GLib is required" "$LINENO" 5 fi rm -f conf.glibtest # Check whether --with-libcurl was given. if test ${with_libcurl+y} then : withval=$with_libcurl; _libcurl_with=$withval else $as_nop _libcurl_with=7.17.0 fi if test "$_libcurl_with" != "no" ; then 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" _libcurl_try_link=yes if test -d "$_libcurl_with" ; then LIBCURL_CPPFLAGS="-I$withval/include" _libcurl_ldflags="-L$withval/lib" # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path__libcurl_config+y} then : printf %s "(cached) " >&6 else $as_nop case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "$withval/bin" do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 printf "%s\n" "$_libcurl_config" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path__libcurl_config+y} then : printf %s "(cached) " >&6 else $as_nop case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 printf "%s\n" "$_libcurl_config" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test x$_libcurl_config != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 printf %s "checking for the version of libcurl... " >&6; } if test ${libcurl_cv_lib_curl_version+y} then : printf %s "(cached) " >&6 else $as_nop libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; } _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` _libcurl_wanted=`echo 0 | $_libcurl_version_parse` if test $_libcurl_wanted -gt 0 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5 printf %s "checking for libcurl >= version ... " >&6; } if test ${libcurl_cv_lib_version_ok+y} then : printf %s "(cached) " >&6 else $as_nop if test $_libcurl_version -ge $_libcurl_wanted ; then libcurl_cv_lib_version_ok=yes else libcurl_cv_lib_version_ok=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; } fi if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then if test x"$LIBCURL_CPPFLAGS" = "x" ; then LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` fi if test x"$LIBCURL" = "x" ; then LIBCURL=`$_libcurl_config --libs` # This is so silly, but Apple actually has a bug in their # curl-config script. Fixed in Tiger, but there are still # lots of Panther installs around. case "${host}" in powerpc-apple-darwin7*) LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` ;; esac fi # All curl-config scripts support --feature _libcurl_features=`$_libcurl_config --feature` # Is it modern enough to have --protocols? (7.12.4) if test $_libcurl_version -ge 461828 ; then _libcurl_protocols=`$_libcurl_config --protocols` fi else _libcurl_try_link=no fi unset _libcurl_wanted fi if test $_libcurl_try_link = yes ; then # we didn't find curl-config, so let's see if the user-supplied # link line (or failing that, "-lcurl") is enough. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 printf %s "checking whether libcurl is usable... " >&6; } if test ${libcurl_cv_lib_curl_usable+y} then : printf %s "(cached) " >&6 else $as_nop _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBCURL $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { /* Try and use a few common options to force a failure if we are missing symbols or can't link. */ int x; curl_easy_setopt(NULL,CURLOPT_URL,NULL); x=CURL_ERROR_SIZE; x=CURLOPT_WRITEFUNCTION; x=CURLOPT_WRITEDATA; x=CURLOPT_ERRORBUFFER; x=CURLOPT_STDERR; x=CURLOPT_VERBOSE; if (x) {;} ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : libcurl_cv_lib_curl_usable=yes else $as_nop libcurl_cv_lib_curl_usable=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; } if test $libcurl_cv_lib_curl_usable = yes ; then # Does curl_free() exist in this version of libcurl? # If not, fake it with free() _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBS $LIBCURL" ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" if test "x$ac_cv_func_curl_free" = xyes then : else $as_nop printf "%s\n" "#define curl_free free" >>confdefs.h fi CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h for _libcurl_feature in $_libcurl_features ; do cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 _ACEOF eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes done if test "x$_libcurl_protocols" = "x" ; then # We don't have --protocols, so just assume that all # protocols are available _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" if test x$libcurl_feature_SSL = xyes ; then _libcurl_protocols="$_libcurl_protocols HTTPS" # FTPS wasn't standards-compliant until version # 7.11.0 (0x070b00 == 461568) if test $_libcurl_version -ge 461568; then _libcurl_protocols="$_libcurl_protocols FTPS" fi fi # RTSP, IMAP, POP3 and SMTP were added in # 7.20.0 (0x071400 == 463872) if test $_libcurl_version -ge 463872; then _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" fi fi for _libcurl_protocol in $_libcurl_protocols ; do cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 _ACEOF eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes done else unset LIBCURL unset LIBCURL_CPPFLAGS fi fi unset _libcurl_try_link unset _libcurl_version_parse unset _libcurl_config unset _libcurl_feature unset _libcurl_features unset _libcurl_protocol unset _libcurl_protocols unset _libcurl_version unset _libcurl_ldflags fi if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then # This is the IF-NO path : else # This is the IF-YES path : fi unset _libcurl_with if test "$USE_ESD" != "no"; then # Check whether --with-esd-prefix was given. if test ${with_esd_prefix+y} then : withval=$with_esd_prefix; esd_prefix="$withval" else $as_nop esd_prefix="" fi # Check whether --with-esd-exec-prefix was given. if test ${with_esd_exec_prefix+y} then : withval=$with_esd_exec_prefix; esd_exec_prefix="$withval" else $as_nop esd_exec_prefix="" fi # Check whether --enable-esdtest was given. if test ${enable_esdtest+y} then : enableval=$enable_esdtest; else $as_nop enable_esdtest=yes fi if test x$esd_exec_prefix != x ; then esd_args="$esd_args --exec-prefix=$esd_exec_prefix" if test x${ESD_CONFIG+set} != xset ; then ESD_CONFIG=$esd_exec_prefix/bin/esd-config fi fi if test x$esd_prefix != x ; then esd_args="$esd_args --prefix=$esd_prefix" if test x${ESD_CONFIG+set} != xset ; then ESD_CONFIG=$esd_prefix/bin/esd-config fi fi # Extract the first word of "esd-config", so it can be a program name with args. set dummy esd-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ESD_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ESD_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ESD_CONFIG="$ESD_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" ;; esac fi ESD_CONFIG=$ac_cv_path_ESD_CONFIG if test -n "$ESD_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5 printf "%s\n" "$ESD_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi min_esd_version=0.0.20 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5 printf %s "checking for ESD - version >= $min_esd_version... " >&6; } no_esd="" if test "$ESD_CONFIG" = "no" ; then no_esd=yes else 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 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` esd_major_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` esd_minor_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_esdtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" rm -f conf.esdtest if test "$cross_compiling" = yes then : echo $ac_n "cross compiling; assumed OK... $ac_c" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.esdtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_esd_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_esd_version"); exit(1); } if (($esd_major_version > major) || (($esd_major_version == major) && ($esd_minor_version > minor)) || (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) { return 0; } else { printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); printf("*** to point to the correct copy of esd-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } _ACEOF if ac_fn_c_try_run "$LINENO" then : else $as_nop no_esd=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" 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 fi fi if test "x$no_esd" = x ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } ESD=yes else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test "$ESD_CONFIG" = "no" ; then echo "*** The esd-config script installed by ESD could not be found" echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the ESD_CONFIG environment variable to the" echo "*** full path to esd-config." else if test -f conf.esdtest ; then : else echo "*** Could not run ESD test program, checking why..." CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding ESD or finding the wrong" echo "*** version of ESD. If it is not finding ESD, 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 $as_nop echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means ESD was incorrectly installed" echo "*** or that you have moved ESD since it was installed. In the latter case, you" echo "*** may want to edit the esd-config script: $ESD_CONFIG" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" 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 fi fi ESD_CFLAGS="" ESD_LIBS="" : fi rm -f conf.esdtest if test "$ESD" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $ESD_CFLAGS" SOUND_LIBS="$SOUND_LIBS $ESD_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_esd.o" printf "%s\n" "#define HAVE_ESD 1" >>confdefs.h elif test "$USE_ESD" = "yes"; then as_fn_error $? "Cannot find ESD library" "$LINENO" 5 fi fi if test "$USE_SDL" != "no"; then SDL_ALL=no SDL2=yes # Check whether --with-sdl-prefix was given. if test ${with_sdl_prefix+y} then : withval=$with_sdl_prefix; sdl_prefix="$withval" else $as_nop sdl_prefix="" fi # Check whether --with-sdl-exec-prefix was given. if test ${with_sdl_exec_prefix+y} then : withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" else $as_nop sdl_exec_prefix="" fi # Check whether --enable-sdltest was given. if test ${enable_sdltest+y} then : enableval=$enable_sdltest; else $as_nop enable_sdltest=yes fi min_sdl_version=2.0.0 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 printf %s "checking for SDL... " >&6; } if test -n "$SDL_CFLAGS"; then pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SDL_LIBS"; then pkg_cv_SDL_LIBS="$SDL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1` else SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SDL_PKG_ERRORS" >&5 sdl_pc=no elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } sdl_pc=no else SDL_CFLAGS=$pkg_cv_SDL_CFLAGS SDL_LIBS=$pkg_cv_SDL_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } sdl_pc=yes fi else sdl_pc=no if test x$sdl_exec_prefix != x ; then sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" if test x${SDL2_CONFIG+set} != xset ; then SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config fi fi if test x$sdl_prefix != x ; then sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" if test x${SDL2_CONFIG+set} != xset ; then SDL2_CONFIG=$sdl_prefix/bin/sdl2-config fi fi fi if test "x$sdl_pc" = xyes ; then no_sdl="" SDL2_CONFIG="pkg-config sdl2" else as_save_PATH="$PATH" if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then PATH="$prefix/bin:$prefix/usr/bin:$PATH" fi # Extract the first word of "sdl2-config", so it can be a program name with args. set dummy sdl2-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SDL2_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $SDL2_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_SDL2_CONFIG="$SDL2_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_SDL2_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" ;; esac fi SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG if test -n "$SDL2_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 printf "%s\n" "$SDL2_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi PATH="$as_save_PATH" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 printf %s "checking for SDL - version >= $min_sdl_version... " >&6; } no_sdl="" if test "$SDL2_CONFIG" = "no" ; then no_sdl=yes else SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags` SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs` sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_sdltest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" rm -f conf.sdltest if test "$cross_compiling" = yes then : echo $ac_n "cross compiling; assumed OK... $ac_c" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include "SDL.h" char* my_strdup (char *str) { char *new_str; if (str) { new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main (int argc, char *argv[]) { int major, minor, micro; char *tmp_version; /* This hangs on some systems (?) system ("touch conf.sdltest"); */ { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_sdl_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_sdl_version"); exit(1); } if (($sdl_major_version > major) || (($sdl_major_version == major) && ($sdl_minor_version > minor)) || (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) { return 0; } else { printf("\n*** 'sdl2-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 sdl2-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } _ACEOF if ac_fn_c_try_run "$LINENO" then : else $as_nop no_sdl=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_sdl" = x ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test "x$no_sdl" = x ; then SDL=yes else if test "$SDL2_CONFIG" = "no" ; then echo "*** The sdl2-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 SDL2_CONFIG environment variable to the" echo "*** full path to sdl2-config." else if test -f conf.sdltest ; then : else echo "*** Could not run SDL test program, checking why..." CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include "SDL.h" int main(int argc, char *argv[]) { return 0; } #undef main #define main K_and_R_C_main int main (void) { return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding SDL or finding the wrong" echo "*** version of SDL. If it is not finding SDL, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else $as_nop 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 sdl2-config script: $SDL2_CONFIG" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi SDL_CFLAGS="" SDL_LIBS="" : fi rm -f conf.sdltest if test "$SDL" != "yes"; then SDL2=no # Check whether --with-sdl-prefix was given. if test ${with_sdl_prefix+y} then : withval=$with_sdl_prefix; sdl_prefix="$withval" else $as_nop sdl_prefix="" fi # Check whether --with-sdl-exec-prefix was given. if test ${with_sdl_exec_prefix+y} then : withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" else $as_nop sdl_exec_prefix="" fi # Check whether --enable-sdltest was given. if test ${enable_sdltest+y} then : enableval=$enable_sdltest; else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SDL_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" ;; esac fi SDL_CONFIG=$ac_cv_path_SDL_CONFIG if test -n "$SDL_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 printf "%s\n" "$SDL_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi min_sdl_version=1.0.0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 printf %s "checking for SDL - version >= $min_sdl_version... " >&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_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" rm -f conf.sdltest if test "$cross_compiling" = yes then : echo $ac_n "cross compiling; assumed OK... $ac_c" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include "SDL.h" char* my_strdup (char *str) { char *new_str; if (str) { new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main (int argc, char *argv[]) { int major, minor, micro; char *tmp_version; /* This hangs on some systems (?) system ("touch conf.sdltest"); */ { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_sdl_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_sdl_version"); exit(1); } if (($sdl_major_version > major) || (($sdl_major_version == major) && ($sdl_minor_version > minor)) || (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) { return 0; } else { printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); printf("*** to point to the correct copy of sdl-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } _ACEOF if ac_fn_c_try_run "$LINENO" then : else $as_nop no_sdl=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_sdl" = x ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SDL=yes else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test "$SDL_CONFIG" = "no" ; then echo "*** The sdl-config script installed by SDL could not be found" echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the SDL_CONFIG environment variable to the" echo "*** full path to sdl-config." else if test -f conf.sdltest ; then : else echo "*** Could not run SDL test program, checking why..." CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include "SDL.h" int main(int argc, char *argv[]) { return 0; } #undef main #define main K_and_R_C_main int main (void) { return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding SDL or finding the wrong" echo "*** version of SDL. If it is not finding SDL, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else $as_nop 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.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi SDL_CFLAGS="" SDL_LIBS="" : fi rm -f conf.sdltest fi if test "$SDL" = "yes"; then headers=no libs=no ORIG_CPPFLAGS="$CPPFLAGS" ORIG_LDFLAGS="$LDFLAGS" CPPFLAGS="$ORIG_CPPFLAGS $SDL_CFLAGS" LDLAGS="$ORIG_LDFLAGS $SDL_LIBS" ac_fn_c_check_header_compile "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default" if test "x$ac_cv_header_SDL_mixer_h" = xyes then : headers=yes fi if test "$SDL2" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL2_mixer" >&5 printf %s "checking for Mix_OpenAudio in -lSDL2_mixer... " >&6; } if test ${ac_cv_lib_SDL2_mixer_Mix_OpenAudio+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lSDL2_mixer $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char Mix_OpenAudio (); int main (void) { return Mix_OpenAudio (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_SDL2_mixer_Mix_OpenAudio=yes else $as_nop ac_cv_lib_SDL2_mixer_Mix_OpenAudio=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&5 printf "%s\n" "$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&6; } if test "x$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" = xyes then : libs=yes fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5 printf %s "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; } if test ${ac_cv_lib_SDL_mixer_Mix_OpenAudio+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lSDL_mixer $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char Mix_OpenAudio (); int main (void) { return Mix_OpenAudio (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes else $as_nop ac_cv_lib_SDL_mixer_Mix_OpenAudio=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5 printf "%s\n" "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; } if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = xyes then : libs=yes fi fi CPPFLAGS="$ORIG_CPPFLAGS" LDFLAGS="$ORIG_LDFLAGS" if test "$libs" = "yes"; then if test "$headers" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS" if test "$SDL2" = "yes"; then SDL_LIBS="$SDL_LIBS -lSDL2_mixer" else SDL_LIBS="$SDL_LIBS -lSDL_mixer" fi SOUND_LIBS="$SOUND_LIBS $SDL_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_sdl.o" printf "%s\n" "#define HAVE_SDL_MIXER 1" >>confdefs.h SDL_ALL=yes if test "$APPLE" = "yes"; then SDL_LIBS="$SDL_LIBS -module" fi fi fi fi if test "$USE_SDL" = "yes" -a "$SDL_ALL" = "no"; then as_fn_error $? "Cannot find SDL library" "$LINENO" 5 fi fi if test "$USE_COCOA" != "no"; then ac_ext=m ac_cpp='$OBJCPP $CPPFLAGS' ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_objc_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in gcc objcc objc cc CC clang 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJC=$ac_cv_prog_OBJC if test -n "$OBJC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 printf "%s\n" "$OBJC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$OBJC" && break done fi if test -z "$OBJC"; then ac_ct_OBJC=$OBJC for ac_prog in gcc objcc objc cc CC clang do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC if test -n "$ac_ct_OBJC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 printf "%s\n" "$ac_ct_OBJC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_OBJC" && break done if test "x$ac_ct_OBJC" = x; then OBJC="gcc" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJC=$ac_ct_OBJC fi fi # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Objective C" >&5 printf %s "checking whether the compiler supports GNU Objective C... " >&6; } if test ${ac_cv_objc_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_objc_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 printf "%s\n" "$ac_cv_objc_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_objc_compiler_gnu if test $ac_compiler_gnu = yes; then GOBJC=yes else GOBJC= fi ac_test_OBJCFLAGS=${OBJCFLAGS+y} ac_save_OBJCFLAGS=$OBJCFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 printf %s "checking whether $OBJC accepts -g... " >&6; } if test ${ac_cv_prog_objc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_objc_werror_flag=$ac_objc_werror_flag ac_objc_werror_flag=yes ac_cv_prog_objc_g=no OBJCFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO" then : ac_cv_prog_objc_g=yes else $as_nop OBJCFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO" then : else $as_nop ac_objc_werror_flag=$ac_save_objc_werror_flag OBJCFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_objc_try_compile "$LINENO" then : ac_cv_prog_objc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_objc_werror_flag=$ac_save_objc_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 printf "%s\n" "$ac_cv_prog_objc_g" >&6; } if test $ac_test_OBJCFLAGS; then OBJCFLAGS=$ac_save_OBJCFLAGS elif test $ac_cv_prog_objc_g = yes; then if test "$GOBJC" = yes; then OBJCFLAGS="-g -O2" else OBJCFLAGS="-g" fi else if test "$GOBJC" = yes; then OBJCFLAGS="-O2" else OBJCFLAGS= 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="$OBJC" am_compiler_list='gcc3 gcc' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_OBJC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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". rm -rf conftest.dir 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 am__universal=false 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 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # 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. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj 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 # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 printf "%s\n" "$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 COCOA="yes" PLUGOBJS="$PLUGOBJS plugins/sound_cocoa.o" printf "%s\n" "#define HAVE_COCOA 1" >>confdefs.h else am__fastdepOBJC_TRUE='#' am__fastdepOBJC_FALSE= fi if test "$GUI_SERVER" = "probe"; then GUI_SERVER="no" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t data type" >&5 printf %s "checking for socklen_t data type... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { socklen_t val ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$ESD" = "yes"; then ESD_TRUE= ESD_FALSE='#' else ESD_TRUE='#' ESD_FALSE= fi if test "$SDL" = "yes"; then SDL_TRUE= SDL_FALSE='#' else SDL_TRUE='#' SDL_FALSE= fi if test "$COCOA" = "yes"; then COCOA_TRUE= COCOA_FALSE='#' else COCOA_TRUE='#' COCOA_FALSE= fi if test "$GUI_CLIENT" = "probe"; then GUI_CLIENT="yes" fi if test "$CURSES_CLIENT" = "probe"; then CURSES_CLIENT="yes" fi ALL_LINGUAS="de pl pt_BR fr fr_CA nn es es_ES en_GB" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 printf %s "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test ${enable_nls+y} then : enableval=$enable_nls; USE_NLS=$enableval else $as_nop USE_NLS=yes fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 printf "%s\n" "$USE_NLS" >&6; } GETTEXT_MACRO_VERSION=0.20 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MSGFMT+y} then : printf %s "(cached) " >&6 else $as_nop case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 printf "%s\n" "$MSGFMT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GMSGFMT+y} then : printf %s "(cached) " >&6 else $as_nop case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 printf "%s\n" "$GMSGFMT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XGETTEXT+y} then : printf %s "(cached) " >&6 else $as_nop case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 printf "%s\n" "$XGETTEXT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MSGMERGE+y} then : printf %s "(cached) " >&6 else $as_nop case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 printf "%s\n" "$MSGMERGE" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' else if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' else MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' fi fi test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi if test -n "$LD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 printf %s "checking for ld... " >&6; } elif test "$GCC" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "checking for ld used by $CC... " >&6; } elif test "$with_gnu_ld" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test -n "$LD"; then # Let the user override the test with a path. : else if test ${acl_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop acl_cv_path_LD= # Final result of this test ac_prog=ld # Program to search in $PATH if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) acl_output=`($CC -print-prog-name=ld) 2>&5` ;; esac case $acl_output in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` done # Got the pathname. No search in PATH is needed. acl_cv_path_LD="$acl_output" ac_prog= ;; "") # If it fails, then pretend we aren't using GCC. ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac fi if test -n "$ac_prog"; then # Search for $ac_prog in $PATH. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 conftest.$ac_ext /* end confdefs.h. */ #if defined __powerpc64__ || defined _ARCH_PPC64 int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : # The compiler produces 64-bit code. Add option '-b64' so that the # linker groks 64-bit object files. case "$acl_cv_path_LD " in *" -b64 "*) ;; *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; sparc64-*-netbsd*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __sparcv9 || defined __arch64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop # The compiler produces 32-bit code. Add option '-m elf32_sparc' # so that the linker groks 32-bit object files. case "$acl_cv_path_LD " in *" -m elf32_sparc "*) ;; *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi LD="$acl_cv_path_LD" fi if test -n "$LD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${acl_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 printf %s "checking for shared library run path origin... " >&6; } if test ${acl_cv_rpath+y} then : printf %s "(cached) " >&6 else $as_nop CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 printf "%s\n" "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test ${enable_rpath+y} then : enableval=$enable_rpath; : else $as_nop enable_rpath=yes fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 printf %s "checking 32-bit host C ABI... " >&6; } if test ${gl_cv_host_cpu_c_abi_32bit+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$gl_cv_host_cpu_c_abi"; then case "$gl_cv_host_cpu_c_abi" in i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) gl_cv_host_cpu_c_abi_32bit=yes ;; x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) gl_cv_host_cpu_c_abi_32bit=no ;; *) gl_cv_host_cpu_c_abi_32bit=unknown ;; esac else case "$host_cpu" in # CPUs that only support a 32-bit ABI. arc \ | bfin \ | cris* \ | csky \ | epiphany \ | ft32 \ | h8300 \ | m68k \ | microblaze | microblazeel \ | nds32 | nds32le | nds32be \ | nios2 | nios2eb | nios2el \ | or1k* \ | or32 \ | sh | sh1234 | sh1234elb \ | tic6x \ | xtensa* ) gl_cv_host_cpu_c_abi_32bit=yes ;; # CPUs that only support a 64-bit ABI. alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ | mmix ) gl_cv_host_cpu_c_abi_32bit=no ;; i[34567]86 ) gl_cv_host_cpu_c_abi_32bit=yes ;; x86_64 ) # On x86_64 systems, the C compiler may be generating code in one of # these ABIs: # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 # with native Windows (mingw, MSVC). # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (defined __x86_64__ || defined __amd64__ \ || defined _M_X64 || defined _M_AMD64) \ && !(defined __ILP32__ || defined _ILP32) int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; arm* | aarch64 ) # Assume arm with EABI. # On arm64 systems, the C compiler may be generating code in one of # these ABIs: # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) # On hppa, the C compiler may be generating 32-bit code or 64-bit # code. In the latter case, it defines _LP64 and __LP64__. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __LP64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; ia64* ) # On ia64 on HP-UX, the C compiler may be generating 64-bit code or # 32-bit code. In the latter case, it defines _ILP32. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _ILP32 int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=yes else $as_nop gl_cv_host_cpu_c_abi_32bit=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; mips* ) # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this # at 32. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; powerpc* ) # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. # No need to distinguish them here; the caller may distinguish # them based on the OS. # On powerpc64 systems, the C compiler may still be generating # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may # be generating 64-bit code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __powerpc64__ || defined _ARCH_PPC64 int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; rs6000 ) gl_cv_host_cpu_c_abi_32bit=yes ;; riscv32 | riscv64 ) # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. # Size of 'long' and 'void *': cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __LP64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; s390* ) # On s390x, the C compiler may be generating 64-bit (= s390x) code # or 31-bit (= s390) code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __LP64__ || defined __s390x__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; sparc | sparc64 ) # UltraSPARCs running Linux have `uname -m` = "sparc64", but the # C compiler still generates 32-bit code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __sparcv9 || defined __arch64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; *) gl_cv_host_cpu_c_abi_32bit=unknown ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test ${ac_cv_prog_CPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CC needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" 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. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 printf "%s\n" "$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. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 printf %s "checking for ELF binary format... " >&6; } if test ${gl_cv_elf+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ Extensible Linking Format #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 then : gl_cv_elf=yes else $as_nop gl_cv_elf=no fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 printf "%s\n" "$gl_cv_elf" >&6; } if test $gl_cv_elf; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then # Use POSIX od. func_elfclass () { od -A n -t d1 -j 4 -N 1 } else # Use BSD hexdump. func_elfclass () { dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' echo } fi case $HOST_CPU_C_ABI_32BIT in yes) # 32-bit ABI. acl_is_expected_elfclass () { test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 } ;; no) # 64-bit ABI. acl_is_expected_elfclass () { test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 } ;; *) # Unknown. acl_is_expected_elfclass () { : } ;; esac else acl_is_expected_elfclass () { : } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 printf %s "checking for the common suffixes of directories in the library search path... " >&6; } if test ${acl_cv_libdirstems+y} then : printf %s "(cached) " >&6 else $as_nop acl_libdirstem=lib acl_libdirstem2= acl_libdirstem3= case "$host_os" in solaris*) if test $HOST_CPU_C_ABI_32BIT = no; then acl_libdirstem2=lib/64 case "$host_cpu" in sparc*) acl_libdirstem3=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test $HOST_CPU_C_ABI_32BIT != no; then # 32-bit or unknown ABI. if test -d /usr/lib32; then acl_libdirstem2=lib32 fi fi if test $HOST_CPU_C_ABI_32BIT != yes; then # 64-bit or unknown ABI. if test -d /usr/lib64; then acl_libdirstem3=lib64 fi fi if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib32 ) acl_libdirstem2=lib32 ;; */lib64 ) acl_libdirstem3=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" if test $HOST_CPU_C_ABI_32BIT = yes; then # 32-bit ABI. acl_libdirstem3= fi if test $HOST_CPU_C_ABI_32BIT = no; then # 64-bit ABI. acl_libdirstem2= fi fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 printf "%s\n" "$acl_cv_libdirstems" >&6; } acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test ${with_libiconv_prefix+y} then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 printf %s "checking for CFPreferencesCopyAppValue... " >&6; } if test ${gt_cv_func_CFPreferencesCopyAppValue+y} then : printf %s "(cached) " >&6 else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gt_cv_func_CFPreferencesCopyAppValue=yes else $as_nop gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} then : printf %s "(cached) " >&6 else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { CFLocaleCopyPreferredLanguages(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gt_cv_func_CFLocaleCopyPreferredLanguages=yes else $as_nop gt_cv_func_CFLocaleCopyPreferredLanguages=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 printf %s "checking for GNU gettext in libc... " >&6; } if eval test \${$gt_func_gnugettext_libc+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code int main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$gt_func_gnugettext_libc=yes" else $as_nop eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 printf %s "checking for iconv... " >&6; } if test ${am_cv_func_iconv+y} then : printf %s "(cached) " >&6 else $as_nop am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 printf "%s\n" "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 printf %s "checking for working iconv... " >&6; } if test ${am_cv_func_iconv_works+y} then : printf %s "(cached) " >&6 else $as_nop am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do if test "$cross_compiling" = yes then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef ICONV_CONST # define ICONV_CONST $ac_iconv_const #endif int main (void) { int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\263"; char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; ICONV_CONST char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ { /* Try standardized names. */ iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); /* Try IRIX, OSF/1 names. */ iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); /* Try AIX names. */ iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); /* Try HP-UX names. */ iconv_t cd4 = iconv_open ("utf8", "eucJP"); if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) result |= 16; if (cd1 != (iconv_t)(-1)) iconv_close (cd1); if (cd2 != (iconv_t)(-1)) iconv_close (cd2); if (cd3 != (iconv_t)(-1)) iconv_close (cd3); if (cd4 != (iconv_t)(-1)) iconv_close (cd4); } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : am_cv_func_iconv_works=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi test "$am_cv_func_iconv_works" = no || break done LIBS="$am_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 printf "%s\n" "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 printf %s "checking how to link with libiconv... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 printf "%s\n" "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test ${with_libintl_prefix+y} then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 printf %s "checking for GNU gettext in libintl... " >&6; } if eval test \${$gt_func_gnugettext_libintl+y} then : printf %s "(cached) " >&6 else $as_nop gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code int main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$gt_func_gnugettext_libintl=yes" else $as_nop eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code int main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 printf %s "checking whether to use NLS... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 printf "%s\n" "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 printf %s "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 printf "%s\n" "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 printf %s "checking how to link with libintl... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 printf "%s\n" "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" if test "$gt_cv_func_gettext_libintl" = "yes"; then LIBS="-lintl $LIBS" fi if test "$GUI_CLIENT" = "yes" ; then printf "%s\n" "#define GUI_CLIENT 1" >>confdefs.h fi if test "$CURSES_CLIENT" = "yes" ; then printf "%s\n" "#define CURSES_CLIENT 1" >>confdefs.h fi if test "$GUI_SERVER" = "yes" ; then printf "%s\n" "#define GUI_SERVER 1" >>confdefs.h fi # 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 printf %s "checking size of long long... " >&6; } if test ${ac_cv_sizeof_long_long+y} then : printf %s "(cached) " >&6 else $as_nop if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" then : else $as_nop if test "$ac_cv_type_long_long" = yes; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 printf %s "checking for working memcmp... " >&6; } if test ${ac_cv_func_memcmp_working+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : ac_cv_func_memcmp_working=no else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { /* Some versions of memcmp are not 8-bit clean. */ char c0 = '\100', c1 = '\200', c2 = '\201'; if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) return 1; /* The Next x86 OpenStep bug shows up only when comparing 16 bytes or more and with at least one buffer not starting on a 4-byte boundary. William Lewis provided this test program. */ { char foo[21]; char bar[21]; int i; for (i = 0; i < 4; i++) { char *a = foo + i; char *b = bar + i; strcpy (a, "--------01111111"); strcpy (b, "--------10000000"); if (memcmp (a, b, 16) >= 0) return 1; } return 0; } ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_func_memcmp_working=yes else $as_nop ac_cv_func_memcmp_working=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 printf "%s\n" "$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 if test ${ac_cv_func_setvbuf_reversed+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_func_setvbuf_reversed=no fi for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" if test "x$ac_cv_func_strftime" = xyes then : printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h else $as_nop # strftime is in -lintl on SCO UNIX. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 printf %s "checking for strftime in -lintl... " >&6; } if test ${ac_cv_lib_intl_strftime+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char strftime (); int main (void) { return strftime (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_intl_strftime=yes else $as_nop ac_cv_lib_intl_strftime=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; } if test "x$ac_cv_lib_intl_strftime" = xyes then : printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h LIBS="-lintl $LIBS" fi fi done ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes then : printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" if test "x$ac_cv_func_strstr" = xyes then : printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" if test "x$ac_cv_func_getopt" = xyes then : printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" if test "x$ac_cv_func_getopt_long" = xyes then : printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" if test "x$ac_cv_func_fork" = xyes then : printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" if test "x$ac_cv_func_issetugid" = xyes then : printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" if test "x$ac_cv_func_localtime_r" = xyes then : printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" if test "x$ac_cv_func_gmtime_r" = xyes then : printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h fi # Check whether --enable-plugins was given. if test ${enable_plugins+y} then : enableval=$enable_plugins; plugins="$enableval" else $as_nop plugins="probe" fi if test "$enable_shared" = "no" ; then plugins="no" fi if test "$plugins" != "no" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 printf %s "checking for library containing dlopen... " >&6; } if test ${ac_cv_search_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF for ac_lib in '' dl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_dlopen=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_dlopen+y} then : break fi done if test ${ac_cv_search_dlopen+y} then : else $as_nop ac_cv_search_dlopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 printf "%s\n" "$ac_cv_search_dlopen" >&6; } ac_res=$ac_cv_search_dlopen if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : plugins="yes" else $as_nop plugins="no" fi fi if test "$plugins" = "yes" ; then printf "%s\n" "#define PLUGINS 1" >>confdefs.h plugindir="${libdir}/dopewars" PLUGINDIR='${plugindir}' PLUGINDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$PLUGINDIR"\" )` PLUGINDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$PLUGINDIR"\" )` PLUGINDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$PLUGINDIR"\" )` printf "%s\n" "#define PLUGINDIR \"$PLUGINDIR\"" >>confdefs.h PLUGOBJS="" else PLUGLIBS="$SOUND_LIBS" fi if test "$plugins" = "yes"; then PLUGINS_TRUE= PLUGINS_FALSE='#' else PLUGINS_TRUE='#' PLUGINS_FALSE= fi network="no" if test "$CYGWIN" = "yes" ; then network="yes" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 printf %s "checking for library containing socket... " >&6; } if test ${ac_cv_search_socket+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char socket (); int main (void) { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket network do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_socket+y} then : break fi done if test ${ac_cv_search_socket+y} then : else $as_nop ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 printf "%s\n" "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 printf %s "checking for library containing gethostbyname... " >&6; } if test ${ac_cv_search_gethostbyname+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gethostbyname (); int main (void) { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl socket do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_gethostbyname+y} then : break fi done if test ${ac_cv_search_gethostbyname+y} then : else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" if test "x$ac_cv_func_socket" = xyes then : printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes then : printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" if test "x$ac_cv_func_select" = xyes then : printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h fi if test "$ac_cv_func_select" = "yes" ; then if test "$ac_cv_func_socket" = "yes" ; then if test "$ac_cv_func_gethostbyname" = "yes" ; then network="yes" fi fi fi fi # Check whether --enable-networking was given. if test ${enable_networking+y} then : enableval=$enable_networking; network="$enableval" fi if test "$network" = "yes" ; then printf "%s\n" "#define NETWORKING 1" >>confdefs.h fi # Check whether --enable-strict was given. if test ${enable_strict+y} then : enableval=$enable_strict; extrawarnings="$enableval" fi if test -n "$GCC"; then if test "$extrawarnings" = "yes" ; then CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wsign-compare -Waggregate-return -Wredundant-decls -Wnested-externs -Wunused" else CFLAGS="$CFLAGS -Wall" fi fi DPSCOREDIR='${localstatedir}' DPSCOREDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPSCOREDIR"\" )` DPSCOREDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPSCOREDIR"\" )` DPSCOREDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPSCOREDIR"\" )` printf "%s\n" "#define DPSCOREDIR \"$DPSCOREDIR\"" >>confdefs.h DPDATADIR='${datadir}' DPDATADIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDATADIR"\" )` DPDATADIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDATADIR"\" )` DPDATADIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDATADIR"\" )` printf "%s\n" "#define DPDATADIR \"$DPDATADIR\"" >>confdefs.h DPDOCDIR='${docdir}' DPDOCDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDOCDIR"\" )` DPDOCDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDOCDIR"\" )` DPDOCDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDOCDIR"\" )` printf "%s\n" "#define DPDOCDIR \"$DPDOCDIR\"" >>confdefs.h localedir=${datadir}/locale LOCALEDIR='${localedir}' LOCALEDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$LOCALEDIR"\" )` LOCALEDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$LOCALEDIR"\" )` LOCALEDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$LOCALEDIR"\" )` printf "%s\n" "#define LOCALEDIR \"$LOCALEDIR\"" >>confdefs.h if test "$GUI_CLIENT" = "yes"; then GUI_CLIENT_TRUE= GUI_CLIENT_FALSE='#' else GUI_CLIENT_TRUE='#' GUI_CLIENT_FALSE= fi if test "$GUI_CLIENT" = "yes" ; then GUILIB="gui_client/libguiclient.a" fi if test "$CURSES_CLIENT" = "yes"; then CURSES_CLIENT_TRUE= CURSES_CLIENT_FALSE='#' else CURSES_CLIENT_TRUE='#' CURSES_CLIENT_FALSE= fi if test "$CURSES_CLIENT" = "yes" ; then CURSESLIB="curses_client/libcursesclient.a" fi if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes"; then GTKPORT_TRUE= GTKPORT_FALSE='#' else GTKPORT_TRUE='#' GTKPORT_FALSE= fi if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then GTKPORTLIB="gtkport/libgtkport.a" fi if test "$CURSES_CLIENT" = "yes"; then CURSESPORT_TRUE= CURSESPORT_FALSE='#' else CURSESPORT_TRUE='#' CURSESPORT_FALSE= fi if test "$CURSES_CLIENT" = "yes" ; then CURSESPORTLIB="cursesport/libcursesport.a" fi ac_config_files="$ac_config_files Makefile src/Makefile src/gui_client/Makefile src/curses_client/Makefile src/gtkport/Makefile src/cursesport/Makefile src/plugins/Makefile sounds/Makefile sounds/19.5degs/Makefile doc/Makefile doc/help/Makefile rpm/dopewars.spec doc/dopewars.6 win32/install.nsi po/Makefile.in" 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$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=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${APPLE_TRUE}" && test -z "${APPLE_FALSE}"; then as_fn_error $? "conditional \"APPLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ESD_TRUE}" && test -z "${ESD_FALSE}"; then as_fn_error $? "conditional \"ESD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then as_fn_error $? "conditional \"SDL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${COCOA_TRUE}" && test -z "${COCOA_FALSE}"; then as_fn_error $? "conditional \"COCOA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then as_fn_error $? "conditional \"PLUGINS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GUI_CLIENT_TRUE}" && test -z "${GUI_CLIENT_FALSE}"; then as_fn_error $? "conditional \"GUI_CLIENT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${CURSES_CLIENT_TRUE}" && test -z "${CURSES_CLIENT_FALSE}"; then as_fn_error $? "conditional \"CURSES_CLIENT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTKPORT_TRUE}" && test -z "${GTKPORT_FALSE}"; then as_fn_error $? "conditional \"GTKPORT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${CURSESPORT_TRUE}" && test -z "${CURSESPORT_FALSE}"; then as_fn_error $? "conditional \"CURSESPORT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$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 || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by dopewars $as_me 1.6.2, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ dopewars config.status 1.6.2 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 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' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/gui_client/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui_client/Makefile" ;; "src/curses_client/Makefile") CONFIG_FILES="$CONFIG_FILES src/curses_client/Makefile" ;; "src/gtkport/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtkport/Makefile" ;; "src/cursesport/Makefile") CONFIG_FILES="$CONFIG_FILES src/cursesport/Makefile" ;; "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; "sounds/Makefile") CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;; "sounds/19.5degs/Makefile") CONFIG_FILES="$CONFIG_FILES sounds/19.5degs/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/help/Makefile") CONFIG_FILES="$CONFIG_FILES doc/help/Makefile" ;; "rpm/dopewars.spec") CONFIG_FILES="$CONFIG_FILES rpm/dopewars.spec" ;; "doc/dopewars.6") CONFIG_FILES="$CONFIG_FILES doc/dopewars.6" ;; "win32/install.nsi") CONFIG_FILES="$CONFIG_FILES win32/install.nsi" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers test ${CONFIG_COMMANDS+y} || 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= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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 ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi echo echo "dopewars has been configured as follows:" echo if test "$CYGWIN" = "yes" ; then echo "Building native Windows (Win32) version" else echo "Building Unix version" fi echo echo "CLIENTS" if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then echo " - No clients will be compiled (binary will be server/AI only)" else if test "$CURSES_CLIENT" = "yes" ; then echo " - Text-mode (curses) client" fi if test "$GUI_CLIENT" = "yes" ; then echo " - Graphical (GTK+ or Win32) client" fi fi echo if test "$network" = "yes" ; then echo "TCP/IP networking support enabled for multi-player games" echo echo "SERVER" if test "$GUI_SERVER" = "yes" ; then echo " - Graphical server" else echo " - Text-mode server" fi else echo "Networking support DISABLED; single-player mode only" fi echo dopewars-1.6.2/ChangeLog.md000644 000765 000024 00000070751 14256242752 015447 0ustar00benstaff000000 000000 # 1.6.2 - 2022-06-26 - The text-mode client should now support Unicode input when in UTF-8 locales, e.g. allowing player names containing accented characters to be input (#60). - Add support for networking on the Haiku operating system (thanks to Begasus) (#61). # 1.6.1 - 2020-12-11 - Improved display in non-English text-mode clients; previously columns were not aligned properly in some cases and occasionally not all available drugs at a location were shown on screen (#54). - Minimal British English translation added (#57). Configuration file entries can now use either British English or American English spelling (i.e. Armor/Armour). - On Windows the "browse" button in the graphical client options dialog now opens at the folder containing the selected sound file (#55). # 1.6.0 - 2020-12-06 - Fixes to build with OpenWRT (thanks to Theodor-Iulian Ciobanu). - Write server pidfile after fork (thanks to Theodor-Iulian Ciobanu). - Updated German and French Canadian translations from Benjamin Karaca and Francois Marier. - Support for old GTK1 and GLIB1 libraries removed - we now need version 2 of these libraries to build dopewars. GTK+3 is also supported. - Update metaserver to work with new SourceForge; older versions can no longer successfully register with the metaserver. - Switch to using libcurl to talk to the metaserver (this supports https, unlike the old internal code). The metaserver configuration has changed accordingly; `MetaServer.Name`, `MetaServer.Port` and `MetaServer.Path` are replaced with `MetaServer.URL`, while `MetaServer.Auth`, `MetaServer.Proxy*`, and `MetaServer.UseSocks` are removed (set the `https_proxy` environment variable instead, as per https://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Environment) - The default web browser on Linux has changed from 'mozilla' to 'firefox'; on Mac the system-configured default browser is used. - On Windows the high score file, log file, and config file are now stored in the user application data directory (e.g. `C:\Users\foo\AppData\Local\dopewars`) rather than the same directory as the dopewars binary. - Add sound support with SDL2, and on Mac. - Add 64-bit Windows binaries. - Fix for a DOS against the server using the REQUESTJET message type (thanks to Doug Prostko for reporting the problem). # 1.5.12 - 2005-12-30 - Really fix a potential exploit against the Win32 server when running as an NT service (user data was being used as a format string in some cases). # 1.5.11 - 2005-12-30 - Add example configuration file to the documentation. - Fixed various typos in the German translation (thanks to Jens Seidel and Francois Marier). - Fix a remote exploit against the Win32 server (thanks to KF). - High score file on Windows is now written into local application data directory if available, to work more efficiently on multi-user systems. # 1.5.10 - 2004-10-24 - High score file is now installed in `${localstatedir}` rather than `${datadir}`, to allow proper Filesystem Hierarchy Standard compliance - Fix for a curses client crash if the D key is pressed during attacks by the cops - Some problems with the curses client missing screen resize events fixed - Logging to a file should now work properly again - Minimum and maximum limits on all relevant integer configuration file variables are now imposed for sanity - Quique's Spanish translation is now available both in standard Spanish (`es.po`) and `es_ES.po`, which uses drugs slang from Spain - Fix for a trivial DOS of the server - Windows installer no longer hardcodes `C:\Program Files` so should work with non-English versions of Windows # 1.5.9 - 2003-06-07 - The messages window in the curses client can now be scrolled with the + and - keys - The curses client now makes better use of space with screen sizes larger than 80x24 - Fix for a crash encountered if you drop drugs and then encounter the cops - Addition of -P, --player command line option to set the player name to use (thanks to Michael Mitton) # 1.5.8 - 2002-10-21 - Options dialog now allows sounds for all supported game events to be set - BindAddress config variable added, to allow the server to be bound to a non-default IP address - BankInterest and DebtInterest variables added, to allow the configuration of interest rates (with thanks to Matt) - New "UTF8" ability added; if client and server share this ability, then all network messages will be sent in UTF-8 (Unicode) encoding (without the ability, all messages are assumed to be in your locale's default codeset, which may cause problems on non-US ASCII systems) - Names.Month and Names.Year have been replaced with StartDate.Day, StartDate.Month, StartDate.Year and Names.Date; these can be used to handle the date display properly after the turn number exceeds 31 - encoding and include config directives added, to allow the config file's encoding (usually taken from the locale) to be overridden, and to allow the inclusion of other config files - Spanish translation added by Quique - The Windows build of dopewars should now use Unicode throughout, on platforms with Unicode support (i.e. NT/2000/XP) - Under Windows XP, the "pretty" new common controls are now used - Sounds provided by Robin Kohli of www.19.5degs.com # 1.5.7 - 2002-06-25 - Sound support; Windows multimedia, ESD and SDL outputs are supported; the individual modules can be statically linked in, or built as true "plugins" - Version mismatches between client and server are now treated more sensibly (it's all done server-side, and spurious warnings are now removed - only an old client connecting to a new server will trigger them) - Bug fix: when the buttons in the Fight dialog are not visible to a mouse user, previously you were able to access them via the keyboard shortcuts; now fixed. - configure should now work properly if GLib 2.0 is installed but GTK2.0 is not - Norwegian Nynorsk translation added by smund - If dopewars is run setuid/setgid, it will now only use this privilege to open the default (hard-coded) high score file; it will not open a user-specified high score file with privilege - It is no longer necessary to run "dopewars -C" on a zero-byte high score file; it will be converted automatically - A new server command "save" can be used to save the current configuration to a named config file # 1.5.6 - 2002-04-29 - Bug fix: the server will only let you pay back loans or deal with the bank when you are at the correct location, and you can no longer "pay back" negative amounts of cash to the loan shark - Minor improvements to fighting code - The GTK+2 client should now run properly in non-UTF8 locales, and handle configuration files in both UTF8 and non-UTF8 locales - Unsafe list iteration in serverside code (which could possibly cause memory corruption) fixed - Another dumb PPC bug fixed - Incorrect LIBS generated by configure script in some circumstances (due to a GTK+/Glib bug) - now fixed - Everything should now build with autoconf-2.53 (if desired) # 1.5.5 - 2002-04-13 - On fight termination the player is now allowed to close the "Fight" dialog before any new dialogs pop up - Bug caused by a "fight" interrupting a "deal" fixed - dopewars no longer crashes if you set e.g. NumGun = 0 - Incorrect handling of `WM_CLOSE` under Win32 fixed - Unix server now fails "gracefully" if it cannot create the Unix domain socket for admin connections - New ServerMOTD variable to welcome players to a server (with thanks to Mike Robinson) - GTK+ client should now work with GTK+2.0 # 1.5.4 - 2002-03-03 - Basic configuration file editor added to GTK+ client - Annoying flashing on closure of modal windows in Win32 fixed - Win32 client now uses "proper" dialog boxes (i.e. without a window menu) - Icon added for GTK+ client - Bug with withdrawing cash from the bank fixed - URL in GTK+ client "About" box is now clickable - Crash bugs when running on PPC systems fixed (with thanks to Zeke and Brian Campbell) # 1.5.3 - 2002-02-04 - Text-mode server is now non-interactive by default (server admin can connect later with the -A option) - Windows server can now be run as an NT Service - Fatal bug when visiting the bank (under Win2000/XP) fixed - Windows installer should now upgrade old versions properly - Currency can now be configured with Currency.Symbol and Currency.Prefix - Windows client windows cannot now be made unreadably small - Bank/loan shark dialog now warns on entering negative prices - Default configuration is restored properly at the start of each game - Translations should now work with the Windows client - Documentation on the client-server protocol added - Windows graphical server can be minimized to the System Tray - Keyboard shortcuts for menu items in Windows client - Default buttons (ENTER -> "OK") for Windows client - RPM build/make install can now be run as non-superuser - Win32 install for current user/all users - Code cleanups # 1.5.2 - 2001-10-16 - Slightly easier-to-use "run from fight" Jet dialog (avoids the crazy "windows pop up faster than you can close them" syndrome) - Support for HTTP proxies and authentication - SOCKS4 and SOCKS5 (user/password) support - French translation added by leonard - Boolean configuration variables (TRUE/FALSE) now supported - Many code cleanups - High score files now have a "proper" header, so that file(1) can identify them, and so the -f option cannot be used to force setgid-games dopewars to overwrite random files writeable by group "games" - use the -C option to convert old high score files to the new format - GNU long command line options now accepted on platforms with `getopt_long` - Simple installer now in place for Win32 systems # 1.5.1 - 2001-06-19 - Improved logging in server via LogLevel and LogTimestamp variables - Metaserver (both client and server) moved to SourceForge - Icons (courtesy of Ocelot Mantis) and GNOME desktop entry added # 1.5.0 - 2001-05-13 - Fixes for spurious tipoffs - High scores should now be written properly on Win32 systems - Various minor usability fixes on Win32 systems # 1.5.0beta2 - 2001-04-29 - Various fixes for installation on BSD systems and Mac OS X - Multiplayer menus (spy on player, etc.) are now greyed out in GTK+ client when in single-player mode - Manpage (courtesy of Leon Breedt) added in doc/ - Fix for missing "bgetch" when configured with --disable-curses-client - Broken "trenchcoat" message fixed - Value of bought drugs now displayed in curses client - AI players now are at least partially functional - Fix for server segfault on invalid short network messages - dopewars no longer runs GTK+ setgid - "make install" installs dopewars as group "wheel" if "games" is unavailable # 1.5.0beta1 - 2001-04-08 - Completely rewritten fighting code - Internationalization (i18n) support - Tense and case-sensitive translated strings handled via `dpg_` analogues to glib's `g_` string handling functions `%P` = price, `%Txx` or `%txx` = tense-sensitive string, `%/.../` = comment (ignored) - Networking revamped - now uses nonblocking sockets to improve server responsiveness and to remove deadlocks (previously, any client could halt server by sending an unterminated message); "abilities" added to allow backwards-compatible protocol extensions; player IDs used rather than player names to save bandwidth, with newer client+server - Drug values now stored by server (e.g. "you have 5 Weed @ $600); sent only if DrugValue config. variable is set, and only to new clients (based on a patch by Pierre F) - Spying fixed (cannot now spy on a player until they accept your bitch) - Longer `T>alk` and `P>age` messages allowed in curses client - Minor bug fixes to configure options - configure script tweaked to fix networking under Solaris (and friends) (with thanks to Caolan McNamara) - Client-side code moved out of `clientside.c` and `dopewars.c`; client-specific code now placed in `_client.c`, while generic code is in `message.c` - GTK+ client added - Native "pointy-clicky" Win32 graphical client added (via GTK+ emulation) - GLib dependency introduced; string and list handling is taken care of now by GLib routines - Configuration files now handled by GLib's GScanner; "string lists" (of the format { "string1", "string2", "string3" } ) are now supported for configuration of subway sayings, "stopped to" and overheard songs - Timeouts bug fixed - MaxClients bug fixed # 1.4.8 - 2000-07-09 - Several fixes to Win32 networking code - IdleTimeout and ConnectTimeout variables added, to allow the server to break connections that have been idle for too long, or take too long to (dis)connect, respectively - Servers now use UDP packets to communicate with metaserver, for a faster response to changing game conditions; the client, and older versions of the server, still use the "old" CGI script interface; MetaServer.Port variable split into .HttpPort and .UdpPort - MetaServer.Password can now be used with a blank MetaServer.LocalName (with the new metaserver interface only) in order to identify servers whose IPs are dynamic (but are otherwise the "same" server); this password must, again, be acquired from the metaserver maintainer - Metaserver now records current & maximum numbers of players, high scores, and last update time and uptime, for each server - Servers now re-register with metaserver when players join or leave, on receipt of a SIGUSR1 signal, and periodically - Metaserver list in client now lists uptime, and current/maximum numbers of players - Pid file maintained while in server mode (-r command line switch) - Names of the gun shop, pub, bank and loan shark can now be customised (GunShopName, RoughPubName, BankName and LoanSharkName) - When a player tries to run from a fight, running to the current location now takes them back to the fighting screen # 1.4.7 - 2000-01-14 - Minor fixes to Win32 code - dopewars now uses autoconf to (hopefully) build properly on odd sytems such as HP-UX, and also to build "out of the box" under Cygwin (win32) - long long datatype used for all prices on platforms that support it - fixes to strtoprice and pricetostr code; replacement of code which uses printf("%ld") for prices with pricetostr calls (with thanks to Coolio) - "Leave" option added to Bank - Messages window is now only displayed for network games - Binary can be compiled without TCP/IP networking support (e.g. for use on standalone systems) by configuring with --disable-networking - Minor modification to config. file handling to allow variables to be set to null strings (use "Variable=") - Option to allow the "local" server name to be specified when registering with the metaserver - MetaServer.LocalName variable. Useful when the metaserver refuses to resolve your IP address to your "preferred" domain name or when connecting via an enforced web proxy. Email the metaserver maintainer, for an authentication password (MetaServer.Password) linked to your chosen domain name, to use this option successfully. # 1.4.6 - 1999-11-12 - Bug fix for message window and "sew you up" prompt - Bug fix for server hanging in LoseBitch function - If player opts to play again, server selection method used last time is used again - Terminal resizing now handled properly - Port to Win32 (Windows 95,98,NT) console mode # 1.4.5 - 1999-10-21 - Limited support now for terminals at sizes other than 80x24; but response to a resize during the program run doesn't work properly yet... - Minor improvements to AI players - Corrected website address displayed by client on connecting to a server of a different version - If player opts to play again, defaults to the name they used last time - Server now disconnects clients when their game ends (rather than waiting for them to politely disconnect) - this gets around the problem of particularly unresponsive clients getting killed and then sitting around in an "undead" state, able to be repeatedly killed by other players - Armed players cannot now "stand and take it" (why would you want to anyway?) in multiplayer fights - Client now offers to obtain the list of available servers from the metaserver, to select one to connect to - "Special" values (MetaServer), (Prompt) and (Single) (including the brackets) now accepted for the "Server" variable, which instruct the client to list the servers, prompt the user for a server, or play in single-player mode, rather than connecting immediately to a server - "MetaServer.Port" variable added to facilitate connection to the metaserver via a proxy server (with thanks to Tony Brown) - Signal handling cleaned up - Buffer overflow problem with ExtractWord() fixed (hopefully) (with thanks to Lamagra) - Command line option -S for running a "private" server (do not contact the metaserver) - Prices for spies and tipoffs can be customised; this information is not communicated properly between 1.4.5 and earlier versions, of course. In such a case, the game will still work properly, although the client may report erroneous spy and tipoff prices - Fixed dodgy "pricetostr" function - Bug fix for "Drop" command in single-player mode - Command line option -g for specifying a supplementary configuration file - FightTimeout variable fixed - it now actually does something... - GunShop, LoanShark, RoughPub and Bank variables corrected so that they take actual location numbers now - not (location-1). WARNING: this breaks old configuration files! - Full HTML documentation now provided - Prices of bitches for hire can now be configured - Bitch.MinPrice and Bitch.MaxPrice - Removed description of non-existent "die" command in server - Minor fixes in antique mode - Fix of NumDrug and NumGun processing (now allows more than the default number of drugs and guns) (with thanks to Matt Higgins) - "ConfigVerbose" option added to display extra feedback during config file processing (with thanks to Matt Higgins) # 1.4.4 - 1999-09-16 - Full compatibility with 1.4.3 servers and clients maintained (although a warning is displayed to upgrade as soon as possible) - dopewars client now properly redraws the screen when Ctrl-L is pressed - Server output is now line-buffered by default for more sensible output of log files - `L>ist` bug in single player mode fixed - Number of game turns can now be configured with the "NumTurns" variable, or the game can be left to go on forever if it's set to zero - The shortcuts "k" and "m" are now supported in any input of numbers (e.g. money to put in the bank). So, for instance, typing 1.5m would be short for typing 1500000 (m=million, k=thousand) - Server now automatically contacts the dopewars metaserver (actually a CGI script), at bellatrix.pcl.ox.ac.uk, whenever it is brought up or down, to keep the list of servers on the dopewars webpage up to date. Aspects of the server's communication with the metaserver can be configured with the MetaServer.xxx variables - Names of the two police officers which chase you (originally Hardass and Bob) can now be configured with the variables "Names.Officer" and "Names.ReserveOfficer" respectively (provided by: Mike Meyer) - Several uses of the string constant "bitches" rather than the variable "Names.Bitches" have been spotted, and corrected (provided by: Mike Meyer) - "Sanitized" variable - if nonzero, removes drug references (random events, the cops, etc.) - obviously drug names need to also be changed in the config. file to complement this. Turns dopewars into a simple trading game (provided by: Mike Meyer) - Minor formatting cleanups to accommodate longer drug names on the screen neatly (provided by: Mike Meyer) # 1.4.3 - 1999-06-23 - Bug with random offer of weed/paraquat fixed - `L>ist` command now offers list of logged-on players or high scores - "Out of time" message to explain why the game stops suddenly after 31 days - Bank is now a little more user-friendly - Messages announcing players leaving or joining the game now appear in the central "messages" window, rather than the main, bottom window - Clients should now behave properly after the server crashes (or they are pushed off the server) - i.e. they should revert to a single-player mode game - `price_t` type used for all prices - Server interactive interface is now greatly improved, complete with help screen - `SO_REUSEADDR` set so that server can be restarted immediately if it crashes - Facility to drop unwanted drugs, with the accompanying chance that you are caught by Officer Hardass and shot at - Fighting interface greatly improved:- - All player-player fighting now occurs in a specialised window. Players can switch between the standard "deal drugs" window and the fighting window with the D and F keys - Number of keystrokes required to shoot and acknowledge all the relevant messages now greatly reduced - Some indication is now given of the other player's status (number of bitches and guns) - Server now imposes timeouts on fights, so if an opponent does not return fire within a set time, a repeat attack is allowed - A bounty is paid out for killing an enemy bitch, and any guns/drugs they're carrying are passed on to the victor (if he/she is able to carry them) - A dead player's cash is appropriated by the victor of a fight - Handling of configuration files now greatly improved; the same options that are set here can also be set within the server as long as no players are connected. A large number of dopewars settings can be changed and customised from here. Customised settings will be used in single-player mode, and if dopewars is used as a server the settings will be propagated to any clients (of version 1.4.3 or higher) that connect. Not everything can be customised, but any remaining changes should be server-side only (and thus require no alteration to the clients). Options include:- - MaxClients option to limit the maximum number of players connected to the server - FightTimeout option to alter the length of the fight timeout - StartCash and StartDebt to change the default starting cash and debt of every player - Probabilities and toughness of Officer Hardass and his deputies can be "tweaked" - Numbers and names of locations, drugs and guns can be altered - The words used to denote "bitches", "guns" and "drugs" can be customised - Drugs can now be sorted by name or by price, in forwards or reverse order, with the DrugSortMethod option (can take values 1-4) # 1.4.2 - 1999-05-16 - AI player improvements - Message structure changed to use less bandwidth and neater code - Now easier to break out of buy/sell drug prompts etc. (by pressing an 'invalid' key or ENTER) - Cleanup of player list - Cleanup after a player leaves the server; i.e. remove any references to their spies or tipoffs with other players - Added highlight of most recent score (for systems without working `A_STANDOUT` attribute) - Fixed bug which caused all street-bought (i.e. not at Dan's gun shop) guns to be Saturday Night Specials - Prevented badly-behaved clients from continuing to jet to new locations after their death - Added code to remove whitespace from name=value data read from configuration file, and defaulted from $HOME/.dopewars to /etc/dopewars - Added "helpful" messages when guns cannot be bought or sold in gun shop - Minor cleanups of player-player fighting messages # 1.4.1b - 1999-04-28 - segfault bug in server fixed # 1.4.1a - 1999-04-28 - Interim release before 1.4.2; a few bug fixes in antique mode # 1.4.1 - 1999-04-27 - Fix of bug where paying off your debt would actually _increase_ it! Dunno how that one slipped through... I blame my beta testers... ;) # 1.4.0 - 1999-04-27 - Fixed bug with server; server now detects if standard input has been closed properly (previously if its input was redirected from /dev/null it would keep trying to read from it, using 100% CPU. Oops.) - First release under GPL # 1.3.8 - 1999-04-26 - Message structure changed; separator changed from : to ^ and extra field added to identify messages to AI players - Shorthand routines added for "printmessage" and "question" messages; SendPrintMessage and SendQuestion repectively - Display of status of fight with Officer Hardass cleaned up - All servers are now interactive; to run in background simply attach standard input and output to /dev/null - AI Player can now connect to server and perform simple actions - Bank and Loan Shark display cleaned up - Drug busts etc. now displayed all at once rather than singly - High scores now maintained by server - `print_price` replaced with `FormatPrice` - LOGF macro now used for all server log messages - Read in location of score files, server, port from ~/.dopewars - Fixed bugs in player-player fighting code # 1.3.7 - 1999-03-28 - Proper support for tipoffs and spies - Discovered spies cannot now be shot if you don't have a gun... - Option added for computer players (non-functional however) # 1.3.6 - 1999-03-14 - BreakoffCombat routine added to terminate fights cleanly when one player runs away from a fight (under 1.3.5 defending player would just hang when this was done...) # 1.3.5 - 1999-02-27 - Basic support for meeting other players; `E_MEETOTHER` event added - Simple player-player fights allowed with the use of `E_WAITFIGHT`, `E_DEFEND` and `E_ATTACK` events - Two players with same name bug fixed - "question" message extended; server now passes a list of allowed responses in the first "word" of message data # 1.3.4 - 1999-02-25 - Client and virtual server now maintain completely separate lists of players - GunShop now works properly; user can actually see what's going on! # 1.3.3 - 1999-02-23 - Complete implementation of fighting with Officer Hardass - `E_DOCTOR` event added to handle question "do you want a doctor to sew you up?" after killing Hardass - Clients now handle list and endlist messages properly to display lists of current players on starting a game - Minor bugfix to ensure game actually ends after the 31st - Client now wipes price list on each jet to stop old prices flashing up between messages from the server # 1.3.2 - 1999-02-22 - "subwayflash" message added - OfferObject/RandomOffer split into separate event from OfficerHardass - "smoke paraquat" also given separate event (`E_WEED`) and implemented - Bank/LoanShark bugfixes - Bugfix for drug price generation code - Partial implementation of fighting with Officer Hardass # 1.3.1 - 1999-02-21 - Drugs can now be bought and sold - RandomOffer and OfferObject routines added to handle server-based random events ("a friend gives you..." etc.) and object offers ("do you want to buy a..." etc.) although "smoke paraquat?" doesn't work properly - GunShop / LoanShark / Bank / Pub all handled by the server now - Some networking bugfixes # 1.3.0 - 1999-02-20 - Development series (moving decision-making from client to server to improve multi-player games and cut down on cheating, in preparation for an OpenSource release) - Simple implementation of a "virtual server" to handle the server-side stuff within a single-player game - Splitting up of Dopewars into dopewars.c (init. code and utils); message.c (message-handling code); serverside.c (server-side code); clientside.c (client-side code) - Drug prices now generated by server, not client - so synchronisation of turns (and drug prices) should be easy to implement in the future - Minimal functionality - networking backbone only... # 1.2.0 - 1999-02-13 - Stable release; some bugs in fighting code cleaned up # 1.1.26 - 1999-02-13 - "PolicePresence" member is now read - when a fight is started, there is a finite chance (varies from location to location) that the perpetrator will get attacked by the police - MinDrug and MaxDrug members added to Location struct - some locations may have a smaller range of drugs on offer than others # 1.1.25 - 1999-02-11 - Added an "Inventory" struct to keep track of players' belongings and anything dropped during a fight; winner of a fight now gets whatever the other player dropped (guns and/or drugs) # 1.1.24 - 1999-02-09 - Put in code to "finish" fights properly when one player escapes - Attacking player is now told whether they hit the other player or not when in a fight # 1.1.23 - 1999-02-03 - "Jet" command replaced with "Run" when in a fight - "PolicePresence" member added to Location struct - GunShop bug fixed (guns were taking up no space) # 1.1.22 - 1999-01-30 - Implemented very simple "shoot at another dealers" code; players, on arriving at a location where another dealer already is, can choose to attack (if they have any guns). The attacked player can then choose to return fire or run for it... # 1.1.21 - 1999-01-29 - Added support for the "spy on another dealer" bitch errand # 1.1.20 - 1999-01-29 - Added support for the "tip off another dealer to the cops" bitch errand dopewars-1.6.2/AUTHORS000644 000765 000024 00000002753 14256000065 014330 0ustar00benstaff000000 000000 dopewars is derived from the MS-DOS game of the same name (author unknown). This is turn was based upon the MS-DOS game "Drug Wars", by John E. Dell. dopewars is written by and is copyright of Ben Webb (benwebb@users.sf.net) Pivotal to the development of dopewars were and are the following:- Dan Wolf for uncountable numbers of useful suggestions for the structure of the multiplayer game, drawing upon a disturbing knowledge of the drugs world. He also undertook scary amounts of research (i.e. playing the game) to assist with the re-engineering of the MS-DOS version, and plays the game to an unhealthy extent (as is witnessed by his high scores on many dopewars servers). Phil Davis, Caroline Moore, Katherine Holt and Andrea Elliot-Smith for extensive play testing of early versions of dopewars, despite the large amounts of "real" work which they were supposed to be doing, and despite the many dodgy bugs, as well as for providing suggestions, even if they were often rude. You know who you are. Owen Walsh and Pete Winn for yet more play testing, and for consequently doing very little research in vastly more important fields... James Matthews for providing absolutely no useful suggestions, but providing vital assistance with the Officer Bob code. Mike Meyer for providing several modifications to version 1.4.3, as well as spotting many of his own and my bugs... Matt Higgins for a couple of patches to version 1.4.4. Tony Brown for assistance with using dopewars via. enforced web proxies. dopewars-1.6.2/ABOUT-NLS000644 000765 000024 00000000103 14256000065 014472 0ustar00benstaff000000 000000 dopewars-1.6.2/TODO000644 000765 000024 00000004324 14256242752 013757 0ustar00benstaff000000 000000 - User accounts (i.e. players connect with a username and password, so can build up their status over several games, or save and continue games) - Popup to let you know you only have x days left before the end of the game - Better use of screen space in curses client for large xterms etc. - Preserve chat messages at end of game (so they aren't lost when looking at the high score list) ? - Price history graph and/or more sensible price fluctuations - Network installer for Win32 version, so that we don't have to distribute megabytes of DLLs, sounds and translations if the user doesn't want them (or already has them) - Option to let the cops search/fine you rather than shooting at them - Limit rate of server connections to combat DOS attacks / players trying to get a good starting day? - Add support for reading/writing multiple configuration files to GUI client's Options dialog - Startscreen - Track down server memory corruption bug! - Implement server option to buy more than one bitch at a time in the Pub. - Allow customisation of GtkTextView tag colours - Admin of running NT Service servers - GSS_API SOCKS support? - Fix problem with dialogs popping up while menus are open - Increase difficulty of escaping from another player - impose penalty on running (lose drugs, free shot, destination revealed) - Alliances/cartels - several players share cash - Introduce minimum/maximum players options - AI players automatically spawned/killed to "fill the gaps" when humans leave/enter - "Deal" option when meeting players? - Bribe/steal bitches when meeting players (difficulty inv. prop. to number of bitches?) - Problems reported with display of large prices and health - "seems" to be OK now... (i.e. I can't see anything wrong with it!) - Fix GTK+ modal dialog behaviour (mouse grabbing during fighting) - _seems_ to be OK... - Fix bug with players leaving the game during fights (first, must find it) - Metaserver keeps list of game types of each server Cannot reproduce... can you? (- Investigate deadlock during fighting if both players move to "deal") Cannot reproduce... can you? (- Investigate prompt for bitch on every turn after a spy is dispatched) dopewars-1.6.2/Makefile.am000644 000765 000024 00000001565 14256000065 015314 0ustar00benstaff000000 000000 SUBDIRS = src doc po sounds DESKTOPDIR = ${DESTDIR}${datadir}/gnome/apps/Games DESKTOP = dopewars.desktop SCOREDIR = ${DESTDIR}${localstatedir} SCORE = ${SCOREDIR}/dopewars.sco EXTRA_DIST = ABOUT-NLS LICENCE dopewars.desktop rpm/dopewars.spec.in \ runindent.sh win32/README.md win32/install.nsi.in README.md \ win32/mingw/Dockerfile ChangeLog.md CLEANFILES = dopewars.sco dopewars-log.txt dopewars-config.txt DISTCLEANFILES = rpm/dopewars.spec ACLOCAL_AMFLAGS= -I m4 install-data-local: ${mkinstalldirs} ${SCOREDIR} touch ${SCORE} @chgrp games ${SCORE} || chgrp wheel ${SCORE} || \ echo "Unable to change group ownership of the high score file" chmod 0660 ${SCORE} ${mkinstalldirs} ${DESKTOPDIR} ${INSTALL} -m 0644 ${srcdir}/${DESKTOP} ${DESKTOPDIR} uninstall-local: /bin/rm -f ${SCORE} ${DESKTOPDIR}/${DESKTOP} dopewars-1.6.2/README.md000644 000765 000024 00000011353 14256242752 014546 0ustar00benstaff000000 000000 [![Build Status](https://github.com/benmwebb/dopewars/workflows/build/badge.svg?branch=develop)](https://github.com/benmwebb/dopewars/actions?query=workflow%3Abuild) [![Download dopewars drug dealing game](https://img.shields.io/sourceforge/dt/dopewars.svg)](https://dopewars.sourceforge.io/download.html) This is dopewars 1.6.2, a game simulating the life of a drug dealer in New York. The aim of the game is to make lots and lots of money... unfortunately, you start the game with a hefty debt, accumulating interest, and the cops take a rather dim view of drug dealing... These are brief instructions; see the HTML documentation for full information. dopewars 1.6.2 servers should handle clients as old as version 1.4.3 with hardly any visible problems (the reverse is also true). However, it is recommended that both clients and servers are upgraded to 1.6.2! ## Installation Either... 1. Get the relevant RPM from https://dopewars.sourceforge.io/ Or... 1. Get the tarball `dopewars-1.6.2.tar.gz` from the same URL 2. Extract it via `tar -xvzf dopewars-1.6.2.tar.gz` 3. Follow the instructions in the `INSTALL` file in the newly-created `dopewars-1.6.2` directory Once you're done, you can safely delete the RPM, tarball and dopewars directory. The dopewars binary is all you need! dopewars stores its high score files by default in `/usr/share/dopewars.sco` This will be created by make install or by RPM installation. A different high score file can be selected with the `-f` switch. ## Windows installation dopewars now compiles as a console or regular application under Win32 (Windows 7 or later). Almost all functionality of the standard Unix binary is retained; for example, all of the same command line switches are supported. However, for convenience, the configuration file is the more Windows-friendly "dopewars-config.txt". The easiest way to install the Win32 version is to download the precompiled binary. To build from source, see the `win32` directory. ## Usage dopewars has built-in client-server support for multi-player games. For a full list of options configurable on the command line, run dopewars with the `-h` switch. `dopewars -a` This is "antique" dopewars; it tries to keep to the original dopewars, based on the "Drug Wars" game by John E. Dell, as closely as possible. `dopewars` By default, dopewars supports multi-player games. On starting a game, the program will attempt to connect to a dopewars server so that players can send messages back and forth, and shoot each other if they really want to... `dopewars -s` Starts a dopewars server. This sits in the background and handles multi-player games. You probably want to use the `-l` command line option too to direct its log output to somewhere sensible. `dopewars -c` Create and run a computer dopewars player. This will attempt to connect to a dopewars server, and if this succeeds, it will then participate in multi-player dopewars games. ## Configuration Most of the dopewars defaults (for example, the location of the high score file, the port and server to connect to, the names of the drugs and guns, etc.) can be configured by adding suitable entries to the dopewars configuration file. The global file `/etc/dopewars` is read first, and can then be overridden by the local settings in `~/.dopewars`. All of the settings here can also be set on the command line of an interactive dopewars server when no players are logged on. See the file "example-cfg" for an example configuration file, and for a brief explanation of each option, type "help" in an interactive server. A subset of the configuration options can also be tweaked via the "Options" menu item in the GTK+/Win32 client. ## Playing dopewars is supposed to be fairly self-explanatory. You should be able to pick the basics up fairly quickly, but still be discovering subtleties for _ages_ ;) If you're _really_ stuck, send me an email. I might even answer it! Clue: buy drugs when they're cheap, sell them when they're expensive. The Bronx and Ghetto are "special" locations. Anything more would spoil the fun. ;) ## Bugs Well, there are bound to be lots. Let me know if you find any by [opening an issue](https://github.com/benmwebb/dopewars/issues), and I'll see if I can fix 'em... of course, a [working patch](https://github.com/benmwebb/dopewars/pulls) would be even nicer! ;) ## License dopewars is released under the GNU General Public License; see the text file LICENCE for further information. dopewars is copyright (C) Ben Webb 1998-2022. The dopewars icons are copyright (C) Ocelot Mantis 2001. ## Support dopewars is written and maintained by Ben Webb Enquiries about dopewars may be sent to this address (keep them sensible please ;) Bug fixes and reports, improvements and patches are also welcomed. dopewars-1.6.2/sounds/000755 000765 000024 00000000000 14256243623 014575 5ustar00benstaff000000 000000 dopewars-1.6.2/COPYING000644 000765 000024 00000043132 14256000065 014307 0ustar00benstaff000000 000000 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) 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) year 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. dopewars-1.6.2/runindent.sh000755 000765 000024 00000003706 14256000065 015624 0ustar00benstaff000000 000000 #!/bin/sh -f indent -kr -i2 -cp1 -ncs -bad -nut \ -fc1 -fca -sc \ \ -T SCREEN \ \ -T ssize_t -T fd_set -T FILE \ \ -T price_t -T AbilType -T Abilities -T ClientType -T DispMode \ -T EventCode -T PlayerFlags -T DrugIndex -T Inventory -T Player \ -T DopeEntry -T DopeList -T ServerData -T ErrorType -T LastError \ -T CustomErrorCode -T ErrTable -T MetaErrorCode -T MsgCode -T AICode \ -T FightPoint -T SocksMethods -T SocksErrorCode -T HttpErrorCode \ -T ConnBuf -T NetworkBuffer -T NBCallBack -T NBUserPasswd \ -T SocksServer -T NBStatus -T NBSocksStatus -T HttpStatus \ -T HttpConnection -T HCAuthFunc -T OfferForce -T FmtData \ \ -T TCHAR -T DWORD -T HANDLE -T ACCEL -T RECT -T COLORREF \ -T LPARAM -T WPARAM -T LPMINMAXINFO -T HWND -T LPMEASUREITEMSTRUCT \ -T HD_NOTIFY -T NMHDR -T UINT -T SOCKET -T HBRUSH -T LONG -T LPTSTR \ -T HFONT -T BOOL \ \ -T GString -T gpointer -T gconstpointer -T gchar -T guchar -T gint \ -T guint -T GList -T GSList -T gboolean -T GScannerConfig -T GScanner \ -T GPtrArray -T GArray -T gfloat -T gint16 \ \ -T GtkObject -T GtkCList -T GtkWidget -T GtkRequisition \ -T GtkAllocation -T GtkWindow -T GtkContainer -T GtkRadioButton \ -T GtkAdjustment -T GtkEntry -T GtkAccelGroup -T GtkTable \ -T GtkItemFactory -T GtkItemFactoryEntry -T GtkEditable -T GtkText \ -T GtkBox -T GtkToggleButton -T GtkMenuShell -T GtkMenuBar -T GtkMenu \ -T GtkNotebook -T GtkMenuItem -T GtkPaned -T GtkOptionMenu -T GtkLabel \ -T GtkSpinButton -T GtkMisc -T GtkProgressBar -T GdkEvent -T GtkButton \ -T GtkClass -T GdkInput -T GtkBoxChild -T GtkTableChild -T GtkSignal \ -T GtkGIntSignalFunc -T GtkItemFactoryChild -T GtkNotebookChild \ -T GtkCListRow -T GdkEventButton -T GtkCheckButton -T GtkTimeout \ \ -T NTService -T InstFiles -T InstLink -T InstData -T bstr -T InstFlags dopewars-1.6.2/compile000755 000765 000024 00000016245 14256000065 014637 0ustar00benstaff000000 000000 #! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # Written by Tom Tromey . # # 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, see . # 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. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: dopewars-1.6.2/po/000755 000765 000024 00000000000 14256243623 013700 5ustar00benstaff000000 000000 dopewars-1.6.2/NEWS000644 000765 000024 00000015716 14256242752 013775 0ustar00benstaff000000 000000 26th June 2022 dopewars-1.6.2 released. This improves Unicode support in the text-mode client, and adds support for networking on the Haiku operating system. 11th December 2020 dopewars-1.6.1 released. This improves the appearance of the text-mode client, adds a British English translation, and fixes a bug selecting sounds from the options dialog of the Windows client. 6th December 2020 dopewars-1.6.0 released. The metaserver, broken since SourceForge moved to HTTPS, should work again. This release also adds support for modern 64-bit operating systems, and newer software libraries such as GTK+3 and SDL 2. 30th December 2005 dopewars-1.5.11 released. This is largely a security bugfix release, fixing a potential exploit against the Windows server when running as an NT serivce. 24th October 2004 dopewars-1.5.10 released. This is largely a bugfix release, fixing a server DOS and some minor bugs in the text-mode client. 7th June 2003 dopewars-1.5.9 released. This is largely a bugfix release, fixing a crash on pressing the "drop drugs" button, and adding minor improvements to the text-mode client. 21st October 2002 dopewars-1.5.8 released. The Windows and GTK+2.0 builds now have fairly complete Unicode support. A default set of sounds is now provided, and Windows XP is better supported. 25th June 2002 dopewars-1.5.7 released. There is now sound support (ESD and/or SDL on Unix systems, WinMM on Win32) although you have to provide your own WAVs (musicians take note - if you can provide suitable copyright-free sounds, then they can be included in future releases). Some minor bugs have been fixed, and overall security has been tightened up. 29th April 2002 dopewars-1.5.6 released. This corrects some problems with the GTK+2.0 client in non-UTF8 locales, fixes a server memory corruption bug, and adds extra sanity checks to the server to foil cheating clients. 13th April 2002 dopewars-1.5.5 released. The code should now compile with GTK+2.0, and several minor glitches have been fixed. 3rd March 2002 dopewars-1.5.4 released. This fixes bugs observed on the PPC platform, and adds a configuration file editor to the graphical client. 4th February 2002 dopewars-1.5.3 released. This fixes several bugs and annoyances in the Windows version, and supports running the Windows server as an "NT Service". The Unix server is now also more daemon-like. 16th October 2001 dopewars-1.5.2 released. This features a new networking subsystem, with HTTP/1.0 and SOCKS4&5 support, and now has a familiar install/uninstall program for Windows systems. 19th June 2001 dopewars-1.5.1 released. This fixes a few minor bugs, and supports the "new" metaserver on SourceForge. 13th May 2001 dopewars-1.5.0 released. This improves on 1.4.8 by adding a graphical client, and features many security and usability fixes. 29th April 2001 Second beta release of 1.5.0, fixing several bugs that were reported with the first beta. 9th April 2001 Beta release of the new dopewars version, 1.5.0, which features a graphical client, internationalisation, and rewrites of many parts of the code. 10th September 2000 The dopewars project, previously hosted solely at http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/ now has an additional home at SourceForge! This is to allow developers easier access to development codes (by CVS) and to take advantage of SourceForge's mailing lists and forums. Translators are particularly needed for translation of the development version of the dopewars code into other languages! 2nd August 2000 The German translation now has its home at http://www.ideenpark.de/dopewars/. This site also mirrors the original English version of the program. 28th July 2000 A German translation of dopewars is now available, at http://www.rLUG.de/files/dopewars-german/. 9th July 2000 dopewars 1.4.8 released. This features a complete revamp of the metaserver interface - new servers now report game data, such as current number of players and high scores, to the metaserver. Several bugs, mainly in the Win32 networking code, have been fixed. 2nd July 2000 A mirror in the US is now available for dopewars downloads. Follow the US links (as opposed to the UK links) on the download page to download from this site. 14th January 2000 dopewars 1.4.7 released. This now uses autoconf to build on a variety of "odd" Unices, and also "out of the box" under Cygwin (Win32). Servers for which the IP is incorrectly resolved by the metaserver can now set a preferred hostname with the "MetaServer.LocalName" variable. 31st Decemeber 1999 The Polish version of dopewars has moved to http://dresswars.mtl.pl/ 12th November 1999 dopewars 1.4.6 released. This fixes a few minor bugs with 1.4.5, and is now also available on the popular Windows platform. A Win32 binary can be downloaded from the download page, http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/download.html. 8th November 1999 A translation of the dopewars pages and dopewars client software into Polish is now available at http://naboo.mtl.pl/~dopewars/. 21st October 1999 dopewars 1.4.5 released. Client players can now be instructed to connect to the metaserver, to present a "nice" list of available servers for the user to select from; more configuration options; metaserver almost works with web proxies now. 11th October 1999 Snapshots of the latest in-development version of dopewars are now made available on a semi-regular basis at the main download page. HTML documentation is also now available. 16th September 1999 dopewars 1.4.4 released. This handles connection to the new metaserver automatically, so that the list of dopewars servers can be easily kept up to date. Other minor changes fix small bugs from earlier versions. 15th September 1999 Servers can now be registered by completing the form at http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/serverform.html. The upcoming version 1.4.4 of dopewars will be able to handle the connection to the web and the completion of registration details automatically. 23rd June 1999 dopewars 1.4.3 released. This adds many new features (while hopefully not adding any new bugs) such as much better fight handling, and the ability to customise dopewars servers and clients. 16th May 1999 dopewars 1.4.2 released. This version fixes numerous minor bugs and makes many small improvements - most noticeable is the support for AI players in multiplayer games (dopewars -c). 28th April 1999 Interim release of dopewars 1.4.1b, which fixes a segfault problem with the server. 28th April 1999 Interim release of dopewars 1.4.1a, which corrects a few minor bugs in "antique" mode. 27th April 1999 dopewars 1.4.1 released. This fixes a bug with the loan shark, which was discovered by several people quick off the mark; dunno how that slipped past my team of beta testers here at Oxford - they're obviously too busy doing "real" work! 27th April 1999 First GPL release of dopewars (1.4.0) dopewars-1.6.2/m4/000755 000765 000024 00000000000 14256243621 013600 5ustar00benstaff000000 000000 dopewars-1.6.2/doc/000755 000765 000024 00000000000 14256243622 014026 5ustar00benstaff000000 000000 dopewars-1.6.2/dopewars.desktop000644 000765 000024 00000000534 14256242752 016505 0ustar00benstaff000000 000000 [Desktop Entry] Name=dopewars Name[de]=Drogenkrieg Name[pl]=Wojny narkotykowe Comment=dopewars drug dealing game Comment[pl]=Gra polegająca na handlowaniu narkotykami Comment[fr]=Jeu de vente de drogue Exec=dopewars Icon=dopewars-weed.png Terminal=false Type=Application Categories=Application;Game;ArcadeGame; Encoding=UTF-8 # vi: encoding=utf-8 dopewars-1.6.2/mkinstalldirs000755 000765 000024 00000006722 14256000066 016067 0ustar00benstaff000000 000000 #! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2009-04-28.21; # UTC # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the 'mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because '.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: dopewars-1.6.2/win32/000755 000765 000024 00000000000 14256243621 014222 5ustar00benstaff000000 000000 dopewars-1.6.2/rpm/000755 000765 000024 00000000000 14256243621 014056 5ustar00benstaff000000 000000 dopewars-1.6.2/Makefile.in000644 000765 000024 00000070736 14256243571 015346 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = rpm/dopewars.spec win32/install.nsi CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/auxbuild/compile \ $(top_srcdir)/auxbuild/config.guess \ $(top_srcdir)/auxbuild/config.rpath \ $(top_srcdir)/auxbuild/config.sub \ $(top_srcdir)/auxbuild/install-sh \ $(top_srcdir)/auxbuild/ltmain.sh \ $(top_srcdir)/auxbuild/missing \ $(top_srcdir)/rpm/dopewars.spec.in \ $(top_srcdir)/win32/install.nsi.in ABOUT-NLS AUTHORS COPYING \ ChangeLog.md INSTALL NEWS README.md TODO auxbuild/compile \ auxbuild/config.guess auxbuild/config.rpath \ auxbuild/config.sub auxbuild/depcomp auxbuild/install-sh \ auxbuild/ltmain.sh auxbuild/missing compile mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src doc po sounds DESKTOPDIR = ${DESTDIR}${datadir}/gnome/apps/Games DESKTOP = dopewars.desktop SCOREDIR = ${DESTDIR}${localstatedir} SCORE = ${SCOREDIR}/dopewars.sco EXTRA_DIST = ABOUT-NLS LICENCE dopewars.desktop rpm/dopewars.spec.in \ runindent.sh win32/README.md win32/install.nsi.in README.md \ win32/mingw/Dockerfile ChangeLog.md CLEANFILES = dopewars.sco dopewars-log.txt dopewars-config.txt DISTCLEANFILES = rpm/dopewars.spec ACLOCAL_AMFLAGS = -I m4 all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): rpm/dopewars.spec: $(top_builddir)/config.status $(top_srcdir)/rpm/dopewars.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ win32/install.nsi: $(top_builddir)/config.status $(top_srcdir)/win32/install.nsi.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # 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. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ 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; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -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 $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_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 case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(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 ../.. && umask 077 && mkdir "$$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 \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { 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 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) 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 clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-data-local install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: 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 mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-local .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip dist-zstd distcheck distclean \ distclean-generic distclean-libtool distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-data-local install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-local .PRECIOUS: Makefile install-data-local: ${mkinstalldirs} ${SCOREDIR} touch ${SCORE} @chgrp games ${SCORE} || chgrp wheel ${SCORE} || \ echo "Unable to change group ownership of the high score file" chmod 0660 ${SCORE} ${mkinstalldirs} ${DESKTOPDIR} ${INSTALL} -m 0644 ${srcdir}/${DESKTOP} ${DESKTOPDIR} uninstall-local: /bin/rm -f ${SCORE} ${DESKTOPDIR}/${DESKTOP} # 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: dopewars-1.6.2/aclocal.m4000644 000765 000024 00000125702 14256243570 015132 0ustar00benstaff000000 000000 # generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 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. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, [m4_warning([this file was generated for autoconf 2.71. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2021 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. # 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. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2021 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. # 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. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2021 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. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl 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])]) # Copyright (C) 1999-2021 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. # 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", "OBJC", "OBJCXX", "UPC", or "GJC". # 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 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$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". rm -rf conftest.dir 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 am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) 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 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # 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. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; 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 ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj 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 # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' 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], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2021 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. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _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. # This creates each '.Po' and '.Plo' makefile fragment that we'll 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" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 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 macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # 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_PREREQ([2.65])dnl m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi 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], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])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]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). 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([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # 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_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2021 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2021 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. # 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])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 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. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 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. # 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 is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2021 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. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2021 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. # _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], [m4_foreach_w([_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])]) # Copyright (C) 1999-2021 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. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2021 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. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2021 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. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # 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 ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file 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 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 if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done 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]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2021 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. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2021 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. # AM_PROG_INSTALL_STRIP # --------------------- # 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="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2021 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. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2021 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. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/dp_expand_dir.m4]) m4_include([m4/esd.m4]) m4_include([m4/gettext.m4]) m4_include([m4/glib-2.0.m4]) m4_include([m4/gtk-2.0.m4]) m4_include([m4/host-cpu-c-abi.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/libcurl.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([m4/nls.m4]) m4_include([m4/pkg.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) m4_include([m4/sdl.m4]) m4_include([m4/sdl2.m4]) dopewars-1.6.2/auxbuild/000755 000765 000024 00000000000 14256243621 015075 5ustar00benstaff000000 000000 dopewars-1.6.2/LICENCE000644 000765 000024 00000043132 14256000066 014242 0ustar00benstaff000000 000000 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) 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) year 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. dopewars-1.6.2/src/000755 000765 000024 00000000000 14256243622 014050 5ustar00benstaff000000 000000 dopewars-1.6.2/src/log.c000644 000765 000024 00000007634 14256242752 015012 0ustar00benstaff000000 000000 /************************************************************************ * log.c dopewars - logging functions * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #ifdef HAVE_SYSLOG_H #include #endif #include "dopewars.h" #include "log.h" /* * General logging function. All messages should be given a loglevel, * from 0 to 5 (0=vital, 2=normal, 5=maximum debugging output). This * is essentially just a wrapper around the GLib g_log function. */ void dopelog(const int loglevel, const LogFlags flags, const gchar *format, ...) { va_list args; /* Don't print server log messages when running standalone */ if (flags & LF_SERVER && !Network) return; va_start(args, format); g_logv(G_LOG_DOMAIN, 1 << (loglevel + G_LOG_LEVEL_USER_SHIFT), format, args); va_end(args); #ifdef HAVE_SYSLOG_H if (loglevel <= Log.Level) { va_start(args, format); vsyslog(LOG_INFO, format, args); va_end(args); } #endif } /* * Returns the bitmask necessary to catch all custom log messages. */ GLogLevelFlags LogMask() { return ((1 << (MAXLOG)) - 1) << G_LOG_LEVEL_USER_SHIFT; } /* * Returns the text to be displayed in a log message, if any. */ GString *GetLogString(GLogLevelFlags log_level, const gchar *message) { GString *text; gchar TimeBuf[80]; gint i; time_t tim; struct tm *timep; #ifdef HAVE_LOCALTIME_R struct tm tmbuf; #endif text = g_string_new(""); if (Log.Timestamp) { tim = time(NULL); #ifdef HAVE_LOCALTIME_R timep = localtime_r(&tim, &tmbuf); #else timep = localtime(&tim); #endif strftime(TimeBuf, 80, Log.Timestamp, timep); TimeBuf[79] = '\0'; g_string_append(text, TimeBuf); } for (i = 0; i < MAXLOG; i++) if (log_level & (1 << (G_LOG_LEVEL_USER_SHIFT + i))) { if (i > Log.Level) { g_string_free(text, TRUE); return NULL; } g_string_append_printf(text, "%d: ", i); } g_string_append(text, message); return text; } void OpenLog(void) { CloseLog(); #ifdef HAVE_SYSLOG_H openlog(PACKAGE, LOG_PID, LOG_USER); #endif if (Log.File[0] == '\0') return; Log.fp = fopen(Log.File, "a"); if (Log.fp) { #ifdef SETVBUF_REVERSED /* 2nd and 3rd arguments are reversed on * some systems */ setvbuf(Log.fp, _IOLBF, (char *)NULL, 0); #else setvbuf(Log.fp, (char *)NULL, _IOLBF, 0); #endif } } void CloseLog(void) { if (Log.fp) fclose(Log.fp); Log.fp = NULL; } dopewars-1.6.2/src/error.h000644 000765 000024 00000005235 14256242752 015362 0ustar00benstaff000000 000000 /************************************************************************ * error.h Header file for dopewars error-handling routines * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_ERROR_H__ #define __DP_ERROR_H__ #ifdef HAVE_CONFIG_H #include #endif #include struct _LastError; typedef struct _ErrorType { void (*AppendErrorString) (GString *str, struct _LastError *error); void (*FreeErrorData) (struct _LastError *error); } ErrorType; typedef struct _LastError { gint code; ErrorType *type; gpointer data; } LastError; extern ErrorType *ET_CUSTOM, *ET_ERRNO; #ifdef CYGWIN extern ErrorType *ET_WIN32, *ET_WINSOCK; #else extern ErrorType *ET_HERRNO; #endif typedef enum { E_FULLBUF } CustomErrorCode; typedef struct _ErrTable { gint code; gchar *string; } ErrTable; void WantUTF8Errors(gboolean want); gchar *ErrStrFromErrno(int errcode); void FreeError(LastError *error); LastError *NewError(ErrorType *type, gint code, gpointer data); void SetError(LastError **error, ErrorType *type, gint code, gpointer data); void LookupErrorCode(GString *str, gint code, ErrTable *table, gchar *fallbackstr); void g_string_assign_error(GString *str, LastError *error); void g_string_append_error(GString *str, LastError *error); #endif /* __DP_ERROR_H__ */ dopewars-1.6.2/src/curses_client/000755 000765 000024 00000000000 14256243622 016712 5ustar00benstaff000000 000000 dopewars-1.6.2/src/sound.h000644 000765 000024 00000004053 14256242752 015356 0ustar00benstaff000000 000000 /************************************************************************ * sound.h Header file for dopewars sound system * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_SOUND_H__ #define __DP_SOUND_H__ #ifdef HAVE_CONFIG_H #include #endif #include struct _SoundDriver { void *module; gchar *name; gboolean (*open) (void); void (*close) (void); void (*play) (const gchar *snd); }; typedef struct _SoundDriver SoundDriver; gchar *GetPluginList(void); void SoundInit(void); void SoundOpen(gchar *drivername); void SoundClose(void); void SoundPlay(const gchar *snd); void SoundEnable(gboolean enable); gboolean IsSoundEnabled(void); #endif /* __DP_SOUND_H__ */ dopewars-1.6.2/src/network.c000644 000765 000024 00000125075 14256242752 015722 0ustar00benstaff000000 000000 /************************************************************************ * network.c Low-level networking routines * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef NETWORKING #ifdef CYGWIN #include /* For network functions */ #include /* For datatypes such as BOOL */ #include "winmain.h" #else #include /* For size_t etc. */ #include /* For struct sockaddr etc. */ #include /* For struct sockaddr_in etc. */ #include /* For socklen_t */ #include /* For getpwuid */ #include /* For memcpy, strlen etc. */ #ifdef HAVE_UNISTD_H #include /* For close(), various types and * constants */ #endif #ifdef HAVE_FCNTL_H #include /* For fcntl() */ #endif #include /* For gethostbyname() */ #endif /* CYGWIN */ #include #include /* For errno and Unix error codes */ #include /* For exit() and atoi() */ #include /* For perror() */ #include "error.h" #include "network.h" #include "nls.h" /* Maximum sizes (in bytes) of read and write buffers - connections should * be dropped if either buffer is filled */ #define MAXREADBUF (32768) #define MAXWRITEBUF (65536) /* SOCKS5 authentication method codes */ typedef enum { SM_NOAUTH = 0, /* No authentication required */ SM_GSSAPI = 1, /* GSSAPI */ SM_USERPASSWD = 2 /* Username/password authentication */ } SocksMethods; static gboolean StartSocksNegotiation(NetworkBuffer *NetBuf, gchar *RemoteHost, unsigned RemotePort); static gboolean StartConnect(int *fd, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort, gboolean *doneOK, LastError **error); #ifdef CYGWIN void StartNetworking() { WSADATA wsaData; LastError *error; GString *errstr; if (WSAStartup(MAKEWORD(1, 0), &wsaData) != 0) { error = NewError(ET_WINSOCK, WSAGetLastError(), NULL); errstr = g_string_new(""); g_string_assign_error(errstr, error); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot initialize WinSock (%s)!"), errstr->str); g_string_free(errstr, TRUE); FreeError(error); exit(EXIT_FAILURE); } } void StopNetworking() { WSACleanup(); } void SetReuse(SOCKET sock) { BOOL i = TRUE; if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&i, sizeof(i)) == -1) { perror("setsockopt"); exit(EXIT_FAILURE); } } void SetBlocking(SOCKET sock, gboolean blocking) { unsigned long param; param = blocking ? 0 : 1; ioctlsocket(sock, FIONBIO, ¶m); } #else void StartNetworking() { } void StopNetworking() { } void SetReuse(int sock) { int i = 1; if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)) == -1) { perror("setsockopt"); exit(EXIT_FAILURE); } } void SetBlocking(int sock, gboolean blocking) { fcntl(sock, F_SETFL, blocking ? 0 : O_NONBLOCK); } #endif /* CYGWIN */ static gboolean FinishConnect(int fd, LastError **error); static void NetBufCallBack(NetworkBuffer *NetBuf, gboolean CallNow) { if (NetBuf && NetBuf->CallBack) { (*NetBuf->CallBack) (NetBuf, NetBuf->status != NBS_PRECONNECT, (NetBuf->status == NBS_CONNECTED && NetBuf->WriteBuf.DataPresent) || (NetBuf->status == NBS_SOCKSCONNECT && NetBuf->negbuf.DataPresent) || NetBuf->WaitConnect, TRUE, CallNow); } } static void NetBufCallBackStop(NetworkBuffer *NetBuf) { if (NetBuf && NetBuf->CallBack) { (*NetBuf->CallBack) (NetBuf, FALSE, FALSE, FALSE, FALSE); } } static void InitConnBuf(ConnBuf *buf) { buf->Data = NULL; buf->Length = 0; buf->DataPresent = 0; } static void FreeConnBuf(ConnBuf *buf) { g_free(buf->Data); InitConnBuf(buf); } /* * Initializes the passed network buffer, ready for use. Messages sent * or received on the buffered connection will be terminated by the * given character, and if they end in "StripChar" it will be removed * before the messages are sent or received. */ void InitNetworkBuffer(NetworkBuffer *NetBuf, char Terminator, char StripChar, SocksServer *socks) { NetBuf->fd = -1; NetBuf->ioch = NULL; NetBuf->InputTag = 0; NetBuf->CallBack = NULL; NetBuf->CallBackData = NULL; NetBuf->Terminator = Terminator; NetBuf->StripChar = StripChar; InitConnBuf(&NetBuf->ReadBuf); InitConnBuf(&NetBuf->WriteBuf); InitConnBuf(&NetBuf->negbuf); NetBuf->WaitConnect = FALSE; NetBuf->status = NBS_PRECONNECT; NetBuf->socks = socks; NetBuf->host = NULL; NetBuf->userpasswd = NULL; NetBuf->error = NULL; } void SetNetworkBufferCallBack(NetworkBuffer *NetBuf, NBCallBack CallBack, gpointer CallBackData) { NetBufCallBackStop(NetBuf); NetBuf->CallBack = CallBack; NetBuf->CallBackData = CallBackData; NetBufCallBack(NetBuf, FALSE); } /* * Sets the function used to obtain a username and password for SOCKS5 * username/password authentication. */ void SetNetworkBufferUserPasswdFunc(NetworkBuffer *NetBuf, NBUserPasswd userpasswd, gpointer data) { NetBuf->userpasswd = userpasswd; NetBuf->userpasswddata = data; } /* * Sets up the given network buffer to handle data being sent/received * through the given socket. */ void BindNetworkBufferToSocket(NetworkBuffer *NetBuf, int fd) { NetBuf->fd = fd; #ifdef CYGIN NetBuf->ioch = g_io_channel_win32_new_socket(fd); #else NetBuf->ioch = g_io_channel_unix_new(fd); #endif SetBlocking(fd, FALSE); /* We only deal with non-blocking sockets */ NetBuf->status = NBS_CONNECTED; /* Assume the socket is connected */ } /* * Returns TRUE if the pointer is to a valid network buffer, and it's * connected to an active socket. */ gboolean IsNetworkBufferActive(NetworkBuffer *NetBuf) { return (NetBuf && NetBuf->fd >= 0); } gboolean StartNetworkBufferConnect(NetworkBuffer *NetBuf, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort) { gchar *realhost; unsigned realport; gboolean doneOK; ShutdownNetworkBuffer(NetBuf); if (NetBuf->socks) { realhost = NetBuf->socks->name; realport = NetBuf->socks->port; } else { realhost = RemoteHost; realport = RemotePort; } if (StartConnect(&NetBuf->fd, bindaddr, realhost, realport, &doneOK, &NetBuf->error)) { #ifdef CYGIN NetBuf->ioch = g_io_channel_win32_new_socket(NetBuf->fd); #else NetBuf->ioch = g_io_channel_unix_new(NetBuf->fd); #endif /* If we connected immediately, then set status, otherwise signal that * we're waiting for the connect to complete */ if (doneOK) { NetBuf->status = NetBuf->socks ? NBS_SOCKSCONNECT : NBS_CONNECTED; NetBuf->sockstat = NBSS_METHODS; } else { NetBuf->WaitConnect = TRUE; } if (NetBuf->socks && !StartSocksNegotiation(NetBuf, RemoteHost, RemotePort)) { return FALSE; } /* Notify the owner if necessary to check for the connection * completing and/or for data to be writeable */ NetBufCallBack(NetBuf, FALSE); return TRUE; } else { return FALSE; } } /* * Frees the network buffer's data structures (leaving it in the * 'initialized' state) and closes the accompanying socket. */ void ShutdownNetworkBuffer(NetworkBuffer *NetBuf) { NetBufCallBackStop(NetBuf); if (NetBuf->fd >= 0) { CloseSocket(NetBuf->fd); g_io_channel_unref(NetBuf->ioch); NetBuf->fd = -1; } FreeConnBuf(&NetBuf->ReadBuf); FreeConnBuf(&NetBuf->WriteBuf); FreeConnBuf(&NetBuf->negbuf); FreeError(NetBuf->error); NetBuf->error = NULL; g_free(NetBuf->host); InitNetworkBuffer(NetBuf, NetBuf->Terminator, NetBuf->StripChar, NetBuf->socks); } /* * Updates the sets of read and write file descriptors to monitor * input to/output from the given network buffer. MaxSock is updated * with the highest-numbered file descriptor (plus 1) for use in a * later select() call. */ void SetSelectForNetworkBuffer(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, int *MaxSock) { if (!NetBuf || NetBuf->fd <= 0) return; FD_SET(NetBuf->fd, readfds); if (errorfds) FD_SET(NetBuf->fd, errorfds); if (NetBuf->fd >= *MaxSock) *MaxSock = NetBuf->fd + 1; if ((NetBuf->status == NBS_CONNECTED && NetBuf->WriteBuf.DataPresent) || (NetBuf->status == NBS_SOCKSCONNECT && NetBuf->negbuf.DataPresent) || NetBuf->WaitConnect) { FD_SET(NetBuf->fd, writefds); } } typedef enum { SEC_5FAILURE = 1, SEC_5RULESET = 2, SEC_5NETDOWN = 3, SEC_5UNREACH = 4, SEC_5CONNREF = 5, SEC_5TTLEXPIRED = 6, SEC_5COMMNOSUPP = 7, SEC_5ADDRNOSUPP = 8, SEC_REJECT = 91, SEC_NOIDENTD = 92, SEC_IDMISMATCH = 93, SEC_UNKNOWN = 200, SEC_AUTHFAILED, SEC_USERCANCEL, SEC_ADDRTYPE, SEC_REPLYVERSION, SEC_VERSION, SEC_NOMETHODS } SocksErrorCode; static ErrTable SocksErrStr[] = { /* SOCKS version 5 error messages */ {SEC_5FAILURE, N_("SOCKS server general failure")}, {SEC_5RULESET, N_("Connection denied by SOCKS ruleset")}, {SEC_5NETDOWN, N_("SOCKS: Network unreachable")}, {SEC_5UNREACH, N_("SOCKS: Host unreachable")}, {SEC_5CONNREF, N_("SOCKS: Connection refused")}, {SEC_5TTLEXPIRED, N_("SOCKS: TTL expired")}, {SEC_5COMMNOSUPP, N_("SOCKS: Command not supported")}, {SEC_5ADDRNOSUPP, N_("SOCKS: Address type not supported")}, {SEC_NOMETHODS, N_("SOCKS server rejected all offered methods")}, {SEC_ADDRTYPE, N_("Unknown SOCKS address type returned")}, {SEC_AUTHFAILED, N_("SOCKS authentication failed")}, {SEC_USERCANCEL, N_("SOCKS authentication canceled by user")}, /* SOCKS version 4 error messages */ {SEC_REJECT, N_("SOCKS: Request rejected or failed")}, {SEC_NOIDENTD, N_("SOCKS: Rejected - unable to contact identd")}, {SEC_IDMISMATCH, N_("SOCKS: Rejected - identd reports different user-id")}, /* SOCKS errors due to protocol violations */ {SEC_UNKNOWN, N_("Unknown SOCKS reply code")}, {SEC_REPLYVERSION, N_("Unknown SOCKS reply version code")}, {SEC_VERSION, N_("Unknown SOCKS server version")}, {0, NULL} }; static void SocksAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, SocksErrStr, _("SOCKS error code %d")); } static ErrorType ETSocks = { SocksAppendError, NULL }; static gboolean Socks5UserPasswd(NetworkBuffer *NetBuf) { if (!NetBuf->userpasswd) { SetError(&NetBuf->error, &ETSocks, SEC_NOMETHODS, NULL); return FALSE; } else { /* Request a username and password (the callback function should in * turn call SendSocks5UserPasswd when it's done) */ NetBuf->sockstat = NBSS_USERPASSWD; (*NetBuf->userpasswd) (NetBuf, NetBuf->userpasswddata); return TRUE; } } void SendSocks5UserPasswd(NetworkBuffer *NetBuf, gchar *user, gchar *password) { gchar *addpt; guint addlen; ConnBuf *conn; if (!user || !password || !user[0] || !password[0]) { SetError(&NetBuf->error, &ETSocks, SEC_USERCANCEL, NULL); NetBufCallBack(NetBuf, TRUE); return; } conn = &NetBuf->negbuf; addlen = 3 + strlen(user) + strlen(password); addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt || strlen(user) > 255 || strlen(password) > 255) { SetError(&NetBuf->error, ET_CUSTOM, E_FULLBUF, NULL); NetBufCallBack(NetBuf, TRUE); return; } addpt[0] = 1; /* Subnegotiation version code */ addpt[1] = strlen(user); strcpy(&addpt[2], user); addpt[2 + strlen(user)] = strlen(password); strcpy(&addpt[3 + strlen(user)], password); CommitWriteBuffer(NetBuf, conn, addpt, addlen); } static gboolean Socks5Connect(NetworkBuffer *NetBuf) { gchar *addpt; guint addlen, hostlen; ConnBuf *conn; unsigned short int netport; conn = &NetBuf->negbuf; g_assert(NetBuf->host); hostlen = strlen(NetBuf->host); if (hostlen > 255) return FALSE; netport = htons(NetBuf->port); g_assert(sizeof(netport) == 2); addlen = hostlen + 7; addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt) return FALSE; addpt[0] = 5; /* SOCKS version 5 */ addpt[1] = 1; /* CONNECT */ addpt[2] = 0; /* reserved - must be zero */ addpt[3] = 3; /* Address type - FQDN */ addpt[4] = hostlen; /* Length of address */ strcpy(&addpt[5], NetBuf->host); memcpy(&addpt[5 + hostlen], &netport, sizeof(netport)); NetBuf->sockstat = NBSS_CONNECT; CommitWriteBuffer(NetBuf, conn, addpt, addlen); return TRUE; } static gboolean HandleSocksReply(NetworkBuffer *NetBuf) { gchar *data; guchar addrtype; guint replylen; gboolean retval = TRUE; if (NetBuf->socks->version == 5) { if (NetBuf->sockstat == NBSS_METHODS) { data = GetWaitingData(NetBuf, 2); if (data) { retval = FALSE; if (data[0] != 5) { SetError(&NetBuf->error, &ETSocks, SEC_VERSION, NULL); } else if (data[1] == SM_NOAUTH) { retval = Socks5Connect(NetBuf); } else if (data[1] == SM_USERPASSWD) { retval = Socks5UserPasswd(NetBuf); } else { SetError(&NetBuf->error, &ETSocks, SEC_NOMETHODS, NULL); } g_free(data); } } else if (NetBuf->sockstat == NBSS_USERPASSWD) { data = GetWaitingData(NetBuf, 2); if (data) { retval = FALSE; if (data[1] != 0) { SetError(&NetBuf->error, &ETSocks, SEC_AUTHFAILED, NULL); } else { retval = Socks5Connect(NetBuf); } g_free(data); } } else if (NetBuf->sockstat == NBSS_CONNECT) { data = PeekWaitingData(NetBuf, 5); if (data) { retval = FALSE; addrtype = data[3]; if (data[0] != 5) { SetError(&NetBuf->error, &ETSocks, SEC_VERSION, NULL); } else if (data[1] > 8) { SetError(&NetBuf->error, &ETSocks, SEC_UNKNOWN, NULL); } else if (data[1] != 0) { SetError(&NetBuf->error, &ETSocks, data[1], NULL); } else if (addrtype != 1 && addrtype != 3 && addrtype != 4) { SetError(&NetBuf->error, &ETSocks, SEC_ADDRTYPE, NULL); } else { retval = TRUE; replylen = 6; if (addrtype == 1) replylen += 4; /* IPv4 address */ else if (addrtype == 4) replylen += 16; /* IPv6 address */ else replylen += data[4]; /* FQDN */ data = GetWaitingData(NetBuf, replylen); if (data) { NetBuf->status = NBS_CONNECTED; g_free(data); NetBufCallBack(NetBuf, FALSE); /* status has changed */ } } } } return retval; } else { data = GetWaitingData(NetBuf, 8); if (data) { retval = FALSE; if (data[0] != 0) { SetError(&NetBuf->error, &ETSocks, SEC_REPLYVERSION, NULL); } else { if (data[1] == 90) { NetBuf->status = NBS_CONNECTED; NetBufCallBack(NetBuf, FALSE); /* status has changed */ retval = TRUE; } else if (data[1] >= SEC_REJECT && data[1] <= SEC_IDMISMATCH) { SetError(&NetBuf->error, &ETSocks, data[1], NULL); } else { SetError(&NetBuf->error, &ETSocks, SEC_UNKNOWN, NULL); } } g_free(data); } return retval; } } /* * Reads and writes data if the network connection is ready. Sets the * various OK variables to TRUE if no errors occurred in the relevant * operations, and returns TRUE if data was read and is waiting for * processing. */ static gboolean DoNetworkBufferStuff(NetworkBuffer *NetBuf, gboolean ReadReady, gboolean WriteReady, gboolean ErrorReady, gboolean *ReadOK, gboolean *WriteOK, gboolean *ErrorOK) { gboolean DataWaiting = FALSE, ConnectDone = FALSE; gboolean retval; *ReadOK = *WriteOK = *ErrorOK = TRUE; if (ErrorReady || NetBuf->error) *ErrorOK = FALSE; else if (NetBuf->WaitConnect) { if (WriteReady) { retval = FinishConnect(NetBuf->fd, &NetBuf->error); ConnectDone = TRUE; NetBuf->WaitConnect = FALSE; if (retval) { if (NetBuf->socks) { NetBuf->status = NBS_SOCKSCONNECT; NetBuf->sockstat = NBSS_METHODS; } else { NetBuf->status = NBS_CONNECTED; } } else { NetBuf->status = NBS_PRECONNECT; *WriteOK = FALSE; } } } else { if (WriteReady) *WriteOK = WriteDataToWire(NetBuf); if (ReadReady) { *ReadOK = ReadDataFromWire(NetBuf); if (NetBuf->ReadBuf.DataPresent > 0 && NetBuf->status == NBS_SOCKSCONNECT) { if (!HandleSocksReply(NetBuf) || NetBuf->error) { /* From SendSocks5UserPasswd, possibly */ *ErrorOK = FALSE; } } if (NetBuf->ReadBuf.DataPresent > 0 && NetBuf->status != NBS_SOCKSCONNECT) { DataWaiting = TRUE; } } } if (!(*ErrorOK && *WriteOK && *ReadOK)) { /* We don't want to check the socket any more */ NetBufCallBackStop(NetBuf); /* If there were errors, then the socket is now useless - so close it */ CloseSocket(NetBuf->fd); NetBuf->fd = -1; } else if (ConnectDone) { /* If we just connected, then no need to listen for write-ready status * any more */ NetBufCallBack(NetBuf, FALSE); } else if (WriteReady && ((NetBuf->status == NBS_CONNECTED && NetBuf->WriteBuf.DataPresent == 0) || (NetBuf->status == NBS_SOCKSCONNECT && NetBuf->negbuf.DataPresent == 0))) { /* If we wrote out everything, then tell the owner so that the socket * no longer needs to be checked for write-ready status */ NetBufCallBack(NetBuf, FALSE); } return DataWaiting; } /* * Responds to a select() call by reading/writing data as necessary. * If any data were read, TRUE is returned. "DoneOK" is set TRUE * unless a fatal error (i.e. the connection was broken) occurred. */ gboolean RespondToSelect(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, gboolean *DoneOK) { gboolean ReadOK, WriteOK, ErrorOK; gboolean DataWaiting = FALSE; *DoneOK = TRUE; if (!NetBuf || NetBuf->fd <= 0) return DataWaiting; DataWaiting = DoNetworkBufferStuff(NetBuf, FD_ISSET(NetBuf->fd, readfds), FD_ISSET(NetBuf->fd, writefds), errorfds ? FD_ISSET(NetBuf->fd, errorfds) : FALSE, &ReadOK, &WriteOK, &ErrorOK); *DoneOK = (WriteOK && ErrorOK && ReadOK); return DataWaiting; } gboolean NetBufHandleNetwork(NetworkBuffer *NetBuf, gboolean ReadReady, gboolean WriteReady, gboolean ErrorReady, gboolean *DoneOK) { gboolean ReadOK, WriteOK, ErrorOK; gboolean DataWaiting = FALSE; *DoneOK = TRUE; if (!NetBuf || NetBuf->fd <= 0) return DataWaiting; DataWaiting = DoNetworkBufferStuff(NetBuf, ReadReady, WriteReady, ErrorReady, &ReadOK, &WriteOK, &ErrorOK); *DoneOK = (WriteOK && ErrorOK && ReadOK); return DataWaiting; } /* * Returns the number of complete (terminated) messages waiting in the * given network buffer. This is the number of times that * GetWaitingMessage() can be safely called without it returning NULL. */ gint CountWaitingMessages(NetworkBuffer *NetBuf) { ConnBuf *conn; gint i, msgs = 0; if (NetBuf->status != NBS_CONNECTED) return 0; conn = &NetBuf->ReadBuf; if (conn->Data) for (i = 0; i < conn->DataPresent; i++) { if (conn->Data[i] == NetBuf->Terminator) msgs++; } return msgs; } gchar *PeekWaitingData(NetworkBuffer *NetBuf, int numbytes) { ConnBuf *conn; conn = &NetBuf->ReadBuf; if (!conn->Data || conn->DataPresent < numbytes) return NULL; else return conn->Data; } gchar *GetWaitingData(NetworkBuffer *NetBuf, int numbytes) { ConnBuf *conn; gchar *data; conn = &NetBuf->ReadBuf; if (!conn->Data || conn->DataPresent < numbytes) return NULL; data = g_new(gchar, numbytes); memcpy(data, conn->Data, numbytes); memmove(&conn->Data[0], &conn->Data[numbytes], conn->DataPresent - numbytes); conn->DataPresent -= numbytes; return data; } /* * Reads a complete (terminated) message from the network buffer. The * message is removed from the buffer, and returned as a null-terminated * string (the network terminator is removed). If no complete message is * waiting, NULL is returned. The string is dynamically allocated, and * so must be g_free'd by the caller. */ gchar *GetWaitingMessage(NetworkBuffer *NetBuf) { ConnBuf *conn; int MessageLen; char *SepPt; gchar *NewMessage; conn = &NetBuf->ReadBuf; if (!conn->Data || !conn->DataPresent || NetBuf->status != NBS_CONNECTED) { return NULL; } SepPt = memchr(conn->Data, NetBuf->Terminator, conn->DataPresent); if (!SepPt) return NULL; *SepPt = '\0'; MessageLen = SepPt - conn->Data + 1; SepPt--; if (NetBuf->StripChar && *SepPt == NetBuf->StripChar) *SepPt = '\0'; NewMessage = g_new(gchar, MessageLen); memcpy(NewMessage, conn->Data, MessageLen); if (MessageLen < conn->DataPresent) { memmove(&conn->Data[0], &conn->Data[MessageLen], conn->DataPresent - MessageLen); } conn->DataPresent -= MessageLen; return NewMessage; } /* * Reads any waiting data on the given network buffer's TCP/IP connection * into the read buffer. Returns FALSE if the connection was closed, or * if the read buffer's maximum size was reached. */ gboolean ReadDataFromWire(NetworkBuffer *NetBuf) { ConnBuf *conn; int CurrentPosition, BytesRead; conn = &NetBuf->ReadBuf; CurrentPosition = conn->DataPresent; while (1) { if (CurrentPosition >= conn->Length) { if (conn->Length == MAXREADBUF) { SetError(&NetBuf->error, ET_CUSTOM, E_FULLBUF, NULL); return FALSE; /* drop connection */ } if (conn->Length == 0) conn->Length = 256; else conn->Length *= 2; if (conn->Length > MAXREADBUF) conn->Length = MAXREADBUF; conn->Data = g_realloc(conn->Data, conn->Length); } BytesRead = recv(NetBuf->fd, &conn->Data[CurrentPosition], conn->Length - CurrentPosition, 0); if (BytesRead == SOCKET_ERROR) { #ifdef CYGWIN int Error = WSAGetLastError(); if (Error == WSAEWOULDBLOCK) break; else { SetError(&NetBuf->error, ET_WINSOCK, Error, NULL); return FALSE; } #else if (errno == EAGAIN) break; else if (errno != EINTR) { SetError(&NetBuf->error, ET_ERRNO, errno, NULL); return FALSE; } #endif } else if (BytesRead == 0) { return FALSE; } else { CurrentPosition += BytesRead; conn->DataPresent = CurrentPosition; } } return TRUE; } gchar *ExpandWriteBuffer(ConnBuf *conn, int numbytes, LastError **error) { int newlen; newlen = conn->DataPresent + numbytes; if (newlen > conn->Length) { conn->Length *= 2; conn->Length = MAX(conn->Length, newlen); if (conn->Length > MAXWRITEBUF) conn->Length = MAXWRITEBUF; if (newlen > conn->Length) { if (error) SetError(error, ET_CUSTOM, E_FULLBUF, NULL); return NULL; } conn->Data = g_realloc(conn->Data, conn->Length); } return (&conn->Data[conn->DataPresent]); } void CommitWriteBuffer(NetworkBuffer *NetBuf, ConnBuf *conn, gchar *addpt, guint addlen) { conn->DataPresent += addlen; /* If the buffer was empty before, we may need to tell the owner to * check the socket for write-ready status */ if (NetBuf && addpt == conn->Data) NetBufCallBack(NetBuf, FALSE); } /* * Writes the null-terminated string "data" to the network buffer, ready * to be sent to the wire when the network connection becomes free. The * message is automatically terminated. Fails to write the message without * error if the buffer reaches its maximum size (although this error will * be detected when an attempt is made to write the buffer to the wire). */ void QueueMessageForSend(NetworkBuffer *NetBuf, gchar *data) { gchar *addpt; guint addlen; ConnBuf *conn; conn = &NetBuf->WriteBuf; if (!data) return; addlen = strlen(data) + 1; addpt = ExpandWriteBuffer(conn, addlen, NULL); if (!addpt) return; memcpy(addpt, data, addlen); addpt[addlen - 1] = NetBuf->Terminator; CommitWriteBuffer(NetBuf, conn, addpt, addlen); } static void SetNetworkError(LastError **error) { #ifdef CYGWIN SetError(error, ET_WINSOCK, WSAGetLastError(), NULL); #else SetError(error, ET_HERRNO, h_errno, NULL); #endif } static struct hostent *LookupHostname(const gchar *host, LastError **error) { struct hostent *he; if ((he = gethostbyname(host)) == NULL && error) { SetNetworkError(error); } return he; } gboolean StartSocksNegotiation(NetworkBuffer *NetBuf, gchar *RemoteHost, unsigned RemotePort) { guint num_methods; ConnBuf *conn; struct hostent *he; gchar *addpt; guint addlen, i; struct in_addr *haddr; unsigned short int netport; gchar *username = NULL; #ifdef CYGWIN DWORD bufsize; #else struct passwd *pwd; #endif conn = &NetBuf->negbuf; if (NetBuf->socks->version == 5) { num_methods = 1; if (NetBuf->userpasswd) num_methods++; addlen = 2 + num_methods; addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt) return FALSE; addpt[0] = 5; /* SOCKS version 5 */ addpt[1] = num_methods; i = 2; addpt[i++] = SM_NOAUTH; if (NetBuf->userpasswd) addpt[i++] = SM_USERPASSWD; g_free(NetBuf->host); NetBuf->host = g_strdup(RemoteHost); NetBuf->port = RemotePort; CommitWriteBuffer(NetBuf, conn, addpt, addlen); return TRUE; } he = LookupHostname(RemoteHost, &NetBuf->error); if (!he) return FALSE; if (NetBuf->socks->user && NetBuf->socks->user[0]) { username = g_strdup(NetBuf->socks->user); } else { #ifdef CYGWIN bufsize = 0; WNetGetUser(NULL, username, &bufsize); if (GetLastError() != ERROR_MORE_DATA) { SetError(&NetBuf->error, ET_WIN32, GetLastError(), NULL); return FALSE; } else { username = g_malloc(bufsize); if (WNetGetUser(NULL, username, &bufsize) != NO_ERROR) { SetError(&NetBuf->error, ET_WIN32, GetLastError(), NULL); return FALSE; } } #else if (NetBuf->socks->numuid) { username = g_strdup_printf("%d", getuid()); } else { pwd = getpwuid(getuid()); if (!pwd || !pwd->pw_name) return FALSE; username = g_strdup(pwd->pw_name); } #endif } addlen = 9 + strlen(username); haddr = (struct in_addr *)he->h_addr; g_assert(sizeof(struct in_addr) == 4); netport = htons(RemotePort); g_assert(sizeof(netport) == 2); addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt) return FALSE; addpt[0] = 4; /* SOCKS version */ addpt[1] = 1; /* CONNECT */ memcpy(&addpt[2], &netport, sizeof(netport)); memcpy(&addpt[4], haddr, sizeof(struct in_addr)); strcpy(&addpt[8], username); g_free(username); addpt[addlen - 1] = '\0'; CommitWriteBuffer(NetBuf, conn, addpt, addlen); return TRUE; } static gboolean WriteBufToWire(NetworkBuffer *NetBuf, ConnBuf *conn) { int CurrentPosition, BytesSent; if (!conn->Data || !conn->DataPresent) return TRUE; if (conn->Length == MAXWRITEBUF) { SetError(&NetBuf->error, ET_CUSTOM, E_FULLBUF, NULL); return FALSE; } CurrentPosition = 0; while (CurrentPosition < conn->DataPresent) { BytesSent = send(NetBuf->fd, &conn->Data[CurrentPosition], conn->DataPresent - CurrentPosition, 0); if (BytesSent == SOCKET_ERROR) { #ifdef CYGWIN int Error = WSAGetLastError(); if (Error == WSAEWOULDBLOCK) break; else { SetError(&NetBuf->error, ET_WINSOCK, Error, NULL); return FALSE; } #else if (errno == EAGAIN) break; else if (errno != EINTR) { SetError(&NetBuf->error, ET_ERRNO, errno, NULL); return FALSE; } #endif } else { CurrentPosition += BytesSent; } } if (CurrentPosition > 0 && CurrentPosition < conn->DataPresent) { memmove(&conn->Data[0], &conn->Data[CurrentPosition], conn->DataPresent - CurrentPosition); } conn->DataPresent -= CurrentPosition; return TRUE; } /* * Writes any waiting data in the network buffer to the wire. Returns * TRUE on success, or FALSE if the buffer's maximum length is * reached, or the remote end has closed the connection. */ gboolean WriteDataToWire(NetworkBuffer *NetBuf) { if (NetBuf->status == NBS_SOCKSCONNECT) { return WriteBufToWire(NetBuf, &NetBuf->negbuf); } else { return WriteBufToWire(NetBuf, &NetBuf->WriteBuf); } } static size_t MetaConnWriteFunc(void *contents, size_t size, size_t nmemb, void *userp) { size_t realsize = size * nmemb; CurlConnection *conn = (CurlConnection *)userp; conn->data = g_realloc(conn->data, conn->data_size + realsize + 1); memcpy(&(conn->data[conn->data_size]), contents, realsize); conn->data_size += realsize; conn->data[conn->data_size] = 0; return realsize; } static size_t MetaConnHeaderFunc(char *contents, size_t size, size_t nmemb, void *userp) { size_t realsize = size * nmemb; CurlConnection *conn = (CurlConnection *)userp; gchar *str = g_strchomp(g_strndup(contents, realsize)); g_ptr_array_add(conn->headers, (gpointer)str); return realsize; } void CurlInit(CurlConnection *conn) { curl_global_init(CURL_GLOBAL_DEFAULT); conn->multi = curl_multi_init(); conn->h = curl_easy_init(); conn->running = FALSE; conn->Terminator = '\n'; conn->StripChar = '\r'; conn->data_size = 0; conn->headers = NULL; conn->timer_cb = NULL; conn->socket_cb = NULL; } void CloseCurlConnection(CurlConnection *conn) { if (conn->running) { curl_multi_remove_handle(conn->multi, conn->h); g_free(conn->data); conn->data_size = 0; conn->running = FALSE; g_ptr_array_free(conn->headers, TRUE); conn->headers = NULL; } } void CurlCleanup(CurlConnection *conn) { if (conn->running) { CloseCurlConnection(conn); } curl_easy_cleanup(conn->h); curl_multi_cleanup(conn->multi); curl_global_cleanup(); } gboolean HandleCurlMultiReturn(CurlConnection *conn, CURLMcode mres, GError **err) { struct CURLMsg *m; if (mres != CURLM_OK && mres != CURLM_CALL_MULTI_PERFORM) { CloseCurlConnection(conn); g_set_error_literal(err, DOPE_CURLM_ERROR, mres, curl_multi_strerror(mres)); return FALSE; } do { int msgq = 0; m = curl_multi_info_read(conn->multi, &msgq); if (m && m->msg == CURLMSG_DONE && m->data.result != CURLE_OK) { CloseCurlConnection(conn); g_set_error_literal(err, DOPE_CURL_ERROR, m->data.result, curl_easy_strerror(m->data.result)); return FALSE; } } while(m); return TRUE; } gboolean CurlConnectionPerform(CurlConnection *conn, int *still_running, GError **err) { CURLMcode mres = curl_multi_perform(conn->multi, still_running); return HandleCurlMultiReturn(conn, mres, err); } gboolean CurlConnectionSocketAction(CurlConnection *conn, curl_socket_t fd, int action, int *still_running, GError **err) { CURLMcode mres = curl_multi_socket_action(conn->multi, fd, action, still_running); return HandleCurlMultiReturn(conn, mres, err); } GQuark dope_curl_error_quark(void) { return g_quark_from_static_string("dope-curl-error-quark"); } GQuark dope_curlm_error_quark(void) { return g_quark_from_static_string("dope-curlm-error-quark"); } gboolean CurlEasySetopt1(CURL *curl, CURLoption option, void *arg, GError **err) { CURLcode res = curl_easy_setopt(curl, option, arg); if (res == CURLE_OK) { return TRUE; } else { g_set_error_literal(err, DOPE_CURL_ERROR, res, curl_easy_strerror(res)); return FALSE; } } #ifdef CYGWIN /* Set the path to TLS CA certificates. Without this, curl connections to the metaserver may fail on Windows as it cannot verify the certificate. */ static gboolean SetCaInfo(CurlConnection *conn, GError **err) { gchar *bindir, *cainfo; gboolean ret; /* Point to a .crt file in the same directory as dopewars.exe */ bindir = GetBinaryDir(); cainfo = g_strdup_printf("%s\\ca-bundle.crt", bindir); g_free(bindir); ret = CurlEasySetopt1(conn->h, CURLOPT_CAINFO, cainfo, err); g_free(cainfo); return ret; } #endif gboolean OpenCurlConnection(CurlConnection *conn, char *URL, char *body, GError **err) { /* If the previous connect hung for so long that it's still active, then * break the connection before we start a new one */ if (conn->running) { CloseCurlConnection(conn); } if (conn->h) { int still_running; CURLMcode mres; if (body && !CurlEasySetopt1(conn->h, CURLOPT_COPYPOSTFIELDS, body, err)) { return FALSE; } if (!CurlEasySetopt1(conn->h, CURLOPT_URL, URL, err) || !CurlEasySetopt1(conn->h, CURLOPT_WRITEFUNCTION, MetaConnWriteFunc, err) || !CurlEasySetopt1(conn->h, CURLOPT_WRITEDATA, conn, err) || !CurlEasySetopt1(conn->h, CURLOPT_HEADERFUNCTION, MetaConnHeaderFunc, err) #ifdef CYGWIN || !SetCaInfo(conn, err) #endif || !CurlEasySetopt1(conn->h, CURLOPT_HEADERDATA, conn, err)) { return FALSE; } mres = curl_multi_add_handle(conn->multi, conn->h); if (mres != CURLM_OK && mres != CURLM_CALL_MULTI_PERFORM) { g_set_error_literal(err, DOPE_CURLM_ERROR, mres, curl_multi_strerror(mres)); return FALSE; } conn->data = g_malloc(1); conn->data_size = 0; conn->headers = g_ptr_array_new_with_free_func(g_free); conn->running = TRUE; if (conn->timer_cb) { /* If we set a callback, we must not do _perform, but wait for the cb */ return TRUE; } else { return CurlConnectionPerform(conn, &still_running, err); } } else { g_set_error_literal(err, DOPE_CURLM_ERROR, 0, _("Could not init curl")); return FALSE; } return TRUE; } char *CurlNextLine(CurlConnection *conn, char *ch) { char *sep_pt; if (!ch) return NULL; sep_pt = strchr(ch, conn->Terminator); if (sep_pt) { *sep_pt = '\0'; if (sep_pt > ch && sep_pt[-1] == conn->StripChar) { sep_pt[-1] = '\0'; } sep_pt++; } return sep_pt; } /* Information associated with a specific socket */ typedef struct _SockData { GIOChannel *ch; guint ev; } SockData; static int timer_function(CURLM *multi, long timeout_ms, void *userp) { CurlConnection *g = userp; if (g->timer_event) { dp_g_source_remove(g->timer_event); g->timer_event = 0; } /* -1 means we should just delete our timer. */ if (timeout_ms >= 0) { g->timer_event = dp_g_timeout_add(timeout_ms, g->timer_cb, g); } return 0; } /* Clean up the SockData structure */ static void remsock(SockData *f) { if (!f) { return; } if (f->ev) { dp_g_source_remove(f->ev); } g_io_channel_unref(f->ch); g_free(f); } /* Assign information to a SockData structure */ static void setsock(SockData *f, curl_socket_t s, CURL *e, int act, CurlConnection *g) { GIOCondition kind = ((act & CURL_POLL_IN) ? G_IO_IN : 0) | ((act & CURL_POLL_OUT) ? G_IO_OUT : 0); if (f->ev) { dp_g_source_remove(f->ev); } f->ev = dp_g_io_add_watch(f->ch, kind, g->socket_cb, g); } /* Initialize a new SockData structure */ static void addsock(curl_socket_t s, CURL *easy, int action, CurlConnection *g) { SockData *fdp = g_malloc0(sizeof(SockData)); #ifdef CYGIN fdp->ch = g_io_channel_win32_new_socket(s); #else fdp->ch = g_io_channel_unix_new(s); #endif setsock(fdp, s, easy, action, g); curl_multi_assign(g->multi, s, fdp); } static int socket_function(CURL *easy, curl_socket_t s, int what, void *userp, void *socketp) { CurlConnection *g = userp; SockData *fdp = socketp; if (what == CURL_POLL_REMOVE) { remsock(fdp); } else if (!fdp) { addsock(s, easy, what, g); } else { setsock(fdp, s, easy, what, g); } return 0; } void SetCurlCallback(CurlConnection *conn, GSourceFunc timer_cb, GIOFunc socket_cb) { conn->timer_event = 0; conn->timer_cb = timer_cb; conn->socket_cb = socket_cb; curl_multi_setopt(conn->multi, CURLMOPT_TIMERFUNCTION, timer_function); curl_multi_setopt(conn->multi, CURLMOPT_TIMERDATA, conn); curl_multi_setopt(conn->multi, CURLMOPT_SOCKETFUNCTION, socket_function); curl_multi_setopt(conn->multi, CURLMOPT_SOCKETDATA, conn); } int CreateTCPSocket(LastError **error) { int fd; fd = socket(AF_INET, SOCK_STREAM, 0); if (fd == SOCKET_ERROR && error) { SetNetworkError(error); } return fd; } gboolean BindTCPSocket(int sock, const gchar *addr, unsigned port, LastError **error) { struct sockaddr_in bindaddr; int retval; struct hostent *he; bindaddr.sin_family = AF_INET; bindaddr.sin_port = htons(port); if (addr && addr[0]) { he = LookupHostname(addr, error); if (!he) { return FALSE; } bindaddr.sin_addr = *((struct in_addr *)he->h_addr); } else { bindaddr.sin_addr.s_addr = INADDR_ANY; } memset(bindaddr.sin_zero, 0, sizeof(bindaddr.sin_zero)); retval = bind(sock, (struct sockaddr *)&bindaddr, sizeof(struct sockaddr)); if (retval == SOCKET_ERROR && error) { SetNetworkError(error); } return (retval != SOCKET_ERROR); } gboolean StartConnect(int *fd, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort, gboolean *doneOK, LastError **error) { struct sockaddr_in ClientAddr; struct hostent *he; if (doneOK) *doneOK = FALSE; he = LookupHostname(RemoteHost, error); if (!he) return FALSE; *fd = CreateTCPSocket(error); if (*fd == SOCKET_ERROR) return FALSE; if (bindaddr && bindaddr[0] && !BindTCPSocket(*fd, bindaddr, 0, error)) { return FALSE; } ClientAddr.sin_family = AF_INET; ClientAddr.sin_port = htons(RemotePort); ClientAddr.sin_addr = *((struct in_addr *)he->h_addr); memset(ClientAddr.sin_zero, 0, sizeof(ClientAddr.sin_zero)); SetBlocking(*fd, FALSE); if (connect(*fd, (struct sockaddr *)&ClientAddr, sizeof(struct sockaddr)) == SOCKET_ERROR) { #ifdef CYGWIN int errcode = WSAGetLastError(); if (errcode == WSAEWOULDBLOCK) return TRUE; else if (error) SetError(error, ET_WINSOCK, errcode, NULL); #else if (errno == EINPROGRESS) return TRUE; else if (error) SetError(error, ET_ERRNO, errno, NULL); #endif CloseSocket(*fd); *fd = -1; return FALSE; } else { if (doneOK) *doneOK = TRUE; } return TRUE; } gboolean FinishConnect(int fd, LastError **error) { int errcode; #ifdef CYGWIN errcode = WSAGetLastError(); if (errcode == 0) return TRUE; else { if (error) { SetError(error, ET_WINSOCK, errcode, NULL); } return FALSE; } #else #ifdef HAVE_SOCKLEN_T socklen_t optlen; #else int optlen; #endif optlen = sizeof(errcode); if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &errcode, &optlen) == -1) { errcode = errno; } if (errcode == 0) return TRUE; else { if (error) { SetError(error, ET_ERRNO, errcode, NULL); } return FALSE; } #endif /* CYGWIN */ } static void AddB64char(GString *str, int c) { if (c < 0) return; else if (c < 26) g_string_append_c(str, c + 'A'); else if (c < 52) g_string_append_c(str, c - 26 + 'a'); else if (c < 62) g_string_append_c(str, c - 52 + '0'); else if (c == 62) g_string_append_c(str, '+'); else g_string_append_c(str, '/'); } /* * Adds the plain text string "unenc" to the end of the GString "str", * using the Base64 encoding scheme. */ void AddB64Enc(GString *str, gchar *unenc) { guint i; long value = 0; if (!unenc || !str) return; for (i = 0; i < strlen(unenc); i++) { value <<= 8; value |= (unsigned char)unenc[i]; if (i % 3 == 2) { AddB64char(str, (value >> 18) & 0x3F); AddB64char(str, (value >> 12) & 0x3F); AddB64char(str, (value >> 6) & 0x3F); AddB64char(str, value & 0x3F); value = 0; } } if (i % 3 == 1) { AddB64char(str, (value >> 2) & 0x3F); AddB64char(str, (value << 4) & 0x3F); g_string_append(str, "=="); } else if (i % 3 == 2) { AddB64char(str, (value >> 10) & 0x3F); AddB64char(str, (value >> 4) & 0x3F); AddB64char(str, (value << 2) & 0x3F); g_string_append_c(str, '='); } } #endif /* NETWORKING */ dopewars-1.6.2/src/winmain.h000644 000765 000024 00000003270 14256242752 015670 0ustar00benstaff000000 000000 /************************************************************************ * winmain.h Startup code and support for the Win32 platform * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_WINMAIN_H__ #define __DP_WINMAIN_H__ #ifdef CYGWIN #include gchar *GetBinaryDir(void); #endif /* CYGWIN */ #endif /* __DP_WINMAIN_H__ */ dopewars-1.6.2/src/tstring.h000644 000765 000024 00000003650 14256242752 015722 0ustar00benstaff000000 000000 /************************************************************************ * tstring.h "Translated string" wrappers for dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_TSTRING_H__ #define __DP_TSTRING_H__ #ifdef HAVE_CONFIG_H #include #endif #include void dpg_print(gchar *format, ...); gchar *dpg_strdup_printf(gchar *format, ...); void dpg_string_printf(GString *string, gchar *format, ...); void dpg_string_append_printf(GString *string, gchar *format, ...); gchar *GetDefaultTString(gchar *tstring); #endif /* __DP_TSTRING_H__ */ dopewars-1.6.2/src/dopewars.manifest000644 000765 000024 00000001173 14256000066 017417 0ustar00benstaff000000 000000 dopewars drug dealing game dopewars-1.6.2/src/pill.ico000644 000765 000024 00000001376 14256000066 015504 0ustar00benstaff000000 000000  ( @ ??dopewars-1.6.2/src/util.c000644 000765 000024 00000012607 14256242752 015202 0ustar00benstaff000000 000000 /************************************************************************ * util.c Miscellaneous utility and portability functions * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_FCNTL_H #include #endif #ifdef CYGWIN #include #endif #include #include "util.h" #include "dopewars.h" #ifndef HAVE_GETOPT char *optarg; static int apos = 1; /* Skip argv[0], the executable name */ int getopt(int argc, char *const argv[], const char *str) { int i, c; char *pt; while (apos < argc && argv[apos]) { if (argv[apos][0] != '-') { apos++; return 0; } for (i = 1; i < strlen(argv[apos]); i++) { c = argv[apos][i]; pt = strchr(str, c); if (pt) { argv[apos][i] = '-'; if (*(pt + 1) == ':') { if (apos + 1 < argc && i == strlen(argv[apos]) - 1) { apos++; optarg = argv[apos]; apos++; } else return 0; } return c; } } apos++; } return EOF; } #endif /* HAVE_GETOPT */ #ifdef CYGWIN /* Code for native Win32 build under Cygwin */ void sigemptyset(int *mask) { } void sigaddset(int *mask, int sig) { } int sigaction(int sig, struct sigaction *sact, char *pt) { return 0; } void sigprocmask(int flag, int *mask, char *pt) { } /*static gboolean IsKeyPressed() { INPUT_RECORD ConsoleIn; DWORD NumConsoleIn; while (PeekConsoleInput(hIn, &ConsoleIn, 1, &NumConsoleIn) && NumConsoleIn == 1) { if (ConsoleIn.EventType == KEY_EVENT && ConsoleIn.Event.KeyEvent.bKeyDown) { return TRUE; } else { ReadConsoleInput(hIn, &ConsoleIn, 1, &NumConsoleIn); } } return FALSE; }*/ int bselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *tm) { int retval; struct timeval tv, *tp; fd_set localread, localexcept; char CheckKbHit = 0; if (nfds == 0 && tm) { Sleep(tm->tv_sec * 1000 + tm->tv_usec / 1000); return 0; } if (FD_ISSET(0, readfds)) { if (nfds == 1) return 1; tp = &tv; CheckKbHit = 1; FD_CLR(0, readfds); } else tp = tm; while (1) { tv.tv_sec = 0; tv.tv_usec = 250000; if (readfds) memcpy(&localread, readfds, sizeof(fd_set)); if (exceptfds) memcpy(&localexcept, exceptfds, sizeof(fd_set)); if (CheckKbHit && kbhit()) tv.tv_usec = 0; retval = select(nfds, readfds, writefds, exceptfds, tp); if (retval == SOCKET_ERROR) return retval; if (CheckKbHit && kbhit()) { retval++; FD_SET(0, readfds); } if (retval > 0 || !CheckKbHit) break; if (CheckKbHit && tm) { if (tm->tv_usec >= 250000) tm->tv_usec -= 250000; else if (tm->tv_sec) { tm->tv_usec += 750000; tm->tv_sec--; } else break; } if (readfds) memcpy(readfds, &localread, sizeof(fd_set)); if (exceptfds) memcpy(exceptfds, &localexcept, sizeof(fd_set)); } return retval; } /* We don't do locking under Win32 right now */ int ReadLock(FILE * fp) { return 0; } int WriteLock(FILE * fp) { return 0; } void ReleaseLock(FILE * fp) { } #else /* Code for Unix build */ #include static int DoLock(FILE * fp, int l_type) { struct flock lk; lk.l_type = l_type; lk.l_whence = lk.l_start = lk.l_len = 0; lk.l_pid = 0; do { if (fcntl(fileno(fp), F_SETLKW, &lk) == 0) { return 0; } } while (errno == EINTR); return 1; } int ReadLock(FILE * fp) { return DoLock(fp, F_RDLCK); } int WriteLock(FILE * fp) { return DoLock(fp, F_WRLCK); } void ReleaseLock(FILE * fp) { (void)DoLock(fp, F_UNLCK); } #endif /* CYGWIN */ /* * On systems with select, sleep for "microsec" microseconds. */ void MicroSleep(int microsec) { #if defined(HAVE_SELECT) || CYGWIN struct timeval tv; tv.tv_sec = 0; tv.tv_usec = microsec; bselect(0, NULL, NULL, NULL, &tv); #endif } dopewars-1.6.2/src/AIPlayer.h000644 000765 000024 00000003326 14256242752 015676 0ustar00benstaff000000 000000 /************************************************************************ * AIPlayer.h Header file for dopewars computer player code * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_AIPLAYER_H__ #define __DP_AIPLAYER_H__ #ifdef HAVE_CONFIG_H #include #endif struct CMDLINE; void AIPlayerLoop(struct CMDLINE *cmdline); #endif /* __DP_AIPLAYER_H__ */ dopewars-1.6.2/src/magic000644 000765 000024 00000000632 14256000066 015045 0ustar00benstaff000000 000000 #------------------------------------------------------------------------------ # dopewars: file(1) magic for dopewars high score files # # From # dopewars is a drug dealing game found at http://dopewars.sf.net/. # The version reported is that of the high score file, not of the # program itself. 0 string DOPEWARS\ SCORES\ V. dopewars high score file >&0 string >\0 (version %s) dopewars-1.6.2/src/serverside.c000644 000765 000024 00000332223 14256242752 016377 0ustar00benstaff000000 000000 /************************************************************************ * serverside.c Handles the server side of dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include /* For size_t etc. */ #include #ifdef CYGWIN #include /* For network functions */ #include /* For datatypes such as BOOL */ #include /* For getpid */ #else #include /* For struct sockaddr etc. */ #include /* For struct sockaddr_in etc. */ #include /* For struct sockaddr_un */ #include /* For socklen_t */ #endif /* CYGWIN */ #ifdef HAVE_UNISTD_H #include #endif #include #include #include #include #include "configfile.h" /* For UpdateConfigFile */ #include "dopewars.h" #include "log.h" #include "message.h" #include "network.h" #include "nls.h" #include "serverside.h" #include "tstring.h" #include "util.h" #ifdef GUI_SERVER #include "gtkport/gtkport.h" #endif static const price_t MINTRENCHPRICE = 200, MAXTRENCHPRICE = 300; #define ESCAPE 0 #define DEFECT 1 #define SHOT 2 #define NUMDISCOVER 3 char *Discover[NUMDISCOVER] = { /* Things that can "happen" to your spies - look for strings containing "The spy %s!" to see how these strings are used. */ N_("escaped"), N_("defected"), N_("was shot") }; /* The two keys that are valid answers to the Attack/Evade question. If you wish to translate them, do so in the same order as they given here. You will also need to translate the answers given by the clients. */ static char *attackquestiontr = N_("AE"); /* If we haven't talked to the metaserver for 3 hours, then remind it that * we still exist, so we don't get wiped from the list of active servers */ #define METAUPDATETIME (10800) /* Don't report players logging in/out to the metaserver more frequently * than once every minute (so as not to overload the metaserver, or slow * down our own server). */ #define METAMINTIME (60) int TerminateRequest, ReregisterRequest, RelogRequest; int MetaUpdateTimeout; long MetaMinTimeout; gboolean WantQuit = FALSE; #ifdef CYGWIN static SERVICE_STATUS_HANDLE scHandle; #endif #ifdef GUI_SERVER static gboolean glib_timeout(gpointer userp); static gboolean glib_socket(GIOChannel *ch, GIOCondition condition, gpointer data); #endif /* Do we want to update the player details on the metaserver when the * timeout expires? */ gboolean MetaPlayerPending = FALSE; GSList *FirstServer = NULL; #ifdef NETWORKING /* Data waiting to be sent to/read from the metaserver */ static CurlConnection MetaConn; static GScanner *Scanner; #endif /* Handle to the high score file */ static FILE *ScoreFP = NULL; /* Pointer to the filename of a pid file (if non-NULL) */ char *PidFile = NULL; static char HelpText[] = { /* Help on various general server commands */ N_("dopewars server version %s commands and settings\n\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the " "named player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\nValid variables are listed below:-\n\n") }; typedef enum _OfferForce { NOFORCE, FORCECOPS, FORCEBITCH } OfferForce; int SendSingleHighScore(Player *Play, struct HISCORE *Score, int ind, gboolean Bold); static int SendCopOffer(Player *To, OfferForce Force); static int OfferObject(Player *To, gboolean ForceBitch); static gboolean HighScoreWrite(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore); #ifdef NETWORKING static void MetaConnectError(CurlConnection *conn, GError *err) { dopelog(1, LF_SERVER, _("Failed to connect to metaserver at %s (%s)"), MetaServer.URL, err->message); } void log_meta_headers(gpointer data, gpointer user_data) { char *header = data; if (*header) dopelog(4, LF_SERVER, _("MetaServer: %s"), header); } #endif /* * Sends server details to the metaserver, if specified. If "Up" is * TRUE, informs the metaserver that the server is now accepting * connections - otherwise tells the metaserver that this server is * about to go down. If "SendData" is TRUE, then also sends game * data (e.g. scores) to the metaserver. If "RespectTimeout" is TRUE * then the update is delayed if a previous update happened too * recently. If networking is disabled, this function does nothing. */ void RegisterWithMetaServer(gboolean Up, gboolean SendData, gboolean RespectTimeout) { #ifdef NETWORKING struct HISCORE MultiScore[NUMHISCORE], AntiqueScore[NUMHISCORE]; GString *body; gchar *prstr; gboolean ret; GError *tmp_error = NULL; int i; if (!MetaServer.Active || WantQuit || !Server) { return; } if (MetaMinTimeout > time(NULL) && RespectTimeout) { dopelog(3, LF_SERVER, _("Attempt to connect to metaserver too frequently " "- waiting for next timeout")); MetaPlayerPending = TRUE; return; } body = g_string_new(""); g_string_assign(body, "output=text&"); g_string_append_printf(body, "up=%d&port=%d&version=", Up ? 1 : 0, Port); AddURLEnc(body, VERSION); g_string_append_printf(body, "&players=%d&maxplay=%d&comment=", CountPlayers(FirstServer), MaxClients); AddURLEnc(body, MetaServer.Comment); if (MetaServer.LocalName[0]) { g_string_append(body, "&hostname="); AddURLEnc(body, MetaServer.LocalName); } if (MetaServer.Password[0]) { g_string_append(body, "&password="); AddURLEnc(body, MetaServer.Password); } if (SendData && HighScoreRead(ScoreFP, MultiScore, AntiqueScore, TRUE)) { for (i = 0; i < NUMHISCORE; i++) { if (MultiScore[i].Name && MultiScore[i].Name[0]) { g_string_append_printf(body, "&nm[%d]=", i); AddURLEnc(body, MultiScore[i].Name); g_string_append_printf(body, "&dt[%d]=", i); AddURLEnc(body, MultiScore[i].Time); g_string_append_printf(body, "&st[%d]=%s&sc[%d]=", i, MultiScore[i].Dead ? "dead" : "alive", i); AddURLEnc(body, prstr = FormatPrice(MultiScore[i].Money)); g_free(prstr); } } } ret = OpenCurlConnection(&MetaConn, MetaServer.URL, body->str, &tmp_error); dopelog(2, LF_SERVER, _("Waiting for connect to metaserver at %s..."), MetaServer.URL); g_string_free(body, TRUE); if (!ret) { MetaConnectError(&MetaConn, tmp_error); g_error_free(tmp_error); } MetaPlayerPending = FALSE; MetaUpdateTimeout = time(NULL) + METAUPDATETIME; MetaMinTimeout = time(NULL) + METAMINTIME; #endif /* NETWORKING */ } #ifdef NETWORKING void HandleServerPlayer(Player *Play) { gchar *buf; gboolean MessageRead = FALSE; while ((buf = GetWaitingPlayerMessage(Play)) != NULL) { MessageRead = TRUE; HandleServerMessage(buf, Play); g_free(buf); } /* Reset the idle timeout (if necessary) */ if (MessageRead && IdleTimeout) { Play->IdleTimeout = time(NULL) + (time_t) IdleTimeout; } } #endif /* NETWORKING */ /* * Sends details (name, ID) about player "Play" to player "To", using * message code "Code". */ void SendPlayerDetails(Player *Play, Player *To, MsgCode Code) { GString *text; text = g_string_new(GetPlayerName(Play)); if (HaveAbility(To, A_PLAYERID)) { g_string_append_printf(text, "^%d", Play->ID); } SendServerMessage(NULL, C_NONE, Code, To, text->str); g_string_free(text, TRUE); } /* * Checks the version of the client that has connected, and sends a * warning message if it's old. */ void RemoteVersionCheck(Player *Play) { /* Client didn't send a C_ABILITIES message at all, so is either broken * or is version 1.4.8 or earlier. */ if (Play->Abil.RemoteNum == 0) { SendPrintMessage(NULL, C_VERSIONCHECK, Play, _("You appear to be using an extremely old (version 1.4.x) client.^" "While this will probably work, many of the newer features^" "will be unsupported. Get the latest version from the^" "dopewars website, https://dopewars.sourceforge.io/.")); /* The client has a smaller value of A_NUM; this means that not only does * it not support some features, it doesn't even know they might exist. */ } else if (Play->Abil.RemoteNum < A_NUM) { SendPrintMessage(NULL, C_VERSIONCHECK, Play, _("Warning: your client is too old to support all of this^" "server's features. For the full \"experience\", get^" "the latest version of dopewars from the^" "website, https://dopewars.sourceforge.io/.")); } /* Otherwise, the client is either the same version as the server, or * it's newer. Both should be OK, so do nothing. */ } /* * Given a message "buf", from player "Play", performs processing and * sends suitable replies. */ void HandleServerMessage(gchar *buf, Player *Play) { Player *To, *tmp, *pt; GSList *list; char *Data; AICode AI; MsgCode Code; gchar *text; DopeEntry NewEntry; int i; price_t money; if (ProcessMessage(buf, Play, &To, &AI, &Code, &Data, FirstServer) == -1) { g_warning("Bad message"); return; } switch (Code) { case C_MSGTO: if (Network) { dopelog(3, LF_SERVER, "%s->%s: %s", GetPlayerName(Play), GetPlayerName(To), Data); } SendServerMessage(Play, AI, Code, To, Data); break; case C_ABILITIES: ReceiveAbilities(Play, Data); break; case C_NAME: StripTerminators(Data); pt = GetPlayerByName(Data, FirstServer); if (pt && pt != Play) { if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } SendServerMessage(NULL, C_NONE, C_NEWNAME, Play, NULL); } else if (strlen(GetPlayerName(Play)) == 0 && Data[0]) { if (CountPlayers(FirstServer) < MaxClients || !Network) { RemoteVersionCheck(Play); SendAbilities(Play); CombineAbilities(Play); SendInitialData(Play); SendMiscData(Play); SetPlayerName(Play, Data); for (list = FirstServer; list; list = g_slist_next(list)) { pt = (Player *)list->data; if (pt != Play && IsConnectedPlayer(pt) && !IsCop(pt)) { SendPlayerDetails(pt, Play, C_LIST); } } if (ServerMOTD && ServerMOTD[0]) { SendPrintMessage(NULL, C_MOTD, Play, ServerMOTD); } SendServerMessage(NULL, C_NONE, C_ENDLIST, Play, NULL); RegisterWithMetaServer(TRUE, FALSE, TRUE); Play->ConnectTimeout = 0; if (Network) { dopelog(2, LF_SERVER, _("%s joins the game!"), GetPlayerName(Play)); } for (list = FirstServer; list; list = g_slist_next(list)) { pt = (Player *)list->data; if (IsConnectedPlayer(pt) && pt != Play) { SendPlayerDetails(Play, pt, C_JOIN); } } Play->EventNum = E_ARRIVE; SendPlayerData(Play); SendEvent(Play); } else { /* Message displayed in the server when too many players try to * connect */ dopelog(2, LF_SERVER, _("MaxClients (%d) exceeded - dropping connection"), MaxClients); if (MaxClients == 1) { text = g_strdup_printf( /* Message sent to a player if the server is full */ _("Sorry, but this server has a limit of " "1 player, which has been reached.^" "Please try connecting again later.")); } else { text = g_strdup_printf( /* Message sent to a player if the server is full */ _("Sorry, but this server has a limit of " "%d players, which has been reached.^" "Please try connecting again later."), MaxClients); } SendServerMessage(NULL, C_NONE, C_PRINTMESSAGE, Play, text); g_free(text); /* Make sure they do actually disconnect, eventually! */ if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } } } else { /* A player changed their name during the game (unusual, and not really properly supported anyway) - notify all players of the change */ dopelog(2, LF_SERVER, _("%s will now be known as %s"), GetPlayerName(Play), Data); BroadcastToClients(C_NONE, C_RENAME, Data, Play, Play); SetPlayerName(Play, Data); } break; case C_WANTQUIT: if (Play->EventNum != E_FINISH) { FinishGame(Play, NULL); } break; case C_REQUESTJET: i = atoi(Data); /* Make sure value is within range */ if (i < 0 || i >= NumLocation) { dopelog(3, LF_SERVER, _("%s: DENIED jet to invalid location %s"), GetPlayerName(Play), Data); break; } if (Play->EventNum == E_FIGHT || Play->EventNum == E_FIGHTASK) { if (CanRunHere(Play)) { break; } else { RunFromCombat(Play, i); } if (Play->EventNum == E_WAITDONE) { Play->EventNum = Play->ResyncNum; SendEvent(Play); } } if (NumTurns > 0 && Play->Turn >= NumTurns && Play->EventNum != E_FINISH) { /* Message displayed when a player reaches their maximum number of turns */ FinishGame(Play, _("Your dealing time is up...")); } else if (i != Play->IsAt && (NumTurns == 0 || Play->Turn < NumTurns) && Play->EventNum == E_NONE && Play->Health > 0) { dopelog(4, LF_SERVER, "%s jets to %s", GetPlayerName(Play), Location[i].Name); Play->IsAt = i; Play->Turn++; g_date_add_days(Play->date, 1); Play->Debt = Play->Debt * (DebtInterest + 100) / 100; Play->Debt = MAX(Play->Debt, 0); Play->Bank = Play->Bank * (BankInterest + 100) / 100; Play->Bank = MAX(Play->Bank, 0); SendPlayerData(Play); Play->EventNum = E_SUBWAY; SendEvent(Play); } else { /* A player has tried to jet to a new location, but we don't allow them to. (e.g. they're still fighting someone, or they're supposed to be dead) */ dopelog(3, LF_SERVER, _("%s: DENIED jet to %s"), GetPlayerName(Play), Location[i].Name); } break; case C_REQUESTSCORE: SendHighScores(Play, FALSE, NULL); break; case C_CONTACTSPY: for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; i = GetListEntry(&(tmp->SpyList), Play); if (tmp != Play && i >= 0 && tmp->SpyList.Data[i].Turns >= 0) { SendSpyReport(Play, tmp); } } break; case C_DEPOSIT: money = strtoprice(Data); if (Play->EventNum == E_BANK && Play->Bank + money >= 0 && Play->Cash - money >= 0) { Play->Bank += money; Play->Cash -= money; SendPlayerData(Play); } break; case C_PAYLOAN: money = strtoprice(Data); if (Play->EventNum == E_LOANSHARK && money > 0 && Play->Debt - money >= 0 && Play->Cash - money >= 0) { Play->Debt -= money; Play->Cash -= money; SendPlayerData(Play); } break; case C_BUYOBJECT: BuyObject(Play, Data); break; case C_FIGHTACT: if (Data[0] == 'R') RunFromCombat(Play, -1); else Fire(Play); break; case C_ANSWER: HandleAnswer(Play, To, Data); break; case C_DONE: if (Play->EventNum == E_WAITDONE) { Play->EventNum = Play->ResyncNum; SendEvent(Play); } else if (Play->EventNum != E_NONE && Play->EventNum < E_OUTOFSYNC) { Play->EventNum++; SendEvent(Play); } break; case C_SPYON: if (Play->Cash >= Prices.Spy) { dopelog(3, LF_SERVER, _("%s now spying on %s"), GetPlayerName(Play), GetPlayerName(To)); Play->Cash -= Prices.Spy; LoseBitch(Play, NULL, NULL); NewEntry.Play = Play; NewEntry.Turns = -1; AddListEntry(&(To->SpyList), &NewEntry); SendPlayerData(Play); } else { dopelog(2, LF_SERVER, _("%s spy on %s: DENIED"), GetPlayerName(Play), GetPlayerName(To)); } break; case C_TIPOFF: if (Play->Cash >= Prices.Tipoff) { dopelog(3, LF_SERVER, _("%s tipped off the cops to %s"), GetPlayerName(Play), GetPlayerName(To)); Play->Cash -= Prices.Tipoff; LoseBitch(Play, NULL, NULL); NewEntry.Play = Play; NewEntry.Turns = 0; AddListEntry(&(To->TipList), &NewEntry); SendPlayerData(Play); } else { g_warning(_("%s tipoff about %s: DENIED"), GetPlayerName(Play), GetPlayerName(To)); } break; case C_SACKBITCH: if (Play->Bitches.Carried > 0) { LoseBitch(Play, NULL, NULL); SendPlayerData(Play); } break; case C_MSG: if (Network) dopelog(3, LF_SERVER, "%s: %s", GetPlayerName(Play), Data); BroadcastToClients(C_NONE, C_MSG, Data, Play, Play); break; default: dopelog(0, LF_SERVER, _("Unknown message: %s:%c:%s:%s"), GetPlayerName(Play), Code, GetPlayerName(To), Data); break; } } /* * Notifies all clients that player "Play" has left the game and * cleans up after them if necessary. */ void ClientLeftServer(Player *Play) { Player *tmp; GSList *list; if (!IsConnectedPlayer(Play)) return; if (Play->EventNum == E_FIGHT || Play->EventNum == E_FIGHTASK) { WithdrawFromCombat(Play); } for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (tmp != Play) { RemoveAllEntries(&(tmp->TipList), Play); RemoveAllEntries(&(tmp->SpyList), Play); } } BroadcastToClients(C_NONE, C_LEAVE, GetPlayerName(Play), Play, Play); } /* * Closes down the server and frees up associated handles and memory. */ void CleanUpServer() { while (FirstServer) { FirstServer = RemovePlayer((Player *)FirstServer->data, FirstServer); } #ifdef NETWORKING if (Server) CloseSocket(ListenSock); #endif } /* * Responds to a SIGUSR1 signal, and requests the main event loop to * reregister the server with the dopewars metaserver. */ void ReregisterHandle(int sig) { ReregisterRequest = 1; } /* * Responds to a SIGHUP signal, and requests the main event loop to * close and then reopen the log file (if any). */ void RelogHandle(int sig) { RelogRequest = 1; } /* * Traps an attempt by the user to send dopewars a SIGTERM or SIGINT * (e.g. pressing Ctrl-C) and signals for a "nice" shutdown. Restores * the default signal action (to terminate without cleanup) so that * the user can still close the program easily if this cleanup code * then causes problems or long delays. */ void BreakHandle(int sig) { struct sigaction sact; TerminateRequest = 1; sact.sa_handler = SIG_DFL; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); sigaction(SIGTERM, &sact, NULL); sigaction(SIGINT, &sact, NULL); } /* * Prints the server help screen to the given file pointer. */ void PrintHelpTo(FILE *fp) { int i; GString *VarName; VarName = g_string_new(""); fprintf(fp, _(HelpText), VERSION); for (i = 0; i < NUMGLOB; i++) { if (Globals[i].NameStruct[0]) { g_string_printf(VarName, "%s%s.%s", Globals[i].NameStruct, Globals[i].StructListPt ? "[x]" : "", Globals[i].Name); } else { g_string_assign(VarName, Globals[i].Name); } fprintf(fp, "%-26s %s\n", VarName->str, _(Globals[i].Help)); } fputs("\n\n", fp); g_string_free(VarName, TRUE); } /* * Displays a simple help screen listing the server commands and options. */ void ServerHelp(void) { int i; GString *VarName; VarName = g_string_new(""); g_print(_(HelpText), VERSION); for (i = 0; i < NUMGLOB; i++) { if (Globals[i].NameStruct[0]) { g_string_printf(VarName, "%s%s.%s", Globals[i].NameStruct, Globals[i].StructListPt ? "[x]" : "", Globals[i].Name); } else { g_string_assign(VarName, Globals[i].Name); } g_print("%-26s\t%s\n", VarName->str, _(Globals[i].Help)); } g_string_free(VarName, TRUE); } #ifdef NETWORKING static NetworkBuffer *reply_netbuf; static void ServerReply(const gchar *msg) { int msglen; gchar *msgcp; if (reply_netbuf) { msglen = strlen(msg); while (msglen > 0 && msg[msglen - 1] == '\n') msglen--; if (msglen > 0) { msgcp = g_strndup(msg, msglen); QueueMessageForSend(reply_netbuf, msgcp); g_free(msgcp); } } else { g_print("%s", msg); } } /* * Creates a pid file (if "PidFile" is non-NULL) and writes the process * ID into it. */ void CreatePidFile(void) { FILE *fp; if (!PidFile) return; fp = fopen(PidFile, "w"); if (fp) { dopelog(1, LF_SERVER, _("Maintaining pid file %s"), PidFile); fprintf(fp, "%ld\n", (long)getpid()); fclose(fp); chmod(PidFile, S_IREAD | S_IWRITE); } else { gchar *OpenError = ErrStrFromErrno(errno); g_warning(_("Cannot create pid file %s: %s"), PidFile, OpenError); g_free(OpenError); } } /* * Removes the previously-created pid file "PidFile". */ void RemovePidFile(void) { if (PidFile) unlink(PidFile); } static gboolean StartServer(void) { LastError *sockerr = NULL; GString *errstr; #ifndef CYGWIN struct sigaction sact; #endif if (!CheckHighScoreFileConfig()) return FALSE; Scanner = g_scanner_new(&ScannerConfig); Scanner->msg_handler = ScannerErrorHandler; Scanner->input_name = "(stdin)"; /* Make the output line-buffered, so that the log file (if used) is * updated regularly */ fflush(stdout); #ifdef SETVBUF_REVERSED /* 2nd and 3rd arguments are reversed on * some systems */ setvbuf(stdout, _IOLBF, (char *)NULL, 0); #else setvbuf(stdout, (char *)NULL, _IOLBF, 0); #endif Network = Server = TRUE; FirstServer = NULL; ClientMessageHandlerPt = NULL; ListenSock = CreateTCPSocket(&sockerr); if (ListenSock == SOCKET_ERROR) { errstr = g_string_new(""); g_string_assign_error(errstr, sockerr); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot create server (listening) socket (%s) Aborting."), errstr->str); g_string_free(errstr, TRUE); FreeError(sockerr); exit(EXIT_FAILURE); } /* This doesn't seem to work properly under Win32 */ #ifndef CYGWIN SetReuse(ListenSock); #endif SetBlocking(ListenSock, FALSE); if (!BindTCPSocket(ListenSock, BindAddress, Port, &sockerr)) { errstr = g_string_new(""); g_string_assign_error(errstr, sockerr); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot bind to port %u (%s) Aborting."), Port, errstr->str); g_string_free(errstr, TRUE); FreeError(sockerr); exit(EXIT_FAILURE); } if (listen(ListenSock, 10) == SOCKET_ERROR) { g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot listen to network socket. Aborting.")); exit(EXIT_FAILURE); } /* Initial startup message for the server */ dopelog(0, LF_SERVER, _("dopewars server version %s ready and waiting for " "connections on port %d."), VERSION, Port); MetaUpdateTimeout = MetaMinTimeout = 0; TerminateRequest = ReregisterRequest = RelogRequest = 0; #if !CYGWIN sact.sa_handler = ReregisterHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGUSR1, &sact, NULL) == -1) { /* Warning messages displayed if we fail to trap various signals */ g_warning(_("Cannot install SIGUSR1 interrupt handler!")); } sact.sa_handler = RelogHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGHUP, &sact, NULL) == -1) { g_warning(_("Cannot install SIGHUP interrupt handler!")); } sact.sa_handler = BreakHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGINT, &sact, NULL) == -1) { g_warning(_("Cannot install SIGINT interrupt handler!")); } if (sigaction(SIGTERM, &sact, NULL) == -1) { g_warning(_("Cannot install SIGTERM interrupt handler!")); } sact.sa_handler = SIG_IGN; sact.sa_flags = 0; if (sigaction(SIGPIPE, &sact, NULL) == -1) { g_warning(_("Cannot install pipe handler!")); } #endif return TRUE; } static void InitMetaServer() { CurlInit(&MetaConn); #ifdef GUI_SERVER SetCurlCallback(&MetaConn, glib_timeout, glib_socket); #endif RegisterWithMetaServer(TRUE, TRUE, FALSE); } /* * Begin the process of shutting down the server. In order to do this, * we need to log out all of the currently connected players, and tell * the metaserver that we're shutting down. We only shut down properly * once all of these messages have been completely sent and * acknowledged. (Of course, this can be overridden by a SIGINT or * similar in the case of unresponsive players.) */ void RequestServerShutdown(void) { RegisterWithMetaServer(FALSE, FALSE, FALSE); BroadcastToClients(C_NONE, C_QUIT, NULL, NULL, NULL); WantQuit = TRUE; } /* * Returns TRUE if the actions initiated by RequestServerShutdown() * have been successfully completed, such that we can shut down the * server properly now. */ gboolean IsServerShutdown(void) { return (WantQuit && !FirstServer && !MetaConn.running); } static GPrintFunc StartServerReply(NetworkBuffer *netbuf) { reply_netbuf = netbuf; if (netbuf) return g_set_print_handler(ServerReply); else return NULL; } static void FinishServerReply(GPrintFunc oldprint) { if (oldprint) g_set_print_handler(oldprint); } static void ServerSaveConfigFile(const char *string) { gchar *file = NULL; if (!string) { file = GetLocalConfigFile(); string = file; } if (UpdateConfigFile(file, FALSE)) { g_print(_("Configuration file saved OK as %s\n"), string); } g_free(file); } static void HandleServerCommand(char *string, NetworkBuffer *netbuf, gboolean ForceUTF8) { GSList *list; Player *tmp; GPrintFunc oldprint; Converter *conv; oldprint = StartServerReply(netbuf); conv = Conv_New(); if (ForceUTF8) { Conv_SetCodeset(conv, "UTF-8"); } g_scanner_input_text(Scanner, string, strlen(string)); if (!ParseNextConfig(Scanner, conv, NULL, TRUE)) { if (g_ascii_strncasecmp(string, "help", 4) == 0 || g_ascii_strncasecmp(string, "h", 1) == 0 || strcmp(string, "?") == 0) { ServerHelp(); } else if (g_ascii_strncasecmp(string, "quit", 4) == 0) { RequestServerShutdown(); } else if (g_ascii_strncasecmp(string, "msg:", 4) == 0) { BroadcastToClients(C_NONE, C_MSG, string + 4, NULL, NULL); } else if (g_ascii_strncasecmp(string, "save ", 5) == 0) { ServerSaveConfigFile(string + 5); } else if (g_ascii_strncasecmp(string, "save", 4) == 0) { ServerSaveConfigFile(NULL); } else if (g_ascii_strncasecmp(string, "list", 4) == 0) { if (FirstServer) { g_print(_("Users currently logged on:-\n")); for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (!IsCop(tmp)) { g_print("%s\n", GetPlayerName(tmp)); } } } else g_print(_("No users currently logged on!\n")); } else if (g_ascii_strncasecmp(string, "push ", 5) == 0) { tmp = GetPlayerByName(string + 5, FirstServer); if (tmp) { g_print(_("Pushing %s\n"), GetPlayerName(tmp)); SendServerMessage(NULL, C_NONE, C_PUSH, tmp, NULL); } else g_print(_("No such user!\n")); } else if (g_ascii_strncasecmp(string, "kill ", 5) == 0) { tmp = GetPlayerByName(string + 5, FirstServer); if (tmp) { /* The named user has been removed from the server following a "kill" command */ g_print(_("%s killed\n"), GetPlayerName(tmp)); BroadcastToClients(C_NONE, C_KILL, GetPlayerName(tmp), tmp, (Player *)FirstServer->data); FirstServer = RemovePlayer(tmp, FirstServer); } else g_print(_("No such user!\n")); } else { g_print(_("Unknown command - try \"help\" for help...\n")); } } Conv_Free(conv); FinishServerReply(oldprint); } Player *HandleNewConnection(void) { socklen_t cadsize; int ClientSock; struct sockaddr_in ClientAddr; Player *tmp; cadsize = sizeof(struct sockaddr); if ((ClientSock = accept(ListenSock, (struct sockaddr *)&ClientAddr, &cadsize)) == -1) { perror("accept socket"); exit(EXIT_FAILURE); } dopelog(2, LF_SERVER, _("got connection from %s"), inet_ntoa(ClientAddr.sin_addr)); tmp = g_new(Player, 1); FirstServer = AddPlayer(ClientSock, tmp, FirstServer); if (ConnectTimeout) { tmp->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } return tmp; } void StopServer() { dopelog(0, LF_SERVER, _("dopewars server terminating.")); g_scanner_destroy(Scanner); CleanUpServer(); RemovePidFile(); } void RemovePlayerFromServer(Player *Play) { if (!WantQuit && strlen(GetPlayerName(Play)) > 0) { dopelog(2, LF_SERVER, _("%s leaves the server!"), GetPlayerName(Play)); ClientLeftServer(Play); /* Blank the name, so that CountPlayers ignores this player */ SetPlayerName(Play, NULL); /* Report the new high scores (if any) and the new number of players * to the metaserver */ RegisterWithMetaServer(TRUE, TRUE, TRUE); } FirstServer = RemovePlayer(Play, FirstServer); } #ifndef CYGWIN static gchar sockpref[] = "/tmp/.dopewars"; static gchar *GetLocalSockDir(void) { return g_strdup_printf("%s-%u", sockpref, Port); } gchar *GetLocalSocket(void) { return g_strdup_printf("%s-%u/socket", sockpref, Port); } static void CloseLocalSocket(int localsock) { gchar *sockname, *sockdir; if (localsock >= 0) close(localsock); sockname = GetLocalSocket(); sockdir = GetLocalSockDir(); unlink(sockname); rmdir(sockdir); g_free(sockname); g_free(sockdir); } static int SetupLocalSocket(void) { int sock; struct sockaddr_un addr; gchar *sockname, *sockdir; CloseLocalSocket(-1); sock = socket(PF_UNIX, SOCK_STREAM, 0); if (sock == -1) return -1; SetBlocking(sock, FALSE); sockname = GetLocalSocket(); sockdir = GetLocalSockDir(); if (mkdir(sockdir, S_IRUSR | S_IWUSR | S_IXUSR) == -1) return -1; addr.sun_family = AF_UNIX; strncpy(addr.sun_path, sockname, sizeof(addr.sun_path)); addr.sun_path[sizeof(addr.sun_path) - 1] = '\0'; if (bind(sock, (struct sockaddr *)&addr, sizeof(struct sockaddr_un)) == -1) return -1; chmod(sockname, S_IRUSR | S_IWUSR); g_free(sockname); g_free(sockdir); listen(sock, 10); return sock; } #endif static void LogMetaReply(CurlConnection *conn) { g_ptr_array_foreach(conn->headers, log_meta_headers, NULL); char *ch = conn->data; while(ch && *ch) { char *nextch = CurlNextLine(conn, ch); if (*ch) dopelog(2, LF_SERVER, _("MetaServer: %s"), ch); ch = nextch; } dopelog(4, LF_SERVER, _("MetaServer: (closed)")); } #ifdef GUI_SERVER static gboolean glib_timeout(gpointer userp) { CurlConnection *g = userp; int still_running; GError *err = NULL; if (!CurlConnectionSocketAction(g, CURL_SOCKET_TIMEOUT, 0, &still_running, &err)) { MetaConnectError(g, err); g_error_free(err); } g->timer_event = 0; return G_SOURCE_REMOVE; } static void GuiQuitServer() { gtk_main_quit(); StopServer(); } /* Called by glib when we get action on a multi socket */ static gboolean glib_socket(GIOChannel *ch, GIOCondition condition, gpointer data) { CurlConnection *g = (CurlConnection*) data; int still_running; GError *err = NULL; int fd = g_io_channel_unix_get_fd(ch); int action = ((condition & G_IO_IN) ? CURL_CSELECT_IN : 0) | ((condition & G_IO_OUT) ? CURL_CSELECT_OUT : 0); if (!CurlConnectionSocketAction(g, fd, action, &still_running, &err)) { MetaConnectError(g, err); g_error_free(err); } if (still_running) { return TRUE; } else { if (g->timer_event) { dp_g_source_remove(g->timer_event); g->timer_event = 0; } LogMetaReply(g); CloseCurlConnection(g); if (IsServerShutdown()) GuiQuitServer(); return FALSE; } } #endif /* * Initializes server, processes network and interactive messages, and * finally cleans up the server on exit. */ void ServerLoop(struct CMDLINE *cmdline) { Player *tmp; GSList *list, *listcp; fd_set readfs, writefs, errorfs; int topsock; struct timeval timeout; int MinTimeout; GString *LineBuf; gboolean DoneOK; #ifndef CYGWIN gchar *buf; int localsock; GSList *nextlist; GPrintFunc oldprint; GSList *localconn = NULL; #endif InitConfiguration(cmdline); if (!StartServer()) return; #ifdef HAVE_FORK /* Daemonize; continue if the fork was successful and we are the child, * or if the fork failed */ if (Daemonize && fork() > 0) return; #endif CreatePidFile(); InitMetaServer(); #ifndef CYGWIN localsock = SetupLocalSocket(); if (localsock == -1) { dopelog(0, LF_SERVER, _("Could not set up Unix domain socket for admin " "connections - check permissions on /tmp!")); } #endif LineBuf = g_string_new(""); while (1) { FD_ZERO(&readfs); FD_ZERO(&writefs); FD_ZERO(&errorfs); curl_multi_fdset(MetaConn.multi, &readfs, &writefs, &errorfs, &topsock); FD_SET(ListenSock, &readfs); FD_SET(ListenSock, &errorfs); topsock = MAX(topsock + 1, ListenSock + 1); #ifndef CYGWIN if (localsock >= 0) { FD_SET(localsock, &readfs); topsock = MAX(topsock, localsock + 1); } for (list = localconn; list; list = g_slist_next(list)) { NetworkBuffer *netbuf; netbuf = (NetworkBuffer *)list->data; SetSelectForNetworkBuffer(netbuf, &readfs, &writefs, &errorfs, &topsock); } #endif for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (!IsCop(tmp)) { SetSelectForNetworkBuffer(&tmp->NetBuf, &readfs, &writefs, &errorfs, &topsock); } } MinTimeout = GetMinimumTimeout(FirstServer); if (MinTimeout != -1) { timeout.tv_sec = MinTimeout; timeout.tv_usec = 0; } if (select(topsock, &readfs, &writefs, &errorfs, MinTimeout == -1 ? NULL : &timeout) == -1) { if (errno == EINTR) { if (ReregisterRequest) { ReregisterRequest = 0; RegisterWithMetaServer(TRUE, TRUE, FALSE); continue; } else if (TerminateRequest) { TerminateRequest = 0; RequestServerShutdown(); if (IsServerShutdown()) break; else continue; } else if (RelogRequest) { /* Re-open log file */ RelogRequest = 0; CloseLog(); OpenLog(); continue; } else continue; } perror("select"); break; } FirstServer = HandleTimeouts(FirstServer); if (FD_ISSET(ListenSock, &readfs)) { HandleNewConnection(); } #ifndef CYGWIN if (localsock >= 0 && FD_ISSET(localsock, &readfs)) { int newlocal; NetworkBuffer *netbuf; newlocal = accept(localsock, NULL, NULL); netbuf = g_new(NetworkBuffer, 1); InitNetworkBuffer(netbuf, '\n', '\r', NULL); BindNetworkBufferToSocket(netbuf, newlocal); localconn = g_slist_append(localconn, netbuf); oldprint = StartServerReply(netbuf); g_print(_("dopewars server version %s ready for admin commands; " "try \"help\" for help"), VERSION); FinishServerReply(oldprint); dopelog(1, LF_SERVER, _("New admin connection")); } list = localconn; while (list) { NetworkBuffer *netbuf; nextlist = g_slist_next(list); netbuf = (NetworkBuffer *)list->data; if (netbuf) { if (RespondToSelect(netbuf, &readfs, &writefs, &errorfs, &DoneOK)) { while ((buf = GetWaitingMessage(netbuf)) != NULL) { dopelog(2, LF_SERVER, _("Admin command: %s"), buf); HandleServerCommand(buf, netbuf, FALSE); g_free(buf); } } if (!DoneOK) { dopelog(1, LF_SERVER, _("Admin connection closed")); localconn = g_slist_remove(localconn, netbuf); ShutdownNetworkBuffer(netbuf); g_free(netbuf); } list = nextlist; } } if (IsServerShutdown()) break; #endif if (MetaConn.running) { GError *tmp_error = NULL; int still_running; if (!CurlConnectionPerform(&MetaConn, &still_running, &tmp_error)) { MetaConnectError(&MetaConn, tmp_error); g_error_free(tmp_error); if (IsServerShutdown()) break; } else if (still_running == 0) { LogMetaReply(&MetaConn); CloseCurlConnection(&MetaConn); if (IsServerShutdown()) break; } } /* Check all players for data; iterate over a copy of the player list, * as HandleServerPlayer may remove players from this list! */ listcp = g_slist_copy(FirstServer); for (list = listcp; list; list = g_slist_next(list)) { if (list->data && g_slist_find(FirstServer, list->data)) { tmp = (Player *)list->data; if (RespondToSelect(&tmp->NetBuf, &readfs, &writefs, &errorfs, &DoneOK)) { /* If any complete messages were read, process them */ HandleServerPlayer(tmp); } if (!DoneOK) { /* The socket has been shut down, or the buffer was filled - * remove player */ RemovePlayerFromServer(tmp); if (IsServerShutdown()) { break; } } } } g_slist_free(listcp); if (IsServerShutdown()) { break; } } #ifndef CYGWIN CloseLocalSocket(localsock); #endif StopServer(); g_string_free(LineBuf, TRUE); CurlCleanup(&MetaConn); } #ifdef GUI_SERVER static GtkWidget *TextOutput; static gint ListenTag = 0; static void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean Exception, gboolean CallNow); static void GuiSetTimeouts(void); static time_t NextTimeout = 0; static guint TimeoutTag = 0; static gboolean GuiDoTimeouts(gpointer data) { /* Forget the TimeoutTag so that GuiSetTimeouts doesn't delete it - * it'll be deleted automatically anyway when we return FALSE */ TimeoutTag = 0; NextTimeout = 0; FirstServer = HandleTimeouts(FirstServer); GuiSetTimeouts(); return FALSE; } void GuiSetTimeouts(void) { int MinTimeout; time_t TimeNow; TimeNow = time(NULL); MinTimeout = GetMinimumTimeout(FirstServer); if (TimeNow + MinTimeout < NextTimeout || NextTimeout < TimeNow) { if (TimeoutTag > 0) dp_g_source_remove(TimeoutTag); TimeoutTag = 0; if (MinTimeout > 0) { TimeoutTag = dp_g_timeout_add(MinTimeout * 1000, GuiDoTimeouts, NULL); NextTimeout = TimeNow + MinTimeout; } } } static void GuiServerPrintFunc(const gchar *string) { TextViewAppend(GTK_TEXT_VIEW(TextOutput), string, NULL, TRUE); } static void GuiServerLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { g_string_append(text, "\n"); GuiServerPrintFunc(text->str); g_string_free(text, TRUE); } } #ifdef CYGWIN static void ServiceFailure(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { SERVICE_STATUS status; g_print("%s\n", message); status.dwServiceType = SERVICE_WIN32_OWN_PROCESS; status.dwCurrentState = SERVICE_STOPPED; status.dwControlsAccepted = SERVICE_ACCEPT_STOP; status.dwWin32ExitCode = ERROR_NETWORK_UNREACHABLE; status.dwCheckPoint = 0; status.dwWaitHint = 0; SetServiceStatus(scHandle, &status); } #endif static void GuiDoCommand(GtkWidget *widget, gpointer data) { gchar *text; text = gtk_editable_get_chars(GTK_EDITABLE(widget), 0, -1); gtk_editable_delete_text(GTK_EDITABLE(widget), 0, -1); HandleServerCommand(text, NULL, TRUE); g_free(text); if (IsServerShutdown()) GuiQuitServer(); } static gboolean GuiHandleSocket(GIOChannel *source, GIOCondition condition, gpointer data) { Player *Play; gboolean DoneOK; Play = (Player *)data; /* Sanity check - is the player still around? */ if (!g_slist_find(FirstServer, (gpointer)Play)) return TRUE; if (PlayerHandleNetwork(Play, condition & G_IO_IN, condition & G_IO_OUT, condition & G_IO_ERR, &DoneOK)) { HandleServerPlayer(Play); GuiSetTimeouts(); /* We may have set some new timeouts */ } if (!DoneOK) { RemovePlayerFromServer(Play); if (IsServerShutdown()) GuiQuitServer(); } return TRUE; } void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean Exception, gboolean CallNow) { if (NetBuf->InputTag) dp_g_source_remove(NetBuf->InputTag); NetBuf->InputTag = 0; if (Read || Write) { NetBuf->InputTag = dp_g_io_add_watch(NetBuf->ioch, (Read ? G_IO_IN : 0) | (Write ? G_IO_OUT : 0) | (Exception ? G_IO_ERR : 0), GuiHandleSocket, NetBuf->CallBackData); } if (CallNow) GuiHandleSocket(NetBuf->ioch, 0, NetBuf->CallBackData); } static gboolean GuiNewConnect(GIOChannel *source, GIOCondition condition, gpointer data) { Player *Play; if (condition & G_IO_IN) { Play = HandleNewConnection(); SetNetworkBufferCallBack(&Play->NetBuf, SocketStatus, (gpointer)Play); } return TRUE; } static gboolean TriedPoliteShutdown = FALSE; static gint GuiRequestDelete(GtkWidget *widget, GdkEvent * event, gpointer data) { if (TriedPoliteShutdown) { GuiQuitServer(); } else { TriedPoliteShutdown = TRUE; HandleServerCommand("quit", NULL, FALSE); if (IsServerShutdown()) GuiQuitServer(); } return TRUE; /* Never allow automatic deletion - we * handle it manually */ } #ifdef CYGWIN static HWND mainhwnd = NULL; static BOOL systray = FALSE; static BOOL RegisterStatus(DWORD state) { SERVICE_STATUS status; status.dwServiceType = SERVICE_WIN32_OWN_PROCESS; status.dwCurrentState = state; status.dwControlsAccepted = SERVICE_ACCEPT_STOP; status.dwWin32ExitCode = NO_ERROR; status.dwCheckPoint = 0; status.dwWaitHint = 5000; return SetServiceStatus(scHandle, &status); } static VOID WINAPI ServiceHandler(DWORD control) { DWORD state = SERVICE_RUNNING; switch (control) { case SERVICE_CONTROL_STOP: state = SERVICE_STOP_PENDING; break; } if (!RegisterStatus(state)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } if (mainhwnd && !PostMessage(mainhwnd, MYWM_SERVICE, 0, (LPARAM) control)) { dopelog(0, LF_SERVER, _("Failed to post service notification message")); return; } } static VOID WINAPI ServiceInit(DWORD argc, LPTSTR * argv) { scHandle = RegisterServiceCtrlHandler("dopewars-server", ServiceHandler); if (!scHandle) { dopelog(0, LF_SERVER, _("Failed to register service handler")); return; } if (!RegisterStatus(SERVICE_START_PENDING)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } GuiServerLoop(NULL, TRUE); if (!RegisterStatus(SERVICE_STOPPED)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } } void ServiceMain(struct CMDLINE *cmdline) { SERVICE_TABLE_ENTRY services[] = { {"dopewars-server", ServiceInit}, {NULL, NULL} }; InitConfiguration(cmdline); if (!StartServiceCtrlDispatcher(services)) { dopelog(0, LF_SERVER, _("Failed to start NT Service")); } } static LRESULT CALLBACK GuiServerWndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { if (hwnd == mainhwnd) switch (msg) { case MYWM_SERVICE: if (lparam == SERVICE_CONTROL_STOP) { RequestServerShutdown(); } break; case MYWM_TASKBAR: if ((UINT) lparam == WM_LBUTTONDOWN) ShowWindow(mainhwnd, SW_SHOW); break; case WM_SYSCOMMAND: if (wparam == SC_MINIMIZE && systray) { ShowWindow(mainhwnd, SW_HIDE); return TRUE; } break; } return FALSE; } static void SetupTaskBarIcon(GtkWidget *widget) { NOTIFYICONDATA nid; nid.cbSize = sizeof(NOTIFYICONDATA); nid.uID = 1000; if (widget && !widget->hWnd) return; if (!widget && !mainhwnd) return; nid.hWnd = mainhwnd; if (widget && MinToSysTray) { nid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP; nid.uCallbackMessage = MYWM_TASKBAR; nid.hIcon = mainIcon; strcpy(nid.szTip, "dopewars server - running"); systray = Shell_NotifyIcon(NIM_ADD, &nid); } else { systray = FALSE; Shell_NotifyIcon(NIM_DELETE, &nid); } } #endif /* CYGWIN */ void GuiServerLoop(struct CMDLINE *cmdline, gboolean is_service) { GtkWidget *window, *text, *hbox, *vbox, *entry, *label; GIOChannel *listench; /* GTK+2 (and the GTK emulation code on WinNT systems) expects all * strings to be UTF-8, so we force gettext to return all translations * in this encoding here. */ bind_textdomain_codeset(PACKAGE, "UTF-8"); Conv_SetInternalCodeset("UTF-8"); WantUTF8Errors(TRUE); if (cmdline) { InitConfiguration(cmdline); } window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(GuiRequestDelete), NULL); gtk_window_set_default_size(GTK_WINDOW(window), 500, 250); /* Title of dopewars server window (if used) */ gtk_window_set_title(GTK_WINDOW(window), _("dopewars server")); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); TextOutput = text = gtk_scrolled_text_view_new(&hbox); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); label = gtk_label_new(_("Command:")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); entry = gtk_entry_new(); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(GuiDoCommand), NULL); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); if (is_service) { #ifdef CYGWIN g_log_set_handler(NULL, G_LOG_LEVEL_CRITICAL, ServiceFailure, NULL); #endif } else { g_set_print_handler(GuiServerPrintFunc); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, GuiServerLogMessage, NULL); } if (!StartServer()) return; InitMetaServer(); #ifdef CYGIN listench = g_io_channel_win32_new_socket(ListenSock); #else listench = g_io_channel_unix_new(ListenSock); #endif ListenTag = dp_g_io_add_watch(listench, G_IO_IN, GuiNewConnect, NULL); #ifdef CYGWIN mainhwnd = window->hWnd; SetupTaskBarIcon(window); SetCustomWndProc(GuiServerWndProc); if (is_service && !RegisterStatus(SERVICE_RUNNING)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } #endif gtk_main(); #ifdef CYGWIN SetupTaskBarIcon(NULL); #endif } #endif /* GUI_SERVER */ #endif /* NETWORKING */ /* * Tells player "Play" that the game is over; display "Message". */ void FinishGame(Player *Play, char *Message) { Play->EventNum = E_FINISH; ClientLeftServer(Play); SendHighScores(Play, TRUE, Message); /* Blank the name, so that CountPlayers ignores this player */ SetPlayerName(Play, NULL); /* Make sure they do actually disconnect, eventually! */ if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } } /* * Reads a batch of NUMHISCORE high scores into "HiScore" from "fp". */ void HighScoreTypeRead(struct HISCORE *HiScore, FILE *fp) { int i; char *buf; for (i = 0; i < NUMHISCORE; i++) { if (read_string(fp, &HiScore[i].Name) == EOF) break; read_string(fp, &HiScore[i].Time); read_string(fp, &buf); HiScore[i].Money = strtoprice(buf); g_free(buf); HiScore[i].Dead = (fgetc(fp) > 0); } } /* * Writes out a batch of NUMHISCORE high scores from "HiScore" to "fp". */ void HighScoreTypeWrite(struct HISCORE *HiScore, FILE *fp) { int i; gchar *text; for (i = 0; i < NUMHISCORE; i++) { if (HiScore[i].Name) { fwrite(HiScore[i].Name, strlen(HiScore[i].Name) + 1, 1, fp); } else fputc(0, fp); if (HiScore[i].Time) { fwrite(HiScore[i].Time, strlen(HiScore[i].Time) + 1, 1, fp); } else fputc(0, fp); text = pricetostr(HiScore[i].Money); fwrite(text, strlen(text) + 1, 1, fp); g_free(text); fputc(HiScore[i].Dead ? 1 : 0, fp); } } /* * Closes the high score file opened by OpenHighScoreFile, below. */ void CloseHighScoreFile() { if (ScoreFP) { fclose(ScoreFP); } ScoreFP = NULL; } /* * If we're running setuid/setgid, drop down to the privilege level of the * user that started the dopewars process. */ void DropPrivileges() { #ifndef CYGWIN #ifdef HAVE_ISSETUGID if (issetugid() == 0) return; #endif /* Ignore the return from setregid; we'll check it ourselves to be sure * (this avoids problems when running under fakeroot) */ setregid(getgid(), getgid()); if (getgid() != getegid()) { perror("setregid"); exit(EXIT_FAILURE); } setreuid(getuid(), getuid()); if (getuid() != geteuid()) { perror("setreuid"); exit(EXIT_FAILURE); } #endif } static const gchar SCOREHEADER[] = "DOPEWARS SCORES V."; static const guint SCOREHDRLEN = sizeof(SCOREHEADER) - 1; /* Don't include \0 */ static const guint SCOREVERSION = 1; static gboolean HighScoreReadHeader(FILE *fp, gint *ScoreVersion) { gchar *header; if (read_string(fp, &header) != EOF) { if (header && strlen(header) > SCOREHDRLEN && strncmp(header, SCOREHEADER, SCOREHDRLEN) == 0) { if (ScoreVersion) *ScoreVersion = atoi(header + SCOREHDRLEN); g_free(header); return TRUE; } } g_free(header); return FALSE; } static void HighScoreWriteHeader(FILE *fp) { gchar *header; header = g_strdup_printf("%s%d", SCOREHEADER, SCOREVERSION); fwrite(header, strlen(header) + 1, 1, fp); g_free(header); } /* * Converts an old format high score file to the new format. */ void ConvertHighScoreFile(const gchar *convertfile) { FILE *old; gchar *BackupFile; int ch; struct HISCORE MultiScore[NUMHISCORE], AntiqueScore[NUMHISCORE]; BackupFile = g_strdup_printf("%s.bak", convertfile); old = fopen(convertfile, "r+"); if (old) { gboolean empty; /* Only convert if the file is not empty, and does not have a header */ rewind(old); empty = (fgetc(old) == EOF); rewind(old); if (!empty && !HighScoreReadHeader(old, NULL)) { FILE *backup = fopen(BackupFile, "w"); if (backup) { /* Make a backup of the old file */ ftruncate(fileno(backup), 0); rewind(backup); rewind(old); while (1) { ch = fgetc(old); if (ch == EOF) { break; } else { fputc(ch, backup); } } fclose(backup); /* Read in the scores without the header, and then write out with * the header */ if (!HighScoreRead(old, MultiScore, AntiqueScore, FALSE)) { g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Error reading scores from %s."), convertfile); } else { ftruncate(fileno(old), 0); rewind(old); if (HighScoreWrite(old, MultiScore, AntiqueScore)) { g_message(_("The high score file %s has been converted to the " "new format.\nA backup of the old file has been " "created as %s.\n"), convertfile, BackupFile); } } } else { gchar *errmsg = ErrStrFromErrno(errno); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot create backup (%s) of the\nhigh score file: %s."), BackupFile, errmsg); g_free(errmsg); } } fclose(old); } else { gchar *errmsg = ErrStrFromErrno(errno); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot open high score file %s: %s."), convertfile, errmsg); g_free(errmsg); } g_free(BackupFile); } #ifdef CYGWIN /* Try to open a high score file in the Win32-specific AppData directory */ static FILE *OpenHighScoreAppData(int *error, gboolean *empty) { FILE *fp = NULL; HKEY key; static const char *subkey = "Software\\Microsoft\\Windows\\CurrentVersion" "\\Explorer\\Shell Folders"; static const char *subval = "Local AppData"; *empty = FALSE; if (RegOpenKeyEx(HKEY_CURRENT_USER, subkey, 0, KEY_READ, &key) == ERROR_SUCCESS) { DWORD keylen, keytype; if (RegQueryValueEx(key, subval, NULL, &keytype, NULL, &keylen) == ERROR_SUCCESS && keytype == REG_SZ) { char *keyval = g_malloc(keylen); if (RegQueryValueEx(key, subval, NULL, &keytype, (LPBYTE)keyval, &keylen) == ERROR_SUCCESS) { GString *str = g_string_sized_new(keylen + 40); g_string_assign(str, keyval); g_free(keyval); g_string_append(str, "\\dopewars"); CreateDirectory(str->str, NULL); g_string_append(str, "\\dopewars.sco"); fp = fopen(str->str, "r+"); if (!fp) { fp = fopen(str->str, "w+"); if (!fp) { *error = errno; } *empty = TRUE; } g_string_free(str, 1); } } RegCloseKey(key); } return fp; } #endif /* State, set by OpenHighScoreFile, and later used by * CheckHighScoreFileConfig */ static gboolean EmptyFile; static int OpenError; /* * Opens the high score file for later use, and then drops privileges. */ void OpenHighScoreFile(void) { if (ScoreFP) { return; /* If already opened, then we're done */ } EmptyFile = FALSE; OpenError = 0; /* Win32 gets upset if we use "a+" so we use this nasty hack instead */ ScoreFP = fopen(HiScoreFile, "r+"); if (!ScoreFP) { ScoreFP = fopen(HiScoreFile, "w+"); if (!ScoreFP) { OpenError = errno; } EmptyFile = TRUE; } #ifdef CYGWIN if (!ScoreFP) { ScoreFP = OpenHighScoreAppData(&OpenError, &EmptyFile); } #endif /* Check for a 0-byte score file */ if (ScoreFP && !EmptyFile) { rewind(ScoreFP); if (fgetc(ScoreFP) == EOF) { EmptyFile = TRUE; } rewind(ScoreFP); } } /* * Checks the high score file opened by OpenHighScoreFile, above. Also warns * the user about other problems encountered during startup. Returns * TRUE if it's valid; otherwise, returns FALSE. */ gboolean CheckHighScoreFileConfig(void) { if (!ScoreFP) { gchar *errstr = ErrStrFromErrno(OpenError); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score " "file with the\n-f command line option."), HiScoreFile, errstr); g_free(errstr); return FALSE; } if (EmptyFile) { HighScoreWriteHeader(ScoreFP); fflush(ScoreFP); } else if (!HighScoreReadHeader(ScoreFP, NULL)) { g_log(NULL, G_LOG_LEVEL_CRITICAL, _("%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line."), HiScoreFile, HiScoreFile); return FALSE; } if (ConfigErrors) { #ifdef CYGWIN g_warning(_("Errors were encountered during the reading of the " "configuration file.\nAs as result, some settings may not " "work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details.")); #else g_warning(_("Errors were encountered during the reading of the " "configuration\nfile. As a result, some settings may not " "work as expected. Please see the\nmessages on standard " "output for further details.")); #endif } return TRUE; } /* * Reads all the high scores into MultiScore and AntiqueScore (antique * mode scores). If ReadHeader is TRUE, read the high score file header * first. Returns TRUE on success, FALSE on failure. */ gboolean HighScoreRead(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore, gboolean ReadHeader) { gint ScoreVersion = 0; memset(MultiScore, 0, sizeof(struct HISCORE) * NUMHISCORE); memset(AntiqueScore, 0, sizeof(struct HISCORE) * NUMHISCORE); if (fp && ReadLock(fp) == 0) { rewind(fp); if (ReadHeader && !HighScoreReadHeader(fp, &ScoreVersion)) { ReleaseLock(fp); return FALSE; } HighScoreTypeRead(AntiqueScore, fp); HighScoreTypeRead(MultiScore, fp); ReleaseLock(fp); } else return FALSE; return TRUE; } /* * Writes out all the high scores from MultiScore and AntiqueScore; returns * TRUE on success, FALSE on failure. */ gboolean HighScoreWrite(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore) { if (fp && WriteLock(fp) == 0) { ftruncate(fileno(fp), 0); rewind(fp); HighScoreWriteHeader(fp); HighScoreTypeWrite(AntiqueScore, fp); HighScoreTypeWrite(MultiScore, fp); ReleaseLock(fp); fflush(fp); } else return 0; return 1; } /* * Adds "Play" to the high score list if necessary, and then sends the * scores over the network to "Play". * If "EndGame" is TRUE, add the current score if it's high enough and * display an explanatory message. "Message" is tacked onto the start * if it's non-NULL. The client is then informed that the game's over. */ void SendHighScores(Player *Play, gboolean EndGame, char *Message) { struct HISCORE MultiScore[NUMHISCORE], AntiqueScore[NUMHISCORE], Score; struct HISCORE *HiScore; struct tm *timep; #ifdef HAVE_GMTIME_R struct tm tmbuf; #endif time_t tim; GString *text; int i, j, InList = -1; text = g_string_new(""); if (!HighScoreRead(ScoreFP, MultiScore, AntiqueScore, TRUE)) { g_warning(_("Unable to read high score file %s"), HiScoreFile); } if (Message) { g_string_assign(text, Message); if (strlen(text->str) > 0) g_string_append_c(text, '^'); } if (WantAntique) HiScore = AntiqueScore; else HiScore = MultiScore; if (EndGame) { Score.Money = Play->Cash + Play->Bank - Play->Debt; Score.Name = g_strdup(GetPlayerName(Play)); Score.Dead = (Play->Health == 0); tim = time(NULL); #ifdef HAVE_GMTIME_R timep = gmtime_r(&tim, &tmbuf); #else timep = gmtime(&tim); #endif Score.Time = g_new(char, 80); /* Yuck! */ strftime(Score.Time, 80, "%d-%m-%Y", timep); Score.Time[79] = '\0'; for (i = 0; i < NUMHISCORE; i++) { if (InList == -1 && (Score.Money > HiScore[i].Money || !HiScore[i].Time || HiScore[i].Time[0] == 0)) { InList = i; g_string_append(text, _("Congratulations! You made the high scores!")); SendPrintMessage(NULL, C_NONE, Play, text->str); g_free(HiScore[NUMHISCORE - 1].Name); g_free(HiScore[NUMHISCORE - 1].Time); for (j = NUMHISCORE - 1; j > i; j--) { memcpy(&HiScore[j], &HiScore[j - 1], sizeof(struct HISCORE)); } memcpy(&HiScore[i], &Score, sizeof(struct HISCORE)); break; } } if (InList == -1) { g_string_append(text, _("You didn't even make the high score table...")); SendPrintMessage(NULL, C_NONE, Play, text->str); } } SendServerMessage(NULL, C_NONE, C_STARTHISCORE, Play, NULL); j = 0; for (i = 0; i < NUMHISCORE; i++) { if (SendSingleHighScore(Play, &HiScore[i], j, InList == i)) j++; } if (InList == -1 && EndGame) { SendSingleHighScore(Play, &Score, j, TRUE); g_free(Score.Name); g_free(Score.Time); } SendServerMessage(NULL, C_NONE, C_ENDHISCORE, Play, EndGame ? "end" : NULL); if (!EndGame) SendDrugsHere(Play, FALSE); if (EndGame && !HighScoreWrite(ScoreFP, MultiScore, AntiqueScore)) { g_warning(_("Unable to write high score file %s"), HiScoreFile); } for (i = 0; i < NUMHISCORE; i++) { g_free(MultiScore[i].Name); g_free(MultiScore[i].Time); g_free(AntiqueScore[i].Name); g_free(AntiqueScore[i].Time); } g_string_free(text, TRUE); } /* * Sends a single high score in "Score" with position "ind" to player * "Play". If Bold is TRUE, instructs the client to display the score in * bold text. */ int SendSingleHighScore(Player *Play, struct HISCORE *Score, int ind, gboolean Bold) { gchar *Data, *prstr; if (!Score->Time || Score->Time[0] == 0) return 0; Data = g_strdup_printf("%d^%c%c%18s %-14s %-34s %8s%c", ind, Bold ? 'B' : 'N', Bold ? '>' : ' ', prstr = FormatPrice(Score->Money), Score->Time, Score->Name, Score->Dead ? _("(R.I.P.)") : "", Bold ? '<' : ' '); SendServerMessage(NULL, C_NONE, C_HISCORE, Play, Data); g_free(prstr); g_free(Data); return 1; } /* * In order for the server to keep track of the state of each client, each * client's state is identified by its EventNum data member. So, for example, * there is a state for fighting the cops, a state for going to the bank, and * so on. This function instructs client player "To" to carry out the actions * expected of it in its current state. It is the client's responsibility to * ensure that it carries out the correct actions to advance itself to the * "next" state; if it fails in this duty it will hang! */ void SendEvent(Player *To) { price_t Money; int i, j; gchar *text; Player *Play; GSList *list; if (!To) return; if (To->EventNum == E_MAX) To->EventNum = E_NONE; if (To->EventNum == E_NONE || To->EventNum >= E_OUTOFSYNC) return; Money = To->Cash + To->Bank - To->Debt; ClearPrices(To); while (To->EventNum < E_MAX) { switch (To->EventNum) { case E_SUBWAY: SendServerMessage(NULL, C_NONE, C_SUBWAYFLASH, To, NULL); break; case E_OFFOBJECT: To->OnBehalfOf = NULL; for (i = 0; i < To->TipList.Number; i++) { dopelog(3, LF_SERVER, _("%s: Tipoff from %s"), GetPlayerName(To), GetPlayerName(To->TipList.Data[i].Play)); To->OnBehalfOf = To->TipList.Data[i].Play; SendCopOffer(To, FORCECOPS); return; } for (i = 0; i < To->SpyList.Number; i++) { if (To->SpyList.Data[i].Turns < 0) { dopelog(3, LF_SERVER, _("%s: Spy offered by %s"), GetPlayerName(To), GetPlayerName(To->SpyList.Data[i].Play)); To->OnBehalfOf = To->SpyList.Data[i].Play; SendCopOffer(To, FORCEBITCH); return; } To->SpyList.Data[i].Turns++; if (To->SpyList.Data[i].Turns > 3 && brandom(0, 100) < 10 + To->SpyList.Data[i].Turns) { if (TotalGunsCarried(To) > 0) j = brandom(0, NUMDISCOVER); else j = brandom(0, NUMDISCOVER - 1); text = dpg_strdup_printf(_("One of your %tde was spying for %s." "^The spy %s!"), Names.Bitches, GetPlayerName(To->SpyList.Data[i].Play), _(Discover[j])); if (j != DEFECT) LoseBitch(To, NULL, NULL); SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text); g_free(text); text = g_strdup_printf(_("Your spy working with %s has " "been discovered!^The spy %s!"), GetPlayerName(To), _(Discover[j])); if (j == ESCAPE) GainBitch(To->SpyList.Data[i].Play); To->SpyList.Data[i].Play->Flags &= ~SPYINGON; SendPlayerData(To->SpyList.Data[i].Play); SendPrintMessage(NULL, C_NONE, To->SpyList.Data[i].Play, text); g_free(text); RemoveListEntry(&(To->SpyList), i); i--; } } if (Money > 3000000) i = 130; else if (Money > 1000000) i = 115; else i = 100; if (brandom(0, i) > 75) { if (SendCopOffer(To, NOFORCE)) return; } break; case E_SAYING: if (!Sanitized && brandom(0, 100) < 15 && (NumSubway > 0 || NumPlaying > 0)) { int subwaychance = 50; if (NumSubway == 0) subwaychance = 0; if (NumPlaying == 0) subwaychance = 100; if (brandom(0, 100) < subwaychance) { text = g_strdup_printf(_("The lady next to you on the subway " "said,^ \"%s\"%s"), SubwaySaying[brandom(0, NumSubway)], brandom(0, 100) < 30 ? _("^ (at least, you -think- that's " "what she said)") : ""); } else { text = g_strdup_printf(_("You hear someone playing %s"), Playing[brandom(0, NumPlaying)]); } SendPrintMessage(NULL, C_NONE, To, text); g_free(text); } break; case E_LOANSHARK: if (To->IsAt + 1 == LoanSharkLoc && To->Debt > 0) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.LoanSharkName); SendQuestion(NULL, C_ASKLOAN, To, text); g_free(text); return; } break; case E_BANK: if (To->IsAt + 1 == BankLoc) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.BankName); SendQuestion(NULL, C_ASKBANK, To, text); g_free(text); return; } break; case E_GUNSHOP: if (To->IsAt + 1 == GunShopLoc && !Sanitized && NumGun > 0) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.GunShopName); SendQuestion(NULL, C_ASKGUNSHOP, To, text); g_free(text); return; } break; case E_ROUGHPUB: if (To->IsAt + 1 == RoughPubLoc) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.RoughPubName); SendQuestion(NULL, C_ASKPUB, To, text); g_free(text); return; } break; case E_HIREBITCH: if (To->IsAt + 1 == RoughPubLoc) { To->Bitches.Price = prandom(Bitch.MinPrice, Bitch.MaxPrice); text = dpg_strdup_printf(_ ("YN^^Would you like to hire a %tde for %P?"), Names.Bitch, To->Bitches.Price); SendQuestion(NULL, C_ASKBITCH, To, text); g_free(text); return; } break; case E_ARRIVE: for (list = FirstServer; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (IsConnectedPlayer(Play) && Play != To && NumGun > 0 && Play->IsAt == To->IsAt && Play->EventNum == E_NONE && TotalGunsCarried(To) > 0) { text = g_strdup_printf(_("%s^%s is already here!^" "Do you Attack, or Evade?"), attackquestiontr, GetPlayerName(Play)); /* Steal this to keep track of the potential defender */ To->OnBehalfOf = Play; SendDrugsHere(To, TRUE); SendQuestion(NULL, C_MEETPLAYER, To, text); g_free(text); return; } } SendDrugsHere(To, TRUE); break; default: break; } To->EventNum++; } if (To->EventNum >= E_MAX) To->EventNum = E_NONE; } /* * In response to client player "To" being in state E_OFFOBJECT, * randomly engages the client in combat with the cops or offers * other random events. Returns 0 if the client should then be * advanced to the next state, 1 otherwise (i.e. if there are * questions pending which the client must answer first) * If Force==FORCECOPS, engage in combat with the cops for certain * If Force==FORCEBITCH, offer the client a bitch for certain */ int SendCopOffer(Player *To, OfferForce Force) { int i; /* The cops are more likely to attack in locations with higher police * presence ratings */ i = brandom(0, 80 + Location[To->IsAt].PolicePresence); if (Force == FORCECOPS) i = 100; else if (Force == FORCEBITCH) i = 0; else To->OnBehalfOf = NULL; if (i < 33) { return (OfferObject(To, Force == FORCEBITCH)); } else if (i < 50) { return (RandomOffer(To)); } else if (Sanitized || NumCop == 0 || NumGun == 0) { return 0; } else { CopsAttackPlayer(To); return 1; } return 1; } /* * Has the cops attack player "Play". */ void CopsAttackPlayer(Player *Play) { Player *Cops; gint CopIndex, NumDeputy, GunIndex; if (NumCop == 0 || NumGun == 0) { g_warning(_("No cops or guns!")); return; } CopIndex = 1 - Play->CopIndex; if (CopIndex < 0) { g_warning(_("Cops cannot attack other cops!")); return; } if (CopIndex > NumCop) CopIndex = NumCop; Cops = g_new(Player, 1); FirstServer = AddPlayer(0, Cops, FirstServer); SetPlayerName(Cops, Cop[CopIndex - 1].Name); Cops->CopIndex = CopIndex; Cops->Cash = brandom(100, 2000); Cops->Debt = Cops->Bank = 0; NumDeputy = brandom(Cop[CopIndex - 1].MinDeputies, Cop[CopIndex - 1].MaxDeputies); Cops->Bitches.Carried = NumDeputy; GunIndex = Cop[CopIndex - 1].GunIndex; if (GunIndex >= NumGun) GunIndex = NumGun - 1; Cops->Guns[GunIndex].Carried = (NumDeputy * Cop[CopIndex - 1].DeputyGun) + Cop[CopIndex - 1].CopGun; Cops->Health = 100; Play->EventNum++; AttackPlayer(Cops, Play); } /* * Starts combat between player "Play" and player "Attacked"; if * either player is currently engaged in combat, add the other * player to the existing combat. If neither player is currently * fighting, start a new combat between them. Either player can be * the cops. */ void AttackPlayer(Player *Play, Player *Attacked) { GPtrArray *FightArray; g_assert(Play && Attacked); if (Play->FightArray && Attacked->FightArray) { if (Play->FightArray == Attacked->FightArray) { g_error(_("Players are already in a fight!")); } else { g_error(_("Players are already in separate fights!")); } return; } if (NumGun == 0) { g_error(_("Cannot start fight - no guns to use!")); return; } if (!Play->FightArray && !Attacked->FightArray) { FightArray = g_ptr_array_new(); } else { FightArray = Play->FightArray ? Play->FightArray : Attacked->FightArray; } if (!Play->FightArray) { Play->ResyncNum = Play->EventNum; g_ptr_array_add(FightArray, Play); } if (!Attacked->FightArray) { Attacked->ResyncNum = Attacked->EventNum; g_ptr_array_add(FightArray, Attacked); } Play->FightArray = Attacked->FightArray = FightArray; Play->EventNum = Attacked->EventNum = E_FIGHT; Play->Attacking = Attacked; SendFightMessage(Attacked, Play, 0, F_ARRIVED, (price_t)0, TRUE, NULL); Fire(Play); } /* * Returns TRUE if player "Other" is not allied with player "Play". */ gboolean IsOpponent(Player *Play, Player *Other) { return TRUE; } void HandleDamage(Player *Defend, Player *Attack, int Damage, int *BitchesKilled, price_t *Loot) { Inventory *Guns, *Drugs; price_t Bounty; Guns = (Inventory *)g_malloc0(sizeof(Inventory) * NumGun); Drugs = (Inventory *)g_malloc0(sizeof(Inventory) * NumDrug); ClearInventory(Guns, Drugs); Bounty = 0; if (Defend->Health <= Damage && Defend->Bitches.Carried == 0) { Bounty = Defend->Cash + Defend->Bank - Defend->Debt; AddInventory(Guns, Defend->Guns, NumGun); AddInventory(Drugs, Defend->Drugs, NumDrug); Defend->Health = 0; } else if (Defend->Bitches.Carried > 0 && Defend->Health <= Damage) { if (IsCop(Defend)) LoseBitch(Defend, NULL, NULL); else LoseBitch(Defend, Guns, Drugs); Defend->Health = 100; *BitchesKilled = 1; } else { Defend->Health -= Damage; } if (IsCop(Attack)) { /* Don't let cops loot players */ ClearInventory(Guns, Drugs); } else { TruncateInventoryFor(Guns, Drugs, Attack); } SendPlayerData(Defend); if (Bounty < 0) Bounty = 0; if (!IsInventoryClear(Guns, Drugs)) { AddInventory(Attack->Guns, Guns, NumGun); AddInventory(Attack->Drugs, Drugs, NumDrug); ChangeSpaceForInventory(Guns, Drugs, Attack); } Attack->Cash += Bounty; if (Bounty > 0 || !IsInventoryClear(Guns, Drugs)) { if (Bounty > 0) *Loot = Bounty; else *Loot = -1; SendPlayerData(Attack); } g_free(Guns); g_free(Drugs); } void GetFightRatings(Player *Attack, Player *Defend, int *AttackRating, int *DefendRating) { int i; /* Base values */ *AttackRating = 80; *DefendRating = 100; for (i = 0; i < NumGun; i++) { *AttackRating += Gun[i].Damage * Attack->Guns[i].Carried; } if (IsCop(Attack)) *AttackRating -= Cop[Attack->CopIndex - 1].AttackPenalty; *DefendRating -= 5 * Defend->Bitches.Carried; if (IsCop(Defend)) *DefendRating -= Cop[Defend->CopIndex - 1].DefendPenalty; *DefendRating = MAX(*DefendRating, 10); *AttackRating = MAX(*AttackRating, 10); } void AllowNextShooter(Player *Play) { Player *NextShooter; if (FightTimeout) { NextShooter = GetNextShooter(Play); if (NextShooter && !CanPlayerFire(NextShooter)) { NextShooter->FightTimeout = 0; } } } void DoReturnFire(Player *Play) { guint ArrayInd; Player *Defend; if (!Play || !Play->FightArray) return; if (FightTimeout != 0 || !IsCop(Play)) { for (ArrayInd = 0; Play->FightArray && ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (IsCop(Defend) && CanPlayerFire(Defend)) Fire(Defend); } } } /* * Puts the given player into the "fight ended" state. */ static void WaitForFightDone(Player *Play) { if (HaveAbility(Play, A_DONEFIGHT)) { Play->EventNum = E_WAITDONE; } else { Play->EventNum = Play->ResyncNum; SendEvent(Play); } } /* * Withdraws player "Play" from combat, and levies any penalties on * the player for this cowardly act, if applicable. If "ToLocation" * is >=0, then it identifies the location that the player is * trying to run to. */ void RunFromCombat(Player *Play, int ToLocation) { int EscapeProb, RandNum; guint ArrayInd; gboolean FightingCop = FALSE; Player *Defend; char BackupAt; if (!Play || !Play->FightArray) return; EscapeProb = 60; /* Penalise players that are attacking others */ if (Play->Attacking) EscapeProb /= 2; RandNum = brandom(0, 100); if (RandNum < EscapeProb) { if (!IsCop(Play) && brandom(0, 100) < 30) { for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (IsCop(Defend)) { FightingCop = TRUE; break; } } if (FightingCop) Play->CopIndex--; } BackupAt = Play->IsAt; Play->IsAt = ToLocation; WithdrawFromCombat(Play); Play->IsAt = BackupAt; WaitForFightDone(Play); } else { SendFightMessage(Play, NULL, 0, F_FAILFLEE, (price_t)0, TRUE, NULL); AllowNextShooter(Play); if (FightTimeout) SetFightTimeout(Play); DoReturnFire(Play); } } void CheckForKilledPlayers(Player *Play) { Player *Defend; guint ArrayInd; GPtrArray *KilledPlayers; KilledPlayers = g_ptr_array_new(); for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (Defend && Defend != Play && IsOpponent(Play, Defend) && Defend->Health == 0) { g_ptr_array_add(KilledPlayers, (gpointer)Defend); } } for (ArrayInd = 0; ArrayInd < KilledPlayers->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(KilledPlayers, ArrayInd); WithdrawFromCombat(Defend); if (IsCop(Defend)) { if (!IsCop(Play)) Play->CopIndex = -Defend->CopIndex; FirstServer = RemovePlayer(Defend, FirstServer); } else { FinishGame(Defend, _("You're dead! Game over.")); } } g_ptr_array_free(KilledPlayers, TRUE); } /* * If "Play" is attacking someone, and no cops are currently present, * then have the cops intervene (with a probability dependent on the * current location's PolicePresence) */ static void CheckCopsIntervene(Player *Play) { guint ArrayInd; Player *Defend; if (!Play || !Play->FightArray || NumCop == 0 || NumGun == 0) return; /* Sanity check */ if (!Play->Attacking) return; /* Cops don't attack "innocent victims" ;) */ if (brandom(0, 100) > Location[Play->IsAt].PolicePresence) { return; /* The cops shouldn't _always_ attack * (unless P.P. == 100) */ } for (ArrayInd = 0; Play->FightArray && ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (IsCop(Defend)) return; /* We don't want _more_ cops! */ } /* OK - let 'em have it... */ CopsAttackPlayer(Play); } /* * Returns a suitable player (or cop) for "Play" to fire at. If "Play" * is attacking a designated target already, return that, otherwise * return the first valid opponent in the player's FightArray. */ static Player *GetFireTarget(Player *Play) { Player *Defend; guint ArrayInd; if (Play->Attacking && g_slist_find(FirstServer, (gpointer)Play->Attacking)) { return Play->Attacking; } else { Play->Attacking = NULL; for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (Defend && Defend != Play && IsOpponent(Play, Defend)) { return Defend; } } } return NULL; } static int GetArmor(Player *Play) { int Armor; if (IsCop(Play)) { if (Play->Bitches.Carried == 0) Armor = Cop[Play->CopIndex - 1].Armor; else Armor = Cop[Play->CopIndex - 1].DeputyArmor; } else { if (Play->Bitches.Carried == 0) Armor = PlayerArmor; else Armor = BitchArmor; } if (Armor == 0) Armor = 1; return Armor; } /* * Fires all weapons of player "Play" at an opponent, and resets * the fight timeout (the reload time). */ void Fire(Player *Play) { int Damage, i, j; int AttackRating, DefendRating; int BitchesKilled; price_t Loot; FightPoint fp; Player *Defend; if (!Play->FightArray) return; if (!CanPlayerFire(Play)) return; AllowNextShooter(Play); if (FightTimeout) SetFightTimeout(Play); Defend = GetFireTarget(Play); if (Defend) { Damage = 0; BitchesKilled = 0; Loot = 0; if (TotalGunsCarried(Play) > 0) { GetFightRatings(Play, Defend, &AttackRating, &DefendRating); if (brandom(0, AttackRating) > brandom(0, DefendRating)) { fp = F_HIT; for (i = 0; i < NumGun; i++) for (j = 0; j < Play->Guns[i].Carried; j++) { Damage += brandom(0, Gun[i].Damage); } Damage = Damage * 100 / GetArmor(Defend); if (Damage == 0) Damage = 1; HandleDamage(Defend, Play, Damage, &BitchesKilled, &Loot); } else fp = F_MISS; } else fp = F_STAND; SendFightMessage(Play, Defend, BitchesKilled, fp, Loot, TRUE, NULL); } CheckForKilledPlayers(Play); /* Careful, as we might have killed Player "Play" */ if (g_slist_find(FirstServer, (gpointer)Play)) DoReturnFire(Play); if (g_slist_find(FirstServer, (gpointer)Play)) CheckCopsIntervene(Play); } gboolean CanPlayerFire(Player *Play) { return (FightTimeout == 0 || Play->FightTimeout == 0 || Play->FightTimeout <= time(NULL)); } gboolean CanRunHere(Player *Play) { return (Play->ResyncNum < E_ARRIVE && Play->ResyncNum != E_NONE); } /* * To avoid boring waits, return the player who is next in line to be * able to shoot (i.e. with the smallest FightTimeout) so that this * player can be allowed to shoot immediately. If a player is already * eligible to shoot, or there is a tie for "first place" then do * nothing (i.e. return NULL). */ Player *GetNextShooter(Player *Play) { Player *MinPlay, *Defend; time_t MinTimeout; guint mintie; guint ArrayInd; if (!FightTimeout) return NULL; MinPlay = NULL; MinTimeout = 0; mintie = 0; for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (Defend == Play) continue; if (Defend->FightTimeout == 0) return NULL; if (MinTimeout == 0 || Defend->FightTimeout < MinTimeout || (Defend->FightTimeout == MinTimeout && Defend->tiebreak < mintie)) { MinPlay = Defend; MinTimeout = Defend->FightTimeout; mintie = Defend->tiebreak; } } return MinPlay; } void ResolveTipoff(Player *Play) { GString *text; if (IsCop(Play) || !CanRunHere(Play)) return; if (g_slist_find(FirstServer, (gpointer)Play->OnBehalfOf)) { dopelog(4, LF_SERVER, _("%s: tipoff by %s finished OK."), GetPlayerName(Play), GetPlayerName(Play->OnBehalfOf)); RemoveListPlayer(&(Play->TipList), Play->OnBehalfOf); text = g_string_new(""); if (Play->Health == 0) { g_string_printf(text, _("Following your tipoff, the cops ambushed %s, " "who was shot dead!"), GetPlayerName(Play)); } else { dpg_string_printf(text, _("Following your tipoff, the cops ambushed %s, " "who escaped with %d %tde. "), GetPlayerName(Play), Play->Bitches.Carried, Names.Bitches); } GainBitch(Play->OnBehalfOf); SendPlayerData(Play->OnBehalfOf); SendPrintMessage(NULL, C_NONE, Play->OnBehalfOf, text->str); g_string_free(text, TRUE); } Play->OnBehalfOf = NULL; } /* * Cleans up combat after player "Play" has left. */ void WithdrawFromCombat(Player *Play) { guint AttackInd, DefendInd; gboolean FightDone; Player *Attack, *Defend; GSList *list; gchar *text; for (list = FirstServer; list; list = g_slist_next(list)) { Attack = (Player *)list->data; if (Attack->Attacking == Play) Attack->Attacking = NULL; } if (!Play->FightArray) return; ResolveTipoff(Play); FightDone = TRUE; for (AttackInd = 0; AttackInd < Play->FightArray->len; AttackInd++) { Attack = (Player *)g_ptr_array_index(Play->FightArray, AttackInd); for (DefendInd = 0; DefendInd < AttackInd; DefendInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, DefendInd); if (Attack != Play && Defend != Play && IsOpponent(Attack, Defend)) { FightDone = FALSE; break; } } if (!FightDone) break; } SendFightLeave(Play, FightDone); g_ptr_array_remove(Play->FightArray, (gpointer)Play); if (FightDone) { for (DefendInd = 0; DefendInd < Play->FightArray->len; DefendInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, DefendInd); Defend->FightArray = NULL; ResolveTipoff(Defend); if (IsCop(Defend)) { FirstServer = RemovePlayer(Defend, FirstServer); } else if (Defend->Health == 0) { FinishGame(Defend, _("You're dead! Game over.")); } else if (CanRunHere(Defend) && brandom(0, 100) > Location[Defend->IsAt].PolicePresence) { Defend->EventNum = E_DOCTOR; Defend->DocPrice = prandom(Bitch.MinPrice, Bitch.MaxPrice) * Defend->Health / 500; text = dpg_strdup_printf(_ ("YN^Do you pay a doctor %P to sew you up?"), Defend->DocPrice); SendQuestion(NULL, C_ASKSEW, Defend, text); g_free(text); } else { WaitForFightDone(Defend); } } g_ptr_array_free(Play->FightArray, TRUE); } Play->FightArray = NULL; Play->Attacking = NULL; } /* * Inform player "To" of random offers or happenings. Returns 0 if * the client can immediately be advanced to the next state, or 1 * there are first questions to be answered. */ int RandomOffer(Player *To) { int r, amount, ind; GString *text; r = brandom(0, 100); text = g_string_new(NULL); if (!Sanitized && (r < 10)) { g_string_assign(text, _("You were mugged in the subway!")); To->Cash = To->Cash * (price_t)brandom(80, 95) / 100l; } else if (r < 30) { amount = brandom(3, 7); ind = IsCarryingRandom(To, amount); if (ind == -1 && amount > To->CoatSize) { g_string_free(text, TRUE); return 0; } if (ind == -1) { ind = brandom(0, NumDrug); dpg_string_printf(text, _("You meet a friend! He gives you %d %tde."), amount, Drug[ind].Name); To->Drugs[ind].Carried += amount; To->CoatSize -= amount; } else { dpg_string_printf(text, _("You meet a friend! You give him %d %tde."), amount, Drug[ind].Name); To->Drugs[ind].TotalValue = To->Drugs[ind].TotalValue * (To->Drugs[ind].Carried - amount) / To->Drugs[ind].Carried; To->Drugs[ind].Carried -= amount; To->CoatSize += amount; } SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } else if (Sanitized) { /* Debugging message: we would normally have a random drug-related event here, but "Sanitized" mode is turned on */ dopelog(3, LF_SERVER, _("Sanitized away a RandomOffer")); } else if (r < 50) { amount = brandom(3, 7); ind = IsCarryingRandom(To, amount); if (ind != -1) { dpg_string_printf(text, _("Police dogs chase you for %d blocks! " "You dropped some %tde! That's a drag, man!"), brandom(3, 7), Names.Drugs); To->Drugs[ind].TotalValue = To->Drugs[ind].TotalValue * (To->Drugs[ind].Carried - amount) / To->Drugs[ind].Carried; To->Drugs[ind].Carried -= amount; To->CoatSize += amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } else { ind = brandom(0, NumDrug); amount = brandom(3, 7); if (amount > To->CoatSize) { g_string_free(text, TRUE); return 0; } dpg_string_printf(text, _("You find %d %tde on a dead dude in the subway!"), amount, Drug[ind].Name); To->Drugs[ind].Carried += amount; To->CoatSize -= amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } } else if (r < 60 && To->Drugs[WEED].Carried + To->Drugs[HASHISH].Carried > 0) { ind = (To->Drugs[WEED].Carried > To->Drugs[HASHISH].Carried) ? WEED : HASHISH; amount = brandom(2, 6); if (amount > To->Drugs[ind].Carried) amount = To->Drugs[ind].Carried; dpg_string_printf(text, _("Your mama made brownies with some of your %tde! " "They were great!"), Drug[ind].Name); To->Drugs[ind].TotalValue = To->Drugs[ind].TotalValue * (To->Drugs[ind].Carried - amount) / To->Drugs[ind].Carried; To->Drugs[ind].Carried -= amount; To->CoatSize += amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } else if (r < 65) { g_string_assign(text, _("YN^There is some weed that smells like paraquat " "here!^It looks good! Will you smoke it? ")); To->EventNum = E_WEED; SendQuestion(NULL, C_NONE, To, text->str); g_string_free(text, TRUE); return 1; } else if (NumStoppedTo > 0) { g_string_printf(text, _("You stopped to %s."), StoppedTo[brandom(0, NumStoppedTo)]); amount = brandom(1, 10); if (To->Cash >= amount) To->Cash -= amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } g_string_free(text, TRUE); return 0; } /* * Offers player "To" bitches/trenchcoats or guns. If ForceBitch is * TRUE, then a bitch is definitely offered. Returns 0 if the client * can advance immediately to the next state, 1 otherwise. */ int OfferObject(Player *To, gboolean ForceBitch) { int ObjNum; gchar *text = NULL; if (brandom(0, 100) < 50 || ForceBitch) { if (WantAntique) { To->Bitches.Price = prandom(MINTRENCHPRICE, MAXTRENCHPRICE); text = dpg_strdup_printf(_("YN^Would you like to buy a bigger " "trenchcoat for %P?"), To->Bitches.Price); } else { To->Bitches.Price = prandom(Bitch.MinPrice, Bitch.MaxPrice) / (price_t)10; text = dpg_strdup_printf(_ ("YN^Hey dude! I'll help carry your %tde for a " "mere %P. Yes or no?"), Names.Drugs, To->Bitches.Price); } SendQuestion(NULL, C_ASKBITCH, To, text); g_free(text); return 1; } else if (!Sanitized && NumGun > 0 && (TotalGunsCarried(To) < To->Bitches.Carried + 2)) { ObjNum = brandom(0, NumGun); To->Guns[ObjNum].Price = Gun[ObjNum].Price / 10; if (Gun[ObjNum].Space > To->CoatSize) return 0; text = dpg_strdup_printf(_("YN^Would you like to buy a %tde for %P?"), Gun[ObjNum].Name, To->Guns[ObjNum].Price); SendQuestion(NULL, C_ASKGUN, To, text); g_free(text); return 1; } return 0; } /* Whether a particular drug is especially cheap or expensive */ enum DealType { DT_NORMAL, DT_CHEAP, DT_EXPENSIVE }; /* * Generates drug prices and drug busts etc. for player "To" * "Deal" is an array of size NumDrug. */ static void GenerateDrugsHere(Player *To, enum DealType *Deal) { int NumEvents, NumDrugs, NumRandom, i; for (i = 0; i < NumDrug; i++) { To->Drugs[i].Price = 0; Deal[i] = DT_NORMAL; } NumEvents = 0; if (brandom(0, 100) < 70) NumEvents = 1; if (brandom(0, 100) < 40 && NumEvents == 1) NumEvents = 2; if (brandom(0, 100) < 5 && NumEvents == 2) NumEvents = 3; NumDrugs = 0; while (NumEvents > 0) { i = brandom(0, NumDrug); if (Deal[i] != DT_NORMAL) continue; if (Drug[i].Expensive && (!Drug[i].Cheap || brandom(0, 100) < 50)) { Deal[i] = DT_EXPENSIVE; To->Drugs[i].Price = prandom(Drug[i].MinPrice, Drug[i].MaxPrice) * Drugs.ExpensiveMultiply; NumDrugs++; NumEvents--; } else if (Drug[i].Cheap) { Deal[i] = DT_CHEAP; To->Drugs[i].Price = prandom(Drug[i].MinPrice, Drug[i].MaxPrice) / Drugs.CheapDivide; NumDrugs++; NumEvents--; } } NumRandom = brandom(Location[To->IsAt].MinDrug, Location[To->IsAt].MaxDrug); if (NumRandom > NumDrug) NumRandom = NumDrug; NumDrugs = NumRandom - NumDrugs; while (NumDrugs > 0) { i = brandom(0, NumDrug); if (To->Drugs[i].Price == 0) { To->Drugs[i].Price = prandom(Drug[i].MinPrice, Drug[i].MaxPrice); NumDrugs--; } } } /* * Sends details of drug prices to player "To". If "DisplayBusts" * is TRUE, also regenerates drug prices and sends details of * special events such as drug busts. */ void SendDrugsHere(Player *To, gboolean DisplayBusts) { int i; enum DealType *Deal = NULL; gchar *prstr; GString *text; gboolean First; Deal = g_new0(enum DealType, NumDrug); if (DisplayBusts) GenerateDrugsHere(To, Deal); text = g_string_new(NULL); First = TRUE; if (DisplayBusts) { for (i = 0; i < NumDrug; i++) { if (Deal[i] != DT_NORMAL) { if (!First) g_string_append_c(text, '^'); if (Deal[i] == DT_CHEAP) { g_string_append(text, Drug[i].CheapStr); } else { dpg_string_append_printf(text, brandom(0, 100) < 50 ? Drugs.ExpensiveStr1 : Drugs.ExpensiveStr2, Drug[i].Name); } First = FALSE; } } } g_free(Deal); if (!First) SendPrintMessage(NULL, C_NONE, To, text->str); g_string_truncate(text, 0); for (i = 0; i < NumDrug; i++) { g_string_append_printf(text, "%s^", (prstr = pricetostr(To->Drugs[i].Price))); g_free(prstr); } SendServerMessage(NULL, C_NONE, C_DRUGHERE, To, text->str); g_string_free(text, TRUE); } /* * Handles the incoming message in "answer" from player "From" and * intended for player "To". */ void HandleAnswer(Player *From, Player *To, char *answer) { int i; gchar *text; Player *Defender; if (!From || From->EventNum == E_NONE) return; if (answer[0] == 'Y' && From->EventNum == E_OFFOBJECT && From->Bitches.Price && From->Bitches.Price > From->Cash) answer[0] = 'N'; if ((From->EventNum == E_FIGHT || From->EventNum == E_FIGHTASK) && CanRunHere(From)) { From->EventNum = E_FIGHT; if (answer[0] == 'R' || answer[0] == 'Y') { RunFromCombat(From, -1); } else { Fire(From); } } else if (answer[0] == 'Y') switch (From->EventNum) { case E_OFFOBJECT: if (g_slist_find(FirstServer, (gpointer)From->OnBehalfOf)) { dopelog(3, LF_SERVER, _("%s: offer was on behalf of %s"), GetPlayerName(From), GetPlayerName(From->OnBehalfOf)); if (From->Bitches.Price) { text = dpg_strdup_printf(_("%s has accepted your %tde!" "^Use the G key to contact your spy."), GetPlayerName(From), Names.Bitch); From->OnBehalfOf->Flags |= SPYINGON; SendPlayerData(From->OnBehalfOf); SendPrintMessage(NULL, C_NONE, From->OnBehalfOf, text); g_free(text); i = GetListEntry(&(From->SpyList), From->OnBehalfOf); if (i >= 0) From->SpyList.Data[i].Turns = 0; } } if (From->Bitches.Price) { text = g_strdup_printf("bitch^0^1"); BuyObject(From, text); g_free(text); } else { for (i = 0; i < NumGun; i++) if (From->Guns[i].Price) { text = g_strdup_printf("gun^%d^1", i); BuyObject(From, text); g_free(text); break; } } From->OnBehalfOf = NULL; From->EventNum++; SendEvent(From); break; case E_LOANSHARK: SendServerMessage(NULL, C_NONE, C_LOANSHARK, From, NULL); break; case E_BANK: SendServerMessage(NULL, C_NONE, C_BANK, From, NULL); break; case E_GUNSHOP: for (i = 0; i < NumGun; i++) From->Guns[i].Price = Gun[i].Price; SendServerMessage(NULL, C_NONE, C_GUNSHOP, From, NULL); break; case E_HIREBITCH: text = g_strdup_printf("bitch^0^1"); BuyObject(From, text); g_free(text); From->EventNum++; SendEvent(From); break; case E_ROUGHPUB: From->EventNum++; SendEvent(From); break; case E_WEED: FinishGame(From, _("You hallucinated for three days on the wildest " "trip you ever imagined!^Then you died because " "your brain disintegrated!")); break; case E_DOCTOR: if (From->Cash >= From->DocPrice) { From->Cash -= From->DocPrice; From->Health = 100; SendPlayerData(From); } WaitForFightDone(From); break; default: break; } else if (From->EventNum == E_ARRIVE) { if ((answer[0] == 'A' || answer[0] == 'T') && IsConnectedPlayer(From->OnBehalfOf) && g_slist_find(FirstServer, (gpointer)From->OnBehalfOf)) { Defender = From->OnBehalfOf; From->OnBehalfOf = NULL; /* So we don't think it was a tipoff */ if (Defender->IsAt == From->IsAt) { if (answer[0] == 'A') { From->EventNum = Defender->EventNum = E_NONE; AttackPlayer(From, Defender); } } else { text = g_strdup_printf(_("Too late - %s has just left!"), GetPlayerName(Defender)); SendPrintMessage(NULL, C_MISSFIGHT, From, text); g_free(text); From->EventNum++; SendEvent(From); } } else { From->EventNum++; SendEvent(From); } From->OnBehalfOf = NULL; } else switch (From->EventNum) { case E_ROUGHPUB: From->EventNum++; From->EventNum++; SendEvent(From); break; case E_DOCTOR: WaitForFightDone(From); break; case E_HIREBITCH: case E_GUNSHOP: case E_BANK: case E_LOANSHARK: case E_OFFOBJECT: case E_WEED: if (g_slist_find(FirstServer, (gpointer)From->OnBehalfOf)) { dopelog(3, LF_SERVER, _("%s: offer was on behalf of %s"), GetPlayerName(From), GetPlayerName(From->OnBehalfOf)); if (From->Bitches.Price && From->EventNum == E_OFFOBJECT) { text = dpg_strdup_printf(_("%s has rejected your %tde!"), GetPlayerName(From), Names.Bitch); GainBitch(From->OnBehalfOf); SendPlayerData(From->OnBehalfOf); SendPrintMessage(NULL, C_NONE, From->OnBehalfOf, text); g_free(text); RemoveListPlayer(&(From->SpyList), From->OnBehalfOf); } } From->EventNum++; SendEvent(From); break; default: break; } } /* * Processes a request stored in "data" from player "From" to buy an * object (bitch, gun, or drug). * Objects can be sold if the amount given in "data" is negative, and * given away if their current price is zero. */ void BuyObject(Player *From, char *data) { char *cp, *type; int index, i, amount; cp = data; type = GetNextWord(&cp, ""); index = GetNextInt(&cp, 0); amount = GetNextInt(&cp, 0); if (strcmp(type, "drug") == 0) { if (index >= 0 && index < NumDrug && From->Drugs[index].Carried + amount >= 0 && From->CoatSize - amount >= 0 && (From->Drugs[index].Price != 0 || amount < 0) && From->Cash >= amount * From->Drugs[index].Price) { if (amount > 0) { From->Drugs[index].TotalValue += amount * From->Drugs[index].Price; } else if (From->Drugs[index].Carried != 0) { From->Drugs[index].TotalValue = From->Drugs[index].TotalValue * (From->Drugs[index].Carried + amount) / From->Drugs[index].Carried; } From->Drugs[index].Carried += amount; From->CoatSize -= amount; From->Cash -= amount * From->Drugs[index].Price; SendPlayerData(From); if (!Sanitized && NumCop > 0 && NumGun > 0 && (From->Drugs[index].Price == 0 && brandom(0, 100) < Location[From->IsAt].PolicePresence)) { gchar *text; text = dpg_strdup_printf(_("The cops spot you dropping %tde!"), Names.Drugs); SendPrintMessage(NULL, C_NONE, From, text); g_free(text); CopsAttackPlayer(From); } } } else if (strcmp(type, "gun") == 0) { if (index >= 0 && index < NumGun && TotalGunsCarried(From) + amount >= 0 && TotalGunsCarried(From) + amount <= From->Bitches.Carried + 2 && From->Guns[index].Price != 0 && From->CoatSize - amount * Gun[index].Space >= 0 && From->Cash >= amount * From->Guns[index].Price) { From->Guns[index].Carried += amount; From->CoatSize -= amount * Gun[index].Space; From->Cash -= amount * From->Guns[index].Price; SendPlayerData(From); } } else if (strcmp(type, "bitch") == 0) { if (From->Bitches.Carried + amount >= 0 && From->Bitches.Price != 0 && amount * From->Bitches.Price <= From->Cash) { for (i = 0; i < amount; i++) GainBitch(From); if (amount > 0) From->Cash -= amount * From->Bitches.Price; SendPlayerData(From); } } } /* * Clears the bitch and gun prices stored for player "Play". */ void ClearPrices(Player *Play) { int i; Play->Bitches.Price = 0; for (i = 0; i < NumGun; i++) Play->Guns[i].Price = 0; } /* * Gives player "Play" a new bitch (or larger trenchcoat). */ void GainBitch(Player *Play) { Play->CoatSize += 10; Play->Bitches.Carried++; } /* * Loses one bitch belonging to player "Play". If drugs or guns are * lost with the bitch, 1 is returned (0 otherwise) and the lost * items are added to "Guns" and "Drugs" if non-NULL. */ int LoseBitch(Player *Play, Inventory *Guns, Inventory *Drugs) { int losedrug = 0, i, num, drugslost; int *GunIndex, tmp; GunIndex = g_new(int, NumGun); ClearInventory(Guns, Drugs); Play->CoatSize -= 10; if (TotalGunsCarried(Play) > 0) { if (brandom(0, 100) < TotalGunsCarried(Play) * 100 / (Play->Bitches.Carried + 2)) { for (i = 0; i < NumGun; i++) GunIndex[i] = i; for (i = 0; i < NumGun * 5; i++) { num = brandom(0, NumGun - 1); tmp = GunIndex[num + 1]; GunIndex[num + 1] = GunIndex[num]; GunIndex[num] = tmp; } for (i = 0; i < NumGun; i++) { if (Play->Guns[GunIndex[i]].Carried > 0) { Play->Guns[GunIndex[i]].Carried--; losedrug = 1; Play->CoatSize += Gun[GunIndex[i]].Space; if (Guns) Guns[GunIndex[i]].Carried++; break; } } } } for (i = 0; i < NumDrug; i++) if (Play->Drugs[i].Carried > 0) { num = (int)((float)Play->Drugs[i].Carried / (Play->Bitches.Carried + 2.0) + 0.5); if (num > 0) { Play->Drugs[i].TotalValue = Play->Drugs[i].TotalValue * (Play->Drugs[i].Carried - num) / Play->Drugs[i].Carried; Play->Drugs[i].Carried -= num; if (Drugs) Drugs[i].Carried += num; Play->CoatSize += num; losedrug = 1; } } while (Play->CoatSize < 0) { drugslost = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0) { losedrug = 1; drugslost = 1; Play->Drugs[i].TotalValue = Play->Drugs[i].TotalValue * (Play->Drugs[i].Carried - 1) / Play->Drugs[i].Carried; Play->Drugs[i].Carried--; Play->CoatSize++; if (Play->CoatSize >= 0) break; } } if (!drugslost) for (i = 0; i < NumGun; i++) { if (Play->Guns[i].Carried > 0) { losedrug = 1; Play->Guns[i].Carried--; Play->CoatSize += Gun[i].Space; if (Play->CoatSize >= 0) break; } } } Play->Bitches.Carried--; g_free(GunIndex); return losedrug; } /* * If fight timeouts are in force, sets the timeout for the given player. */ void SetFightTimeout(Player *Play) { if (FightTimeout) { Play->FightTimeout = time(NULL) + (time_t) FightTimeout; /* Make sure we have a higher tiebreak value than any other player with * the same fight timeout (since FightTimeout only has second resolution, * and possibly only microseconds have elapsed) */ Play->tiebreak = 0; if (Play->FightTimeout) { GSList *listpt; for (listpt = FirstServer; listpt; listpt = g_slist_next(listpt)) { Player *listplay = (Player *)listpt->data; if (listplay && listplay != Play && listplay->FightTimeout == Play->FightTimeout) { Play->tiebreak = MAX(Play->tiebreak, listplay->tiebreak + 1); } } } } else { Play->FightTimeout = 0; } } /* * Removes any fight timeout for the given player. */ void ClearFightTimeout(Player *Play) { Play->FightTimeout = 0; } /* * Given the time of a pending event in "timeout" and the current time in * "timenow", updates "mintime" with the number of seconds to that event, * unless "mintime" is already smaller (as long as it's not -1, which * means "uninitialized"). Returns 1 if the timeout has already expired. */ long AddTimeout(time_t timeout, time_t timenow, long *mintime) { if (timeout == 0) return 0; else if (timeout <= timenow) return 1; else { if (*mintime < 0 || timeout - timenow < *mintime) *mintime = timeout - timenow; return 0; } } /* * Returns the number of seconds until the next scheduled event. If such * an event has already expired, returns 0. If no events are pending, * returns -1. "First" should point to a list of valid players. */ long GetMinimumTimeout(GSList *First) { Player *Play; GSList *list; long mintime = -1; time_t timenow; timenow = time(NULL); #ifdef NETWORKING curl_multi_timeout(MetaConn.multi, &mintime); #endif if (AddTimeout(MetaMinTimeout, timenow, &mintime)) return 0; if (AddTimeout(MetaUpdateTimeout, timenow, &mintime)) return 0; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (AddTimeout(Play->FightTimeout, timenow, &mintime) || AddTimeout(Play->IdleTimeout, timenow, &mintime) || AddTimeout(Play->ConnectTimeout, timenow, &mintime)) return 0; } return mintime; } /* * Given a list of players in "First", checks to see if any events * have timed out, and if so, performs the necessary actions. The * new start of the list is returned, since a player may be removed * if their ConnectTimeout has expired. */ GSList *HandleTimeouts(GSList *First) { GSList *list, *nextlist; Player *Play; time_t timenow; timenow = time(NULL); if (MetaMinTimeout <= timenow) { MetaMinTimeout = 0; if (MetaPlayerPending) { dopelog(3, LF_SERVER, _("Sending pending updates to the metaserver...")); RegisterWithMetaServer(TRUE, TRUE, FALSE); } } if (MetaUpdateTimeout != 0 && MetaUpdateTimeout <= timenow) { dopelog(3, LF_SERVER, _("Sending reminder message to the metaserver...")); RegisterWithMetaServer(TRUE, FALSE, FALSE); } list = First; while (list) { nextlist = g_slist_next(list); Play = (Player *)list->data; if (Play->IdleTimeout != 0 && Play->IdleTimeout <= timenow) { Play->IdleTimeout = 0; dopelog(1, LF_SERVER, _("Player removed due to idle timeout")); SendPrintMessage(NULL, C_NONE, Play, "Disconnected due to idle timeout"); ClientLeftServer(Play); /* Blank the name, so that CountPlayers ignores this player */ SetPlayerName(Play, NULL); /* Make sure they do actually disconnect, eventually! */ if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } } else if (Play->ConnectTimeout != 0 && Play->ConnectTimeout <= timenow) { Play->ConnectTimeout = 0; dopelog(1, LF_SERVER, _("Player removed due to connect timeout")); First = RemovePlayer(Play, First); } else if (IsConnectedPlayer(Play) && Play->FightTimeout != 0 && Play->FightTimeout <= timenow) { ClearFightTimeout(Play); if (IsCop(Play)) Fire(Play); else SendFightReload(Play); } list = nextlist; } return First; } dopewars-1.6.2/src/plugins/000755 000765 000024 00000000000 14256243622 015531 5ustar00benstaff000000 000000 dopewars-1.6.2/src/convert.c000644 000765 000024 00000007450 14256000066 015673 0ustar00benstaff000000 000000 /************************************************************************ * convert.c Codeset conversion functions * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "convert.h" static gchar *int_codeset = NULL; static const gchar *FixedCodeset(const gchar *codeset) { if (strcmp(codeset, "ANSI_X3.4-1968") == 0 || strcmp(codeset, "ASCII") == 0) { return "ISO-8859-1"; } else { return codeset; } } void Conv_SetInternalCodeset(const gchar *codeset) { g_free(int_codeset); int_codeset = g_strdup(FixedCodeset(codeset)); } static const gchar *GetLocaleCodeset(void) { const gchar *codeset; g_get_charset(&codeset); return FixedCodeset(codeset); } Converter *Conv_New(void) { Converter *conv; conv = g_new(Converter, 1); conv->ext_codeset = g_strdup(GetLocaleCodeset()); if (!int_codeset) { int_codeset = g_strdup(GetLocaleCodeset()); } return conv; } void Conv_Free(Converter *conv) { g_free(conv->ext_codeset); g_free(conv); } void Conv_SetCodeset(Converter *conv, const gchar *codeset) { g_free(conv->ext_codeset); conv->ext_codeset = g_strdup(FixedCodeset(codeset)); } gboolean Conv_Needed(Converter *conv) { return (strcmp(conv->ext_codeset, int_codeset) != 0 || strcmp(int_codeset, "UTF-8") == 0); } static gchar *do_convert(const gchar *from_codeset, const gchar *to_codeset, const gchar *from_str, int from_len) { gchar *to_str; if (strcmp(to_codeset, "UTF-8") == 0 && strcmp(from_codeset, "UTF-8") == 0) { const gchar *start, *end; if (from_len == -1) { to_str = g_strdup(from_str); } else { to_str = g_strndup(from_str, from_len); } start = to_str; while (start && *start && !g_utf8_validate(start, -1, &end) && end && *end) { *((gchar *)end) = '?'; start = ++end; } return to_str; } else { to_str = g_convert_with_fallback(from_str, from_len, to_codeset, from_codeset, "?", NULL, NULL, NULL); if (to_str) { return to_str; } else { return g_strdup("[?]"); } } } gchar *Conv_ToExternal(Converter *conv, const gchar *int_str, int len) { return do_convert(int_codeset, conv->ext_codeset, int_str, len); } gchar *Conv_ToInternal(Converter *conv, const gchar *ext_str, int len) { return do_convert(conv->ext_codeset, int_codeset, ext_str, len); } dopewars-1.6.2/src/configfile.h000644 000765 000024 00000003410 14256000066 016315 0ustar00benstaff000000 000000 /************************************************************************ * configfile.h Functions for dealing with dopewars config files * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_CONFIGFILE_H__ #define __DP_CONFIGFILE_H__ #include extern gchar *LocalCfgEncoding; gboolean UpdateConfigFile(const gchar *cfgfile, gboolean ForceUTF8); gboolean IsConfigFileUTF8(void); #endif /* __DP_CONFIGFILE_H__ */ dopewars-1.6.2/src/mac_helpers.h000644 000765 000024 00000003410 14256242752 016504 0ustar00benstaff000000 000000 /************************************************************************ * mac_helpers.h Helper functions for Mac builds * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_MAC_HELPERS_H__ #define __DP_MAC_HELPERS_H__ #ifdef HAVE_CONFIG_H #include #endif /* Open the given URL using the system-configured web browser */ void mac_open_url(const char *url); #endif /* __DP_MAC_HELPERS_H__ */ dopewars-1.6.2/src/message.h000644 000765 000024 00000015713 14256242752 015657 0ustar00benstaff000000 000000 /************************************************************************ * message.h Header file for dopewars message-handling routines * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_MESSAGE_H__ #define __DP_MESSAGE_H__ #ifdef HAVE_CONFIG_H #include #endif #include #include "error.h" #include "dopewars.h" #include "network.h" typedef enum { C_PRINTMESSAGE = 'A', C_LIST, C_ENDLIST, C_NEWNAME, C_MSG, C_MSGTO, C_JOIN, C_LEAVE, C_SUBWAYFLASH, C_UPDATE, C_DRUGHERE, C_GUNSHOP, C_LOANSHARK, C_BANK, C_QUESTION, C_UNUSED, C_HISCORE, C_STARTHISCORE, C_ENDHISCORE, C_BUYOBJECT, C_DONE, C_REQUESTJET, C_PAYLOAN, C_ANSWER, C_DEPOSIT, C_PUSH, C_QUIT = 'a', C_RENAME, C_NAME, C_SACKBITCH, C_TIPOFF, C_SPYON, C_WANTQUIT, C_CONTACTSPY, C_KILL, C_REQUESTSCORE, C_INIT, C_DATA, C_FIGHTPRINT, C_FIGHTACT, C_TRADE, C_CHANGEDISP, C_NETMESSAGE, C_ABILITIES } MsgCode; typedef enum { C_NONE = 'A', C_ASKLOAN, C_COPSMESG, C_ASKBITCH, C_ASKGUN, C_ASKGUNSHOP, C_ASKPUB, C_ASKBANK, C_ASKRUN, C_ASKRUNFIGHT, C_ASKSEW, C_MEETPLAYER, C_FIGHT, C_FIGHTDONE, C_MOTD, C_VERSIONCHECK, C_MISSFIGHT } AICode; #define DT_LOCATION 'A' #define DT_DRUG 'B' #define DT_GUN 'C' #define DT_PRICES 'D' typedef enum { F_ARRIVED = 'A', F_STAND = 'S', F_HIT = 'H', F_MISS = 'M', F_RELOAD = 'R', F_LEAVE = 'L', F_LASTLEAVE = 'D', F_FAILFLEE = 'F', F_MSG = 'G' } FightPoint; void SendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data); void SendNullClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data); void DoSendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, Player *BufOwn); void SendServerMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data); void SendPrintMessage(Player *From, AICode AI, Player *To, char *Data); void SendQuestion(Player *From, AICode AI, Player *To, char *Data); #ifdef NETWORKING #define DOPE_META_ERROR dope_meta_error_quark() typedef enum { DOPE_META_ERROR_EMPTY, /* No servers listed on metaserver */ DOPE_META_ERROR_INTERNAL, /* Internal metaserver error */ DOPE_META_ERROR_BAD_REPLY /* Bad reply from metaserver */ } DopeMetaError; GQuark dope_meta_error_quark(void); gboolean PlayerHandleNetwork(Player *Play, gboolean ReadReady, gboolean WriteReady, gboolean ErrorReady, gboolean *DoneOK); gboolean ReadPlayerDataFromWire(Player *Play); void QueuePlayerMessageForSend(Player *Play, gchar *data); gboolean WritePlayerDataToWire(Player *Play); gchar *GetWaitingPlayerMessage(Player *Play); gboolean OpenMetaHttpConnection(CurlConnection *conn, GError **err); gboolean HandleWaitingMetaServerData(CurlConnection *conn, GSList **listpt, GError **err); void ClearServerList(GSList **listpt); #endif /* NETWORKING */ extern GSList *FirstClient; extern void (*ClientMessageHandlerPt) (char *, Player *); void InitNetwork(void); void AddURLEnc(GString *str, gchar *unenc); void chomp(char *str); void BroadcastToClients(AICode AI, MsgCode Code, char *Data, Player *From, Player *Except); void SendInventory(Player *From, AICode AI, MsgCode Code, Player *To, Inventory *Guns, Inventory *Drugs); void ReceiveInventory(char *Data, Inventory *Guns, Inventory *Drugs); void SendPlayerData(Player *To); void SendSpyReport(Player *To, Player *SpiedOn); void ReceivePlayerData(Player *Play, char *text, Player *From); void SendInitialData(Player *To); void ReceiveInitialData(Player *Play, char *data); void SendMiscData(Player *To); void ReceiveMiscData(char *Data); gchar *GetNextWord(gchar **Data, gchar *Default); void AssignNextWord(gchar **Data, gchar **Dest); int GetNextInt(gchar **Data, int Default); price_t GetNextPrice(gchar **Data, price_t Default); void ShutdownNetwork(Player *Play); void SwitchToSinglePlayer(Player *Play); int ProcessMessage(char *Msg, Player *Play, Player **Other, AICode *AI, MsgCode *Code, char **Data, GSList *First); void ReceiveDrugsHere(char *text, Player *To); gboolean HandleGenericClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, DispMode *DisplayMode); void InitAbilities(Player *Play); void SendAbilities(Player *Play); void ReceiveAbilities(Player *Play, gchar *Data); void CombineAbilities(Player *Play); void SetAbility(Player *Play, gint Type, gboolean Set); gboolean HaveAbility(Player *Play, gint Type); void SendFightReload(Player *To); void SendOldCanFireMessage(Player *To, GString *text); void SendOldFightPrint(Player *To, GString *text, gboolean FightOver); void SendFightLeave(Player *Play, gboolean FightOver); void ReceiveFightMessage(gchar *Data, gchar **AttackName, gchar **DefendName, int *DefendHealth, int *DefendBitches, gchar **BitchName, int *BitchesKilled, int *ArmPercent, FightPoint *fp, gboolean *CanRunHere, gboolean *Loot, gboolean *CanFire, gchar **Message); void SendFightMessage(Player *Attacker, Player *Defender, int BitchesKilled, FightPoint fp, price_t Loot, gboolean Broadcast, gchar *Msg); void FormatFightMessage(Player *To, GString *text, Player *Attacker, Player *Defender, int BitchesKilled, int ArmPercent, FightPoint fp, price_t Loot); #endif /* __DP_MESSAGE_H__ */ dopewars-1.6.2/src/admin.c000644 000765 000024 00000010052 14256242752 015305 0ustar00benstaff000000 000000 /************************************************************************ * admin.c dopewars server administration * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #if !defined(CYGWIN) && defined(NETWORKING) #include #include #include #ifdef HAVE_STDLIB_H #include #endif #include #include #include #include #include "dopewars.h" #include "network.h" #include "nls.h" #include "serverside.h" static int OpenSocket(void) { struct sockaddr_un addr; int sock; gchar *sockname; sockname = GetLocalSocket(); g_print(_("Attempting to connect to local dopewars server via " "Unix domain\n socket %s...\n"), sockname); sock = socket(PF_UNIX, SOCK_STREAM, 0); if (sock == -1) { perror("socket"); exit(EXIT_FAILURE); } addr.sun_family = AF_UNIX; strncpy(addr.sun_path, sockname, sizeof(addr.sun_path)); addr.sun_path[sizeof(addr.sun_path) - 1] = '\0'; if (connect(sock, (struct sockaddr *)&addr, sizeof(struct sockaddr_un)) == -1) { perror("connect"); exit(EXIT_FAILURE); } g_print(_("Connection established; use Ctrl-D to " "close your session.\n\n")); g_free(sockname); return sock; } void AdminServer(struct CMDLINE *cmdline) { int sock, topsock; NetworkBuffer *netbuf; fd_set readfds, writefds, errorfds; gchar *msg, inbuf[200]; gboolean doneOK; InitConfiguration(cmdline); sock = OpenSocket(); netbuf = g_new(NetworkBuffer, 1); InitNetworkBuffer(netbuf, '\n', '\r', NULL); BindNetworkBufferToSocket(netbuf, sock); while (1) { FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&errorfds); FD_SET(0, &readfds); topsock = 1; SetSelectForNetworkBuffer(netbuf, &readfds, &writefds, &errorfds, &topsock); if (select(topsock, &readfds, &writefds, &errorfds, NULL) == -1) { if (errno == EINTR) continue; else perror("select"); break; } if (FD_ISSET(0, &readfds)) { if (fgets(inbuf, sizeof(inbuf), stdin)) { inbuf[sizeof(inbuf) - 1] = '\0'; if (strlen(inbuf) > 0) { if (inbuf[strlen(inbuf) - 1] == '\n') inbuf[strlen(inbuf) - 1] = '\0'; QueueMessageForSend(netbuf, inbuf); } } else break; } if (RespondToSelect(netbuf, &readfds, &writefds, &errorfds, &doneOK)) { while ((msg = GetWaitingMessage(netbuf)) != NULL) { g_print("%s\n", msg); g_free(msg); } } if (!doneOK) break; } ShutdownNetworkBuffer(netbuf); g_free(netbuf); g_print("Connection closed\n"); } #endif dopewars-1.6.2/src/config.h.in000644 000765 000024 00000023132 14256243621 016073 0ustar00benstaff000000 000000 /* src/config.h.in. Generated from configure.ac by autoheader. */ /* Are we building on an Apple Mac? */ #undef APPLE /* Use the (n)curses client? */ #undef CURSES_CLIENT /* Define if building under the Cygwin environment */ #undef CYGWIN /* The directory containing the sounds */ #undef DPDATADIR /* The directory containing the docs */ #undef DPDOCDIR /* The directory containing the high score file */ #undef DPSCOREDIR /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Use the graphical client? */ #undef GUI_CLIENT /* Use a graphical server? */ #undef GUI_SERVER /* Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES /* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Do we have the Cocoa sound library? */ #undef HAVE_COCOA /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Do we have the ESD sound library? */ #undef HAVE_ESD /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the `getopt' function. */ #undef HAVE_GETOPT /* Define to 1 if you have the `getopt_long' function. */ #undef HAVE_GETOPT_LONG /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `gmtime_r' function. */ #undef HAVE_GMTIME_R /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `issetugid' function. */ #undef HAVE_ISSETUGID /* Define to 1 if you have a functional curl library. */ #undef HAVE_LIBCURL /* Define to 1 if you have the `curses' library (-lcurses). */ #undef HAVE_LIBCURSES /* Define to 1 if you have the `cur_colr' library (-lcur_colr). */ #undef HAVE_LIBCUR_COLR /* Define to 1 if you have the `ncurses' library (-lncurses). */ #undef HAVE_LIBNCURSES /* Define to 1 if you have the `localtime_r' function. */ #undef HAVE_LOCALTIME_R /* Define to 1 if you have the header file. */ #undef HAVE_MINIX_CONFIG_H /* Do we have the SDL_mixer sound library? */ #undef HAVE_SDL_MIXER /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Do we have the socklen_t data type? */ #undef HAVE_SOCKLEN_T /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strftime' function. */ #undef HAVE_STRFTIME /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H /* Do we have the Windows multimedia system? */ #undef HAVE_WINMM /* Defined if libcurl supports AsynchDNS */ #undef LIBCURL_FEATURE_ASYNCHDNS /* Defined if libcurl supports IDN */ #undef LIBCURL_FEATURE_IDN /* Defined if libcurl supports IPv6 */ #undef LIBCURL_FEATURE_IPV6 /* Defined if libcurl supports KRB4 */ #undef LIBCURL_FEATURE_KRB4 /* Defined if libcurl supports libz */ #undef LIBCURL_FEATURE_LIBZ /* Defined if libcurl supports NTLM */ #undef LIBCURL_FEATURE_NTLM /* Defined if libcurl supports SSL */ #undef LIBCURL_FEATURE_SSL /* Defined if libcurl supports SSPI */ #undef LIBCURL_FEATURE_SSPI /* Defined if libcurl supports DICT */ #undef LIBCURL_PROTOCOL_DICT /* Defined if libcurl supports FILE */ #undef LIBCURL_PROTOCOL_FILE /* Defined if libcurl supports FTP */ #undef LIBCURL_PROTOCOL_FTP /* Defined if libcurl supports FTPS */ #undef LIBCURL_PROTOCOL_FTPS /* Defined if libcurl supports HTTP */ #undef LIBCURL_PROTOCOL_HTTP /* Defined if libcurl supports HTTPS */ #undef LIBCURL_PROTOCOL_HTTPS /* Defined if libcurl supports IMAP */ #undef LIBCURL_PROTOCOL_IMAP /* Defined if libcurl supports LDAP */ #undef LIBCURL_PROTOCOL_LDAP /* Defined if libcurl supports POP3 */ #undef LIBCURL_PROTOCOL_POP3 /* Defined if libcurl supports RTSP */ #undef LIBCURL_PROTOCOL_RTSP /* Defined if libcurl supports SMTP */ #undef LIBCURL_PROTOCOL_SMTP /* Defined if libcurl supports TELNET */ #undef LIBCURL_PROTOCOL_TELNET /* Defined if libcurl supports TFTP */ #undef LIBCURL_PROTOCOL_TFTP /* The directory containing locale files */ #undef LOCALEDIR /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Define if dopewars should use TCP/IP networking to connect to servers */ #undef NETWORKING /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The directory containing the plugins */ #undef PLUGINDIR /* Define if using dynamically-loaded sound modules */ #undef PLUGINS /* The size of `long long', as computed by sizeof. */ #undef SIZEOF_LONG_LONG /* Define to 1 if all of the C90 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . This macro is obsolete. */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable general extensions on macOS. */ #ifndef _DARWIN_C_SOURCE # undef _DARWIN_C_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable X/Open compliant socket functions that do not require linking with -lxnet on HP-UX 11.11. */ #ifndef _HPUX_ALT_XOPEN_SOCKET_API # undef _HPUX_ALT_XOPEN_SOCKET_API #endif /* Identify the host operating system as Minix. This macro does not affect the system headers' behavior. A future release of Autoconf may stop defining this macro. */ #ifndef _MINIX # undef _MINIX #endif /* Enable general extensions on NetBSD. Enable NetBSD compatibility extensions on Minix. */ #ifndef _NETBSD_SOURCE # undef _NETBSD_SOURCE #endif /* Enable OpenBSD compatibility extensions on NetBSD. Oddly enough, this does nothing on OpenBSD. */ #ifndef _OPENBSD_SOURCE # undef _OPENBSD_SOURCE #endif /* Define to 1 if needed for POSIX-compatible behavior. */ #ifndef _POSIX_SOURCE # undef _POSIX_SOURCE #endif /* Define to 2 if needed for POSIX-compatible behavior. */ #ifndef _POSIX_1_SOURCE # undef _POSIX_1_SOURCE #endif /* Enable POSIX-compatible threading on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ # undef __STDC_WANT_IEC_60559_BFP_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # undef __STDC_WANT_IEC_60559_DFP_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # undef __STDC_WANT_IEC_60559_FUNCS_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # undef __STDC_WANT_IEC_60559_TYPES_EXT__ #endif /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ #ifndef __STDC_WANT_LIB_EXT2__ # undef __STDC_WANT_LIB_EXT2__ #endif /* Enable extensions specified by ISO/IEC 24747:2009. */ #ifndef __STDC_WANT_MATH_SPEC_FUNCS__ # undef __STDC_WANT_MATH_SPEC_FUNCS__ #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable X/Open extensions. Define to 500 only if necessary to make mbstate_t available. */ #ifndef _XOPEN_SOURCE # undef _XOPEN_SOURCE #endif /* Version number of package */ #undef VERSION /* Define curl_free() as free() if our version of curl lacks curl_free. */ #undef curl_free dopewars-1.6.2/src/dopewars.h000644 000765 000024 00000033103 14256242752 016050 0ustar00benstaff000000 000000 /************************************************************************ * dopewars.h Common structures and stuff for dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_DOPEWARS_H__ #define __DP_DOPEWARS_H__ #ifdef HAVE_CONFIG_H #include #endif #include /* Be careful not to include both sys/time.h and time.h on those systems * which don't like it */ #if TIME_WITH_SYS_TIME #include #include #else #ifdef HAVE_SYS_TIME_H #include #else #include #endif #endif #include #include "convert.h" #include "error.h" #include "network.h" #include "util.h" /* Make price_t be a long long if the type is supported by the compiler */ #if SIZEOF_LONG_LONG == 0 typedef long price_t; #else typedef long long price_t; #endif /* "Abilities" are protocol extensions, which are negotiated between the * client and server at connect-time. */ typedef enum { A_PLAYERID = 0, /* Use numeric IDs rather than player * names in network messages */ A_DRUGVALUE, /* Server keeps track of purchase price * of drugs */ A_NEWFIGHT, /* Use new unified fighting code */ A_TSTRING, /* We understand the %Txx (tstring) * notation */ A_DONEFIGHT, /* A fight is only considered over once the * client sends the server a C_DONE message */ A_UTF8, /* All strings are sent over the network using * UTF-8 (Unicode) encoding */ A_DATE, /* We can understand "proper" dd-mm-yy dates * rather than just turn numbers */ A_NUM /* N.B. Must be last */ } AbilType; typedef struct ABILITIES { gboolean Local[A_NUM]; /* Abilities that we have */ gboolean Remote[A_NUM]; /* Those that the other end of the * connection has */ gboolean Shared[A_NUM]; /* Abilites shared by us and the * remote host */ gint RemoteNum; /* The remote host's idea of what A_NUM is */ } Abilities; struct NAMES { gchar *Bitch, *Bitches, *Gun, *Guns, *Drug, *Drugs; gchar *Date, *LoanSharkName, *BankName; gchar *GunShopName, *RoughPubName; }; struct SOUNDS { gchar *FightHit, *FightMiss, *FightReload, *Jet, *TalkToAll, *TalkPrivate; gchar *JoinGame, *LeaveGame, *StartGame, *EndGame; gchar *EnemyBitchKilled, *BitchKilled, *EnemyKilled, *Killed; gchar *EnemyFailFlee, *FailFlee, *EnemyFlee, *Flee; }; #ifdef NETWORKING struct METASERVER { gboolean Active; gchar *URL; gchar *LocalName, *Password, *Comment; }; #endif struct CURRENCY { gchar *Symbol; gboolean Prefix; }; struct PRICES { price_t Spy, Tipoff; }; struct BITCH { price_t MinPrice, MaxPrice; }; typedef enum { CLIENT_AUTO, CLIENT_WINDOW, CLIENT_CURSES } ClientType; typedef enum { DM_NONE, DM_STREET, DM_FIGHT, DM_DEAL } DispMode; typedef enum { E_NONE = 0, E_SUBWAY, E_OFFOBJECT, E_WEED, E_SAYING, E_LOANSHARK, E_BANK, E_GUNSHOP, E_ROUGHPUB, E_HIREBITCH, E_ARRIVE, E_MAX, E_FINISH = 100, E_OUTOFSYNC = 120, E_FIGHT, E_FIGHTASK, E_DOCTOR, E_WAITDONE, E_MAXOOS } EventCode; typedef enum { FIRSTTURN = 1 << 0, DEADHARDASS = 1 << 1, TIPPEDOFF = 1 << 2, SPIEDON = 1 << 3, SPYINGON = 1 << 4, FIGHTING = 1 << 5, CANSHOOT = 1 << 6, TRADING = 1 << 7 } PlayerFlags; typedef enum { ACID = 0, COCAINE, HASHISH, HEROIN, LUDES, MDA, OPIUM, PCP, PEYOTE, SHROOMS, SPEED, WEED } DrugIndex; struct LOG { gchar *File; gint Level; gchar *Timestamp; FILE *fp; }; struct DATE { int day, month, year; }; extern gboolean WantAntique; extern struct DATE StartDate; extern int ClientSock, ListenSock; extern gboolean Network, Client, Server, UseSounds; extern int Port; extern gboolean Sanitized, ConfigVerbose, DrugValue; extern int NumLocation, NumGun, NumCop, NumDrug, NumSubway, NumPlaying, NumStoppedTo; extern int DebtInterest, BankInterest; extern gchar *HiScoreFile, *ServerName, *ConvertFile, *ServerMOTD, *BindAddress, *PlayerName; #ifdef CYGWIN extern gboolean MinToSysTray; #else extern gboolean Daemonize; #endif extern gchar *OurWebBrowser; extern int LoanSharkLoc, BankLoc, GunShopLoc, RoughPubLoc; extern int DrugSortMethod, FightTimeout, IdleTimeout, ConnectTimeout; extern int MaxClients, AITurnPause; extern struct CURRENCY Currency; extern struct PRICES Prices; extern struct BITCH Bitch; extern price_t StartCash, StartDebt; extern struct NAMES Names; extern struct SOUNDS Sounds; #ifdef NETWORKING extern struct METASERVER MetaServer; extern SocksServer Socks; extern gboolean UseSocks; #endif extern int NumTurns; extern int PlayerArmor, BitchArmor; #define MAXLOG 6 #define DS_ATOZ 1 #define DS_ZTOA 2 #define DS_CHEAPFIRST 3 #define DS_CHEAPLAST 4 #define DS_MAX 5 #define NUMHISCORE 18 #define DEFLOANSHARK 1 #define DEFBANK 1 #define DEFGUNSHOP 2 #define DEFROUGHPUB 2 #define METAVERSION 2 struct COP { gchar *Name, *DeputyName, *DeputiesName; gint Armor, DeputyArmor; gint AttackPenalty, DefendPenalty; gint MinDeputies, MaxDeputies; gint GunIndex; gint CopGun, DeputyGun; }; extern struct COP *Cop; struct GUN { gchar *Name; price_t Price; int Space; int Damage; }; extern struct GUN *Gun; struct HISCORE { gchar *Time; price_t Money; gboolean Dead; gchar *Name; }; struct LOCATION { gchar *Name; int PolicePresence; int MinDrug, MaxDrug; }; extern struct LOCATION *Location; struct DRUG { gchar *Name; price_t MinPrice, MaxPrice; gboolean Cheap, Expensive; gchar *CheapStr; }; extern struct DRUG *Drug; struct DRUGS { gchar *ExpensiveStr1, *ExpensiveStr2; int CheapDivide, ExpensiveMultiply; }; extern struct DRUGS Drugs; struct INVENTORY { price_t Price, TotalValue; int Carried; }; typedef struct INVENTORY Inventory; struct PLAYER_T; typedef struct PLAYER_T Player; struct TDopeEntry { Player *Play; int Turns; }; typedef struct TDopeEntry DopeEntry; struct TDopeList { DopeEntry *Data; int Number; }; typedef struct TDopeList DopeList; struct PLAYER_T { guint ID; int Turn; GDate *date; price_t Cash, Debt, Bank; int Health; int CoatSize; int IsAt; PlayerFlags Flags; gchar *Name; Inventory *Guns, *Drugs, Bitches; EventCode EventNum, ResyncNum; time_t FightTimeout, IdleTimeout, ConnectTimeout; guint tiebreak; price_t DocPrice; DopeList SpyList, TipList; Player *OnBehalfOf; #ifdef NETWORKING NetworkBuffer NetBuf; #endif Abilities Abil; GPtrArray *FightArray; /* If non-NULL, a list of players * in a fight */ Player *Attacking; /* The player that this player * is attacking */ gint CopIndex; /* if >0, then this player is a cop, * described by Cop[CopIndex-1]; * if ==0, this is a normal player that * has killed no cops; * if <0, then this is a normal player, * who has killed cops up to * Cop[-1-CopIndex] */ }; #define SN_PROMPT "(Prompt)" #define SN_META "(MetaServer)" #define SN_SINGLE "(Single)" typedef struct tag_serverdata { char *Name; unsigned Port; int MaxPlayers, CurPlayers; char *Comment, *Version, *Update, *UpSince; } ServerData; struct GLOBALS { int *IntVal; gboolean *BoolVal; price_t *PriceVal; gchar **StringVal; gchar ***StringList; char *Name, *Help; void **StructListPt, *StructStaticPt; int LenStruct; char *NameStruct; int *MaxIndex; void (*ResizeFunc) (int NewNum); gboolean Modified; int MinVal, MaxVal; }; struct CMDLINE { gboolean help, version, antique, color, network; gboolean convert, admin, ai, server, notifymeta; gboolean setport; gchar *scorefile, *servername, *pidfile, *logfile, *plugin, *convertfile; gchar *playername; unsigned port; ClientType client; GSList *configs; }; extern const int NUMGLOB; extern struct GLOBALS Globals[]; extern Player Noone; extern char **Playing; extern char **SubwaySaying; extern char **StoppedTo; extern GSList *ServerList; extern GScannerConfig ScannerConfig; extern struct LOG Log; extern gint ConfigErrors; extern gboolean LocaleIsUTF8; GSList *RemovePlayer(Player *Play, GSList *First); Player *GetPlayerByID(guint ID, GSList *First); Player *GetPlayerByName(gchar *Name, GSList *First); int CountPlayers(GSList *First); GSList *AddPlayer(int fd, Player *NewPlayer, GSList *First); void UpdatePlayer(Player *Play); void CopyPlayer(Player *Dest, Player *Src); void ClearInventory(Inventory *Guns, Inventory *Drugs); int IsCarryingRandom(Player *Play, int amount); void ChangeSpaceForInventory(Inventory *Guns, Inventory *Drugs, Player *Play); void InitList(DopeList *List); void AddListEntry(DopeList *List, DopeEntry *NewEntry); void RemoveListEntry(DopeList *List, int Entry); int GetListEntry(DopeList *List, Player *Play); void RemoveListPlayer(DopeList *List, Player *Play); void RemoveAllEntries(DopeList *List, Player *Play); void ClearList(DopeList *List); int TotalGunsCarried(Player *Play); int read_string(FILE *fp, char **buf); int brandom(int bot, int top); price_t prandom(price_t bot, price_t top); void AddInventory(Inventory *Cumul, Inventory *Add, int Length); void TruncateInventoryFor(Inventory *Guns, Inventory *Drugs, Player *Play); void PrintInventory(Inventory *Guns, Inventory *Drugs); price_t strtoprice(char *buf); gchar *pricetostr(price_t price); gchar *FormatPrice(price_t price); char IsInventoryClear(Inventory *Guns, Inventory *Drugs); void ResizeLocations(int NewNum); void ResizeCops(int NewNum); void ResizeGuns(int NewNum); void ResizeDrugs(int NewNum); void ResizeSubway(int NewNum); void ResizePlaying(int NewNum); void ResizeStoppedTo(int NewNum); void AssignName(gchar **dest, gchar *src); void CopyNames(struct NAMES *dest, struct NAMES *src); #ifdef NETWORKING void CopyMetaServer(struct METASERVER *dest, struct METASERVER *src); #endif void CopyLocation(struct LOCATION *dest, struct LOCATION *src); void CopyCop(struct COP *dest, struct COP *src); void CopyGun(struct GUN *dest, struct GUN *src); void CopyDrug(struct DRUG *dest, struct DRUG *src); void CopyDrugs(struct DRUGS *dest, struct DRUGS *src); int GetNextDrugIndex(int OldIndex, Player *Play); gchar *InitialCaps(gchar *string); char StartsWithVowel(char *string); char *GetPlayerName(Player *Play); void SetPlayerName(Player *Play, char *Name); struct CMDLINE *ParseCmdLine(int argc, char *argv[]); void FreeCmdLine(struct CMDLINE *cmdline); void InitConfiguration(struct CMDLINE *cmdline); void HandleHelpTexts(gboolean fullhelp); struct CMDLINE *GeneralStartup(int argc, char *argv[]); void StripTerminators(gchar *str); gboolean ParseNextConfig(GScanner *scanner, Converter *conv, gchar **encoding, gboolean print); int GetGlobalIndex(gchar *ID1, gchar *ID2); gchar **GetGlobalString(int GlobalIndex, int StructIndex); gint *GetGlobalInt(int GlobalIndex, int StructIndex); price_t *GetGlobalPrice(int GlobalIndex, int StructIndex); gboolean *GetGlobalBoolean(int GlobalIndex, int StructIndex); gchar ***GetGlobalStringList(int GlobalIndex, int StructIndex); void PrintConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, GScanner *scanner); gboolean IsCop(Player *Play); void RestoreConfig(void); void GetDateString(GString *str, Player *Play); void ScannerErrorHandler(GScanner *scanner, gchar *msg, gint error); gboolean IsConnectedPlayer(Player *play); void BackupConfig(void); gchar *GetDocRoot(void); gchar *GetDocIndex(void); gchar *GetGlobalConfigFile(void); gchar *GetLocalConfigFile(void); #ifndef CURSES_CLIENT void CursesLoop(struct CMDLINE *cmdline); #endif #ifndef GUI_CLIENT #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail); #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail); #endif #endif #endif /* __DP_DOPEWARS_H__ */ dopewars-1.6.2/src/dopewars-shot.png000755 000765 000024 00000000475 14256000066 017357 0ustar00benstaff000000 000000 PNG  IHDR/0s>gAMA aPLTEQ4tRNS@fbKGDH pHYs(JtIME'Q/?IDATx P,0GN'ϐ uC< A) _ЈhV euMN߁E DDDDn4=8!VL|A۴@ Xi L̋aR1!$ ᯵W|4&'zIENDB`dopewars-1.6.2/src/dopewars.rc000644 000765 000024 00000000444 14256000066 016215 0ustar00benstaff000000 000000 #include 1 24 "dopewars.manifest" mainicon ICON pill.ico gtkdialog DIALOG 40, 40, 40, 40 STYLE WS_POPUP | WS_CAPTION | WS_THICKFRAME | DS_MODALFRAME | WS_SYSMENU CAPTION "" BEGIN END tabpage DIALOG 40, 40, 40, 40 STYLE DS_CONTROL | WS_CHILD | DS_3DLOOK | WS_VISIBLE BEGIN END dopewars-1.6.2/src/winmain.c000644 000765 000024 00000024704 14256242752 015670 0ustar00benstaff000000 000000 /************************************************************************ * winmain.c Startup code and support for the Win32 platform * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include #include #include #include #include #include "dopewars.h" #include "log.h" #include "nls.h" #include "tstring.h" #include "util.h" #include "AIPlayer.h" #include "message.h" #include "serverside.h" #include "sound.h" #include "winmain.h" #ifdef CURSES_CLIENT #include "curses_client/curses_client.h" #endif #ifdef GUI_CLIENT #include "gui_client/gtk_client.h" #endif #ifdef GUI_SERVER #include "gtkport/gtkport.h" #endif static void ServerLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { g_print("%s\n", text->str); g_string_free(text, TRUE); } } static void ServerPrintFunc(const gchar *string) { DWORD NumChar; WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), string, strlen(string), &NumChar, NULL); } static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { MessageBox(NULL, message, "Error", MB_OK | MB_ICONSTOP); } static GString *TextOutput = NULL; static void WindowPrintStart() { TextOutput = g_string_new(""); } static void WindowPrintFunc(const gchar *string) { g_string_append(TextOutput, string); } static void WindowPrintEnd() { MessageBox(NULL, TextOutput->str, "dopewars", MB_OK | MB_ICONINFORMATION); g_string_free(TextOutput, TRUE); TextOutput = NULL; } static FILE *LogFile = NULL; gchar *appdata_path = NULL; static void GetAppDataPath() { appdata_path = g_strdup_printf("%s/dopewars", g_get_user_config_dir()); mkdir(appdata_path); } static void LogFileStart() { char *logfile = g_strdup_printf("%s/dopewars-log.txt", appdata_path ? appdata_path : "."); LogFile = fopen(logfile, "w"); g_free(logfile); } static void LogFilePrintFunc(const gchar *string) { if (LogFile) { fputs(string, LogFile); fflush(LogFile); } } static void LogFileEnd(void) { if (LogFile) fclose(LogFile); } gchar *GetBinaryDir(void) { gchar *filename = NULL, *lastslash; gint filelen = 80; DWORD retval; while (1) { filename = g_realloc(filename, filelen); filename[filelen - 1] = '\0'; retval = GetModuleFileName(NULL, filename, filelen); if (retval == 0) { g_free(filename); filename = NULL; break; } else if (filename[filelen - 1]) { filelen *= 2; } else break; } if (filename) { lastslash = strrchr(filename, '\\'); if (lastslash) *lastslash = '\0'; } return filename; } #ifdef ENABLE_NLS static gchar *GetWindowsLocale(void) { LCID userID; WORD lang, sublang; static gchar langenv[30]; /* Should only be 5 chars, so * this'll be plenty */ gchar *oldlang; langenv[0] = '\0'; strcpy(langenv, "LANG="); oldlang = getenv("LANG"); if (oldlang) { g_print("Started with LANG = %s\n", oldlang); return NULL; } userID = GetUserDefaultLCID(); lang = PRIMARYLANGID(LANGIDFROMLCID(userID)); sublang = SUBLANGID(LANGIDFROMLCID(userID)); switch (lang) { case LANG_ENGLISH: strcat(langenv, "en"); if (sublang == SUBLANG_ENGLISH_UK) { strcat(langenv, "_GB"); } break; case LANG_FRENCH: strcat(langenv, "fr"); if (sublang == SUBLANG_FRENCH_CANADIAN) { strcat(langenv, "_CA"); } break; case LANG_GERMAN: strcat(langenv, "de"); break; case LANG_POLISH: strcat(langenv, "pl"); break; case LANG_SPANISH: strcat(langenv, "es"); if (sublang == SUBLANG_SPANISH) { strcat(langenv, "_ES"); } break; case LANG_NORWEGIAN: if (sublang == SUBLANG_NORWEGIAN_NYNORSK) { strcat(langenv, "nn"); } else { strcat(langenv, "no"); } break; case LANG_PORTUGUESE: strcat(langenv, "pt"); if (sublang == SUBLANG_PORTUGUESE_BRAZILIAN) { strcat(langenv, "_BR"); } break; } if (strlen(langenv) > 5) { g_print("Using Windows language %s\n", langenv); return langenv; } else return NULL; } #endif /* ENABLE_NLS */ /* * Converts the passed lpszCmdParam WinMain-style command line into * Unix-style (argc, argv) parameters (returned). */ void get_cmdline(const LPSTR lpszCmdParam, int *argc, gchar ***argv) { gchar **split; gchar *tmp_cmdline; tmp_cmdline = g_strdup_printf("%s %s", PACKAGE, lpszCmdParam); split = g_strsplit(tmp_cmdline, " ", 0); *argc = 0; while (split[*argc] && split[*argc][0]) { (*argc)++; } *argv = split; g_free(tmp_cmdline); } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { gchar **argv; int argc; gboolean is_service; gchar *modpath; struct CMDLINE *cmdline; #ifdef ENABLE_NLS gchar *winlocale; const char *charset; #endif /* Are we running as an NT service? */ is_service = (lpszCmdParam && strncmp(lpszCmdParam, "-N", 2) == 0); if (is_service) { modpath = GetBinaryDir(); SetCurrentDirectory(modpath); g_free(modpath); } GetAppDataPath(); LogFileStart(); g_set_print_handler(LogFilePrintFunc); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE, ServerLogMessage, NULL); if (!is_service) { g_log_set_handler(NULL, G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL, LogMessage, NULL); } #ifdef ENABLE_NLS winlocale = GetWindowsLocale(); if (winlocale) putenv(winlocale); setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); LocaleIsUTF8 = g_get_charset(&charset); #endif /* Informational comment placed at the start of the Windows log file (this is used for messages printed during processing of the config files - under Unix these are just printed to stdout) */ g_print(_("# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n\n")); get_cmdline(lpszCmdParam, &argc, &argv); cmdline = GeneralStartup(argc, argv); if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); } OpenLog(); SoundInit(); if (cmdline->version || cmdline->help) { WindowPrintStart(); g_set_print_handler(WindowPrintFunc); HandleHelpTexts(cmdline->help); WindowPrintEnd(); #ifdef NETWORKING } else if (is_service) { InitNetwork(); Network = Server = TRUE; win32_init(hInstance, hPrevInstance, "mainicon"); ServiceMain(cmdline); StopNetworking(); #endif } else if (cmdline->convert) { WindowPrintStart(); g_set_print_handler(WindowPrintFunc); ConvertHighScoreFile(cmdline->convertfile); WindowPrintEnd(); } else { InitNetwork(); if (cmdline->server) { #ifdef NETWORKING #ifdef GUI_SERVER Server = TRUE; g_log_set_handler(NULL, G_LOG_LEVEL_CRITICAL, LogMessage, NULL); win32_init(hInstance, hPrevInstance, "mainicon"); GuiServerLoop(cmdline, FALSE); #else AllocConsole(); SetConsoleTitle(_("dopewars server")); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, ServerLogMessage, NULL); g_set_print_handler(ServerPrintFunc); newterm(NULL, NULL, NULL); ServerLoop(cmdline); #endif /* GUI_SERVER */ #else WindowPrintStart(); g_set_print_handler(WindowPrintFunc); g_print(_("This binary has been compiled without networking " "support, and thus cannot run\nin server mode. " "Recompile passing --enable-networking to the " "configure script.\n")); WindowPrintEnd(); #endif /* NETWORKING */ } else if (cmdline->ai) { AllocConsole(); /* Title of the Windows window used for AI player output */ SetConsoleTitle(_("dopewars AI")); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, ServerLogMessage, NULL); g_set_print_handler(ServerPrintFunc); AIPlayerLoop(cmdline); } else { switch (cmdline->client) { case CLIENT_AUTO: if (!GtkLoop(hInstance, hPrevInstance, cmdline, TRUE)) { AllocConsole(); SetConsoleTitle(_("dopewars")); CursesLoop(cmdline); } break; case CLIENT_WINDOW: GtkLoop(hInstance, hPrevInstance, cmdline, FALSE); break; case CLIENT_CURSES: AllocConsole(); SetConsoleTitle(_("dopewars")); CursesLoop(cmdline); break; } } #ifdef NETWORKING StopNetworking(); #endif } FreeCmdLine(cmdline); CloseLog(); LogFileEnd(); g_strfreev(argv); CloseHighScoreFile(); g_free(PidFile); g_free(Log.File); SoundClose(); return 0; } #endif /* CYGWIN */ dopewars-1.6.2/src/Makefile.am000644 000765 000024 00000004543 14256000066 016103 0ustar00benstaff000000 000000 # Nasty hack; there seems to be no other way of disabling libtool for the # link of the main executable... if PLUGINS MYLINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) else MYLINK = $(CCLD) endif if GUI_CLIENT GUISUBDIR = gui_client endif if CURSES_CLIENT CURSESSUBDIR = curses_client endif if GTKPORT GTKPORTSUBDIR = gtkport endif if CURSESPORT CURSESPORTSUBDIR = cursesport endif SUBDIRS = $(GUISUBDIR) $(CURSESSUBDIR) $(GTKPORTSUBDIR) $(CURSESPORTSUBDIR) plugins dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GTK_LIBS@ @LTLIBINTL@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@ @GLIB_LIBS@ @LIBCURL@ dopewars_DEPENDENCIES = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @WNDRES@ @PLUGOBJS@ bin_PROGRAMS = dopewars dopewars_SOURCES = admin.c admin.h AIPlayer.c AIPlayer.h util.c util.h \ configfile.c configfile.h convert.c convert.h \ dopewars.c dopewars.h error.c error.h log.c log.h \ message.c message.h network.c network.h nls.h \ serverside.c serverside.h sound.c sound.h \ tstring.c tstring.h winmain.c winmain.h mac_helpers.h AM_CPPFLAGS= -I${srcdir} @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBCURL_CPPFLAGS@ if APPLE dopewars_SOURCES += mac_helpers.m MACLDFLAGS = -framework AppKit else MACLDFLAGS = endif # Since we included (even optionally) an Objective C file, automake will # use OBJC rather than CC to link LINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(MACLDFLAGS) -o $@ OBJCLINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(MACLDFLAGS) -o $@ DEFS = @DEFS@ PIXDIR = ${DESTDIR}${datadir}/pixmaps DOPEDIR = ${DESTDIR}${bindir} DOPEBIN = ${DOPEDIR}/dopewars PIXMAPS = dopewars-pill.png dopewars-shot.png dopewars-weed.png EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest CLEANFILES = dopewars.res dopewars.exe WINDRES = @WINDRES@ install-exec-hook: @chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \ ( echo "WARNING: Cannot change group of dopewars binary - the high"; \ echo "score file may be unreadable or unwriteable by some users" ) chmod 2755 ${DOPEBIN} install-data-local: ${mkinstalldirs} ${PIXDIR} for pix in ${PIXMAPS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${pix} ${PIXDIR}; \ done uninstall-local: for pix in ${PIXMAPS}; do \ /bin/rm -f ${PIXDIR}/$${pix}; \ done %.res: %.rc ${WINDRES} -O coff -o $@ $< dopewars-1.6.2/src/tstring.c000644 000765 000024 00000020055 14256242752 015713 0ustar00benstaff000000 000000 /************************************************************************ * tstring.c "Translated string" wrappers for dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #include #include #include #ifdef HAVE_CONFIG_H #include #endif #include #include "dopewars.h" #include "message.h" #include "tstring.h" typedef struct _FmtData { union { int IntVal; price_t PriceVal; char CharVal; char *StrVal; } data; char Type; } FmtData; gchar *GetDefaultTString(gchar *tstring) { gchar *dstr, *pt; dstr = g_strdup(tstring); pt = strchr(dstr, '_'); if (pt) *pt = '\0'; return dstr; } gchar *GetTranslatedString(gchar *str, gchar *code, gboolean Caps) { gchar *dstr, *pt, *tstr, *Default, *tcode; dstr = g_strdup(str); g_strdelimit(dstr, "_", '^'); pt = dstr; Default = GetNextWord(&pt, ""); tstr = NULL; while (1) { tcode = GetNextWord(&pt, NULL); tstr = GetNextWord(&pt, ""); if (!tcode) { tstr = NULL; break; } if (strcmp(tcode, code) == 0) { break; } else tstr = NULL; } if (tstr) { if (Caps) tstr = InitialCaps(tstr); else tstr = g_strdup(tstr); } else { if (Caps) tstr = InitialCaps(Default); else tstr = g_strdup(Default); } g_free(dstr); return tstr; } void GetNextFormat(guint *Index, gchar *str, int *StartPos, int *EndPos, int *FmtPos, gchar *Type, int *ArgNum, int *Wid, int *Prec, char *Code) { int anum, wid, prec; guint i; gchar type; *StartPos = -1; *EndPos = *FmtPos = *ArgNum = *Wid = *Prec = 0; *Type = 0; Code[0] = 0; anum = wid = prec = 0; i = *Index; while (str[i]) { if (str[i] == '%') { *StartPos = *EndPos = i++; while (strchr("#0- +'", str[i])) i++; /* Skip flag characters */ while (str[i] >= '0' && str[i] <= '9') wid = wid * 10 + str[i++] - '0'; if (str[i] == '$') { *EndPos = i; i++; anum = wid; wid = 0; while (strchr("#0- +'", str[i])) i++; /* Skip flag characters */ while (str[i] >= '0' && str[i] <= '9') wid = wid * 10 + str[i++] - '0'; } if (str[i] == '.') { i++; while (str[i] >= '0' && str[i] <= '9') prec = prec * 10 + str[i++] - '0'; } *FmtPos = i; type = str[i]; if ((type == 'T' || type == 't') && i + 2 < strlen(str)) { Code[0] = str[i + 1]; Code[1] = str[i + 2]; Code[2] = 0; i += 3; } else if (type == '/') { i++; while (str[i] != '\0' && str[i] != '/') i++; if (str[i] == '/') i++; } else i++; *ArgNum = anum; *Wid = wid; *Prec = prec; *Index = i; *Type = type; return; } else i++; } *Index = i; } gchar *HandleTFmt(gchar *format, va_list va) { int StrInd, StartPos, EndPos, FmtPos, Wid, Prec, ArgNum, DefaultArgNum; guint i; char Code[3], Type; gchar *retstr, *fstr; GString *string, *tmpfmt; GArray *arr; FmtData *fdat; string = g_string_new(""); tmpfmt = g_string_new(""); arr = g_array_new(FALSE, TRUE, sizeof(FmtData)); i = DefaultArgNum = 0; while (i < strlen(format)) { GetNextFormat(&i, format, &StartPos, &EndPos, &FmtPos, &Type, &ArgNum, &Wid, &Prec, Code); if (StartPos == -1) break; if (ArgNum == 0) ArgNum = ++DefaultArgNum; if (ArgNum > arr->len) { g_array_set_size(arr, ArgNum); } g_array_index(arr, FmtData, ArgNum - 1).Type = Type; } for (i = 0; i < arr->len; i++) { fdat = &g_array_index(arr, FmtData, i); switch (fdat->Type) { case '\0': g_error("Incomplete format string!"); break; case 'd': fdat->data.IntVal = va_arg(va, int); break; case 'P': fdat->data.PriceVal = va_arg(va, price_t); break; case 'c': fdat->data.CharVal = (char)va_arg(va, int); break; case 's': case 't': case 'T': fdat->data.StrVal = va_arg(va, char *); break; case '%': case '/': break; /* No special action for %% or %/.../ */ default: g_error("Unknown format type %c!", fdat->Type); } } i = DefaultArgNum = 0; while (i < strlen(format)) { StrInd = i; GetNextFormat(&i, format, &StartPos, &EndPos, &FmtPos, &Type, &ArgNum, &Wid, &Prec, Code); if (StartPos == -1) { g_string_append(string, &format[StrInd]); break; } while (StrInd < StartPos) g_string_append_c(string, format[StrInd++]); if (ArgNum == 0) ArgNum = ++DefaultArgNum; g_string_assign(tmpfmt, "%"); EndPos++; while (EndPos < FmtPos) g_string_append_c(tmpfmt, format[EndPos++]); if (Type == 'T' || Type == 't' || Type == 'P') g_string_append_c(tmpfmt, 's'); else g_string_append_c(tmpfmt, Type); fdat = &g_array_index(arr, FmtData, ArgNum - 1); if (Type != fdat->Type) g_error("Unmatched types!"); switch (Type) { case 'd': g_string_append_printf(string, tmpfmt->str, fdat->data.IntVal); break; case 'c': g_string_append_printf(string, tmpfmt->str, fdat->data.CharVal); break; case 'P': fstr = FormatPrice(fdat->data.PriceVal); g_string_append_printf(string, tmpfmt->str, fstr); g_free(fstr); break; case 't': case 'T': fstr = GetTranslatedString(fdat->data.StrVal, Code, Type == 'T'); g_string_append_printf(string, tmpfmt->str, fstr); g_free(fstr); break; case 's': g_string_append_printf(string, tmpfmt->str, fdat->data.StrVal); break; case '%': g_string_append_c(string, '%'); break; } } retstr = string->str; g_array_free(arr, TRUE); g_string_free(string, FALSE); g_string_free(tmpfmt, TRUE); return retstr; } void dpg_print(gchar *format, ...) { va_list ap; gchar *retstr; va_start(ap, format); retstr = HandleTFmt(format, ap); va_end(ap); g_print("%s", retstr); g_free(retstr); } gchar *dpg_strdup_printf(gchar *format, ...) { va_list ap; gchar *retstr; va_start(ap, format); retstr = HandleTFmt(format, ap); va_end(ap); return retstr; } void dpg_string_printf(GString *string, gchar *format, ...) { va_list ap; gchar *newstr; va_start(ap, format); newstr = HandleTFmt(format, ap); g_string_assign(string, newstr); g_free(newstr); va_end(ap); } void dpg_string_append_printf(GString *string, gchar *format, ...) { va_list ap; gchar *newstr; va_start(ap, format); newstr = HandleTFmt(format, ap); g_string_append(string, newstr); g_free(newstr); va_end(ap); } dopewars-1.6.2/src/dopewars-pill.png000755 000765 000024 00000000464 14256000066 017340 0ustar00benstaff000000 000000 PNG  IHDR/0s>gAMA aPLTE@OtRNS@fbKGDH pHYsktIME&"zbIDATxc`T&PaTRq'P6IA` .i -*n) 0%3 Y",B{ , W1"K B9Qq@Q*0P0PVCg|Q0 _!4bIENDB`dopewars-1.6.2/src/network.h000644 000765 000024 00000023343 14256242752 015722 0ustar00benstaff000000 000000 /************************************************************************ * network.h Header file for low-level networking routines * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_NETWORK_H__ #define __DP_NETWORK_H__ #ifdef HAVE_CONFIG_H #include #endif /* Various includes necessary for select() calls */ #ifdef CYGWIN #include #include #else #include /* Be careful not to include both sys/time.h and time.h on those systems * which don't like it */ #if TIME_WITH_SYS_TIME #include #include #else #ifdef HAVE_SYS_TIME_H #include #else #include #endif #endif #ifdef HAVE_UNISTD_H #include #endif #endif #include #include "error.h" #ifdef NETWORKING #include #ifndef SOCKET_ERROR #define SOCKET_ERROR -1 #endif #ifdef CYGWIN /* Need GUI main loop to handle timers/events */ #include "gtkport/gtkport.h" #else #define dp_g_source_remove g_source_remove #define dp_g_io_add_watch g_io_add_watch #define dp_g_timeout_add g_timeout_add #endif typedef struct _CurlConnection { CURLM *multi; CURL *h; gboolean running; gchar *data; size_t data_size; char Terminator; /* Character that separates messages */ char StripChar; /* Char that should be removed * from messages */ GPtrArray *headers; guint timer_event; GSourceFunc timer_cb; GIOFunc socket_cb; } CurlConnection; typedef struct _ConnBuf { gchar *Data; /* bytes waiting to be read/written */ gint Length; /* allocated length of the "Data" buffer */ gint DataPresent; /* number of bytes currently in "Data" */ } ConnBuf; typedef struct _NetworkBuffer NetworkBuffer; typedef void (*NBCallBack) (NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean Exception, gboolean CallNow); typedef void (*NBUserPasswd) (NetworkBuffer *NetBuf, gpointer data); /* Information about a SOCKS server */ typedef struct _SocksServer { gchar *name; /* hostname */ int port; /* port number */ int version; /* desired protocol version (usually * 4 or 5) */ gboolean numuid; /* if TRUE, send numeric user IDs rather * than names */ char *user; /* if not blank, override the username * with this */ gchar *authuser; /* if set, the username for SOCKS5 auth */ gchar *authpassword; /* if set, the password for SOCKS5 auth */ } SocksServer; /* The status of a network buffer */ typedef enum { NBS_PRECONNECT, /* Socket is not yet connected */ NBS_SOCKSCONNECT, /* A CONNECT request is being sent to a * SOCKS server */ NBS_CONNECTED /* Socket is connected */ } NBStatus; /* Status of a SOCKS v5 negotiation */ typedef enum { NBSS_METHODS, /* Negotiation of available methods */ NBSS_USERPASSWD, /* Username-password request is being sent */ NBSS_CONNECT /* CONNECT request is being sent */ } NBSocksStatus; /* Handles reading and writing messages from/to a network connection */ struct _NetworkBuffer { int fd; /* File descriptor of the socket */ GIOChannel *ioch; /* GLib representation of the descriptor */ gint InputTag; /* Identifier for GLib event routines */ NBCallBack CallBack; /* Function called when the socket * status changes */ gpointer CallBackData; /* Data accessible to the callback * function */ char Terminator; /* Character that separates messages */ char StripChar; /* Char that should be removed * from messages */ ConnBuf ReadBuf; /* New data, waiting for the application */ ConnBuf WriteBuf; /* Data waiting to be written to the wire */ ConnBuf negbuf; /* Output for protocol negotiation * (e.g. SOCKS) */ gboolean WaitConnect; /* TRUE if a non-blocking connect is in * progress */ NBStatus status; /* Status of the connection (if any) */ NBSocksStatus sockstat; /* Status of SOCKS negotiation (if any) */ SocksServer *socks; /* If non-NULL, a SOCKS server to use */ NBUserPasswd userpasswd; /* Function to supply username and * password for SOCKS5 authentication */ gpointer userpasswddata; /* data to pass to the above function */ gchar *host; /* If non-NULL, the host to connect to */ unsigned port; /* If non-NULL, the port to connect to */ LastError *error; /* Any error from the last operation */ }; void InitNetworkBuffer(NetworkBuffer *NetBuf, char Terminator, char StripChar, SocksServer *socks); void SetNetworkBufferCallBack(NetworkBuffer *NetBuf, NBCallBack CallBack, gpointer CallBackData); void SetNetworkBufferUserPasswdFunc(NetworkBuffer *NetBuf, NBUserPasswd userpasswd, gpointer data); gboolean IsNetworkBufferActive(NetworkBuffer *NetBuf); void BindNetworkBufferToSocket(NetworkBuffer *NetBuf, int fd); gboolean StartNetworkBufferConnect(NetworkBuffer *NetBuf, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort); void ShutdownNetworkBuffer(NetworkBuffer *NetBuf); void SetSelectForNetworkBuffer(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, int *MaxSock); gboolean RespondToSelect(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, gboolean *DoneOK); gboolean NetBufHandleNetwork(NetworkBuffer *NetBuf, gboolean ReadReady, gboolean WriteReady, gboolean ErrorReady, gboolean *DoneOK); gboolean ReadDataFromWire(NetworkBuffer *NetBuf); gboolean WriteDataToWire(NetworkBuffer *NetBuf); void QueueMessageForSend(NetworkBuffer *NetBuf, gchar *data); gint CountWaitingMessages(NetworkBuffer *NetBuf); gchar *GetWaitingMessage(NetworkBuffer *NetBuf); void SendSocks5UserPasswd(NetworkBuffer *NetBuf, gchar *user, gchar *password); gchar *GetWaitingData(NetworkBuffer *NetBuf, int numbytes); gchar *PeekWaitingData(NetworkBuffer *NetBuf, int numbytes); gchar *ExpandWriteBuffer(ConnBuf *conn, int numbytes, LastError **error); void CommitWriteBuffer(NetworkBuffer *NetBuf, ConnBuf *conn, gchar *addpt, guint addlen); #define DOPE_CURL_ERROR dope_curl_error_quark() GQuark dope_curl_error_quark(void); #define DOPE_CURLM_ERROR dope_curlm_error_quark() GQuark dope_curlm_error_quark(void); void CurlInit(CurlConnection *conn); void CurlCleanup(CurlConnection *conn); gboolean OpenCurlConnection(CurlConnection *conn, char *URL, char *body, GError **err); void CloseCurlConnection(CurlConnection *conn); gboolean CurlConnectionPerform(CurlConnection *conn, int *still_running, GError **err); gboolean CurlConnectionSocketAction(CurlConnection *conn, curl_socket_t fd, int action, int *still_running, GError **err); char *CurlNextLine(CurlConnection *conn, char *ch); void SetCurlCallback(CurlConnection *conn, GSourceFunc timer_cb, GIOFunc socket_cb); int CreateTCPSocket(LastError **error); gboolean BindTCPSocket(int sock, const gchar *addr, unsigned port, LastError **error); void StartNetworking(void); void StopNetworking(void); #ifdef CYGWIN #define CloseSocket(sock) closesocket(sock) void SetReuse(SOCKET sock); void SetBlocking(SOCKET sock, gboolean blocking); #else #define CloseSocket(sock) close(sock) void SetReuse(int sock); void SetBlocking(int sock, gboolean blocking); #endif void AddB64Enc(GString *str, gchar *unenc); #endif /* NETWORKING */ #endif /* __DP_NETWORK_H__ */ dopewars-1.6.2/src/sound.c000644 000765 000024 00000014560 14256242752 015355 0ustar00benstaff000000 000000 /************************************************************************ * sound.c dopewars sound system * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #ifdef PLUGINS #include #include #include #else #include "plugins/sound_sdl.h" #include "plugins/sound_esd.h" #include "plugins/sound_winmm.h" #ifdef HAVE_COCOA SoundDriver *sound_cocoa_init(void); #endif #endif #include "dopewars.h" #include "log.h" #include "nls.h" #include "sound.h" #define NOPLUGIN "none" static SoundDriver *driver = NULL; static GSList *driverlist = NULL; typedef SoundDriver *(*InitFunc)(void); static gboolean sound_enabled = TRUE; gchar *GetPluginList(void) { GSList *listpt; GString *plugins; gchar *retstr; plugins = g_string_new("\""NOPLUGIN"\""); for (listpt = driverlist; listpt; listpt = g_slist_next(listpt)) { SoundDriver *drivpt = (SoundDriver *)listpt->data; if (drivpt && drivpt->name) { g_string_append_printf(plugins, ", \"%s\"", drivpt->name); } } retstr = plugins->str; g_string_free(plugins, FALSE); return retstr; } static void AddPlugin(InitFunc ifunc, void *module) { SoundDriver *newdriver = (*ifunc)(); if (newdriver) { dopelog(5, 0, "%s sound plugin init OK", newdriver->name); newdriver->module = module; driverlist = g_slist_append(driverlist, newdriver); } } #ifdef PLUGINS static void OpenModule(const gchar *modname, const gchar *fullname) { InitFunc ifunc; gint len = strlen(modname); void *soundmodule; if (len > 6 && strncmp(modname, "lib", 3) == 0 && strcmp(modname + len - 3, ".so") == 0) { GString *funcname; soundmodule = dlopen(fullname, RTLD_NOW); if (!soundmodule) { /* FIXME: using dlerror() here causes a segfault later in the program */ dopelog(3, 0, "dlopen of %s failed: %s", fullname, dlerror()); return; } funcname = g_string_new(modname); g_string_truncate(funcname, len - 3); g_string_erase(funcname, 0, 3); g_string_append(funcname, "_init"); ifunc = dlsym(soundmodule, funcname->str); if (ifunc) { AddPlugin(ifunc, soundmodule); } else { dopelog(3, 0, "dlsym (%s) failed: %s", funcname->str, dlerror()); dlclose(soundmodule); } g_string_free(funcname, TRUE); } } static void ScanPluginDir(const gchar *dirname) { DIR *dir; dir = opendir(dirname); if (dir) { struct dirent *fileinfo; GString *modname; modname = g_string_new(""); do { fileinfo = readdir(dir); if (fileinfo) { g_string_assign(modname, dirname); g_string_append_c(modname, G_DIR_SEPARATOR); g_string_append(modname, fileinfo->d_name); OpenModule(fileinfo->d_name, modname->str); } } while (fileinfo); g_string_free(modname, TRUE); closedir(dir); } else { dopelog(5, 0, "Cannot open dir %s", dirname); } } #endif void SoundInit(void) { #ifdef PLUGINS ScanPluginDir(PLUGINDIR); ScanPluginDir("src/plugins/.libs"); ScanPluginDir("plugins/.libs"); #else #ifdef HAVE_ESD AddPlugin(sound_esd_init, NULL); #endif #ifdef HAVE_SDL_MIXER AddPlugin(sound_sdl_init, NULL); #endif #ifdef HAVE_WINMM AddPlugin(sound_winmm_init, NULL); #endif #ifdef HAVE_COCOA AddPlugin(sound_cocoa_init, NULL); #endif #endif driver = NULL; } static SoundDriver *GetPlugin(gchar *drivername) { GSList *listpt; for (listpt = driverlist; listpt; listpt = g_slist_next(listpt)) { SoundDriver *drivpt = (SoundDriver *)listpt->data; if (drivpt && drivpt->name && (!drivername || strcmp(drivpt->name, drivername) == 0)) { return drivpt; } } return NULL; } void SoundOpen(gchar *drivername) { if (!drivername || strcmp(drivername, NOPLUGIN) != 0) { driver = GetPlugin(drivername); if (driver) { if (driver->open) { dopelog(3, 0, "Using plugin %s", driver->name); driver->open(); } } else if (drivername) { gchar *plugins, *err; plugins = GetPluginList(); err = g_strdup_printf(_("Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)"), drivername, plugins, NOPLUGIN); g_log(NULL, G_LOG_LEVEL_CRITICAL, "%s", err); g_free(plugins); g_free(err); } } sound_enabled = TRUE; } void SoundClose(void) { #ifdef PLUGINS GSList *listpt; SoundDriver *listdriv; #endif if (driver && driver->close) { driver->close(); driver = NULL; } #ifdef PLUGINS for (listpt = driverlist; listpt; listpt = g_slist_next(listpt)) { listdriv = (SoundDriver *)listpt->data; if (listdriv && listdriv->module) { dlclose(listdriv->module); } } #endif g_slist_free(driverlist); driverlist = NULL; } void SoundPlay(const gchar *snd) { if (sound_enabled && driver && driver->play && snd && snd[0]) { driver->play(snd); } } void SoundEnable(gboolean enable) { sound_enabled = enable; } gboolean IsSoundEnabled(void) { return sound_enabled; } dopewars-1.6.2/src/error.c000644 000765 000024 00000016011 14256242752 015347 0ustar00benstaff000000 000000 /************************************************************************ * error.c Error-handling routines for dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For GString functions */ #include /* For strerror */ #ifdef CYGWIN #include /* For WSAxxx constants */ #include /* For FormatMessage() etc. */ #else #include /* For h_errno error codes */ #endif #include "error.h" #include "nls.h" static gboolean err_utf8_encoding = FALSE; /* * If "want" is TRUE, we want all error texts (via. strerror) in UTF8, * even if the locale's charset is not UTF8. */ void WantUTF8Errors(gboolean want) { err_utf8_encoding = want; } /* * Returns the strerror() error string for the given error code, * possibly translated to UTF8. N.B. Unlike strerror(), this string * must be g_free'd by the caller when no longer needed. */ gchar *ErrStrFromErrno(int errcode) { gchar *untran = strerror(errcode); if (err_utf8_encoding) { gchar *utf8str; utf8str = g_locale_to_utf8(untran, strlen(untran), NULL, NULL, NULL); if (utf8str) { return utf8str; } else { return g_strdup(_("(Error cannot be displayed in UTF-8)")); } } else { return g_strdup(untran); } } void FreeError(LastError *error) { if (!error) return; if (error->type && error->type->FreeErrorData) { (*error->type->FreeErrorData)(error); } else { g_free(error->data); } g_free(error); } LastError *NewError(ErrorType *type, gint code, gpointer data) { LastError *error; error = g_new0(LastError, 1); error->type = type; error->code = code; error->data = data; return error; } void SetError(LastError **error, ErrorType *type, gint code, gpointer data) { if (!error) return; if (*error) FreeError(*error); *error = NewError(type, code, data); } void LookupErrorCode(GString *str, gint code, ErrTable *table, gchar *fallbackstr) { for (; table && table->string; table++) { if (code == table->code) { g_string_append(str, _(table->string)); return; } } g_string_append_printf(str, fallbackstr, code); } /* "Custom" error handling */ static ErrTable CustomErrStr[] = { {E_FULLBUF, N_("Connection dropped due to full buffer")}, {0, NULL} }; void CustomAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, CustomErrStr, _("Internal error code %d")); } static ErrorType ETCustom = { CustomAppendError, NULL }; ErrorType *ET_CUSTOM = &ETCustom; /* * "errno" error handling */ void ErrnoAppendError(GString *str, LastError *error) { gchar *errstr = ErrStrFromErrno(error->code); g_string_append(str, errstr); g_free(errstr); } static ErrorType ETErrno = { ErrnoAppendError, NULL }; ErrorType *ET_ERRNO = &ETErrno; #ifdef CYGWIN /* Winsock error handling */ static ErrTable WSAErrStr[] = { /* These are the explanations of the various Windows Sockets error codes */ {WSANOTINITIALISED, N_("WinSock has not been properly initialized")}, {WSASYSNOTREADY, N_("Network subsystem is not ready")}, {WSAVERNOTSUPPORTED, N_("WinSock version not supported")}, {WSAENETDOWN, N_("The network subsystem has failed")}, {WSAEADDRINUSE, N_("Address already in use")}, {WSAENETDOWN, N_("Cannot reach the network")}, {WSAETIMEDOUT, N_("The connection timed out")}, {WSAEMFILE, N_("Out of file descriptors")}, {WSAENOBUFS, N_("Out of buffer space")}, {WSAEOPNOTSUPP, N_("Operation not supported")}, {WSAECONNABORTED, N_("Connection aborted due to failure")}, {WSAECONNRESET, N_("Connection reset by remote host")}, {WSAECONNREFUSED, N_("Connection refused")}, {WSAEAFNOSUPPORT, N_("Address family not supported")}, {WSAEPROTONOSUPPORT, N_("Protocol not supported")}, {WSAESOCKTNOSUPPORT, N_("Socket type not supported")}, {WSAHOST_NOT_FOUND, N_("Host not found")}, {WSATRY_AGAIN, N_("Temporary name server error - try again later")}, {WSANO_RECOVERY, N_("Failed to contact nameserver")}, {WSANO_DATA, N_("Valid name, but no DNS data record present")}, {0, NULL} }; void WinsockAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, WSAErrStr, _("Network error code %d")); } static ErrorType ETWinsock = { WinsockAppendError, NULL }; ErrorType *ET_WINSOCK = &ETWinsock; /* * Standard Win32 "GetLastError" handling */ void Win32AppendError(GString *str, LastError *error) { LPTSTR lpMsgBuf; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, error->code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) & lpMsgBuf, 0, NULL); g_string_append(str, lpMsgBuf); LocalFree(lpMsgBuf); } static ErrorType ETWin32 = { Win32AppendError, NULL }; ErrorType *ET_WIN32 = &ETWin32; #else /* h_errno error handling */ static ErrTable DNSErrStr[] = { /* These are the explanations of the various name server error codes */ {HOST_NOT_FOUND, N_("Host not found")}, {TRY_AGAIN, N_("Temporary name server error - try again later")}, {0, NULL} }; void HErrnoAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, DNSErrStr, _("Name server error code %d")); } static ErrorType ETHErrno = { HErrnoAppendError, NULL }; ErrorType *ET_HERRNO = ÐErrno; #endif /* CYGWIN */ void g_string_assign_error(GString *str, LastError *error) { g_string_truncate(str, 0); g_string_append_error(str, error); } void g_string_append_error(GString *str, LastError *error) { if (!error || !error->type) return; (*error->type->AppendErrorString) (str, error); } dopewars-1.6.2/src/log.h000644 000765 000024 00000003704 14256242752 015011 0ustar00benstaff000000 000000 /************************************************************************ * log.h Logging functions for dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_LOG_H__ #define __DP_LOG_H__ #ifdef HAVE_CONFIG_H #include #endif #include typedef enum { LF_SERVER = (1 << 0) } LogFlags; void dopelog(const int loglevel, const LogFlags flags, const gchar *format, ...); GLogLevelFlags LogMask(void); GString *GetLogString(GLogLevelFlags log_level, const gchar *message); void OpenLog(void); void CloseLog(void); #endif /* __DP_LOG_H__ */ dopewars-1.6.2/src/util.h000644 000765 000024 00000005376 14256242752 015214 0ustar00benstaff000000 000000 /************************************************************************ * util.h Miscellaneous utility and portability functions * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_UTIL_H__ #define __DP_UTIL_H__ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef CYGWIN /* Definitions for native Win32 build */ #include #include #include #define SIGWINCH 0 #define SIGPIPE 0 #define SIG_BLOCK 0 #define SIG_UNBLOCK 0 struct sigaction { void *sa_handler; int sa_flags; int sa_mask; }; void sigemptyset(int *mask); void sigaddset(int *mask, int sig); int sigaction(int sig, struct sigaction *sact, char *pt); void sigprocmask(int flag, int *mask, char *pt); int bselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfs, struct timeval *tm); #else /* Definitions for Unix build */ #define bselect select #endif /* CYGWIN */ #ifndef HAVE_GETOPT int getopt(int argc, char *const argv[], const char *str); extern char *optarg; #endif void MicroSleep(int microsec); int ReadLock(FILE *fp); int WriteLock(FILE *fp); void ReleaseLock(FILE *fp); /* Now make definitions if they haven't been done properly */ #ifndef WEXITSTATUS #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #endif /* __DP_UTIL_H__ */ dopewars-1.6.2/src/AIPlayer.c000644 000765 000024 00000046646 14256242752 015705 0ustar00benstaff000000 000000 /************************************************************************ * AIPlayer.c Code for dopewars computer players * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #include #include #ifdef HAVE_UNISTD_H #include #endif #include #include #include #include #include "configfile.h" #include "dopewars.h" #include "message.h" #include "nls.h" #include "tstring.h" #include "util.h" #include "AIPlayer.h" #ifdef NETWORKING static int HandleAIMessage(char *Message, Player *AIPlay); static void PrintAIMessage(char *Text); static void AIDealDrugs(Player *AIPlay); static void AIJet(Player *AIPlay); static void AIGunShop(Player *AIPlay); static void AIPayLoan(Player *AIPlay); static void AISendRandomMessage(Player *AIPlay); static void AISetName(Player *AIPlay); static void AIHandleQuestion(char *Data, AICode AI, Player *AIPlay, Player *From); #define MINSAFECASH 300 #define MINSAFEHEALTH 140 /* Reserve some space for picking up new guns */ #define SPACERESERVE 10 /* * Locations of the loan shark, bank, gun shop and pub * Note: these are not the same as the global variables * LoanSharkLoc, BankLoc, GunShopLoc and RoughPubLoc, * which are set locally. The remote server could * have different locations set, and the AI must work * out where these locations are for itself. */ int RealLoanShark, RealBank, RealGunShop, RealPub; static void AIConnectFailed(NetworkBuffer *netbuf) { GString *errstr; errstr = g_string_new(_("Connection closed by remote host")); if (netbuf->error) g_string_assign_error(errstr, netbuf->error); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Could not connect to dopewars server\n(%s)\n" "AI Player terminating abnormally."), errstr->str); g_string_free(errstr, TRUE); } static void AIStartGame(Player *AIPlay) { Client = Network = TRUE; InitAbilities(AIPlay); SetAbility(AIPlay, A_DONEFIGHT, FALSE); SendAbilities(AIPlay); AISetName(AIPlay); g_message(_("Connection established\n")); } static void DisplayConnectStatus(NetworkBuffer *netbuf, NBStatus oldstatus, NBSocksStatus oldsocks) { NBStatus status; NBSocksStatus sockstat; status = netbuf->status; sockstat = netbuf->sockstat; if (oldstatus == status && oldsocks == sockstat) return; switch (status) { case NBS_PRECONNECT: break; case NBS_SOCKSCONNECT: switch (sockstat) { case NBSS_METHODS: g_print(_("Connected to SOCKS server %s...\n"), Socks.name); break; case NBSS_USERPASSWD: g_print(_("Authenticating with SOCKS server\n")); break; case NBSS_CONNECT: g_print(_("Asking SOCKS for connect to %s...\n"), ServerName); break; } break; case NBS_CONNECTED: break; } } static void NetBufAuth(NetworkBuffer *netbuf, gpointer data) { g_print(_("Using Socks.Auth.User and Socks.Auth.Password " "for SOCKS5 authentication\n")); SendSocks5UserPasswd(netbuf, Socks.authuser, Socks.authpassword); } /* * Main loop for AI players. Connects to server, plays game, * and then disconnects. */ void AIPlayerLoop(struct CMDLINE *cmdline) { GString *errstr; gchar *msg; Player *AIPlay; fd_set readfs, writefs; gboolean DoneOK, QuitRequest, datawaiting; int MaxSock; NBStatus oldstatus; NBSocksStatus oldsocks; NetworkBuffer *netbuf; InitConfiguration(cmdline); errstr = g_string_new(""); AIPlay = g_new(Player, 1); FirstClient = AddPlayer(0, AIPlay, FirstClient); g_message(_("AI Player started; attempting to contact " "server at %s:%d..."), ServerName, Port); /* Forget where the "special" locations are */ RealLoanShark = RealBank = RealGunShop = RealPub = -1; netbuf = &AIPlay->NetBuf; oldstatus = netbuf->status; oldsocks = netbuf->sockstat; if (!StartNetworkBufferConnect(netbuf, NULL, ServerName, Port)) { AIConnectFailed(netbuf); return; } else { SetNetworkBufferUserPasswdFunc(netbuf, NetBufAuth, NULL); if (netbuf->status == NBS_CONNECTED) { AIStartGame(AIPlay); } else { DisplayConnectStatus(netbuf, oldstatus, oldsocks); } } while (1) { FD_ZERO(&readfs); FD_ZERO(&writefs); MaxSock = 0; SetSelectForNetworkBuffer(netbuf, &readfs, &writefs, NULL, &MaxSock); oldstatus = netbuf->status; oldsocks = netbuf->sockstat; if (bselect(MaxSock, &readfs, &writefs, NULL, NULL) == -1) { if (errno == EINTR) continue; printf("Error in select\n"); exit(EXIT_FAILURE); } datawaiting = RespondToSelect(netbuf, &readfs, &writefs, NULL, &DoneOK); if (oldstatus != NBS_CONNECTED && (netbuf->status == NBS_CONNECTED || !DoneOK)) { if (DoneOK) AIStartGame(AIPlay); else { AIConnectFailed(netbuf); break; } } else if (netbuf->status != NBS_CONNECTED) { DisplayConnectStatus(netbuf, oldstatus, oldsocks); } if (datawaiting && netbuf->status == NBS_CONNECTED) { QuitRequest = FALSE; while ((msg = GetWaitingPlayerMessage(AIPlay)) != NULL) { if (HandleAIMessage(msg, AIPlay)) { QuitRequest = TRUE; break; } } if (QuitRequest) { g_print(_("AI Player terminated OK.\n")); break; } } if (!DoneOK) { g_print(_("Connection to server lost!\n")); break; } } ShutdownNetwork(AIPlay); g_string_free(errstr, TRUE); FirstClient = RemovePlayer(AIPlay, FirstClient); } /* * Chooses a random name for the AI player, and informs the server */ void AISetName(Player *AIPlay) { char *AINames[] = { "Chip", "Dopey", "Al", "Dan", "Bob", "Fred", "Bert", "Jim" }; const gint NumNames = sizeof(AINames) / sizeof(AINames[0]); gchar *text; text = g_strdup_printf("AI) %s", AINames[brandom(0, NumNames)]); SetPlayerName(AIPlay, text); g_free(text); SendNullClientMessage(AIPlay, C_NONE, C_NAME, NULL, GetPlayerName(AIPlay)); g_print(_("Using name %s\n"), GetPlayerName(AIPlay)); } /* * Returns TRUE if it would be prudent to run away... */ gboolean ShouldRun(Player *AIPlay) { gint TotalHealth; if (TotalGunsCarried(AIPlay) == 0) return TRUE; TotalHealth = AIPlay->Health + AIPlay->Bitches.Carried * 100; return (TotalHealth < MINSAFEHEALTH); } /* * Decodes the fighting-related message "Msg", and then decides whether * to stand or run... */ static void HandleCombat(Player *AIPlay, gchar *Msg) { gchar *text; gchar *AttackName, *DefendName, *BitchName; FightPoint fp; int DefendHealth, DefendBitches, BitchesKilled, ArmPercent; gboolean CanRunHere, Loot, CanFire; if (HaveAbility(AIPlay, A_NEWFIGHT)) { ReceiveFightMessage(Msg, &AttackName, &DefendName, &DefendHealth, &DefendBitches, &BitchName, &BitchesKilled, &ArmPercent, &fp, &CanRunHere, &Loot, &CanFire, &text); } else { text = Msg; if (AIPlay->Flags & FIGHTING) fp = F_MSG; else fp = F_LASTLEAVE; CanFire = (AIPlay->Flags & CANSHOOT); CanRunHere = FALSE; } PrintAIMessage(text); if (ShouldRun(AIPlay)) { if (CanRunHere) { SendClientMessage(AIPlay, C_NONE, C_FIGHTACT, NULL, "R"); } else { AIDealDrugs(AIPlay); AIJet(AIPlay); } } else if (fp == F_LASTLEAVE) { AIJet(AIPlay); } else { SendClientMessage(AIPlay, C_NONE, C_FIGHTACT, NULL, "F"); } } /* * Performs appropriate processing on an incoming network message * "Message" for AI player "AIPlay". Returns 1 if the game should * be ended as a result, 0 otherwise. */ int HandleAIMessage(char *Message, Player *AIPlay) { char *Data, WasFighting; AICode AI; MsgCode Code; Player *From, *tmp; GSList *list; struct timeval tv; gboolean Handled; if (ProcessMessage(Message, AIPlay, &From, &AI, &Code, &Data, FirstClient) == -1) { g_warning("Bad network message. Oops."); return 0; } Handled = HandleGenericClientMessage(From, AI, Code, AIPlay, Data, NULL); switch (Code) { case C_ENDLIST: g_print(_("Players in this game:-\n")); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; g_print(" %s\n", GetPlayerName(tmp)); } break; case C_NEWNAME: AISetName(AIPlay); break; case C_FIGHTPRINT: HandleCombat(AIPlay, Data); break; case C_PRINTMESSAGE: PrintAIMessage(Data); if (AI == C_MISSFIGHT || strncmp(Data, "Too late", 8) == 0) { AIJet(AIPlay); } break; case C_MSG: g_print("%s: %s\n", GetPlayerName(From), Data); break; case C_MSGTO: g_print("%s->%s: %s\n", GetPlayerName(From), GetPlayerName(AIPlay), Data); break; case C_JOIN: g_print(_("%s joins the game.\n"), Data); break; case C_LEAVE: if (From != &Noone) { g_print(_("%s has left the game.\n"), Data); } break; case C_SUBWAYFLASH: dpg_print(_("Jetting to %tde with %P cash and %P debt\n"), Location[AIPlay->IsAt].Name, AIPlay->Cash, AIPlay->Debt); /* Use bselect rather than sleep, as this is portable to Win32 */ tv.tv_sec = AITurnPause; tv.tv_usec = 0; bselect(0, NULL, NULL, NULL, &tv); if (brandom(0, 100) < 10) AISendRandomMessage(AIPlay); break; case C_UPDATE: WasFighting = FALSE; if (From == &Noone) { if (AIPlay->Flags & FIGHTING) WasFighting = TRUE; ReceivePlayerData(AIPlay, Data, AIPlay); } else { ReceivePlayerData(AIPlay, Data, From); /* spy reports */ } if (!(AIPlay->Flags & FIGHTING) && WasFighting) { AIDealDrugs(AIPlay); AIJet(AIPlay); } if (AIPlay->Health == 0) { g_print(_("AI Player killed. Terminating normally.\n")); return 1; } break; case C_DRUGHERE: AIDealDrugs(AIPlay); AIJet(AIPlay); break; case C_GUNSHOP: AIGunShop(AIPlay); break; case C_LOANSHARK: AIPayLoan(AIPlay); break; case C_QUESTION: AIHandleQuestion(Data, AI, AIPlay, From); break; case C_HISCORE: case C_STARTHISCORE: break; case C_ENDHISCORE: g_print(_("Game time is up. Leaving game.\n")); return 1; case C_PUSH: g_print(_("AI Player pushed from the server.\n")); return 1; case C_QUIT: g_print(_("The server has terminated.\n")); return 1; default: if (!Handled) g_message("%s^%c^%s%s\n", GetPlayerName(From), Code, GetPlayerName(AIPlay), Data); break; } return 0; } /* * Prints a message received via a printmessage or question * network message, stored in "Text". */ void PrintAIMessage(char *Text) { unsigned i; gboolean SomeText = FALSE; for (i = 0; i < strlen(Text); i++) { if (Text[i] == '^') { if (SomeText) putchar('\n'); } else { putchar(Text[i]); SomeText = TRUE; } } putchar('\n'); } /* * Buys and sell drugs for AI player "AIPlay". */ void AIDealDrugs(Player *AIPlay) { price_t *Profit, MaxProfit; gchar *text; int i, LastHighest, Highest, Num, MinProfit; Profit = g_new(price_t, NumDrug); for (i = 0; i < NumDrug; i++) { Profit[i] = AIPlay->Drugs[i].Price - (Drug[i].MaxPrice + Drug[i].MinPrice) / 2; } MinProfit = 0; for (i = 0; i < NumDrug; i++) if (Profit[i] < MinProfit) MinProfit = Profit[i]; MinProfit--; for (i = 0; i < NumDrug; i++) if (Profit[i] < 0) Profit[i] = MinProfit - Profit[i]; LastHighest = -1; do { MaxProfit = MinProfit; Highest = -1; for (i = 0; i < NumDrug; i++) { if (Profit[i] > MaxProfit && i != LastHighest && (LastHighest == -1 || Profit[LastHighest] > Profit[i])) { Highest = i; MaxProfit = Profit[i]; } } LastHighest = Highest; if (Highest >= 0) { Num = AIPlay->Drugs[Highest].Carried; if (MaxProfit > 0 && Num > 0) { dpg_print(_("Selling %d %tde at %P\n"), Num, Drug[Highest].Name, AIPlay->Drugs[Highest].Price); AIPlay->CoatSize += Num; AIPlay->Cash += Num * AIPlay->Drugs[Highest].Price; text = g_strdup_printf("drug^%d^%d", Highest, -Num); SendClientMessage(AIPlay, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } if (AIPlay->Drugs[Highest].Price != 0 && AIPlay->CoatSize > SPACERESERVE) { Num = AIPlay->Cash / AIPlay->Drugs[Highest].Price; if (Num > AIPlay->CoatSize - SPACERESERVE) { Num = AIPlay->CoatSize - SPACERESERVE; } if (MaxProfit < 0 && Num > 0) { dpg_print(_("Buying %d %tde at %P\n"), Num, Drug[Highest].Name, AIPlay->Drugs[Highest].Price); text = g_strdup_printf("drug^%d^%d", Highest, Num); AIPlay->CoatSize -= Num; AIPlay->Cash -= Num * AIPlay->Drugs[Highest].Price; SendClientMessage(AIPlay, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } } } while (Highest >= 0); g_free(Profit); } /* * Handles a visit to the gun shop by AI player "AIPlay". */ void AIGunShop(Player *AIPlay) { int i; int Bought; gchar *text; do { Bought = 0; for (i = 0; i < NumGun; i++) { if (TotalGunsCarried(AIPlay) < AIPlay->Bitches.Carried + 2 && Gun[i].Space <= AIPlay->CoatSize && Gun[i].Price <= AIPlay->Cash - MINSAFECASH) { AIPlay->Cash -= Gun[i].Price; AIPlay->CoatSize -= Gun[i].Space; AIPlay->Guns[i].Carried++; Bought++; dpg_print(_("Buying a %tde for %P at the gun shop\n"), Gun[i].Name, Gun[i].Price); text = g_strdup_printf("gun^%d^1", i); SendClientMessage(AIPlay, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } } while (Bought); SendClientMessage(AIPlay, C_NONE, C_DONE, NULL, NULL); } /* * Decides on a new game location for AI player "AIPlay" and jets there. */ void AIJet(Player *AIPlay) { int NewLocation; char text[40]; if (!AIPlay) return; NewLocation = AIPlay->IsAt; if (RealLoanShark >= 0 && AIPlay->Cash > (price_t)((float)AIPlay->Debt * 1.2)) { NewLocation = RealLoanShark; } else if (RealPub >= 0 && brandom(0, 100) < 30 && AIPlay->Cash > MINSAFECASH * 10) { NewLocation = RealPub; } else if (RealGunShop >= 0 && brandom(0, 100) < 70 && TotalGunsCarried(AIPlay) < AIPlay->Bitches.Carried + 2 && AIPlay->Cash > MINSAFECASH * 5) { NewLocation = RealGunShop; } while (NewLocation == AIPlay->IsAt) NewLocation = brandom(0, NumLocation); sprintf(text, "%d", NewLocation); SendClientMessage(AIPlay, C_NONE, C_REQUESTJET, NULL, text); } /* * Pays off the loan of AI player "AIPlay" if this doesn't leave * the player with insufficient funds for further dealing. */ void AIPayLoan(Player *AIPlay) { gchar *prstr; if (AIPlay->Cash - AIPlay->Debt >= MINSAFECASH) { prstr = pricetostr(AIPlay->Debt); SendClientMessage(AIPlay, C_NONE, C_PAYLOAN, NULL, prstr); g_free(prstr); dpg_print(_("Debt of %P paid off to loan shark\n"), AIPlay->Debt); } SendClientMessage(AIPlay, C_NONE, C_DONE, NULL, NULL); } /* * Sends the answer "answer" from AI player "From" to the server, * claiming to be for player "To". Also prints the answer on the screen. */ void AISendAnswer(Player *From, Player *To, char *answer) { SendClientMessage(From, C_NONE, C_ANSWER, To, answer); puts(answer); } /* * Works out a sensible response to the question coded in "Data" and with * computer-readable code "AI", claiming to be from "From" and for AI * player "AIPlay", and sends it. */ void AIHandleQuestion(char *Data, AICode AI, Player *AIPlay, Player *From) { char *Prompt; if (From == &Noone) From = NULL; Prompt = Data; GetNextWord(&Prompt, ""); PrintAIMessage(Prompt); switch (AI) { case C_ASKLOAN: if (RealLoanShark == -1) { g_print(_("Loan shark located at %s\n"), Location[AIPlay->IsAt].Name); } RealLoanShark = AIPlay->IsAt; AISendAnswer(AIPlay, From, "Y"); break; case C_ASKGUNSHOP: if (RealGunShop == -1) { g_print(_("Gun shop located at %s\n"), Location[AIPlay->IsAt].Name); } RealGunShop = AIPlay->IsAt; AISendAnswer(AIPlay, From, "Y"); break; case C_ASKPUB: if (RealPub == -1) { g_print(_("Pub located at %s\n"), Location[AIPlay->IsAt].Name); } RealPub = AIPlay->IsAt; AISendAnswer(AIPlay, From, "Y"); break; case C_ASKBITCH: case C_ASKRUN: case C_ASKGUN: AISendAnswer(AIPlay, From, "Y"); break; case C_ASKRUNFIGHT: AISendAnswer(AIPlay, From, ShouldRun(AIPlay) ? "R" : "F"); break; case C_ASKBANK: if (RealBank == -1) { g_print(_("Bank located at %s\n"), Location[AIPlay->IsAt].Name); } RealBank = AIPlay->IsAt; AISendAnswer(AIPlay, From, "N"); break; case C_MEETPLAYER: if (TotalGunsCarried(AIPlay) > 0) AISendAnswer(AIPlay, From, "A"); else { AISendAnswer(AIPlay, From, "E"); AIJet(AIPlay); } break; case C_ASKSEW: AISendAnswer(AIPlay, From, AIPlay->Health < MINSAFEHEALTH ? "Y" : "N"); break; default: AISendAnswer(AIPlay, From, "N"); break; } } /* * Sends a random message to all other dopewars players. */ void AISendRandomMessage(Player *AIPlay) { char *RandomInsult[5] = { /* Random messages to send from the AI player to other players */ N_("Call yourselves drug dealers?"), N_("A trained monkey could do better..."), N_("Think you\'re hard enough to deal with the likes of me?"), N_("Zzzzz... are you dealing in candy or what?"), N_("Reckon I'll just have to shoot you for your own good.") }; SendClientMessage(AIPlay, C_NONE, C_MSG, NULL, _(RandomInsult[brandom(0, 5)])); } #else /* NETWORKING */ /* * Whoops - the user asked that we run an AI player, but the binary was * built without that compiled in. */ void AIPlayerLoop(struct CMDLINE *cmdline) { g_print(_("This binary has been compiled without networking support, " "and thus cannot act as an AI player.\nRecompile passing " "--enable-networking to the configure script.")); } #endif /* NETWORKING */ dopewars-1.6.2/src/gui_client/000755 000765 000024 00000000000 14256243622 016172 5ustar00benstaff000000 000000 dopewars-1.6.2/src/configfile.c000644 000765 000024 00000016766 14256000066 016332 0ustar00benstaff000000 000000 /************************************************************************ * configfile.c Functions for dealing with dopewars config files * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For memcmp etc. */ #include /* For fgetc etc. */ #include /* For atoi */ #include /* For errno */ #include /* For isprint */ #include #include "configfile.h" #include "convert.h" /* For Converter */ #include "dopewars.h" /* For struct GLOBALS etc. */ #include "nls.h" /* For _ function */ #include "error.h" /* For ErrStrFromErrno */ gchar *LocalCfgEncoding = NULL; /* * Prints the given string to a file, converting control characters * and escaping other special characters. */ static void PrintEscaped(FILE *fp, gchar *str) { guint i; for (i = 0; i < strlen(str); i++) { int ch = (int)(guchar)str[i]; switch(ch) { case '"': case '\'': case '\\': fputc('\\', fp); fputc(ch, fp); break; case '\n': fputs("\\n", fp); break; case '\t': fputs("\\t", fp); break; case '\r': fputs("\\r", fp); break; case '\b': fputs("\\b", fp); break; case '\f': fputs("\\f", fp); break; default: if (isascii(ch) && isprint(ch)) { fputc(ch, fp); } else { fprintf(fp, "\\%o", ch); } } } } /* * Writes a single configuration file variable (identified by GlobalIndex * and StructIndex) to the specified file, in a format suitable for reading * back in (via. ParseNextConfig and friends). */ static void WriteConfigValue(FILE *fp, Converter *conv, int GlobalIndex, int StructIndex) { gchar *GlobalName; if (Globals[GlobalIndex].NameStruct[0]) { GlobalName = g_strdup_printf("%s[%d].%s", Globals[GlobalIndex].NameStruct, StructIndex, Globals[GlobalIndex].Name); } else { GlobalName = Globals[GlobalIndex].Name; } if (Globals[GlobalIndex].IntVal) { fprintf(fp, "%s = %d\n", GlobalName, *GetGlobalInt(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].BoolVal) { fprintf(fp, "%s = %s\n", GlobalName, *GetGlobalBoolean(GlobalIndex, StructIndex) ? "TRUE" : "FALSE"); } else if (Globals[GlobalIndex].PriceVal) { gchar *prstr = pricetostr(*GetGlobalPrice(GlobalIndex, StructIndex)); fprintf(fp, "%s = %s\n", GlobalName, prstr); g_free(prstr); } else if (Globals[GlobalIndex].StringVal) { gchar *convstr; fprintf(fp, "%s = \"", GlobalName); convstr = Conv_ToExternal(conv, *GetGlobalString(GlobalIndex, StructIndex), -1); PrintEscaped(fp, convstr); g_free(convstr); fputs("\"\n", fp); } else if (Globals[GlobalIndex].StringList) { int i; gchar *convstr; fprintf(fp, "%s = { ", GlobalName); for (i = 0; i < *Globals[GlobalIndex].MaxIndex; i++) { if (i > 0) fputs(", ", fp); fputc('"', fp); convstr = Conv_ToExternal(conv, (*Globals[GlobalIndex].StringList)[i], -1); PrintEscaped(fp, convstr); g_free(convstr); fputc('"', fp); } fputs(" }\n", fp); } if (Globals[GlobalIndex].NameStruct[0]) g_free(GlobalName); } static void ReadFileToString(FILE *fp, gchar *str, int matchlen) { int len, mpos, ch; gchar *match; GString *file; file = g_string_new(""); len = strlen(str); if (matchlen > 0) { len = MIN(len, matchlen); } match = g_new(gchar, len); mpos = 0; while (mpos < len && (ch = fgetc(fp)) != EOF) { g_string_append_c(file, ch); match[mpos++] = ch; if (ch != str[mpos - 1]) { int start; gboolean shortmatch = FALSE; for (start = 1; start < mpos; start++) { if (memcmp(str, &match[start], mpos - start) == 0) { mpos -= start; memmove(match, &match[start], mpos); shortmatch = TRUE; break; } } if (!shortmatch) mpos = 0; } } g_string_truncate(file, file->len - mpos); g_free(match); rewind(fp); ftruncate(fileno(fp), 0); fputs(file->str, fp); fputs(str, fp); g_string_free(file, TRUE); } /* * Writes all of the configuration file variables that have changed * (together with their values) to the given file. */ static void WriteConfigFile(FILE *fp, gboolean ForceUTF8) { int i, j; Converter *conv = Conv_New(); if (ForceUTF8 && !IsConfigFileUTF8()) { g_free(LocalCfgEncoding); LocalCfgEncoding = g_strdup("UTF-8"); fputs("encoding \"UTF-8\"\n", fp); } if (LocalCfgEncoding && LocalCfgEncoding[0]) { Conv_SetCodeset(conv, LocalCfgEncoding); } for (i = 0; i < NUMGLOB; i++) { if (Globals[i].Modified) { if (Globals[i].NameStruct[0]) { for (j = 1; j <= *Globals[i].MaxIndex; j++) { WriteConfigValue(fp, conv, i, j); } } else { WriteConfigValue(fp, conv, i, 0); } } } Conv_Free(conv); } gboolean UpdateConfigFile(const gchar *cfgfile, gboolean ForceUTF8) { FILE *fp; gchar *defaultfile; static gchar *header = "\n### Everything from here on is written automatically by\n" "### the dopewars program; you can edit it manually, but any\n" "### formatting (comments, etc.) will be lost at the next rewrite.\n\n"; defaultfile = GetLocalConfigFile(); if (!cfgfile || !cfgfile[0]) { cfgfile = defaultfile; if (!cfgfile) { g_warning(_("Could not determine local config file to write to")); return FALSE; } } fp = fopen(cfgfile, "r+"); if (!fp) { fp = fopen(cfgfile, "w+"); } if (!fp) { gchar *errstr = ErrStrFromErrno(errno); g_warning(_("Could not open file %s: %s"), cfgfile, errstr); g_free(errstr); g_free(defaultfile); return FALSE; } ReadFileToString(fp, header, 50); WriteConfigFile(fp, ForceUTF8); fclose(fp); g_free(defaultfile); return TRUE; } gboolean IsConfigFileUTF8(void) { return (LocalCfgEncoding && strcmp(LocalCfgEncoding, "UTF-8") == 0); } dopewars-1.6.2/src/cursesport/000755 000765 000024 00000000000 14256243622 016261 5ustar00benstaff000000 000000 dopewars-1.6.2/src/dopewars-weed.png000755 000765 000024 00000000710 14256000066 017316 0ustar00benstaff000000 000000 PNG  IHDR/0qgAMA a PLTE`tRNS@fbKGDH pHYsktIME01ʖ%IDATxu `"WyBwz] $,SvYԏo3>pg<8ukH9Y3XY:/DPfA`'`g x=vŪȤQ;Zv#=Tnϑϕ2!X)[A)żAm Cl @phbF9 FhȢZNvdI/ @0B)՞/s͌[o'm{{=K(fvZt*Wn=l̅Q[09-0IB~ݵ8k|3KIENDB`dopewars-1.6.2/src/convert.h000644 000765 000024 00000004142 14256000066 015673 0ustar00benstaff000000 000000 /************************************************************************ * convert.h Header file for codeset conversion functions * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_CONVERT_H__ #define __DP_CONVERT_H__ #ifdef HAVE_CONFIG_H # include #endif #include typedef struct _Converter Converter; struct _Converter { gchar *ext_codeset; }; void Conv_SetInternalCodeset(const gchar *codeset); Converter *Conv_New(void); void Conv_SetCodeset(Converter *conv, const gchar *codeset); gboolean Conv_Needed(Converter *conv); gchar *Conv_ToExternal(Converter *conv, const gchar *int_str, int len); gchar *Conv_ToInternal(Converter *conv, const gchar *ext_str, int len); void Conv_Free(Converter *conv); #endif /* __DP_CONVERT_H__ */ dopewars-1.6.2/src/nls.h000644 000765 000024 00000004040 14256242752 015016 0ustar00benstaff000000 000000 /************************************************************************ * nls.h Header file for NLS (internationalization) defines * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_NLS_H__ #define __DP_NLS_H__ #ifdef HAVE_CONFIG_H # include #endif #ifdef ENABLE_NLS # include # include # define _(String) gettext (String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define gettext(String) (String) # define dgettext(Domain,Message) (Message) # define dcgettext(Domain,Message,Type) (Message) # define _(String) (String) # define N_(String) (String) #endif #endif /* __DP_NLS_H__ */ dopewars-1.6.2/src/serverside.h000644 000765 000024 00000006736 14256242752 016413 0ustar00benstaff000000 000000 /************************************************************************ * serverside.h Server-side parts of dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_SERVERSIDE_H__ #define __DP_SERVERSIDE_H__ #ifdef HAVE_CONFIG_H #include #endif #include "dopewars.h" extern GSList *FirstServer; extern char *PidFile; void CleanUpServer(void); void BreakHandle(int sig); void ClientLeftServer(Player *Play); void StopServer(void); Player *HandleNewConnection(void); void ServerLoop(struct CMDLINE *cmdline); void HandleServerPlayer(Player *Play); void HandleServerMessage(gchar *buf, Player *ReallyFrom); void FinishGame(Player *Play, char *Message); void SendHighScores(Player *Play, gboolean EndGame, char *Message); void SendEvent(Player *To); void SendDrugsHere(Player *To, gboolean DisplayBusts); void BuyObject(Player *From, char *data); int RandomOffer(Player *To); void HandleAnswer(Player *From, Player *To, char *answer); void ClearPrices(Player *Play); int LoseBitch(Player *Play, Inventory *Guns, Inventory *Drugs); void GainBitch(Player *Play); void SetFightTimeout(Player *Play); void ClearFightTimeout(Player *Play); long GetMinimumTimeout(GSList *First); GSList *HandleTimeouts(GSList *First); void ConvertHighScoreFile(const gchar *convertfile); void OpenHighScoreFile(void); gboolean CheckHighScoreFileConfig(void); void CloseHighScoreFile(void); gboolean HighScoreRead(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore, gboolean ReadHeader); void CopsAttackPlayer(Player *Play); void AttackPlayer(Player *Play, Player *Attacked); gboolean IsOpponent(Player *Play, Player *Other); void Fire(Player *Play); void WithdrawFromCombat(Player *Play); void RunFromCombat(Player *Play, int ToLocation); gboolean CanPlayerFire(Player *Play); gboolean CanRunHere(Player *Play); Player *GetNextShooter(Player *Play); void DropPrivileges(void); #ifdef GUI_SERVER void GuiServerLoop(struct CMDLINE *cmdline, gboolean is_service); #ifdef CYGWIN void ServiceMain(struct CMDLINE *cmdline); #endif #endif #ifndef CYGWIN gchar *GetLocalSocket(void); #endif #endif /* __DP_SERVERSIDE_H__ */ dopewars-1.6.2/src/Makefile.in000644 000765 000024 00000102313 14256243572 016121 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ bin_PROGRAMS = dopewars$(EXEEXT) @APPLE_TRUE@am__append_1 = mac_helpers.m subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__dopewars_SOURCES_DIST = admin.c admin.h AIPlayer.c AIPlayer.h \ util.c util.h configfile.c configfile.h convert.c convert.h \ dopewars.c dopewars.h error.c error.h log.c log.h message.c \ message.h network.c network.h nls.h serverside.c serverside.h \ sound.c sound.h tstring.c tstring.h winmain.c winmain.h \ mac_helpers.h mac_helpers.m @APPLE_TRUE@am__objects_1 = mac_helpers.$(OBJEXT) am_dopewars_OBJECTS = admin.$(OBJEXT) AIPlayer.$(OBJEXT) \ util.$(OBJEXT) configfile.$(OBJEXT) convert.$(OBJEXT) \ dopewars.$(OBJEXT) error.$(OBJEXT) log.$(OBJEXT) \ message.$(OBJEXT) network.$(OBJEXT) serverside.$(OBJEXT) \ sound.$(OBJEXT) tstring.$(OBJEXT) winmain.$(OBJEXT) \ $(am__objects_1) dopewars_OBJECTS = $(am_dopewars_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/auxbuild/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/AIPlayer.Po ./$(DEPDIR)/admin.Po \ ./$(DEPDIR)/configfile.Po ./$(DEPDIR)/convert.Po \ ./$(DEPDIR)/dopewars.Po ./$(DEPDIR)/error.Po \ ./$(DEPDIR)/log.Po ./$(DEPDIR)/mac_helpers.Po \ ./$(DEPDIR)/message.Po ./$(DEPDIR)/network.Po \ ./$(DEPDIR)/serverside.Po ./$(DEPDIR)/sound.Po \ ./$(DEPDIR)/tstring.Po ./$(DEPDIR)/util.Po \ ./$(DEPDIR)/winmain.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = OBJCCOMPILE = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) LTOBJCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_OBJCFLAGS) $(OBJCFLAGS) AM_V_OBJC = $(am__v_OBJC_@AM_V@) am__v_OBJC_ = $(am__v_OBJC_@AM_DEFAULT_V@) am__v_OBJC_0 = @echo " OBJC " $@; am__v_OBJC_1 = OBJCLD = $(OBJC) AM_V_OBJCLD = $(am__v_OBJCLD_@AM_V@) am__v_OBJCLD_ = $(am__v_OBJCLD_@AM_DEFAULT_V@) am__v_OBJCLD_0 = @echo " OBJCLD " $@; am__v_OBJCLD_1 = SOURCES = $(dopewars_SOURCES) DIST_SOURCES = $(am__dopewars_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = gui_client curses_client gtkport cursesport plugins am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/auxbuild/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @PLUGINS_FALSE@MYLINK = $(CCLD) # Nasty hack; there seems to be no other way of disabling libtool for the # link of the main executable... @PLUGINS_TRUE@MYLINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) @GUI_CLIENT_TRUE@GUISUBDIR = gui_client @CURSES_CLIENT_TRUE@CURSESSUBDIR = curses_client @GTKPORT_TRUE@GTKPORTSUBDIR = gtkport @CURSESPORT_TRUE@CURSESPORTSUBDIR = cursesport SUBDIRS = $(GUISUBDIR) $(CURSESSUBDIR) $(GTKPORTSUBDIR) $(CURSESPORTSUBDIR) plugins dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GTK_LIBS@ @LTLIBINTL@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@ @GLIB_LIBS@ @LIBCURL@ dopewars_DEPENDENCIES = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @WNDRES@ @PLUGOBJS@ dopewars_SOURCES = admin.c admin.h AIPlayer.c AIPlayer.h util.c util.h \ configfile.c configfile.h convert.c convert.h dopewars.c \ dopewars.h error.c error.h log.c log.h message.c message.h \ network.c network.h nls.h serverside.c serverside.h sound.c \ sound.h tstring.c tstring.h winmain.c winmain.h mac_helpers.h \ $(am__append_1) AM_CPPFLAGS = -I${srcdir} @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBCURL_CPPFLAGS@ @APPLE_FALSE@MACLDFLAGS = @APPLE_TRUE@MACLDFLAGS = -framework AppKit # Since we included (even optionally) an Objective C file, automake will # use OBJC rather than CC to link LINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(MACLDFLAGS) -o $@ OBJCLINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) $(MACLDFLAGS) -o $@ PIXDIR = ${DESTDIR}${datadir}/pixmaps DOPEDIR = ${DESTDIR}${bindir} DOPEBIN = ${DOPEDIR}/dopewars PIXMAPS = dopewars-pill.png dopewars-shot.png dopewars-weed.png EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest CLEANFILES = dopewars.res dopewars.exe all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .m .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status src/config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list dopewars$(EXEEXT): $(dopewars_OBJECTS) $(dopewars_DEPENDENCIES) $(EXTRA_dopewars_DEPENDENCIES) @rm -f dopewars$(EXEEXT) $(AM_V_OBJCLD)$(OBJCLINK) $(dopewars_OBJECTS) $(dopewars_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AIPlayer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/admin.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dopewars.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mac_helpers.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/message.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/serverside.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tstring.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/winmain.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< .m.o: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ $< .m.obj: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .m.lo: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(LTOBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(LTOBJCCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # 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. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ 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; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f ./$(DEPDIR)/AIPlayer.Po -rm -f ./$(DEPDIR)/admin.Po -rm -f ./$(DEPDIR)/configfile.Po -rm -f ./$(DEPDIR)/convert.Po -rm -f ./$(DEPDIR)/dopewars.Po -rm -f ./$(DEPDIR)/error.Po -rm -f ./$(DEPDIR)/log.Po -rm -f ./$(DEPDIR)/mac_helpers.Po -rm -f ./$(DEPDIR)/message.Po -rm -f ./$(DEPDIR)/network.Po -rm -f ./$(DEPDIR)/serverside.Po -rm -f ./$(DEPDIR)/sound.Po -rm -f ./$(DEPDIR)/tstring.Po -rm -f ./$(DEPDIR)/util.Po -rm -f ./$(DEPDIR)/winmain.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-data-local install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f ./$(DEPDIR)/AIPlayer.Po -rm -f ./$(DEPDIR)/admin.Po -rm -f ./$(DEPDIR)/configfile.Po -rm -f ./$(DEPDIR)/convert.Po -rm -f ./$(DEPDIR)/dopewars.Po -rm -f ./$(DEPDIR)/error.Po -rm -f ./$(DEPDIR)/log.Po -rm -f ./$(DEPDIR)/mac_helpers.Po -rm -f ./$(DEPDIR)/message.Po -rm -f ./$(DEPDIR)/network.Po -rm -f ./$(DEPDIR)/serverside.Po -rm -f ./$(DEPDIR)/sound.Po -rm -f ./$(DEPDIR)/tstring.Po -rm -f ./$(DEPDIR)/util.Po -rm -f ./$(DEPDIR)/winmain.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-local .MAKE: $(am__recursive_targets) all install-am install-exec-am \ install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-hdr \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-exec-hook \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-local .PRECIOUS: Makefile install-exec-hook: @chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \ ( echo "WARNING: Cannot change group of dopewars binary - the high"; \ echo "score file may be unreadable or unwriteable by some users" ) chmod 2755 ${DOPEBIN} install-data-local: ${mkinstalldirs} ${PIXDIR} for pix in ${PIXMAPS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${pix} ${PIXDIR}; \ done uninstall-local: for pix in ${PIXMAPS}; do \ /bin/rm -f ${PIXDIR}/$${pix}; \ done %.res: %.rc ${WINDRES} -O coff -o $@ $< # 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: dopewars-1.6.2/src/gtkport/000755 000765 000024 00000000000 14256243622 015542 5ustar00benstaff000000 000000 dopewars-1.6.2/src/dopewars.c000644 000765 000024 00000305001 14256242752 016042 0ustar00benstaff000000 000000 /************************************************************************ * dopewars.c dopewars - general purpose routines and init * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #define _GNU_SOURCE #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_GETOPT_LONG #include #endif #include #include #include #include #include "configfile.h" #include "convert.h" #include "dopewars.h" #include "admin.h" #include "log.h" #include "message.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" #include "AIPlayer.h" #include "util.h" #include "winmain.h" #ifdef CURSES_CLIENT #include "curses_client/curses_client.h" #endif #ifdef GUI_CLIENT #include "gui_client/gtk_client.h" #endif #ifdef GUI_SERVER #include "gtkport/gtkport.h" #endif int ClientSock, ListenSock; gboolean Network, Client, Server, WantAntique = FALSE, UseSounds = TRUE; /* * dopewars acting as standalone TCP server: * Network=Server=TRUE Client=FALSE * dopewars acting as client, connecting to standalone server: * Network=Client=TRUE Server=FALSE * dopewars in single-player or antique mode: * Network=Server=Client=FALSE */ int Port = 7902; gboolean Sanitized, ConfigVerbose, DrugValue, Antique = FALSE; gchar *HiScoreFile = NULL, *ServerName = NULL; gchar *ServerMOTD = NULL, *BindAddress = NULL, *PlayerName = NULL; struct DATE StartDate = { 1, 12, 1984 }; #ifdef CYGWIN gboolean MinToSysTray = TRUE; #else gboolean Daemonize = TRUE; #endif #ifdef CYGWIN #define SNDPATH "sounds\\19.5degs\\" #else #define SNDPATH DPDATADIR"/dopewars/" #endif gchar *OurWebBrowser = NULL; gint ConfigErrors = 0; gboolean LocaleIsUTF8 = FALSE; int NumLocation = 0, NumGun = 0, NumCop = 0, NumDrug = 0, NumSubway = 0; int NumPlaying = 0, NumStoppedTo = 0; int DebtInterest = 10, BankInterest = 5; Player Noone; int LoanSharkLoc, BankLoc, GunShopLoc, RoughPubLoc; int DrugSortMethod = DS_ATOZ; int FightTimeout = 5, IdleTimeout = 14400, ConnectTimeout = 300; int MaxClients = 20, AITurnPause = 5; price_t StartCash = 2000, StartDebt = 5500; GSList *ServerList = NULL; GScannerConfig ScannerConfig = { " \t\n", /* Ignore these characters */ /* Valid characters for starting an identifier */ G_CSET_a_2_z "_" G_CSET_A_2_Z, /* Valid characters for continuing an identifier */ G_CSET_a_2_z "._-0123456789" G_CSET_A_2_Z, "#\n", /* Single line comments start with # and * end with \n */ FALSE, /* Are symbols case sensitive? */ TRUE, /* Ignore C-style comments? */ TRUE, /* Ignore single-line comments? */ TRUE, /* Treat C-style comments as single tokens * - do not break into words? */ TRUE, /* Read identifiers as tokens? */ TRUE, /* Read single-character identifiers as * 1-character strings? */ TRUE, /* Allow the parsing of NULL as the * G_TOKEN_IDENTIFIER_NULL ? */ FALSE, /* Allow symbols (defined by * g_scanner_scope_add_symbol) ? */ TRUE, /* Allow binary numbers in 0b1110 format ? */ TRUE, /* Allow octal numbers in C-style e.g. 034 ? */ FALSE, /* Allow floats? */ TRUE, /* Allow hex numbers in C-style e.g. 0xFF ? */ TRUE, /* Allow hex numbers in $FF format ? */ TRUE, /* Allow '' strings (no escaping) ? */ TRUE, /* Allow "" strings (\ escapes parsed) ? */ TRUE, /* Convert octal, binary and hex to int? */ FALSE, /* Convert ints to floats? */ FALSE, /* Treat all identifiers as strings? */ TRUE, /* Leave single characters (e.g. {,=) * unchanged, instead of returning * G_TOKEN_CHAR ? */ FALSE, /* Replace read symbols with the token * given by their value, instead of * G_TOKEN_SYMBOL ? */ FALSE /* scope_0_fallback... */ }; struct LOCATION StaticLocation, *Location = NULL; struct DRUG StaticDrug, *Drug = NULL; struct GUN StaticGun, *Gun = NULL; struct COP StaticCop, *Cop = NULL; struct NAMES Names = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; struct SOUNDS Sounds = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; /* N.B. The slightly over-enthusiastic comments here are for the benefit * of translators ;) */ struct NAMES DefaultNames = { /* Name of a single bitch - if you need to use different words for "bitch" depending on where in the sentence it occurs (e.g. subject or object) then read doc/i18n.html about the %tde (etc.) notation. N.B. This notation can be used for most of the translatable strings in dopewars. */ N_("bitch"), /* Word used for two or more bitches */ N_("bitches"), /* Word used for a single gun */ N_("gun"), /* Word used for two or more guns */ N_("guns"), /* Word used for a single drug */ N_("drug"), /* Word used for two or more drugs */ N_("drugs"), /* String for displaying the game date or turn number. This is passed to the strftime() function, with the exception that %T is used to mean the turn number rather than the calendar date. */ N_("%m-%d-%Y"), /* Names of the loan shark, the bank, the gun shop, and the pub, respectively */ N_("the Loan Shark"), N_("the Bank"), N_("Dan\'s House of Guns"), N_("the pub") }; struct CURRENCY Currency = { NULL, TRUE }; struct PRICES Prices = { 20000, 10000 }; struct BITCH Bitch = { 50000, 150000 }; #ifdef NETWORKING struct METASERVER MetaServer = { FALSE, NULL, NULL, NULL, NULL }; struct METASERVER DefaultMetaServer = { TRUE, "https://dopewars.sourceforge.io/metaserver.php", "", "", "dopewars server" }; SocksServer Socks = { NULL, 0, 0, FALSE, NULL, NULL, NULL }; gboolean UseSocks; #endif int NumTurns = 31; int PlayerArmor = 100, BitchArmor = 50; struct LOG Log; struct GLOBALS Globals[] = { /* The following strings are the helptexts for all the options that can be set in a dopewars configuration file, or in the server. See doc/configfile.html for more detailed explanations. */ {&Port, NULL, NULL, NULL, NULL, "Port", N_("Network port to connect to"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 65535}, {NULL, NULL, NULL, &HiScoreFile, NULL, "HiScoreFile", N_("Name of the high score file"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &ServerName, NULL, "Server", N_("Name of the server to connect to"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &ServerMOTD, NULL, "ServerMOTD", N_("Server's welcome message of the day"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &BindAddress, NULL, "BindAddress", N_("Network address for the server to listen on"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #ifdef NETWORKING {NULL, &UseSocks, NULL, NULL, NULL, "Socks.Active", N_("TRUE if a SOCKS server should be used for networking"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #ifndef CYGWIN {NULL, &Socks.numuid, NULL, NULL, NULL, "Socks.NumUID", N_("TRUE if numeric user IDs should be used for SOCKS4"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #endif {NULL, NULL, NULL, &Socks.user, NULL, "Socks.User", N_("If not blank, the username to use for SOCKS4"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Socks.name, NULL, "Socks.Name", N_("The hostname of a SOCKS server to use"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&Socks.port, NULL, NULL, NULL, NULL, "Socks.Port", N_("The port number of a SOCKS server to use"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 65535}, {&Socks.version, NULL, NULL, NULL, NULL, "Socks.Version", N_("The version of the SOCKS protocol to use (4 or 5)"), NULL, NULL, 0, "", NULL, NULL, FALSE, 4, 5}, {NULL, NULL, NULL, &Socks.authuser, NULL, "Socks.Auth.User", N_("Username for SOCKS5 authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Socks.authpassword, NULL, "Socks.Auth.Password", N_("Password for SOCKS5 authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &MetaServer.Active, NULL, NULL, NULL, "MetaServer.Active", N_("TRUE if server should report to a metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.URL, NULL, "MetaServer.URL", N_("Metaserver URL to report/get server details to/from"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.LocalName, NULL, "MetaServer.LocalName", N_("Preferred hostname of your server machine"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.Password, NULL, "MetaServer.Password", N_("Authentication for LocalName with the metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.Comment, NULL, "MetaServer.Comment", N_("Server description, reported to the metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #endif /* NETWORKING */ #ifdef CYGWIN {NULL, &MinToSysTray, NULL, NULL, NULL, "MinToSysTray", N_("If TRUE, the server minimizes to the System Tray"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #else {NULL, &Daemonize, NULL, NULL, NULL, "Daemonize", N_("If TRUE, the server runs in the background"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &OurWebBrowser, NULL, "WebBrowser", N_("The command used to start your web browser"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #endif {&NumTurns, NULL, NULL, NULL, NULL, "NumTurns", N_("No. of game turns (if 0, game never ends)"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&StartDate.day, NULL, NULL, NULL, NULL, "StartDate.Day", N_("Day of the month on which the game starts"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 31}, {&StartDate.month, NULL, NULL, NULL, NULL, "StartDate.Month", N_("Month in which the game starts"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 12}, {&StartDate.year, NULL, NULL, NULL, NULL, "StartDate.Year", N_("Year in which the game starts"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &Currency.Symbol, NULL, "Currency.Symbol", N_("The currency symbol (e.g. $)"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &Currency.Prefix, NULL, NULL, NULL, "Currency.Prefix", N_("If TRUE, the currency symbol precedes prices"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Log.File, NULL, "Log.File", N_("File to write log messages to"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&Log.Level, NULL, NULL, NULL, NULL, "Log.Level", N_("Controls the number of log messages produced"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 5}, {NULL, NULL, NULL, &Log.Timestamp, NULL, "Log.Timestamp", N_("strftime() format string for log timestamps"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &Sanitized, NULL, NULL, NULL, "Sanitized", N_("Random events are sanitized"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &DrugValue, NULL, NULL, NULL, "DrugValue", N_("TRUE if the value of bought drugs should be saved"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &ConfigVerbose, NULL, NULL, NULL, "ConfigVerbose", N_("Be verbose in processing config file"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&NumLocation, NULL, NULL, NULL, NULL, "NumLocation", N_("Number of locations in the game"), (void **)(&Location), NULL, sizeof(struct LOCATION), "", NULL, ResizeLocations, FALSE, 1, -1}, {&NumCop, NULL, NULL, NULL, NULL, "NumCop", N_("Number of types of cop in the game"), (void **)(&Cop), NULL, sizeof(struct COP), "", NULL, ResizeCops, FALSE, 0, -1}, {&NumGun, NULL, NULL, NULL, NULL, "NumGun", N_("Number of guns in the game"), (void **)(&Gun), NULL, sizeof(struct GUN), "", NULL, ResizeGuns, FALSE, 0, -1}, {&NumDrug, NULL, NULL, NULL, NULL, "NumDrug", N_("Number of drugs in the game"), (void **)(&Drug), NULL, sizeof(struct DRUG), "", NULL, ResizeDrugs, FALSE, 1, -1}, {&LoanSharkLoc, NULL, NULL, NULL, NULL, "LoanShark", N_("Location of the Loan Shark"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&BankLoc, NULL, NULL, NULL, NULL, "Bank", N_("Location of the bank"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&GunShopLoc, NULL, NULL, NULL, NULL, "GunShop", N_("Location of the gun shop"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&RoughPubLoc, NULL, NULL, NULL, NULL, "RoughPub", N_("Location of the pub"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&DebtInterest, NULL, NULL, NULL, NULL, "DebtInterest", N_("Daily interest rate on the loan shark debt"), NULL, NULL, 0, "", NULL, NULL, FALSE, -100, -200}, {&BankInterest, NULL, NULL, NULL, NULL, "BankInterest", N_("Daily interest rate on your bank balance"), NULL, NULL, 0, "", NULL, NULL, FALSE, -100, -200}, {NULL, NULL, NULL, &Names.LoanSharkName, NULL, "LoanSharkName", N_("Name of the loan shark"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.BankName, NULL, "BankName", N_("Name of the bank"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.GunShopName, NULL, "GunShopName", N_("Name of the gun shop"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.RoughPubName, NULL, "RoughPubName", N_("Name of the pub"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &UseSounds, NULL, NULL, NULL, "UseSounds", N_("TRUE if sounds should be enabled"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FightHit, NULL, "Sounds.FightHit", N_("Sound file played for a gun \"hit\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FightMiss, NULL, "Sounds.FightMiss", N_("Sound file played for a gun \"miss\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FightReload, NULL, "Sounds.FightReload", N_("Sound file played when guns are reloaded"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyBitchKilled, NULL, "Sounds.EnemyBitchKilled", N_("Sound file played when an enemy bitch/deputy is killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.BitchKilled, NULL, "Sounds.BitchKilled", N_("Sound file played when one of your bitches is killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyKilled, NULL, "Sounds.EnemyKilled", N_("Sound file played when another player or cop is killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.Killed, NULL, "Sounds.Killed", N_("Sound file played when you are killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyFailFlee, NULL, "Sounds.EnemyFailFlee", N_("Sound file played when a player tries to escape, but fails"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FailFlee, NULL, "Sounds.FailFlee", N_("Sound file played when you try to escape, but fail"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyFlee, NULL, "Sounds.EnemyFlee", N_("Sound file played when a player successfully escapes"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.Flee, NULL, "Sounds.Flee", N_("Sound file played when you successfully escape"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.Jet, NULL, "Sounds.Jet", N_("Sound file played on arriving at a new location"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.TalkToAll, NULL, "Sounds.TalkToAll", N_("Sound file played when a player sends a public chat message"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.TalkPrivate, NULL, "Sounds.TalkPrivate", N_("Sound file played when a player sends a private chat message"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.JoinGame, NULL, "Sounds.JoinGame", N_("Sound file played when a player joins the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.LeaveGame, NULL, "Sounds.LeaveGame", N_("Sound file played when a player leaves the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.StartGame, NULL, "Sounds.StartGame", N_("Sound file played at the start of the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EndGame, NULL, "Sounds.EndGame", N_("Sound file played at the end of the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&DrugSortMethod, NULL, NULL, NULL, NULL, "DrugSortMethod", N_("Sort key for listing available drugs"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 4}, {&FightTimeout, NULL, NULL, NULL, NULL, "FightTimeout", N_("No. of seconds in which to return fire"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&IdleTimeout, NULL, NULL, NULL, NULL, "IdleTimeout", N_("Players are disconnected after this many seconds"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&ConnectTimeout, NULL, NULL, NULL, NULL, "ConnectTimeout", N_("Time in seconds for connections to be made or broken"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&MaxClients, NULL, NULL, NULL, NULL, "MaxClients", N_("Maximum number of TCP/IP connections"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&AITurnPause, NULL, NULL, NULL, NULL, "AITurnPause", N_("Seconds between turns of AI players"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &StartCash, NULL, NULL, "StartCash", N_("Amount of cash that each player starts with"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &StartDebt, NULL, NULL, "StartDebt", N_("Amount of debt that each player starts with"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &StaticLocation.Name, NULL, "Name", N_("Name of each location"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 0, -1}, {&(StaticLocation.PolicePresence), NULL, NULL, NULL, NULL, "PolicePresence", N_("Police presence at each location (%)"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 0, 100}, {&(StaticLocation.MinDrug), NULL, NULL, NULL, NULL, "MinDrug", N_("Minimum number of drugs at each location"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 1, -1}, {&(StaticLocation.MaxDrug), NULL, NULL, NULL, NULL, "MaxDrug", N_("Maximum number of drugs at each location"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 1, -1}, {&PlayerArmor, NULL, NULL, NULL, NULL, "PlayerArmour", N_("% resistance to gunshots of each player"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 100}, {&PlayerArmor, NULL, NULL, NULL, NULL, "PlayerArmor", N_("% resistance to gunshots of each player"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 100}, {&BitchArmor, NULL, NULL, NULL, NULL, "BitchArmour", N_("% resistance to gunshots of each bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 100}, {&BitchArmor, NULL, NULL, NULL, NULL, "BitchArmor", N_("% resistance to gunshots of each bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 100}, {NULL, NULL, NULL, &StaticCop.Name, NULL, "Name", N_("Name of each cop"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &StaticCop.DeputyName, NULL, "DeputyName", N_("Name of each cop's deputy"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &StaticCop.DeputiesName, NULL, "DeputiesName", N_("Name of each cop's deputies"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 0}, {&StaticCop.Armor, NULL, NULL, NULL, NULL, "Armour", N_("% resistance to gunshots of each cop"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 1, 100}, {&StaticCop.Armor, NULL, NULL, NULL, NULL, "Armor", N_("% resistance to gunshots of each cop"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 1, 100}, {&StaticCop.DeputyArmor, NULL, NULL, NULL, NULL, "DeputyArmour", N_("% resistance to gunshots of each deputy"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 1, 100}, {&StaticCop.DeputyArmor, NULL, NULL, NULL, NULL, "DeputyArmor", N_("% resistance to gunshots of each deputy"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 1, 100}, {&StaticCop.AttackPenalty, NULL, NULL, NULL, NULL, "AttackPenalty", N_("Attack penalty relative to a player"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 100}, {&StaticCop.DefendPenalty, NULL, NULL, NULL, NULL, "DefendPenalty", N_("Defend penalty relative to a player"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 100}, {&StaticCop.MinDeputies, NULL, NULL, NULL, NULL, "MinDeputies", N_("Minimum number of accompanying deputies"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.MaxDeputies, NULL, NULL, NULL, NULL, "MaxDeputies", N_("Maximum number of accompanying deputies"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.GunIndex, NULL, NULL, NULL, NULL, "GunIndex", N_("Zero-based index of the gun that cops are armed with"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.CopGun, NULL, NULL, NULL, NULL, "CopGun", N_("Number of guns that each cop carries"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.DeputyGun, NULL, NULL, NULL, NULL, "DeputyGun", N_("Number of guns that each deputy carries"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &StaticDrug.Name, NULL, "Name", N_("Name of each drug"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, NULL, &(StaticDrug.MinPrice), NULL, NULL, "MinPrice", N_("Minimum normal price of each drug"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 1, -1}, {NULL, NULL, &(StaticDrug.MaxPrice), NULL, NULL, "MaxPrice", N_("Maximum normal price of each drug"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 1, -1}, {NULL, &(StaticDrug.Cheap), NULL, NULL, NULL, "Cheap", N_("TRUE if this drug can be specially cheap"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, &(StaticDrug.Expensive), NULL, NULL, NULL, "Expensive", N_("TRUE if this drug can be specially expensive"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &StaticDrug.CheapStr, NULL, "CheapStr", N_("Message displayed when this drug is specially cheap"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Drugs.ExpensiveStr1, NULL, "Drugs.ExpensiveStr1", N_("Format string used for expensive drugs 50% of time"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Drugs.ExpensiveStr2, NULL, "Drugs.ExpensiveStr2", /* xgettext:no-c-format */ N_("Format string used for expensive drugs 50% of time"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&(Drugs.CheapDivide), NULL, NULL, NULL, NULL, "Drugs.CheapDivide", N_("Divider for drug price when it's specially cheap"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, -1}, {&(Drugs.ExpensiveMultiply), NULL, NULL, NULL, NULL, "Drugs.ExpensiveMultiply", N_("Multiplier for specially expensive drug prices"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, -1}, {NULL, NULL, NULL, &StaticGun.Name, NULL, "Name", N_("Name of each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, 0}, {NULL, NULL, &(StaticGun.Price), NULL, NULL, "Price", N_("Price of each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, 0}, {&(StaticGun.Space), NULL, NULL, NULL, NULL, "Space", N_("Space taken by each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, -1}, {&(StaticGun.Damage), NULL, NULL, NULL, NULL, "Damage", N_("Damage done by each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &Names.Bitch, NULL, "Names.Bitch", N_("Word used to denote a single \"bitch\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Bitches, NULL, "Names.Bitches", N_("Word used to denote two or more \"bitches\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Gun, NULL, "Names.Gun", N_("Word used to denote a single gun or equivalent"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Guns, NULL, "Names.Guns", N_("Word used to denote two or more guns"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Drug, NULL, "Names.Drug", N_("Word used to denote a single drug or equivalent"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Drugs, NULL, "Names.Drugs", N_("Word used to denote two or more drugs"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Date, NULL, "Names.Date", N_("strftime() format string for displaying the game turn"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, &Prices.Spy, NULL, NULL, "Prices.Spy", N_("Cost for a bitch to spy on the enemy"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &Prices.Tipoff, NULL, NULL, "Prices.Tipoff", N_("Cost for a bitch to tipoff the cops to an enemy"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &Bitch.MinPrice, NULL, NULL, "Bitch.MinPrice", N_("Minimum price to hire a bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &Bitch.MaxPrice, NULL, NULL, "Bitch.MaxPrice", N_("Maximum price to hire a bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, NULL, &SubwaySaying, "SubwaySaying", N_("List of things which you overhear on the subway"), NULL, NULL, 0, "", &NumSubway, ResizeSubway, FALSE, 0, 0}, {&NumSubway, NULL, NULL, NULL, NULL, "NumSubwaySaying", N_("Number of subway sayings"), NULL, NULL, 0, "", NULL, ResizeSubway, FALSE, 0, -1}, {NULL, NULL, NULL, NULL, &Playing, "Playing", N_("List of songs which you can hear playing"), NULL, NULL, 0, "", &NumPlaying, ResizePlaying, FALSE, 0, 0}, {&NumPlaying, NULL, NULL, NULL, NULL, "NumPlaying", N_("Number of playing songs"), NULL, NULL, 0, "", NULL, ResizePlaying, FALSE, 0, -1}, {NULL, NULL, NULL, NULL, &StoppedTo, "StoppedTo", N_("List of things which you can stop to do"), NULL, NULL, 0, "", &NumStoppedTo, ResizeStoppedTo, FALSE, 0, 0}, {&NumStoppedTo, NULL, NULL, NULL, NULL, "NumStoppedTo", N_("Number of things which you can stop to do"), NULL, NULL, 0, "", NULL, ResizeStoppedTo, FALSE, 0, -1} }; const int NUMGLOB = sizeof(Globals) / sizeof(Globals[0]); char **Playing = NULL; char *DefaultPlaying[] = { /* Default list of songs that you can hear playing (N.B. this can be overridden in the configuration file with the "Playing" variable) - look for "You hear someone playing %s" to see how these are used. */ N_("`Are you Experienced` by Jimi Hendrix"), N_("`Cheeba Cheeba` by Tone Loc"), N_("`Comin` in to Los Angeles` by Arlo Guthrie"), N_("`Commercial` by Spanky and Our Gang"), N_("`Late in the Evening` by Paul Simon"), N_("`Light Up` by Styx"), N_("`Mexico` by Jefferson Airplane"), N_("`One toke over the line` by Brewer & Shipley"), N_("`The Smokeout` by Shel Silverstein"), N_("`White Rabbit` by Jefferson Airplane"), N_("`Itchycoo Park` by Small Faces"), N_("`White Punks on Dope` by the Tubes"), N_("`Legend of a Mind` by the Moody Blues"), N_("`Eight Miles High` by the Byrds"), N_("`Acapulco Gold` by Riders of the Purple Sage"), N_("`Kicks` by Paul Revere & the Raiders"), N_("the Nixon tapes"), N_("`Legalize It` by Mojo Nixon & Skid Roper") }; char **StoppedTo = NULL; char *DefaultStoppedTo[] = { /* Default list of things which you can "stop to do" (random events that cost you a little money). These can be overridden with the "StoppedTo" variable in the configuration file. See the later string "You stopped to %s." to see how these strings are used. */ N_("have a beer"), N_("smoke a joint"), N_("smoke a cigar"), N_("smoke a Djarum"), N_("smoke a cigarette") }; struct COP DefaultCop[] = { /* Name of the first police officer to attack you */ {N_("Officer Hardass"), /* Name of a single deputy of the first police officer */ N_("deputy"), /* Word used for more than one deputy of the first police officer */ N_("deputies"), 4, 3, 30, 30, 2, 8, 0, 1, 1}, /* Ditto, for the other police officers */ {N_("Officer Bob"), N_("deputy"), N_("deputies"), 15, 4, 30, 20, 4, 10, 0, 2, 1}, {N_("Agent Smith"), N_("cop"), N_("cops"), 50, 6, 20, 20, 6, 18, 1, 3, 2} }; struct GUN DefaultGun[] = { /* The names of the default guns */ {N_("Baretta"), 3000, 4, 5}, {N_(".38 Special"), 3500, 4, 9}, {N_("Ruger"), 2900, 4, 4}, {N_("Saturday Night Special"), 3100, 4, 7} }; struct DRUG DefaultDrug[] = { /* The names of the default drugs, and the messages displayed when they are specially cheap or expensive */ {N_("Acid"), 1000, 4400, TRUE, FALSE, N_("The market is flooded with cheap home-made acid!")}, {N_("Cocaine"), 15000, 29000, FALSE, TRUE, ""}, {N_("Hashish"), 480, 1280, TRUE, FALSE, N_("The Marrakesh Express has arrived!")}, {N_("Heroin"), 5500, 13000, FALSE, TRUE, ""}, {N_("Ludes"), 11, 60, TRUE, FALSE, N_("Rival drug dealers raided a pharmacy and are selling cheap ludes!")}, {N_("MDA"), 1500, 4400, FALSE, FALSE, ""}, {N_("Opium"), 540, 1250, FALSE, TRUE, ""}, {N_("PCP"), 1000, 2500, FALSE, FALSE, ""}, {N_("Peyote"), 220, 700, FALSE, FALSE, ""}, {N_("Shrooms"), 630, 1300, FALSE, FALSE, ""}, {N_("Speed"), 90, 250, FALSE, TRUE, ""}, {N_("Weed"), 315, 890, TRUE, FALSE, N_("Columbian freighter dusted the Coast Guard! " "Weed prices have bottomed out!")} }; #define NUMDRUG (sizeof(DefaultDrug)/sizeof(DefaultDrug[0])) struct LOCATION DefaultLocation[] = { /* The names of the default locations */ {N_("Bronx"), 10, NUMDRUG / 2 + 1, NUMDRUG}, {N_("Ghetto"), 5, NUMDRUG / 2 + 2, NUMDRUG}, {N_("Central Park"), 15, NUMDRUG / 2, NUMDRUG}, {N_("Manhattan"), 90, NUMDRUG / 2 - 2, NUMDRUG - 2}, {N_("Coney Island"), 20, NUMDRUG / 2, NUMDRUG}, {N_("Brooklyn"), 70, NUMDRUG / 2 - 2, NUMDRUG - 1}, {N_("Queens"), 50, NUMDRUG / 2, NUMDRUG}, {N_("Staten Island"), 20, NUMDRUG / 2, NUMDRUG} }; struct DRUGS Drugs = { NULL, NULL, 0, 0 }; struct DRUGS DefaultDrugs = { /* Messages displayed for drug busts, etc. */ N_("Cops made a big %tde bust! Prices are outrageous!"), N_("Addicts are buying %tde at ridiculous prices!"), 4, 4 }; char **SubwaySaying = NULL; char *DefaultSubwaySaying[] = { /* Default list of things which the "lady on the subway" can tell you (N.B. can be overridden with the "SubwaySaying" config. file variable). Look for "the lady next to you" to see how these strings are used. */ N_("Wouldn\'t it be funny if everyone suddenly quacked at once?"), N_("The Pope was once Jewish, you know"), N_("I\'ll bet you have some really interesting dreams"), N_("So I think I\'m going to Amsterdam this year"), N_("Son, you need a yellow haircut"), N_("I think it\'s wonderful what they\'re doing with incense these days"), N_("I wasn\'t always a woman, you know"), N_("Does your mother know you\'re a dope dealer?"), N_("Are you high on something?"), N_("Oh, you must be from California"), N_("I used to be a hippie, myself"), N_("There\'s nothing like having lots of money"), N_("You look like an aardvark!"), N_("I don\'t believe in Ronald Reagan"), N_("Courage! Bush is a noodle!"), N_("Haven\'t I seen you on TV?"), N_("I think hemorrhoid commercials are really neat!"), N_("We\'re winning the war for drugs!"), N_("A day without dope is like night"), /* xgettext:no-c-format */ N_("We only use 20% of our brains, so why not burn out the other 80%"), N_("I\'m soliciting contributions for Zombies for Christ"), N_("I\'d like to sell you an edible poodle"), N_("Winners don\'t do drugs... unless they do"), N_("Kill a cop for Christ!"), N_("I am the walrus!"), N_("Jesus loves you more than you will know"), N_("I feel an unaccountable urge to dye my hair blue"), N_("Wasn\'t Jane Fonda wonderful in Barbarella"), N_("Just say No... well, maybe... ok, what the hell!"), N_("Would you like a jelly baby?"), N_("Drugs can be your friend!") }; static gboolean SetConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, Converter *conv, GScanner *scanner); /* * Returns a random integer not less than bot and less than top. */ int brandom(int bot, int top) { return (int)((float)(top - bot) * rand() / (RAND_MAX + 1.0)) + bot; } /* * Returns a random price not less than bot and less than top. */ price_t prandom(price_t bot, price_t top) { return (price_t)((float)(top - bot) * rand() / (RAND_MAX + 1.0)) + bot; } /* * Returns the total numbers of players in the list starting at "First"; * players still in the process of connecting or leaving, and those that * are actually cops (server-created internal AI players) are ignored. */ int CountPlayers(GSList *First) { GSList *list; Player *Play; int count = 0; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (strlen(GetPlayerName(Play)) > 0 && !IsCop(Play)) count++; } return count; } /* * Adds the new Player structure "NewPlayer" to the linked list * pointed to by "First", and initializes all fields. Returns the new * start of the list. If this function is called by the server, then * it should pass the file descriptor of the socket used to * communicate with the client player. */ GSList *AddPlayer(int fd, Player *NewPlayer, GSList *First) { Player *tmp; GSList *list; list = First; NewPlayer->ID = 0; /* Generate a unique player ID, if we're the server (clients get their * IDs from the server, so don't need to generate IDs) */ if (Server) { while (list) { tmp = (Player *)list->data; if (tmp->ID == NewPlayer->ID) { NewPlayer->ID++; list = First; } else { list = g_slist_next(list); } } } NewPlayer->Name = NULL; SetPlayerName(NewPlayer, NULL); NewPlayer->IsAt = 0; NewPlayer->EventNum = E_NONE; NewPlayer->FightTimeout = NewPlayer->ConnectTimeout = NewPlayer->IdleTimeout = 0; NewPlayer->Guns = (Inventory *)g_malloc0(NumGun * sizeof(Inventory)); NewPlayer->Drugs = (Inventory *)g_malloc0(NumDrug * sizeof(Inventory)); InitList(&(NewPlayer->SpyList)); InitList(&(NewPlayer->TipList)); NewPlayer->Turn = 1; NewPlayer->date = g_date_new_dmy(StartDate.day, StartDate.month, StartDate.year); NewPlayer->Cash = StartCash; NewPlayer->Debt = StartDebt; NewPlayer->Bank = 0; NewPlayer->Bitches.Carried = 8; NewPlayer->CopIndex = 0; NewPlayer->Health = 100; NewPlayer->CoatSize = 100; NewPlayer->Flags = 0; #ifdef NETWORKING InitNetworkBuffer(&NewPlayer->NetBuf, '\n', '\r', UseSocks ? &Socks : NULL); if (Server) BindNetworkBufferToSocket(&NewPlayer->NetBuf, fd); #endif InitAbilities(NewPlayer); NewPlayer->FightArray = NULL; NewPlayer->Attacking = NULL; return g_slist_append(First, (gpointer)NewPlayer); } /* * Returns TRUE only if the given player has properly connected (i.e. has * a valid name). */ gboolean IsConnectedPlayer(Player *play) { return (play && play->Name && play->Name[0]); } /* * Redimensions the Gun and Drug lists for "Play". */ void UpdatePlayer(Player *Play) { Play->Guns = (Inventory *)g_realloc(Play->Guns, NumGun * sizeof(Inventory)); Play->Drugs = (Inventory *)g_realloc(Play->Drugs, NumDrug * sizeof(Inventory)); } /* * Removes the Player structure pointed to by "Play" from the linked * list starting at "First". The client socket is freed if called * from the server. The new start of the list is returned. */ GSList *RemovePlayer(Player *Play, GSList *First) { g_assert(Play); g_assert(First); First = g_slist_remove(First, (gpointer)Play); #ifdef NETWORKING if (!IsCop(Play)) ShutdownNetworkBuffer(&Play->NetBuf); #endif ClearList(&(Play->SpyList)); ClearList(&(Play->TipList)); g_date_free(Play->date); g_free(Play->Name); g_free(Play->Guns); g_free(Play->Drugs); g_free(Play); return First; } /* * Copies player "Src" to player "Dest". */ void CopyPlayer(Player *Dest, Player *Src) { if (!Dest || !Src) return; Dest->Turn = Src->Turn; Dest->Cash = Src->Cash; Dest->Debt = Src->Debt; Dest->Bank = Src->Bank; Dest->Health = Src->Health; ClearInventory(Dest->Guns, Dest->Drugs); AddInventory(Dest->Guns, Src->Guns, NumGun); AddInventory(Dest->Drugs, Src->Drugs, NumDrug); Dest->CoatSize = Src->CoatSize; Dest->IsAt = Src->IsAt; g_free(Dest->Name); Dest->Name = g_strdup(Src->Name); Dest->Bitches.Carried = Src->Bitches.Carried; Dest->Flags = Src->Flags; } gboolean IsCop(Player *Play) { return (Play->CopIndex > 0); } char *GetPlayerName(Player *Play) { if (Play->Name) return Play->Name; else return ""; } void SetPlayerName(Player *Play, char *Name) { if (Play->Name) g_free(Play->Name); if (!Name) Play->Name = g_strdup(""); else Play->Name = g_strdup(Name); } /* * Searches the linked list starting at "First" for a Player structure * with the given ID. Returns a pointer to this structure, or NULL if * no match can be found. */ Player *GetPlayerByID(guint ID, GSList *First) { GSList *list; Player *Play; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (Play->ID == ID) return Play; } return NULL; } /* * Searches the linked list starting at "First" for a Player structure * with the name "Name". Returns a pointer to this structure, or NULL * if no match can be found. */ Player *GetPlayerByName(char *Name, GSList *First) { GSList *list; Player *Play; if (Name == NULL || Name[0] == 0) return &Noone; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (!IsCop(Play) && strcmp(GetPlayerName(Play), Name) == 0) return Play; } return NULL; } /* * Forms a price based on the string representation in "buf". */ price_t strtoprice(char *buf) { guint i, buflen, FracNum; gchar digit, suffix; gboolean minus, InFrac; price_t val = 0; minus = FALSE; if (!buf || !buf[0]) return 0; buflen = strlen(buf); suffix = buf[buflen - 1]; suffix = toupper(suffix); if (suffix == 'M') FracNum = 6; else if (suffix == 'K') FracNum = 3; else FracNum = 0; for (i = 0, InFrac = FALSE; i < buflen && (!InFrac || FracNum > 0); i++) { digit = buf[i]; if (digit == '.' || digit == ',') { InFrac = TRUE; } else if (digit >= '0' && digit <= '9') { if (InFrac) FracNum--; val *= 10; val += (digit - '0'); } else if (digit == '-') minus = TRUE; } for (i = 0; i < FracNum; i++) val *= 10; if (minus) val = -val; return val; } /* * Prints "price" directly into a dynamically-allocated string buffer * and returns a pointer to this buffer. It is the responsbility of * the user to g_free this buffer when it is finished with. */ gchar *pricetostr(price_t price) { GString *PriceStr; gchar *NewBuffer; price_t absprice; if (price < 0) absprice = -price; else absprice = price; PriceStr = g_string_new(NULL); while (absprice != 0) { g_string_prepend_c(PriceStr, '0' + (absprice % 10)); absprice /= 10; if (absprice == 0) { if (price < 0) g_string_prepend_c(PriceStr, '-'); } } NewBuffer = PriceStr->str; /* Free the string structure, but not the actual char array */ g_string_free(PriceStr, FALSE); return NewBuffer; } /* * Takes the number in "price" and prints it into a dynamically-allocated * string, adding commas to split up thousands, and adding a currency * symbol to the start. Returns a pointer to the string, which must be * g_free'd by the user when it is finished with. */ gchar *FormatPrice(price_t price) { GString *PriceStr; gchar *NewBuffer; char thou[10]; gboolean First = TRUE; price_t absprice; PriceStr = g_string_new(NULL); if (price < 0) absprice = -price; else absprice = price; while (First || absprice > 0) { if (absprice >= 1000) sprintf(thou, "%03d", (int)(absprice % 1000l)); else sprintf(thou, "%d", (int)(price % 1000l)); price /= 1000l; absprice /= 1000l; if (!First) g_string_prepend_c(PriceStr, ','); g_string_prepend(PriceStr, thou); First = FALSE; } if (Currency.Prefix) g_string_prepend(PriceStr, Currency.Symbol); else g_string_append(PriceStr, Currency.Symbol); NewBuffer = PriceStr->str; /* Free the string structure only, not the char data */ g_string_free(PriceStr, FALSE); return NewBuffer; } /* * Returns the total number of guns being carried by "Play". */ int TotalGunsCarried(Player *Play) { int i, c; c = 0; for (i = 0; i < NumGun; i++) c += Play->Guns[i].Carried; return c; } /* * Capitalises the first character of "string" and writes the resultant * string into a dynamically-allocated copy; the user must g_free this * string (a pointer to which is returned) when it is no longer needed. */ gchar *InitialCaps(gchar *string) { gchar *buf; if (!string) return NULL; buf = g_strdup(string); if (strlen(buf) >= 1) buf[0] = toupper(buf[0]); return buf; } /* * Returns TRUE if "string" starts with a vowel. */ char StartsWithVowel(char *string) { int c; if (!string || strlen(string) < 1) return FALSE; c = toupper(string[0]); return (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U'); } /* * Reads a NULL-terminated string into the buffer "buf" from file "fp". * buf is sized to hold the string; this is a dynamic string and must be * freed by the calling routine. Returns 0 on success, EOF on failure. */ int read_string(FILE *fp, char **buf) { int c; GString *text; text = g_string_new(""); do { c = fgetc(fp); if (c != EOF && c != 0) g_string_append_c(text, (char)c); } while (c != EOF && c != 0); *buf = text->str; /* Free the GString, but not the actual data text->str */ g_string_free(text, FALSE); if (c == EOF) return EOF; else return 0; } /* * This function simply clears the given inventories "Guns" * and "Drugs" if they are non-NULL. */ void ClearInventory(Inventory *Guns, Inventory *Drugs) { int i; if (Guns) for (i = 0; i < NumGun; i++) { Guns[i].Carried = 0; Guns[i].TotalValue = 0; } if (Drugs) for (i = 0; i < NumDrug; i++) { Drugs[i].Carried = 0; Drugs[i].TotalValue = 0; } } /* * Returns TRUE only if "Guns" and "Drugs" contain no objects. */ char IsInventoryClear(Inventory *Guns, Inventory *Drugs) { int i; if (Guns) for (i = 0; i < NumGun; i++) if (Guns[i].Carried > 0) return FALSE; if (Drugs) for (i = 0; i < NumDrug; i++) if (Drugs[i].Carried > 0) return FALSE; return TRUE; } /* * Adds inventory "Add" into the contents of inventory "Cumul" * Each inventory is of length "Length". * N.B. TotalValue is not modified, as it is assumed that the * new items are free (if this is not the case it must be * handled elsewhere). */ void AddInventory(Inventory *Cumul, Inventory *Add, int Length) { int i; for (i = 0; i < Length; i++) Cumul[i].Carried += Add[i].Carried; } /* * Given the lists of "Guns" and "Drugs" (which the given player "Play" * must have sufficient room to carry) updates the player's space to * reflect carrying them. */ void ChangeSpaceForInventory(Inventory *Guns, Inventory *Drugs, Player *Play) { int i; if (Guns) for (i = 0; i < NumGun; i++) { Play->CoatSize -= Guns[i].Carried * Gun[i].Space; } if (Drugs) for (i = 0; i < NumDrug; i++) { Play->CoatSize -= Drugs[i].Carried; } } /* * Discards items from "Guns" and/or "Drugs" (if non-NULL) if necessary * such that player "Play" is able to carry them all. The cheapest * objects are discarded. */ void TruncateInventoryFor(Inventory *Guns, Inventory *Drugs, Player *Play) { int i, Total, CheapIndex; int CheapestGun; Total = 0; if (Guns) for (i = 0; i < NumGun; i++) Total += Guns[i].Carried; Total += TotalGunsCarried(Play); while (Guns && Total > Play->Bitches.Carried + 2) { CheapIndex = -1; for (i = 0; i < NumGun; i++) if (Guns[i].Carried && (CheapIndex == -1 || Gun[i].Price <= Gun[CheapIndex].Price)) { CheapIndex = i; } i = Total - Play->Bitches.Carried - 2; if (Guns[CheapIndex].Carried > i) { Guns[CheapIndex].Carried -= i; Total -= i; } else { Total -= Guns[CheapIndex].Carried; Guns[CheapIndex].Carried = 0; } } Total = Play->CoatSize; if (Guns) for (i = 0; i < NumGun; i++) Total -= Guns[i].Carried * Gun[i].Space; if (Drugs) for (i = 0; i < NumDrug; i++) Total -= Drugs[i].Carried; while (Total < 0) { CheapestGun = -1; CheapIndex = -1; if (Guns) for (i = 0; i < NumGun; i++) if (Guns[i].Carried && (CheapIndex == -1 || Gun[i].Price <= Gun[CheapIndex].Price)) { CheapIndex = i; CheapestGun = Gun[i].Price / Gun[i].Space; } if (Drugs) for (i = 0; i < NumDrug; i++) if (Drugs[i].Carried && (CheapIndex == -1 || (CheapestGun == -1 && Drug[i].MinPrice <= Drug[CheapIndex].MinPrice) || (CheapestGun >= 0 && Drug[i].MinPrice <= CheapestGun))) { CheapIndex = i; CheapestGun = -1; } if (Guns && CheapestGun >= 0) { Guns[CheapIndex].Carried--; Total += Gun[CheapIndex].Space; } else { if (Drugs && Drugs[CheapIndex].Carried >= -Total) { Drugs[CheapIndex].TotalValue = Drugs[CheapIndex].TotalValue * (Drugs[CheapIndex].Carried + Total) / Drugs[CheapIndex].Carried; Drugs[CheapIndex].Carried += Total; Total = 0; } else { Total += Drugs[CheapIndex].Carried; Drugs[CheapIndex].Carried = 0; Drugs[CheapIndex].TotalValue = 0; } } } } /* * Returns an index into the drugs array of a random drug that "Play" is * carrying at least "amount" of. If no suitable drug is found after 5 * attempts, returns -1. */ int IsCarryingRandom(Player *Play, int amount) { int i, ind; for (i = 0; i < 5; i++) { ind = brandom(0, NumDrug); if (Play->Drugs[ind].Carried >= amount) { return ind; } } return -1; } /* * Returns an index into the "Drugs" array maintained by player "Play" * of the next available drug after "OldIndex", following the current * sort method (defined globally as "DrugSortMethod"). */ int GetNextDrugIndex(int OldIndex, Player *Play) { int i, MaxIndex; MaxIndex = -1; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Price != 0 && i != OldIndex && i != MaxIndex && (MaxIndex == -1 || (DrugSortMethod == DS_ATOZ && g_ascii_strncasecmp(Drug[MaxIndex].Name, Drug[i].Name, strlen(Drug[i].Name)) > 0) || (DrugSortMethod == DS_ZTOA && g_ascii_strncasecmp(Drug[MaxIndex].Name, Drug[i].Name, strlen(Drug[i].Name)) < 0) || (DrugSortMethod == DS_CHEAPFIRST && Play->Drugs[MaxIndex].Price > Play->Drugs[i].Price) || (DrugSortMethod == DS_CHEAPLAST && Play->Drugs[MaxIndex].Price < Play->Drugs[i].Price)) && (OldIndex == -1 || (DrugSortMethod == DS_ATOZ && g_ascii_strncasecmp(Drug[OldIndex].Name, Drug[i].Name, strlen(Drug[i].Name)) <= 0) || (DrugSortMethod == DS_ZTOA && g_ascii_strncasecmp(Drug[OldIndex].Name, Drug[i].Name, strlen(Drug[i].Name)) >= 0) || (DrugSortMethod == DS_CHEAPFIRST && Play->Drugs[OldIndex].Price <= Play->Drugs[i].Price) || (DrugSortMethod == DS_CHEAPLAST && Play->Drugs[OldIndex].Price >= Play->Drugs[i].Price))) { MaxIndex = i; } } return MaxIndex; } /* * A DopeList is akin to a Vector class; it is a list of DopeEntry * structures, which can be dynamically extended or compressed. This * function initializes the newly-created list pointed to by "List" * (A DopeEntry contains a Player pointer and a counter, and is used * by the server to keep track of tipoffs and spies.) */ void InitList(DopeList *List) { List->Data = NULL; List->Number = 0; } /* * Clears the list pointed to by "List". */ void ClearList(DopeList *List) { g_free(List->Data); InitList(List); } /* * Adds a new DopeEntry (pointed to by "NewEntry") to the list "List". * A copy of NewEntry is placed into the list, so the original * structure pointed to by NewEntry can be reused. */ void AddListEntry(DopeList *List, DopeEntry *NewEntry) { if (!NewEntry || !List) return; List->Number++; List->Data = (DopeEntry *)g_realloc(List->Data, List->Number * sizeof(DopeEntry)); memmove(&(List->Data[List->Number - 1]), NewEntry, sizeof(DopeEntry)); } /* * Removes the DopeEntry at index "Index" from list "List". */ void RemoveListEntry(DopeList *List, int Index) { if (!List || Index < 0 || Index >= List->Number) return; if (Index < List->Number - 1) { memmove(&(List->Data[Index]), &(List->Data[Index + 1]), (List->Number - 1 - Index) * sizeof(DopeEntry)); } List->Number--; List->Data = (DopeEntry *)g_realloc(List->Data, List->Number * sizeof(DopeEntry)); if (List->Number == 0) List->Data = NULL; } /* * Returns the index of the DopeEntry matching "Play" in list "List" * or -1 if this is not found. */ int GetListEntry(DopeList *List, Player *Play) { int i; for (i = List->Number - 1; i >= 0; i--) { if (List->Data[i].Play == Play) return i; } return -1; } /* * Removes (if it exists) the DopeEntry in list "List" matching "Play". */ void RemoveListPlayer(DopeList *List, Player *Play) { RemoveListEntry(List, GetListEntry(List, Play)); } /* * Similar to RemoveListPlayer, except that if the list contains "Play" more * than once, all the matching entries are removed, not just the first. */ void RemoveAllEntries(DopeList *List, Player *Play) { int i; do { i = GetListEntry(List, Play); if (i >= 0) RemoveListEntry(List, i); } while (i >= 0); } void ResizeLocations(int NewNum) { int i; if (NewNum < NumLocation) for (i = NewNum; i < NumLocation; i++) { g_free(Location[i].Name); } Location = g_realloc(Location, sizeof(struct LOCATION) * NewNum); if (NewNum > NumLocation) { memset(&Location[NumLocation], 0, (NewNum - NumLocation) * sizeof(struct LOCATION)); for (i = NumLocation; i < NewNum; i++) { Location[i].Name = g_strdup(""); } } NumLocation = NewNum; } void ResizeCops(int NewNum) { int i; if (NewNum < NumCop) for (i = NewNum; i < NumCop; i++) { g_free(Cop[i].Name); g_free(Cop[i].DeputyName); g_free(Cop[i].DeputiesName); } Cop = g_realloc(Cop, sizeof(struct COP) * NewNum); if (NewNum > NumCop) { memset(&Cop[NumCop], 0, (NewNum - NumCop) * sizeof(struct COP)); for (i = NumCop; i < NewNum; i++) { Cop[i].Name = g_strdup(""); Cop[i].DeputyName = g_strdup(""); Cop[i].DeputiesName = g_strdup(""); } } NumCop = NewNum; } void ResizeGuns(int NewNum) { int i; if (NewNum < NumGun) for (i = NewNum; i < NumGun; i++) { g_free(Gun[i].Name); } Gun = g_realloc(Gun, sizeof(struct GUN) * NewNum); if (NewNum > NumGun) { memset(&Gun[NumGun], 0, (NewNum - NumGun) * sizeof(struct GUN)); for (i = NumGun; i < NewNum; i++) { Gun[i].Name = g_strdup(""); } } NumGun = NewNum; } void ResizeDrugs(int NewNum) { int i; if (NewNum < NumDrug) for (i = NewNum; i < NumDrug; i++) { g_free(Drug[i].Name); g_free(Drug[i].CheapStr); } Drug = g_realloc(Drug, sizeof(struct DRUG) * NewNum); if (NewNum > NumDrug) { memset(&Drug[NumDrug], 0, (NewNum - NumDrug) * sizeof(struct DRUG)); for (i = NumDrug; i < NewNum; i++) { Drug[i].Name = g_strdup(""); Drug[i].CheapStr = g_strdup(""); } } NumDrug = NewNum; } void ResizeSubway(int NewNum) { int i; if (NewNum < NumSubway) for (i = NewNum; i < NumSubway; i++) { g_free(SubwaySaying[i]); } SubwaySaying = g_realloc(SubwaySaying, sizeof(char *) * NewNum); if (NewNum > NumSubway) for (i = NumSubway; i < NewNum; i++) { SubwaySaying[i] = g_strdup(""); } NumSubway = NewNum; } void ResizePlaying(int NewNum) { int i; if (NewNum < NumPlaying) for (i = NewNum; i < NumPlaying; i++) { g_free(Playing[i]); } Playing = g_realloc(Playing, sizeof(char *) * NewNum); if (NewNum > NumPlaying) for (i = NumPlaying; i < NewNum; i++) { Playing[i] = g_strdup(""); } NumPlaying = NewNum; } void ResizeStoppedTo(int NewNum) { int i; if (NewNum < NumStoppedTo) for (i = NewNum; i < NumStoppedTo; i++) { g_free(StoppedTo[i]); } StoppedTo = g_realloc(StoppedTo, sizeof(char *) * NewNum); if (NewNum > NumStoppedTo) for (i = NumStoppedTo; i < NewNum; i++) { StoppedTo[i] = g_strdup(""); } NumStoppedTo = NewNum; } /* * Sets the dynamically-sized string pointed to by *dest to a copy of * "src" - src can safely be freed or reused afterwards. Any existing * string in "dest" is freed. The function returns immediately if src * and *dest are already the same. */ void AssignName(gchar **dest, gchar *src) { if (*dest == src) return; g_free(*dest); *dest = g_strdup(src); } void CopyNames(struct NAMES *dest, struct NAMES *src) { AssignName(&dest->Bitch, _(src->Bitch)); AssignName(&dest->Bitches, _(src->Bitches)); AssignName(&dest->Gun, _(src->Gun)); AssignName(&dest->Guns, _(src->Guns)); AssignName(&dest->Drug, _(src->Drug)); AssignName(&dest->Drugs, _(src->Drugs)); AssignName(&dest->Date, _(src->Date)); AssignName(&dest->LoanSharkName, _(src->LoanSharkName)); AssignName(&dest->BankName, _(src->BankName)); AssignName(&dest->GunShopName, _(src->GunShopName)); AssignName(&dest->RoughPubName, _(src->RoughPubName)); } #ifdef NETWORKING void CopyMetaServer(struct METASERVER *dest, struct METASERVER *src) { dest->Active = src->Active; AssignName(&dest->URL, src->URL); AssignName(&dest->LocalName, src->LocalName); AssignName(&dest->Password, src->Password); AssignName(&dest->Comment, src->Comment); } #endif void CopyLocation(struct LOCATION *dest, struct LOCATION *src) { AssignName(&dest->Name, _(src->Name)); dest->PolicePresence = src->PolicePresence; dest->MinDrug = src->MinDrug; dest->MaxDrug = src->MaxDrug; } void CopyCop(struct COP *dest, struct COP *src) { AssignName(&dest->Name, _(src->Name)); AssignName(&dest->DeputyName, _(src->DeputyName)); AssignName(&dest->DeputiesName, _(src->DeputiesName)); dest->Armor = src->Armor; dest->DeputyArmor = src->DeputyArmor; dest->AttackPenalty = src->AttackPenalty; dest->DefendPenalty = src->DefendPenalty; dest->MinDeputies = src->MinDeputies; dest->MaxDeputies = src->MaxDeputies; dest->GunIndex = src->GunIndex; dest->CopGun = src->CopGun; dest->DeputyGun = src->DeputyGun; } void CopyGun(struct GUN *dest, struct GUN *src) { AssignName(&dest->Name, _(src->Name)); dest->Price = src->Price; dest->Space = src->Space; dest->Damage = src->Damage; } void CopyDrug(struct DRUG *dest, struct DRUG *src) { AssignName(&dest->Name, src->Name[0] ? _(src->Name) : ""); dest->MinPrice = src->MinPrice; dest->MaxPrice = src->MaxPrice; dest->Cheap = src->Cheap; dest->Expensive = src->Expensive; AssignName(&dest->CheapStr, src->CheapStr[0] ? _(src->CheapStr) : ""); } void CopyDrugs(struct DRUGS *dest, struct DRUGS *src) { AssignName(&dest->ExpensiveStr1, _(src->ExpensiveStr1)); AssignName(&dest->ExpensiveStr2, _(src->ExpensiveStr2)); dest->CheapDivide = src->CheapDivide; dest->ExpensiveMultiply = src->ExpensiveMultiply; } static struct PRICES BackupPrices; static struct NAMES BackupNames; static struct DRUG *BackupDrug = NULL; static struct GUN *BackupGun = NULL; static struct LOCATION *BackupLocation = NULL; static struct CURRENCY BackupCurrency = { NULL, TRUE }; static gint NumBackupDrug = 0, NumBackupGun = 0, NumBackupLocation = 0; void BackupConfig(void) { gint i; BackupPrices.Spy = Prices.Spy; BackupPrices.Tipoff = Prices.Tipoff; AssignName(&BackupCurrency.Symbol, Currency.Symbol); BackupCurrency.Prefix = Currency.Prefix; CopyNames(&BackupNames, &Names); /* Free existing backups of guns, drugs, and locations */ for (i = 0; i < NumBackupGun; i++) g_free(BackupGun[i].Name); g_free(BackupGun); for (i = 0; i < NumBackupDrug; i++) { g_free(BackupDrug[i].Name); g_free(BackupDrug[i].CheapStr); } g_free(BackupDrug); for (i = 0; i < NumBackupLocation; i++) g_free(BackupLocation[i].Name); g_free(BackupLocation); NumBackupGun = NumGun; BackupGun = g_new0(struct GUN, NumGun); for (i = 0; i < NumGun; i++) CopyGun(&BackupGun[i], &Gun[i]); NumBackupDrug = NumDrug; BackupDrug = g_new0(struct DRUG, NumDrug); for (i = 0; i < NumDrug; i++) CopyDrug(&BackupDrug[i], &Drug[i]); NumBackupLocation = NumLocation; BackupLocation = g_new0(struct LOCATION, NumLocation); for (i = 0; i < NumLocation; i++) CopyLocation(&BackupLocation[i], &Location[i]); } void RestoreConfig(void) { gint i; Prices.Spy = BackupPrices.Spy; Prices.Tipoff = BackupPrices.Tipoff; CopyNames(&Names, &BackupNames); AssignName(&Currency.Symbol, BackupCurrency.Symbol); Currency.Prefix = BackupCurrency.Prefix; ResizeGuns(NumBackupGun); for (i = 0; i < NumGun; i++) CopyGun(&Gun[i], &BackupGun[i]); ResizeDrugs(NumBackupDrug); for (i = 0; i < NumDrug; i++) CopyDrug(&Drug[i], &BackupDrug[i]); ResizeLocations(NumBackupLocation); for (i = 0; i < NumLocation; i++) CopyLocation(&Location[i], &BackupLocation[i]); } void ScannerErrorHandler(GScanner *scanner, gchar *msg, gint error) { g_print("%s\n", msg); } /* * On Windows systems, check the current config file referenced by "scanner" * for a UTF-8 header. If one is found, "conv" and "encoding" are set * for UTF-8 encoding. */ static void CheckConfigHeader(GScanner *scanner, Converter *conv, gchar **encoding) { #ifdef CYGWIN GTokenType token; token = g_scanner_peek_next_token(scanner); if (token == (guchar)'\357') { /* OK; assume this is a Windows-style \357 \273 \277 UTF-8 header */ if (g_scanner_get_next_token(scanner) != (guchar)'\357' || g_scanner_get_next_token(scanner) != (guchar)'\273' || g_scanner_get_next_token(scanner) != (guchar)'\277') { return; } Conv_SetCodeset(conv, "UTF-8"); if (encoding) { g_free(*encoding); *encoding = g_strdup("UTF-8"); } } #endif } /* * Read a configuration file given by "FileName" */ static gboolean ReadConfigFile(char *FileName, gchar **encoding) { FILE *fp; Converter *conv; GScanner *scanner; fp = fopen(FileName, "r"); if (fp) { conv = Conv_New(); if (encoding) { *encoding = NULL; } scanner = g_scanner_new(&ScannerConfig); scanner->input_name = FileName; scanner->msg_handler = ScannerErrorHandler; g_scanner_input_file(scanner, fileno(fp)); CheckConfigHeader(scanner, conv, encoding); while (!g_scanner_eof(scanner)) { if (!ParseNextConfig(scanner, conv, encoding, FALSE)) { ConfigErrors++; g_scanner_error(scanner, _("Unable to process configuration file %s, line %d"), FileName, g_scanner_cur_line(scanner)); } } g_scanner_destroy(scanner); Conv_Free(conv); fclose(fp); return TRUE; } else { return FALSE; } } gboolean ParseNextConfig(GScanner *scanner, Converter *conv, gchar **encoding, gboolean print) { GTokenType token; gchar *ID1, *ID2; gulong ind = 0; int GlobalIndex; gboolean IndexGiven = FALSE; ID1 = ID2 = NULL; token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_EOF) return TRUE; if (token != G_TOKEN_IDENTIFIER) { g_scanner_unexp_token(scanner, G_TOKEN_IDENTIFIER, NULL, NULL, NULL, NULL, FALSE); return FALSE; } if (g_ascii_strncasecmp(scanner->value.v_identifier, "include", 7) == 0) { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { if (!ReadConfigFile(scanner->value.v_string, NULL)) { g_scanner_error(scanner, _("Unable to open file %s"), scanner->value.v_string); } return TRUE; } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else if (g_ascii_strncasecmp(scanner->value.v_identifier, "encoding", 8) == 0) { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { Conv_SetCodeset(conv, scanner->value.v_string); if (encoding) { g_free(*encoding); *encoding = g_strdup(scanner->value.v_string); } return TRUE; } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } ID1 = g_strdup(scanner->value.v_identifier); token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_LEFT_BRACE) { token = g_scanner_get_next_token(scanner); if (token != G_TOKEN_INT) { g_scanner_unexp_token(scanner, G_TOKEN_INT, NULL, NULL, NULL, NULL, FALSE); return FALSE; } ind = scanner->value.v_int; IndexGiven = TRUE; token = g_scanner_get_next_token(scanner); if (token != G_TOKEN_RIGHT_BRACE) { g_scanner_unexp_token(scanner, G_TOKEN_RIGHT_BRACE, NULL, NULL, NULL, NULL, FALSE); return FALSE; } token = g_scanner_get_next_token(scanner); if (token == '.') { token = g_scanner_get_next_token(scanner); if (token != G_TOKEN_IDENTIFIER) { g_scanner_unexp_token(scanner, G_TOKEN_IDENTIFIER, NULL, NULL, NULL, NULL, FALSE); return FALSE; } ID2 = g_strdup(scanner->value.v_identifier); token = g_scanner_get_next_token(scanner); } } GlobalIndex = GetGlobalIndex(ID1, ID2); g_free(ID1); g_free(ID2); if (GlobalIndex == -1) return FALSE; if (token == G_TOKEN_EOF) { PrintConfigValue(GlobalIndex, (int)ind, IndexGiven, scanner); return TRUE; } else if (token == G_TOKEN_EQUAL_SIGN) { if (CountPlayers(FirstServer) > 0) { g_warning(_("Configuration can only be changed interactively " "when no\nplayers are logged on. Wait for all " "players to log off, or remove\nthem with the " "push or kill commands, and try again.")); } else { if (SetConfigValue(GlobalIndex, (int)ind, IndexGiven, conv, scanner) && print) { PrintConfigValue(GlobalIndex, (int)ind, IndexGiven, scanner); } } return TRUE; } else { return FALSE; } return FALSE; } int GetGlobalIndex(gchar *ID1, gchar *ID2) { int i; const int NumGlob = sizeof(Globals) / sizeof(Globals[0]); if (!ID1) return -1; for (i = 0; i < NumGlob; i++) { if (!ID2 && !Globals[i].NameStruct[0] && g_ascii_strcasecmp(ID1, Globals[i].Name) == 0) { /* Just a bog-standard ID1=value */ return i; } if (g_ascii_strcasecmp(ID1, Globals[i].NameStruct) == 0 && ID2 && g_ascii_strcasecmp(ID2, Globals[i].Name) == 0 && Globals[i].StructStaticPt && Globals[i].StructListPt) { /* ID1[index].ID2=value */ return i; } } return -1; } static void *GetGlobalPointer(int GlobalIndex, int StructIndex) { void *ValPt = NULL; if (Globals[GlobalIndex].IntVal) { ValPt = (void *)Globals[GlobalIndex].IntVal; } else if (Globals[GlobalIndex].PriceVal) { ValPt = (void *)Globals[GlobalIndex].PriceVal; } else if (Globals[GlobalIndex].BoolVal) { ValPt = (void *)Globals[GlobalIndex].BoolVal; } else if (Globals[GlobalIndex].StringVal) { ValPt = (void *)Globals[GlobalIndex].StringVal; } if (!ValPt) return NULL; if (Globals[GlobalIndex].StructStaticPt && Globals[GlobalIndex].StructListPt) { return (char *)ValPt - (char *)Globals[GlobalIndex].StructStaticPt + (char *)*(Globals[GlobalIndex].StructListPt) + (StructIndex - 1) * Globals[GlobalIndex].LenStruct; } else { return ValPt; } } gchar **GetGlobalString(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].StringVal); return (gchar **)GetGlobalPointer(GlobalIndex, StructIndex); } gint *GetGlobalInt(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].IntVal); return (gint *)GetGlobalPointer(GlobalIndex, StructIndex); } price_t *GetGlobalPrice(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].PriceVal); return (price_t *)GetGlobalPointer(GlobalIndex, StructIndex); } gboolean *GetGlobalBoolean(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].BoolVal); return (gboolean *)GetGlobalPointer(GlobalIndex, StructIndex); } gchar ***GetGlobalStringList(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].StringList); return (gchar ***)GetGlobalPointer(GlobalIndex, StructIndex); } gboolean CheckMaxIndex(GScanner *scanner, int GlobalIndex, int StructIndex, gboolean IndexGiven) { if (!Globals[GlobalIndex].MaxIndex || (Globals[GlobalIndex].StringList && !IndexGiven) || (IndexGiven && StructIndex >= 1 && StructIndex <= *(Globals[GlobalIndex].MaxIndex))) { return TRUE; } /* Error message displayed when you try to set, for example, * Drug[10].Name when NumDrug<10 (%s="Drug" and %d=10 in this example) */ g_scanner_error(scanner, _("Index into %s array should be between 1 and %d"), (Globals[GlobalIndex].NameStruct && Globals[GlobalIndex]. NameStruct[0]) ? Globals[GlobalIndex]. NameStruct : Globals[GlobalIndex].Name, *(Globals[GlobalIndex].MaxIndex)); return FALSE; } void PrintConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, GScanner *scanner) { gchar *GlobalName; int i; if (!CheckMaxIndex(scanner, GlobalIndex, StructIndex, IndexGiven)) return; if (Globals[GlobalIndex].NameStruct[0]) { GlobalName = g_strdup_printf("%s[%d].%s", Globals[GlobalIndex].NameStruct, StructIndex, Globals[GlobalIndex].Name); } else GlobalName = Globals[GlobalIndex].Name; if (Globals[GlobalIndex].IntVal) { /* Display of a numeric config. file variable - e.g. "NumDrug is 6" */ g_print(_("%s is %d\n"), GlobalName, *GetGlobalInt(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].BoolVal) { /* Display of a boolean config. file variable - e.g. "DrugValue is TRUE" */ g_print(_("%s is %s\n"), GlobalName, *GetGlobalBoolean(GlobalIndex, StructIndex) ? "TRUE" : "FALSE"); } else if (Globals[GlobalIndex].PriceVal) { /* Display of a price config. file variable - e.g. "Bitch.MinPrice is $200" */ dpg_print(_("%s is %P\n"), GlobalName, *GetGlobalPrice(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].StringVal) { /* Display of a string config. file variable - e.g. "LoanSharkName is \"the loan shark\"" */ g_print(_("%s is \"%s\"\n"), GlobalName, *GetGlobalString(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].StringList) { if (IndexGiven) { /* Display of an indexed string list config. file variable - e.g. "StoppedTo[1] is have a beer" */ g_print(_("%s[%d] is %s\n"), GlobalName, StructIndex, (*(Globals[GlobalIndex].StringList))[StructIndex - 1]); } else { GString *text; text = g_string_new(""); /* Display of the first part of an entire string list config. file variable - e.g. "StoppedTo is { " (followed by "have a beer", "smoke a joint" etc.) */ g_string_printf(text, _("%s is { "), GlobalName); if (Globals[GlobalIndex].MaxIndex) { for (i = 0; i < *(Globals[GlobalIndex].MaxIndex); i++) { if (i > 0) g_string_append(text, ", "); g_string_append_printf(text, "\"%s\"", (*(Globals[GlobalIndex].StringList))[i]); } } g_string_append(text, " }\n"); g_print("%s", text->str); g_string_free(text, TRUE); } } if (Globals[GlobalIndex].NameStruct[0]) g_free(GlobalName); } static gboolean SetConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, Converter *conv, GScanner *scanner) { gchar *GlobalName, *tmpstr; GTokenType token; int IntVal, NewNum; Player *tmp; GSList *list, *StartList; gboolean parsed; if (!CheckMaxIndex(scanner, GlobalIndex, StructIndex, IndexGiven)) return FALSE; if (Globals[GlobalIndex].NameStruct[0]) { GlobalName = g_strdup_printf("%s[%d].%s", Globals[GlobalIndex].NameStruct, StructIndex, Globals[GlobalIndex].Name); } else { GlobalName = Globals[GlobalIndex].Name; } if (Globals[GlobalIndex].IntVal) { gboolean minus = FALSE; /* GScanner doesn't understand negative numbers, so we need to * explicitly check for a prefixed minus sign */ token = g_scanner_get_next_token(scanner); if (token == '-') { minus = TRUE; token = g_scanner_get_next_token(scanner); } if (token == G_TOKEN_INT) { IntVal = (int)scanner->value.v_int; if (minus) { IntVal = -IntVal; } if (IntVal < Globals[GlobalIndex].MinVal) { g_scanner_warn(scanner, _("%s can be no smaller than %d - ignoring!"), GlobalName, Globals[GlobalIndex].MinVal); return FALSE; } if (Globals[GlobalIndex].MaxVal > Globals[GlobalIndex].MinVal && IntVal > Globals[GlobalIndex].MaxVal) { g_scanner_warn(scanner, _("%s can be no larger than %d - ignoring!"), GlobalName, Globals[GlobalIndex].MaxVal); return FALSE; } if (Globals[GlobalIndex].ResizeFunc) { (*(Globals[GlobalIndex].ResizeFunc)) (IntVal); /* Displayed, for example, when you set NumDrug=10 to allow Drug[10].Name etc. to be set */ if (ConfigVerbose) g_print(_("Resized structure list to %d elements\n"), IntVal); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; UpdatePlayer(tmp); } for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; UpdatePlayer(tmp); } } *GetGlobalInt(GlobalIndex, StructIndex) = IntVal; } else { g_scanner_unexp_token(scanner, G_TOKEN_INT, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else if (Globals[GlobalIndex].BoolVal) { scanner->config->cset_identifier_first = G_CSET_a_2_z "01" G_CSET_A_2_Z; scanner->config->cset_identifier_nth = G_CSET_a_2_z G_CSET_A_2_Z; token = g_scanner_get_next_token(scanner); scanner->config->cset_identifier_first = G_CSET_a_2_z "_" G_CSET_A_2_Z; scanner->config->cset_identifier_nth = G_CSET_a_2_z "._0123456789" G_CSET_A_2_Z; parsed = FALSE; if (token == G_TOKEN_IDENTIFIER) { if (g_ascii_strncasecmp(scanner->value.v_identifier, "TRUE", 4) == 0 || strcmp(scanner->value.v_identifier, "1") == 0) { parsed = TRUE; *GetGlobalBoolean(GlobalIndex, StructIndex) = TRUE; } else if (g_ascii_strncasecmp(scanner->value.v_identifier, "FALSE", 5) == 0 || strcmp(scanner->value.v_identifier, "0") == 0) { parsed = TRUE; *GetGlobalBoolean(GlobalIndex, StructIndex) = FALSE; } } if (!parsed) { g_scanner_unexp_token(scanner, G_TOKEN_NONE, NULL, NULL, NULL, _("expected a boolean value (one of 0, FALSE, " "1, TRUE)"), FALSE); return FALSE; } } else if (Globals[GlobalIndex].PriceVal) { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_INT) { *GetGlobalPrice(GlobalIndex, StructIndex) = (price_t)scanner->value.v_int; } else { g_scanner_unexp_token(scanner, G_TOKEN_INT, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else if (Globals[GlobalIndex].StringVal) { scanner->config->identifier_2_string = TRUE; scanner->config->cset_identifier_first = G_CSET_a_2_z "._0123456789" G_CSET_A_2_Z G_CSET_LATINS G_CSET_LATINC; scanner->config->cset_identifier_nth = G_CSET_a_2_z " ._0123456789" G_CSET_A_2_Z G_CSET_LATINS G_CSET_LATINC; token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { tmpstr = Conv_ToInternal(conv, scanner->value.v_string, -1); AssignName(GetGlobalString(GlobalIndex, StructIndex), tmpstr); g_free(tmpstr); } else if (token == G_TOKEN_IDENTIFIER) { tmpstr = Conv_ToInternal(conv, scanner->value.v_identifier, -1); AssignName(GetGlobalString(GlobalIndex, StructIndex), tmpstr); g_free(tmpstr); } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); } scanner->config->identifier_2_string = FALSE; scanner->config->cset_identifier_first = G_CSET_a_2_z "_" G_CSET_A_2_Z; scanner->config->cset_identifier_nth = G_CSET_a_2_z "._0123456789" G_CSET_A_2_Z; } else if (Globals[GlobalIndex].StringList) { token = g_scanner_get_next_token(scanner); if (IndexGiven) { if (token == G_TOKEN_STRING) { tmpstr = Conv_ToInternal(conv, scanner->value.v_string, -1); AssignName(&(*(Globals[GlobalIndex].StringList))[StructIndex - 1], tmpstr); g_free(tmpstr); } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else { StartList = NULL; if (token != G_TOKEN_LEFT_CURLY) { g_scanner_unexp_token(scanner, G_TOKEN_LEFT_CURLY, NULL, NULL, NULL, NULL, FALSE); return FALSE; } NewNum = 0; do { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { tmpstr = g_strdup(scanner->value.v_string); NewNum++; StartList = g_slist_append(StartList, tmpstr); } else if (token != G_TOKEN_RIGHT_CURLY && token != G_TOKEN_COMMA) { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } while (token != G_TOKEN_RIGHT_CURLY); (*Globals[GlobalIndex].ResizeFunc) (NewNum); NewNum = 0; for (list = StartList; list; NewNum++, list = g_slist_next(list)) { AssignName(&(*(Globals[GlobalIndex].StringList))[NewNum], (char *)list->data); g_free(list->data); } g_slist_free(StartList); } } if (Globals[GlobalIndex].NameStruct[0]) g_free(GlobalName); Globals[GlobalIndex].Modified = TRUE; return TRUE; } /* * Returns the URL of the directory containing local HTML documentation. */ gchar *GetDocRoot(void) { gchar *path; #ifdef CYGWIN gchar *bindir; bindir = GetBinaryDir(); path = g_strdup_printf("file://%s/doc/", bindir); g_free(bindir); #else path = g_strdup_printf("file://%s/", DPDOCDIR); #endif return path; } /* * Returns the URL of the index file for the local HTML documentation. */ gchar *GetDocIndex(void) { gchar *file, *root; root = GetDocRoot(); file = g_strdup_printf("%sindex.html", root); g_free(root); return file; } #ifdef CYGWIN extern gchar *appdata_path; #endif /* * Returns the pathname of the global (all users) configuration file, * as a dynamically-allocated string that must be later freed. On * error, NULL is returned. */ gchar *GetGlobalConfigFile(void) { #ifdef CYGWIN gchar *bindir, *conf = NULL; /* Global configuration is in the same directory as the dopewars binary */ bindir = GetBinaryDir(); if (bindir) { conf = g_strdup_printf("%s/dopewars-config.txt", bindir); g_free(bindir); } return conf; #else return g_strdup("/etc/dopewars"); #endif } /* * Returns the pathname of the local (per-user) configuration file, * as a dynamically-allocated string that must be later freed. On * error, NULL is returned. */ gchar *GetLocalConfigFile(void) { #ifdef CYGWIN return g_strdup_printf("%s/dopewars-config.txt", appdata_path ? appdata_path : "."); #else gchar *home, *conf = NULL; /* Local config is in the user's home directory */ home = getenv("HOME"); if (home) { conf = g_strdup_printf("%s/.dopewars", home); } return conf; #endif } /* * Sets up data - such as the location of the high score file - to * hard-coded internal values, and then processes the global and * user-specific configuration files. */ static void SetupParameters(GSList *extraconfigs, gboolean antique) { gchar *conf; GSList *list; int i, defloc; DrugValue = TRUE; Sanitized = ConfigVerbose = FALSE; g_free(Currency.Symbol); /* The currency symbol */ Currency.Symbol = g_strdup(_("$")); Currency.Prefix = (strcmp("Currency.Prefix=TRUE", /* Translate this to "Currency.Prefix=FALSE" if you want your currency symbol to follow all prices. */ _("Currency.Prefix=TRUE")) == 0); /* Set hard-coded default values */ AssignName(&ServerName, "localhost"); AssignName(&ServerMOTD, ""); AssignName(&BindAddress, ""); AssignName(&OurWebBrowser, "/usr/bin/firefox"); AssignName(&Sounds.FightHit, SNDPATH"colt.wav"); AssignName(&Sounds.EnemyBitchKilled, SNDPATH"shotdown.wav"); AssignName(&Sounds.BitchKilled, SNDPATH"losebitch.wav"); AssignName(&Sounds.EnemyKilled, SNDPATH"shotdown.wav"); AssignName(&Sounds.Killed, SNDPATH"die.wav"); AssignName(&Sounds.EnemyFlee, SNDPATH"run.wav"); AssignName(&Sounds.Flee, SNDPATH"run.wav"); AssignName(&Sounds.Jet, SNDPATH"train.wav"); AssignName(&Sounds.TalkPrivate, SNDPATH"murmur.wav"); AssignName(&Sounds.TalkToAll, SNDPATH"message.wav"); AssignName(&Sounds.EndGame, SNDPATH"bye.wav"); LoanSharkLoc = DEFLOANSHARK; BankLoc = DEFBANK; if (antique) { GunShopLoc = RoughPubLoc = 0; } else { GunShopLoc = DEFGUNSHOP; RoughPubLoc = DEFROUGHPUB; } CopyNames(&Names, &DefaultNames); CopyDrugs(&Drugs, &DefaultDrugs); #ifdef NETWORKING CopyMetaServer(&MetaServer, &DefaultMetaServer); AssignName(&Socks.name, "socks"); Socks.port = 1080; Socks.version = 4; g_free(Socks.user); g_free(Socks.authuser); g_free(Socks.authpassword); Socks.user = g_strdup(""); Socks.numuid = FALSE; Socks.authuser = g_strdup(""); Socks.authpassword = g_strdup(""); UseSocks = FALSE; #endif defloc = sizeof(DefaultLocation) / sizeof(DefaultLocation[0]); g_assert(defloc >= 6); if (antique) { defloc = 6; } ResizeLocations(defloc); for (i = 0; i < NumLocation; i++) CopyLocation(&Location[i], &DefaultLocation[i]); ResizeCops(sizeof(DefaultCop) / sizeof(DefaultCop[0])); for (i = 0; i < NumCop; i++) CopyCop(&Cop[i], &DefaultCop[i]); ResizeGuns(sizeof(DefaultGun) / sizeof(DefaultGun[0])); for (i = 0; i < NumGun; i++) CopyGun(&Gun[i], &DefaultGun[i]); ResizeDrugs(sizeof(DefaultDrug) / sizeof(DefaultDrug[0])); for (i = 0; i < NumDrug; i++) CopyDrug(&Drug[i], &DefaultDrug[i]); ResizeSubway(sizeof(DefaultSubwaySaying) / sizeof(DefaultSubwaySaying[0])); for (i = 0; i < NumSubway; i++) { AssignName(&SubwaySaying[i], _(DefaultSubwaySaying[i])); } ResizePlaying(sizeof(DefaultPlaying) / sizeof(DefaultPlaying[0])); for (i = 0; i < NumPlaying; i++) { AssignName(&Playing[i], _(DefaultPlaying[i])); } ResizeStoppedTo(sizeof(DefaultStoppedTo) / sizeof(DefaultStoppedTo[0])); for (i = 0; i < NumStoppedTo; i++) { AssignName(&StoppedTo[i], _(DefaultStoppedTo[i])); } /* Replace nasty null pointers with null strings */ for (i = 0; i < NUMGLOB; ++i) { if (Globals[i].StringVal && !*Globals[i].StringVal) { *Globals[i].StringVal = g_strdup(""); } } /* Now read in the global configuration file */ conf = GetGlobalConfigFile(); if (conf) { ReadConfigFile(conf, NULL); g_free(conf); } /* Next, try the local configuration file */ conf = GetLocalConfigFile(); if (conf) { ReadConfigFile(conf, &LocalCfgEncoding); g_free(conf); } /* Finally, any configuration files named on the command line */ for (list = extraconfigs; list; list = g_slist_next(list)) { ReadConfigFile(list->data, NULL); } } void GetDateString(GString *str, Player *Play) { gchar buf[200], *turn, *pt; turn = g_strdup_printf("%d", Play->Turn); g_string_assign(str, Names.Date); while ((pt = strstr(str->str, "%T")) != NULL) { int ind = pt - str->str; g_string_erase(str, ind, 2); g_string_insert(str, ind, turn); } g_date_strftime(buf, sizeof(buf), str->str, Play->date); g_string_assign(str, buf); g_free(turn); } static void PluginHelp(void) { gchar *plugins; #ifdef HAVE_GETOPT_LONG g_print(_(" -u, --plugin=FILE use sound plugin \"FILE\"\n" " ")); #else g_print(_(" -u file use sound plugin \"file\"\n" " ")); #endif plugins = GetPluginList(); g_print(_("(%s available)\n"), plugins); g_free(plugins); } void HandleHelpTexts(gboolean fullhelp) { g_print(_("dopewars version %s\n"), VERSION); if (!fullhelp) { return; } g_print( #ifdef HAVE_GETOPT_LONG /* Usage information, printed when the user runs "dopewars -h" (version with support for GNU long options) */ _("Usage: dopewars [OPTION]...\n\ Drug dealing game based on \"Drug Wars\" by John E. Dell\n\ -b, --no-color, \"black and white\" - i.e. do not use pretty colors\n\ --no-colour (by default colors are used where available)\n\ -n, --single-player be boring and don't connect to any available dopewars\n\ servers (i.e. single player mode)\n\ -a, --antique \"antique\" dopewars - keep as closely to the original\n\ version as possible (no networking)\n\ -f, --scorefile=FILE specify a file to use as the high score table (by\n\ default %s/dopewars.sco is used)\n\ -o, --hostname=ADDR specify a hostname where the server for multiplayer\n\ dopewars can be found\n\ -s, --public-server run in server mode (note: see the -A option for\n\ configuring a server once it\'s running)\n\ -S, --private-server run a \"private\" server (do not notify the metaserver)\n\ -p, --port=PORT specify the network port to use (default: 7902)\n\ -g, --config-file=FILE specify the pathname of a dopewars configuration file;\n\ this file is read immediately when the -g option\n\ is encountered\n\ -r, --pidfile=FILE maintain pid file \"FILE\" while running the server\n\ -l, --logfile=FILE write log information to \"FILE\"\n\ -A, --admin connect to a locally-running server for administration\n\ -c, --ai-player create and run a computer player\n\ -w, --windowed-client force the use of a graphical (windowed)\n\ client (GTK+ or Win32)\n\ -t, --text-client force the use of a text-mode client (curses) (by\n\ default, a windowed client is used when possible)\n\ -P, --player=NAME set player name to \"NAME\"\n\ -C, --convert=FILE convert an \"old format\" score file to the new format\n"), DPSCOREDIR); PluginHelp(); g_print(_(" -h, --help display this help information\n\ -v, --version output version information and exit\n\n\ dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL\n\ Report bugs to the author at benwebb@users.sf.net\n")); #else /* Usage information, printed when the user runs "dopewars -h" (short options only version) */ _("Usage: dopewars [OPTION]...\n\ Drug dealing game based on \"Drug Wars\" by John E. Dell\n\ -b \"black and white\" - i.e. do not use pretty colors\n\ (by default colors are used where the terminal supports them)\n\ -n be boring and don't connect to any available dopewars servers\n\ (i.e. single player mode)\n\ -a \"antique\" dopewars - keep as closely to the original version as\n\ possible (no networking)\n\ -f file specify a file to use as the high score table\n\ (by default %s/dopewars.sco is used)\n\ -o addr specify a hostname where the server for multiplayer dopewars\n\ can be found\n\ -s run in server mode (note: see the -A option for configuring a\n\ server once it\'s running)\n\ -S run a \"private\" server (i.e. do not notify the metaserver)\n\ -p port specify the network port to use (default: 7902)\n\ -g file specify the pathname of a dopewars configuration file; this file\n\ is read immediately when the -g option is encountered\n\ -r file maintain pid file \"file\" while running the server\n\ -l file write log information to \"file\"\n\ -c create and run a computer player\n\ -w force the use of a graphical (windowed) client (GTK+ or Win32)\n\ -t force the use of a text-mode client (curses)\n\ (by default, a windowed client is used when possible)\n\ -P name set player name to \"name\"\n\ -C file convert an \"old format\" score file to the new format\n\ -A connect to a locally-running server for administration\n"), DPSCOREDIR); PluginHelp(); g_print(_(" -h display this help information\n\ -v output version information and exit\n\n\ dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL\n\ Report bugs to the author at benwebb@users.sf.net\n")); #endif } struct CMDLINE *ParseCmdLine(int argc, char *argv[]) { int c; struct CMDLINE *cmdline = g_new0(struct CMDLINE, 1); static const gchar *options = "anbchvf:o:sSp:g:r:wtC:l:NAu:P:"; #ifdef HAVE_GETOPT_LONG static const struct option long_options[] = { {"no-color", no_argument, NULL, 'b'}, {"no-colour", no_argument, NULL, 'b'}, {"single-player", no_argument, NULL, 'n'}, {"antique", no_argument, NULL, 'a'}, {"scorefile", required_argument, NULL, 'f'}, {"hostname", required_argument, NULL, 'o'}, {"public-server", no_argument, NULL, 's'}, {"private-server", no_argument, NULL, 'S'}, {"port", required_argument, NULL, 'p'}, {"configfile", required_argument, NULL, 'g'}, {"pidfile", required_argument, NULL, 'r'}, {"ai-player", no_argument, NULL, 'c'}, {"windowed-client", no_argument, NULL, 'w'}, {"text-client", no_argument, NULL, 't'}, {"player", required_argument, NULL, 'P'}, {"convert", required_argument, NULL, 'C'}, {"logfile", required_argument, NULL, 'l'}, {"admin", no_argument, NULL, 'A'}, {"plugin", required_argument, NULL, 'u'}, {"help", no_argument, NULL, 'h'}, {"version", no_argument, NULL, 'v'}, {0, 0, 0, 0} }; #endif cmdline->scorefile = cmdline->servername = cmdline->pidfile = cmdline->logfile = cmdline->plugin = cmdline->convertfile = cmdline->playername = NULL; cmdline->configs = NULL; cmdline->color = cmdline->network = TRUE; cmdline->client = CLIENT_AUTO; do { #ifdef HAVE_GETOPT_LONG c = getopt_long(argc, argv, options, long_options, NULL); #else c = getopt(argc, argv, options); #endif switch (c) { case 'n': cmdline->network = FALSE; break; case 'b': cmdline->color = FALSE; break; case 'c': cmdline->ai = TRUE; break; case 'a': cmdline->antique = TRUE; cmdline->network = FALSE; break; case 'v': cmdline->version = TRUE; break; case 'h': case 0: case '?': cmdline->help = TRUE; break; case 'f': AssignName(&cmdline->scorefile, optarg); break; case 'o': AssignName(&cmdline->servername, optarg); break; case 's': cmdline->server = TRUE; cmdline->notifymeta = TRUE; break; case 'S': cmdline->server = TRUE; cmdline->notifymeta = FALSE; break; case 'p': cmdline->setport = TRUE; cmdline->port = atoi(optarg); break; case 'g': cmdline->configs = g_slist_append(cmdline->configs, g_strdup(optarg)); break; case 'r': AssignName(&cmdline->pidfile, optarg); break; case 'l': AssignName(&cmdline->logfile, optarg); break; case 'u': AssignName(&cmdline->plugin, optarg); break; case 'w': cmdline->client = CLIENT_WINDOW; break; case 't': cmdline->client = CLIENT_CURSES; break; case 'P': AssignName(&cmdline->playername, optarg); break; case 'C': AssignName(&cmdline->convertfile, optarg); cmdline->convert = TRUE; break; case 'A': cmdline->admin = TRUE; break; } } while (c != -1); return cmdline; } void FreeCmdLine(struct CMDLINE *cmdline) { GSList *list; g_free(cmdline->scorefile); g_free(cmdline->servername); g_free(cmdline->pidfile); g_free(cmdline->logfile); g_free(cmdline->plugin); g_free(cmdline->convertfile); g_free(cmdline->playername); for (list = cmdline->configs; list; list = g_slist_next(list)) { g_free(list->data); } g_slist_free(list); g_free(cmdline); } static gchar *priv_hiscore = NULL; /* * Does general startup stuff (command line, dropping privileges, * and high score init; config files are handled later) */ struct CMDLINE *GeneralStartup(int argc, char *argv[]) { /* First, open the hard-coded high score file with possibly * elevated privileges */ #ifdef CYGWIN priv_hiscore = g_strdup_printf("%s/dopewars.sco", appdata_path ? appdata_path : DPSCOREDIR); #else priv_hiscore = g_strdup_printf("%s/dopewars.sco", DPSCOREDIR); #endif HiScoreFile = g_strdup(priv_hiscore); OpenHighScoreFile(); DropPrivileges(); /* Initialize variables */ Log.File = g_strdup(""); Log.Level = 2; Log.Timestamp = g_strdup("[%H:%M:%S] "); srand((unsigned)time(NULL)); Noone.Name = g_strdup("Noone"); Server = Client = Network = FALSE; return ParseCmdLine(argc, argv); } void InitConfiguration(struct CMDLINE *cmdline) { ConfigErrors = 0; SetupParameters(cmdline->configs, cmdline->antique); if (cmdline->scorefile) { AssignName(&HiScoreFile, cmdline->scorefile); } if (cmdline->servername) { AssignName(&ServerName, cmdline->servername); } if (cmdline->playername) { AssignName(&PlayerName, cmdline->playername); } if (cmdline->pidfile) { AssignName(&PidFile, cmdline->pidfile); } if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); OpenLog(); } if (cmdline->setport) { Port = cmdline->port; } #ifdef NETWORKING if (cmdline->server) { MetaServer.Active = cmdline->notifymeta; } #endif WantAntique = cmdline->antique; if (!cmdline->version && !cmdline->help && !cmdline->ai && !cmdline->convert && !cmdline->admin) { /* Open a user-specified high score file with no privileges, if one * was given */ if (strcmp(priv_hiscore, HiScoreFile) != 0) { CloseHighScoreFile(); OpenHighScoreFile(); } } else { CloseHighScoreFile(); } } /* * Removes any ^ or \n characters from the given string, which is * modified in place. */ void StripTerminators(gchar *str) { guint i; if (str) { for (i = 0; i < strlen(str); i++) { switch(str[i]) { case '^': case '\n': str[i] = '~'; break; default: break; } } } } #ifndef CYGWIN #if defined(NETWORKING) && !defined(GUI_SERVER) static void ServerLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { fprintf(Log.fp ? Log.fp : stdout, "%s\n", text->str); g_string_free(text, TRUE); } } #endif #ifndef CURSES_CLIENT /* * Stub function to report an error if the Curses client is requested and * it isn't compiled in. */ void CursesLoop(struct CMDLINE *cmdline) { g_print(_("No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n")); } #endif #ifndef GUI_CLIENT /* * Stub function to report an error if the GTK+ client is requested and * it isn't compiled in. */ #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail) #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail) #endif { if (!ReturnOnFail) { g_print(_("No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n")); } return FALSE; } #endif static void DefaultLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { g_print("%s\n", text->str); g_string_free(text, TRUE); } } /* * Standard program entry - Win32 uses WinMain() instead, in winmain.c */ int main(int argc, char *argv[]) { struct CMDLINE *cmdline; #ifdef ENABLE_NLS const char *charset; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); LocaleIsUTF8 = g_get_charset(&charset); #endif WantUTF8Errors(FALSE); g_log_set_handler(NULL, LogMask(), DefaultLogMessage, NULL); cmdline = GeneralStartup(argc, argv); if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); } OpenLog(); SoundInit(); if (cmdline->version || cmdline->help) { HandleHelpTexts(cmdline->help); } else if (cmdline->admin) { #ifdef NETWORKING AdminServer(cmdline); #else g_print(_("This binary has been compiled without networking " "support, and thus cannot run\nin admin mode. " "Recompile passing --enable-networking to the " "configure script.\n")); #endif } else if (cmdline->convert) { ConvertHighScoreFile(cmdline->convertfile); } else { InitNetwork(); if (cmdline->server) { #ifdef NETWORKING #ifdef GUI_SERVER Server = TRUE; gtk_set_locale(); gtk_init(&argc, &argv); GuiServerLoop(cmdline, FALSE); #else g_log_set_handler(NULL, LogMask(), ServerLogMessage, NULL); ServerLoop(cmdline); #endif /* GUI_SERVER */ #else g_print(_("This binary has been compiled without networking " "support, and thus cannot run\nin server mode. " "Recompile passing --enable-networking to the " "configure script.\n")); #endif /* NETWORKING */ } else if (cmdline->ai) { AIPlayerLoop(cmdline); } else switch (cmdline->client) { case CLIENT_AUTO: if (!GtkLoop(&argc, &argv, cmdline, TRUE)) CursesLoop(cmdline); break; case CLIENT_WINDOW: GtkLoop(&argc, &argv, cmdline, FALSE); break; case CLIENT_CURSES: CursesLoop(cmdline); break; } #ifdef NETWORKING StopNetworking(); #endif } FreeCmdLine(cmdline); CloseLog(); CloseHighScoreFile(); g_free(PidFile); g_free(Log.File); SoundClose(); return 0; } #endif /* CYGWIN */ dopewars-1.6.2/src/message.c000644 000765 000024 00000124675 14256242752 015662 0ustar00benstaff000000 000000 /************************************************************************ * message.c Message-handling routines for dopewars * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifndef CYGWIN #include #include #endif #include #include #include #include "convert.h" #include "dopewars.h" #include "message.h" #include "network.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" #include "util.h" /* Maximum sizes (in bytes) of read and write buffers - connections should * be dropped if either buffer is filled */ #define MAXREADBUF (32768) #define MAXWRITEBUF (65536) /* *INDENT-OFF* */ /* dopewars is built around a client-server model. Each client handles the user interface, but all the important calculation and processing is handled by the server. All communication is conducted via. TCP by means of plain text newline-delimited messages. New message structure:- Other^ACData Other: The ID of the player at the "other end" of the connection; for messages received by the client, this is the player from which the message originates, while for messages received by the server, it's the player to which to deliver the message. A: One-letter code; used by AI players to identify the message subtype (check AIPlayer.h) C: One-letter code to identify the message type (check message.h) Data: Message-dependent information For compatibility with old clients and servers, the old message structure is still supported:- From^To^ACData From,To: Player names identifying the sender and intended recipient of the message. Either field may be blank, although the server will usually reject incoming messages if they are not properly identified with a correct "From" field. A,C,Data: As above, for the new message structure For example, a common message is the "printmessage" message (message code C is C_PRINTMESSAGE), which simply instructs the client to display "Data". Any ^ characters within Data are replaced by newlines on output. So in order for the server to instruct player "Fred" (ID 1) to display "Hello world" it would send the message:- ^AAHello world (new format) ^Fred^AAHello world (old format) Note that the server has left the Other (or From) field blank, and has specified the AI code 'A' - defined in AIPlayer.h as C_NONE (i.e. an "unimportant" message) as well as the main code 'A', defined as C_PRINTMESSAGE in message.h. Note also that the destination player (Fred) is not specified in the new format; the player is identified by the socket through which the message is transmitted. When the network is down, a server is simulated locally. Messages from the client are passed directly to the server message handling routine, and vice versa. */ /* *INDENT-ON* */ GSList *FirstClient = NULL; static Converter *netconv = NULL; void (*ClientMessageHandlerPt)(char *, Player *) = NULL; /* * Sends a message from player "From" to player "To" via. the server. * AI, Code and Data define the message. */ void SendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data) { DoSendClientMessage(From, AI, Code, To, Data, From); } /* * Sends a message from player "From" to player "To" via. the server, * sending a blank name for "From" (this is required with the old message * format, up to and including the first successful C_NAME message, but has * no effect with the new format. AI, Code and Data define the message. */ void SendNullClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data) { DoSendClientMessage(NULL, AI, Code, To, Data, From); } /* * Send a message from client player "From" with computer code "AI", * human-readable code "Code" and data "Data". The message is sent to the * server, identifying itself as for "To". "BufOwn" identifies the player * which owns the buffers used for the actual wire connection. With the * new message format, "From" is ignored. From, To, or Data may be NULL. */ void DoSendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, Player *BufOwn) { GString *text; Player *ServerFrom; g_assert(BufOwn != NULL); text = g_string_new(NULL); if (HaveAbility(BufOwn, A_PLAYERID)) { if (To) g_string_append_printf(text, "%d", To->ID); g_string_append_printf(text, "^%c%c%s", AI, Code, Data ? Data : ""); } else { g_string_printf(text, "%s^%s^%c%c%s", From ? GetPlayerName(From) : "", To ? GetPlayerName(To) : "", AI, Code, Data ? Data : ""); } #ifdef NETWORKING if (!Network) { #endif if (From) ServerFrom = GetPlayerByName(GetPlayerName(From), FirstServer); else if (FirstServer) ServerFrom = (Player *)(FirstServer->data); else { ServerFrom = g_new(Player, 1); FirstServer = AddPlayer(0, ServerFrom, FirstServer); } HandleServerMessage(text->str, ServerFrom); #ifdef NETWORKING } else { QueuePlayerMessageForSend(BufOwn, text->str); } #endif /* NETWORKING */ g_string_free(text, TRUE); } /* * Shorthand for the server sending a "printmessage"; instructs the * client "To" to display "Data". */ void SendPrintMessage(Player *From, AICode AI, Player *To, char *Data) { SendServerMessage(From, AI, C_PRINTMESSAGE, To, Data); } /* * Shorthand for the server sending a "question"; instructs the client * "To" to display the second word of Data and accept any letter within * the first word of Data as suitable reply. */ void SendQuestion(Player *From, AICode AI, Player *To, char *Data) { SendServerMessage(From, AI, C_QUESTION, To, Data); } /* * Sends a message from the server to client player "To" with computer * code "AI", human-readable code "Code" and data "Data", claiming * to be from player "From". */ void SendServerMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data) { GString *text; if (IsCop(To)) return; text = g_string_new(NULL); if (HaveAbility(To, A_PLAYERID)) { if (From) g_string_append_printf(text, "%d", From->ID); g_string_append_printf(text, "^%c%c%s", AI, Code, Data ? Data : ""); } else { g_string_printf(text, "%s^%s^%c%c%s", From ? GetPlayerName(From) : "", To ? GetPlayerName(To) : "", AI, Code, Data ? Data : ""); } #ifdef NETWORKING if (!Network) { #endif if (ClientMessageHandlerPt) (*ClientMessageHandlerPt)(text->str, (Player *)(FirstClient->data)); #ifdef NETWORKING } else { QueuePlayerMessageForSend(To, text->str); } #endif g_string_free(text, TRUE); } /* * Sets up the "abilities" of player "Play". Abilities are used to extend * the protocol; if both the client and server share an ability, then the * protocol extension can be used. */ void InitAbilities(Player *Play) { int i; /* Clear all abilities */ for (i = 0; i < A_NUM; i++) { Play->Abil.Local[i] = FALSE; Play->Abil.Remote[i] = FALSE; Play->Abil.Shared[i] = FALSE; } Play->Abil.RemoteNum = 0; /* Set local abilities; abilities that are client-dependent (e.g. * A_NEWFIGHT) can be overridden by individual clients if required, by * calling SetAbility, prior to calling SendAbilities */ Play->Abil.Local[A_PLAYERID] = TRUE; Play->Abil.Local[A_NEWFIGHT] = TRUE; Play->Abil.Local[A_DRUGVALUE] = (DrugValue ? TRUE : FALSE); Play->Abil.Local[A_TSTRING] = TRUE; Play->Abil.Local[A_DONEFIGHT] = TRUE; Play->Abil.Local[A_UTF8] = TRUE; Play->Abil.Local[A_DATE] = TRUE; if (!Network) { for (i = 0; i < A_NUM; i++) { Play->Abil.Remote[i] = Play->Abil.Shared[i] = Play->Abil.Local[i]; } Play->Abil.RemoteNum = A_NUM; } } /* * Sends abilities of player "Play" to the other end of the client-server * connection. */ void SendAbilities(Player *Play) { int i; gchar Data[A_NUM + 1]; if (!Network) return; for (i = 0; i < A_NUM; i++) { Data[i] = (Play->Abil.Local[i] ? '1' : '0'); } Data[A_NUM] = '\0'; if (Server) { SendServerMessage(NULL, C_NONE, C_ABILITIES, Play, Data); } else { SendClientMessage(Play, C_NONE, C_ABILITIES, NULL, Data); } } /* * Fills in the "remote" abilities of player "Play" using the message data * in "Data". These are the abilities of the server/client at the other * end of the connection. */ void ReceiveAbilities(Player *Play, gchar *Data) { int i, Length; InitAbilities(Play); if (!Network) return; Play->Abil.RemoteNum = strlen(Data); Length = MIN(Play->Abil.RemoteNum, A_NUM); for (i = 0; i < Length; i++) { Play->Abil.Remote[i] = (Data[i] == '1' ? TRUE : FALSE); } } /* * Combines the local and remote abilities of player "Play". The resulting * shared abilities are used to determine when protocol extensions can be * used. */ void CombineAbilities(Player *Play) { int i; for (i = 0; i < A_NUM; i++) { Play->Abil.Shared[i] = (Play->Abil.Remote[i] && Play->Abil.Local[i]); } if (HaveAbility(Play, A_UTF8)) { Conv_SetCodeset(netconv, "UTF-8"); } } /* * Sets ability "Type" of player "Play", and also sets shared abilities if * networking is not active (the local server should support all abilities * that the client uses). Call this function prior to calling SendAbilities * so that the ability is recognised properly when networking _is_ active */ void SetAbility(Player *Play, gint Type, gboolean Set) { if (Type < 0 || Type >= A_NUM) return; Play->Abil.Local[Type] = Set; if (!Network) { Play->Abil.Remote[Type] = Play->Abil.Shared[Type] = Play->Abil.Local[Type]; } } /* * Returns TRUE if ability "Type" is one of player "Play"'s shared abilities */ gboolean HaveAbility(Player *Play, gint Type) { if (Type < 0 || Type >= A_NUM) return FALSE; else return (Play->Abil.Shared[Type]); } #ifdef NETWORKING /* * Reads and writes player data from/to the network if it is ready. * If any data were read, TRUE is returned. "DoneOK" is set TRUE * unless a fatal error (i.e. the connection was broken) occurred. */ gboolean PlayerHandleNetwork(Player *Play, gboolean ReadReady, gboolean WriteReady, gboolean ErrorReady, gboolean *DoneOK) { gboolean DataWaiting = FALSE; *DoneOK = TRUE; if (!Play) return DataWaiting; DataWaiting = NetBufHandleNetwork(&Play->NetBuf, ReadReady, WriteReady, ErrorReady, DoneOK); return DataWaiting; } gchar *GetWaitingPlayerMessage(Player *Play) { gchar *unconv, *conv; unconv = GetWaitingMessage(&Play->NetBuf); if (unconv && Conv_Needed(netconv)) { conv = Conv_ToInternal(netconv, unconv, -1); g_free(unconv); return conv; } else { return unconv; } } gboolean ReadPlayerDataFromWire(Player *Play) { return ReadDataFromWire(&Play->NetBuf); } void QueuePlayerMessageForSend(Player *Play, gchar *data) { if (Conv_Needed(netconv)) { gchar *conv = Conv_ToExternal(netconv, data, -1); QueueMessageForSend(&Play->NetBuf, conv); g_free(conv); } else { QueueMessageForSend(&Play->NetBuf, data); } } gboolean WritePlayerDataToWire(Player *Play) { return WriteDataToWire(&Play->NetBuf); } gboolean OpenMetaHttpConnection(CurlConnection *conn, GError **err) { gboolean ret; gchar *url; url = g_strdup_printf("%s?output=text&getlist=%d", MetaServer.URL, METAVERSION); ret = OpenCurlConnection(conn, url, NULL, err); g_free(url); return ret; } GQuark dope_meta_error_quark(void) { return g_quark_from_static_string("dope-meta-error-quark"); } gboolean HandleWaitingMetaServerData(CurlConnection *conn, GSList **listpt, GError **err) { char *msg; g_assert(conn && listpt); msg = conn->data; /* This should be the first line of the body, the "MetaServer:" line */ if (msg && strlen(msg) >= 14 && strncmp(msg, "FATAL ERROR:", 12) == 0) { g_set_error(err, DOPE_META_ERROR, DOPE_META_ERROR_INTERNAL, _("Internal metaserver error \"%s\""), &msg[13]); return FALSE; } else if (msg && strncmp(msg, "MetaServer:", 11) != 0) { g_set_error(err, DOPE_META_ERROR, DOPE_META_ERROR_BAD_REPLY, _("Bad metaserver reply \"%s\""), msg); return FALSE; } msg = CurlNextLine(conn, msg); while (msg) { char *name, *port, *version, *curplayers, *maxplayers, *update, *comment, *upsince; name = msg; port = CurlNextLine(conn, name); version = CurlNextLine(conn, port); curplayers = CurlNextLine(conn, version); maxplayers = CurlNextLine(conn, curplayers); update = CurlNextLine(conn, maxplayers); comment = CurlNextLine(conn, update); upsince = CurlNextLine(conn, comment); msg = CurlNextLine(conn, upsince); if (msg) { ServerData *NewServer = g_new0(ServerData, 1); NewServer->Name = g_strdup(name); NewServer->Port = atoi(port); NewServer->Version = g_strdup(version); NewServer->CurPlayers = curplayers[0] ? atoi(curplayers) : -1; NewServer->MaxPlayers = atoi(maxplayers); NewServer->Update = g_strdup(update); NewServer->Comment = g_strdup(comment); NewServer->UpSince = g_strdup(upsince); *listpt = g_slist_append(*listpt, NewServer); } } if (!*listpt) { g_set_error_literal(err, DOPE_META_ERROR, DOPE_META_ERROR_EMPTY, _("No servers listed on metaserver")); return FALSE; } return TRUE; } void ClearServerList(GSList **listpt) { ServerData *ThisServer; while (*listpt) { ThisServer = (ServerData *)((*listpt)->data); g_free(ThisServer->Name); g_free(ThisServer->Comment); g_free(ThisServer->Version); g_free(ThisServer->Update); g_free(ThisServer->UpSince); g_free(ThisServer); *listpt = g_slist_remove(*listpt, ThisServer); } } #endif /* NETWORKING */ /* * Removes a terminating newline from "str", if one is present. */ void chomp(char *str) { int len = strlen(str); if (str[len - 1] == '\n') str[len - 1] = 0; } /* * Adds the plain text string "unenc" to the end of the GString "str", * replacing "special" characters in the same way as the * application/x-www-form-urlencoded media type, suitable for sending * to CGI scripts etc. */ void AddURLEnc(GString *str, gchar *unenc) { guint i; if (!unenc || !str) return; for (i = 0; i < strlen(unenc); i++) { if ((unenc[i] >= 'a' && unenc[i] <= 'z') || (unenc[i] >= 'A' && unenc[i] <= 'Z') || (unenc[i] >= '0' && unenc[i] <= '9') || unenc[i] == '-' || unenc[i] == '_' || unenc[i] == '.') { g_string_append_c(str, unenc[i]); } else if (unenc[i] == ' ') { g_string_append_c(str, '+'); } else { g_string_append_printf(str, "%%%02X", unenc[i]); } } } /* * Sends the message made up of AI,Code and Data to all players except * "Except" (if non-NULL). It will be sent by the server, and on behalf of * player "From". */ void BroadcastToClients(AICode AI, MsgCode Code, char *Data, Player *From, Player *Except) { Player *tmp; GSList *list; for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (IsConnectedPlayer(tmp) && tmp != Except) { SendServerMessage(From, AI, Code, tmp, Data); } } } /* * Encodes an Inventory structure into a string, and sends it as the data * with a server message constructed from the other arguments. */ void SendInventory(Player *From, AICode AI, MsgCode Code, Player *To, Inventory *Guns, Inventory *Drugs) { int i; GString *text; text = g_string_new(NULL); for (i = 0; i < NumGun; i++) { g_string_append_printf(text, "%d:", Guns ? Guns[i].Carried : 0); } for (i = 0; i < NumDrug; i++) { g_string_append_printf(text, "%d:", Drugs ? Drugs[i].Carried : 0); } SendServerMessage(From, AI, Code, To, text->str); g_string_free(text, TRUE); } /* * Decodes a string representation (in "Data") to its original Inventory * contents, and stores it in "Guns" and "Drugs" if non-NULL. */ void ReceiveInventory(char *Data, Inventory *Guns, Inventory *Drugs) { int i, val; char *pt; pt = Data; for (i = 0; i < NumGun; i++) { val = GetNextInt(&pt, 0); if (Guns) Guns[i].Carried = val; } for (i = 0; i < NumDrug; i++) { val = GetNextInt(&pt, 0); if (Drugs) Drugs[i].Carried = val; } } /* * Sends all pertinent data about player "To" from the server * to player "To". */ void SendPlayerData(Player *To) { SendSpyReport(To, To); } /* * Sends pertinent data about player "SpiedOn" from the server * to player "To". */ void SendSpyReport(Player *To, Player *SpiedOn) { gchar *cashstr, *debtstr, *bankstr; GString *text; int i; text = g_string_new(NULL); g_string_printf(text, "%s^%s^%s^%d^%d^%d^%d^%d^", (cashstr = pricetostr(SpiedOn->Cash)), (debtstr = pricetostr(SpiedOn->Debt)), (bankstr = pricetostr(SpiedOn->Bank)), SpiedOn->Health, SpiedOn->CoatSize, SpiedOn->IsAt, SpiedOn->Turn, SpiedOn->Flags); g_free(cashstr); g_free(debtstr); g_free(bankstr); if (HaveAbility(SpiedOn, A_DATE)) { g_string_append_printf(text, "%d^%d^%d^", g_date_get_day(SpiedOn->date), g_date_get_month(SpiedOn->date), g_date_get_year(SpiedOn->date)); } for (i = 0; i < NumGun; i++) { g_string_append_printf(text, "%d^", SpiedOn->Guns[i].Carried); } for (i = 0; i < NumDrug; i++) { g_string_append_printf(text, "%d^", SpiedOn->Drugs[i].Carried); } if (HaveAbility(To, A_DRUGVALUE)) for (i = 0; i < NumDrug; i++) { g_string_append_printf(text, "%s^", (cashstr = pricetostr(SpiedOn->Drugs[i].TotalValue))); g_free(cashstr); } g_string_append_printf(text, "%d", SpiedOn->Bitches.Carried); if (To != SpiedOn) SendServerMessage(SpiedOn, C_NONE, C_UPDATE, To, text->str); else SendServerMessage(NULL, C_NONE, C_UPDATE, To, text->str); g_string_free(text, TRUE); } #define NUMNAMES 11 void SendInitialData(Player *To) { gchar *LocalNames[NUMNAMES] = { Names.Bitch, Names.Bitches, Names.Gun, Names.Guns, Names.Drug, Names.Drugs, Names.Date, Names.LoanSharkName, Names.BankName, Names.GunShopName, Names.RoughPubName }; gint i; GString *text; if (!Network) return; if (!HaveAbility(To, A_TSTRING)) for (i = 0; i < NUMNAMES; i++) { LocalNames[i] = GetDefaultTString(LocalNames[i]); } text = g_string_new(""); g_string_printf(text, "%s^%d^%d^%d^", VERSION, NumLocation, NumGun, NumDrug); for (i = 0; i < 6; i++) { g_string_append(text, LocalNames[i]); g_string_append_c(text, '^'); } if (HaveAbility(To, A_DATE)) { g_string_append(text, LocalNames[6]); g_string_append_c(text, '^'); } else { g_string_append_printf(text, "%d-^-%d^", StartDate.month, StartDate.year); } if (HaveAbility(To, A_PLAYERID)) g_string_append_printf(text, "%d^", To->ID); /* Player ID is expected after the first 7 names, so send the rest now */ for (i = 7; i < NUMNAMES; i++) { g_string_append(text, LocalNames[i]); g_string_append_c(text, '^'); } if (!HaveAbility(To, A_TSTRING)) for (i = 0; i < NUMNAMES; i++) { g_free(LocalNames[i]); } g_string_append_printf(text, "%c%s^", Currency.Prefix ? '1' : '0', Currency.Symbol); SendServerMessage(NULL, C_NONE, C_INIT, To, text->str); g_string_free(text, TRUE); } void ReceiveInitialData(Player *Play, char *Data) { char *pt, *curr; GSList *list; pt = Data; GetNextWord(&pt, "(unknown)"); /* server version */ ResizeLocations(GetNextInt(&pt, NumLocation)); ResizeGuns(GetNextInt(&pt, NumGun)); ResizeDrugs(GetNextInt(&pt, NumDrug)); for (list = FirstClient; list; list = g_slist_next(list)) { UpdatePlayer((Player *)list->data); } AssignName(&Names.Bitch, GetNextWord(&pt, "")); AssignName(&Names.Bitches, GetNextWord(&pt, "")); AssignName(&Names.Gun, GetNextWord(&pt, "")); AssignName(&Names.Guns, GetNextWord(&pt, "")); AssignName(&Names.Drug, GetNextWord(&pt, "")); AssignName(&Names.Drugs, GetNextWord(&pt, "")); if (HaveAbility(Play, A_DATE)) { AssignName(&Names.Date, GetNextWord(&pt, "")); } else { gchar *month, *year, *date; month = GetNextWord(&pt, ""); year = GetNextWord(&pt, ""); date = g_strdup_printf("%s%%T%s", month, year); AssignName(&Names.Date, date); g_free(date); } if (HaveAbility(Play, A_PLAYERID)) Play->ID = GetNextInt(&pt, 0); /* Servers up to version 1.4.8 don't send the following names, so * default to the existing values if they haven't been sent */ AssignName(&Names.LoanSharkName, GetNextWord(&pt, Names.LoanSharkName)); AssignName(&Names.BankName, GetNextWord(&pt, Names.BankName)); AssignName(&Names.GunShopName, GetNextWord(&pt, Names.GunShopName)); AssignName(&Names.RoughPubName, GetNextWord(&pt, Names.RoughPubName)); /* Currency data are only sent by versions >= 1.5.3 */ curr = GetNextWord(&pt, NULL); if (curr && strlen(curr) >= 1) { Currency.Prefix = (curr[0] == '1'); AssignName(&Currency.Symbol, &curr[1]); } } void SendMiscData(Player *To) { gchar *text, *prstr[2], *LocalName; int i; gboolean HaveTString; if (!Network) return; HaveTString = HaveAbility(To, A_TSTRING); text = g_strdup_printf("0^%c%s^%s^", DT_PRICES, (prstr[0] = pricetostr(Prices.Spy)), (prstr[1] = pricetostr(Prices.Tipoff))); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(prstr[0]); g_free(prstr[1]); g_free(text); for (i = 0; i < NumGun; i++) { if (HaveTString) LocalName = Gun[i].Name; else LocalName = GetDefaultTString(Gun[i].Name); text = g_strdup_printf("%d^%c%s^%s^%d^%d^", i, DT_GUN, LocalName, (prstr[0] = pricetostr(Gun[i].Price)), Gun[i].Space, Gun[i].Damage); if (!HaveTString) g_free(LocalName); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(prstr[0]); g_free(text); } for (i = 0; i < NumDrug; i++) { if (HaveTString) LocalName = Drug[i].Name; else LocalName = GetDefaultTString(Drug[i].Name); text = g_strdup_printf("%d^%c%s^%s^%s^", i, DT_DRUG, LocalName, (prstr[0] = pricetostr(Drug[i].MinPrice)), (prstr[1] = pricetostr(Drug[i].MaxPrice))); if (!HaveTString) g_free(LocalName); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(prstr[0]); g_free(prstr[1]); g_free(text); } for (i = 0; i < NumLocation; i++) { if (HaveTString) LocalName = Location[i].Name; else LocalName = GetDefaultTString(Location[i].Name); text = g_strdup_printf("%d^%c%s^", i, DT_LOCATION, LocalName); if (!HaveTString) g_free(LocalName); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(text); } } /* * Decodes information about locations, drugs, prices, etc. in "Data" */ void ReceiveMiscData(char *Data) { char *pt, *Name, Type; int i; pt = Data; i = GetNextInt(&pt, 0); Name = GetNextWord(&pt, ""); Type = Name[0]; if (strlen(Name) > 1) { switch (Type) { case DT_LOCATION: if (i >= 0 && i < NumLocation) { AssignName(&Location[i].Name, &Name[1]); Location[i].PolicePresence = 10; Location[i].MinDrug = NumDrug / 2 + 1; Location[i].MaxDrug = NumDrug; } break; case DT_GUN: if (i >= 0 && i < NumGun) { AssignName(&Gun[i].Name, &Name[1]); Gun[i].Price = GetNextPrice(&pt, (price_t)0); Gun[i].Space = GetNextInt(&pt, 0); Gun[i].Damage = GetNextInt(&pt, 0); } break; case DT_DRUG: if (i >= 0 && i < NumDrug) { AssignName(&Drug[i].Name, &Name[1]); Drug[i].MinPrice = GetNextPrice(&pt, (price_t)0); Drug[i].MaxPrice = GetNextPrice(&pt, (price_t)0); } break; case DT_PRICES: Prices.Spy = strtoprice(&Name[1]); Prices.Tipoff = GetNextPrice(&pt, (price_t)0); break; } } } /* * Decode player data from the string "text" into player "From"; "Play" * specifies the player that owns the network connection. */ void ReceivePlayerData(Player *Play, char *text, Player *From) { char *cp; int i; cp = text; From->Cash = GetNextPrice(&cp, (price_t)0); From->Debt = GetNextPrice(&cp, (price_t)0); From->Bank = GetNextPrice(&cp, (price_t)0); From->Health = GetNextInt(&cp, 100); From->CoatSize = GetNextInt(&cp, 0); From->IsAt = GetNextInt(&cp, 0); From->Turn = GetNextInt(&cp, 0); From->Flags = GetNextInt(&cp, 0); if (HaveAbility(Play, A_DATE)) { g_date_set_day(From->date, GetNextInt(&cp, 1)); g_date_set_month(From->date, GetNextInt(&cp, 1)); g_date_set_year(From->date, GetNextInt(&cp, 1980)); } for (i = 0; i < NumGun; i++) { From->Guns[i].Carried = GetNextInt(&cp, 0); } for (i = 0; i < NumDrug; i++) { From->Drugs[i].Carried = GetNextInt(&cp, 0); } if (HaveAbility(Play, A_DRUGVALUE)) { for (i = 0; i < NumDrug; i++) { From->Drugs[i].TotalValue = GetNextPrice(&cp, (price_t)0); } } From->Bitches.Carried = GetNextInt(&cp, 0); } gchar *GetNextWord(gchar **Data, gchar *Default) { gchar *Word; if (*Data == NULL || **Data == '\0') return Default; Word = *Data; while (**Data != '\0' && **Data != '^') (*Data)++; if (**Data != '\0') { **Data = '\0'; (*Data)++; } return Word; } void AssignNextWord(gchar **Data, gchar **Dest) { if (!Dest) return; g_free(*Dest); *Dest = g_strdup(GetNextWord(Data, "")); } int GetNextInt(gchar **Data, int Default) { gchar *Word = GetNextWord(Data, NULL); if (Word) return atoi(Word); else return Default; } price_t GetNextPrice(gchar **Data, price_t Default) { gchar *Word = GetNextWord(Data, NULL); if (Word) return strtoprice(Word); else return Default; } /* * Called when the client is pushed off the server, or the server * terminates. Using the client information, starts a local server * to reproduce the current game situation as best as possible so * that the game can be continued in single player mode. */ void SwitchToSinglePlayer(Player *Play) { if (Network && Client && FirstClient) { Player *NewPlayer; ShutdownNetwork(Play); CleanUpServer(); Network = Server = Client = FALSE; InitAbilities(Play); NewPlayer = g_new(Player, 1); FirstServer = AddPlayer(0, NewPlayer, FirstServer); CopyPlayer(NewPlayer, Play); NewPlayer->Flags = 0; NewPlayer->EventNum = E_ARRIVE; SendEvent(NewPlayer); } } void InitNetwork(void) { netconv = Conv_New(); #ifdef NETWORKING StartNetworking(); #endif } /* * Closes down the client side of the network connection. Clears the list * of client players (with the exception of "you", the player "Play"), * and closes the network socket. */ void ShutdownNetwork(Player *Play) { if (Play != FirstClient->data) { g_error("Oops! FirstClient should be player!"); } while (g_slist_next(FirstClient)) { FirstClient = RemovePlayer((Player *)g_slist_next(FirstClient)->data, FirstClient); } #ifdef NETWORKING ShutdownNetworkBuffer(&Play->NetBuf); #endif Client = Network = Server = FALSE; } /* * Given a "raw" message in "Msg" and a pointer to the start of the linked * list of known players in "First", sets the other arguments to the message * fields. Data is returned as a pointer into the message "Msg", and should * therefore NOT be g_free'd. "Play" is a pointer to the player which is * receiving the message. "Other" is the player that is identified by the * message; for messages to clients, this will be the player "From" which * the message claims to be, while for messages to servers, this will be * the player "To" which to send messages. Returns 0 on success, -1 on failure. */ int ProcessMessage(char *Msg, Player *Play, Player **Other, AICode *AI, MsgCode *Code, char **Data, GSList *First) { gchar *pt, *buf; guint ID; if (!First || !Play) return -1; *AI = C_NONE; *Code = C_PRINTMESSAGE; *Other = &Noone; pt = Msg; if (HaveAbility(Play, A_PLAYERID)) { buf = GetNextWord(&pt, NULL); if (buf && buf[0]) { ID = atoi(buf); *Other = GetPlayerByID(ID, First); } } else { buf = GetNextWord(&pt, NULL); if (Client) *Other = GetPlayerByName(buf, First); buf = GetNextWord(&pt, NULL); if (Server) *Other = GetPlayerByName(buf, First); } if (!(*Other)) return -1; if (strlen(pt) >= 2) { *AI = pt[0]; *Code = pt[1]; *Data = &pt[2]; return 0; } return -1; } /* * Decodes the message data "text" into a list of drug prices for * player "To" */ void ReceiveDrugsHere(char *text, Player *To) { char *cp; int i; To->EventNum = E_ARRIVE; cp = text; for (i = 0; i < NumDrug; i++) { To->Drugs[i].Price = GetNextPrice(&cp, (price_t)0); } } /* * Handles messages that both human clients and AI players deal with * in the same way. */ gboolean HandleGenericClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, DispMode *DisplayMode) { Player *tmp; gchar *pt; switch (Code) { case C_LIST: case C_JOIN: tmp = g_new(Player, 1); FirstClient = AddPlayer(0, tmp, FirstClient); pt = Data; SetPlayerName(tmp, GetNextWord(&pt, NULL)); if (HaveAbility(To, A_PLAYERID)) tmp->ID = GetNextInt(&pt, 0); break; case C_DATA: ReceiveMiscData(Data); break; case C_INIT: ReceiveInitialData(To, Data); break; case C_ABILITIES: ReceiveAbilities(To, Data); CombineAbilities(To); break; case C_LEAVE: if (From != &Noone) FirstClient = RemovePlayer(From, FirstClient); break; case C_TRADE: if (DisplayMode) *DisplayMode = DM_DEAL; break; case C_DRUGHERE: ReceiveDrugsHere(Data, To); if (DisplayMode) *DisplayMode = DM_STREET; break; case C_FIGHTPRINT: if (From != &Noone) { From->Flags |= FIGHTING; To->Flags |= CANSHOOT; } if (DisplayMode) *DisplayMode = DM_FIGHT; break; case C_CHANGEDISP: if (DisplayMode) { if (Data[0] == 'N' && *DisplayMode == DM_STREET) *DisplayMode = DM_NONE; if (Data[0] == 'Y' && *DisplayMode == DM_NONE) *DisplayMode = DM_STREET; } break; default: return FALSE; break; } return TRUE; } void SendFightReload(Player *To) { SendFightMessage(To, NULL, 0, F_RELOAD, (price_t)0, FALSE, NULL); } void SendOldCanFireMessage(Player *To, GString *text) { if (To->EventNum == E_FIGHT) { To->EventNum = E_FIGHTASK; if (CanRunHere(To) && To->Health > 0 && !HaveAbility(To, A_NEWFIGHT)) { if (text->len > 0) g_string_append_c(text, '^'); if (TotalGunsCarried(To) == 0) { g_string_prepend(text, "YN^"); g_string_append(text, _("Do you run?")); } else { g_string_prepend(text, "RF^"); g_string_append(text, _("Do you run, or fight?")); } SendQuestion(NULL, C_NONE, To, text->str); } else { SendOldFightPrint(To, text, FALSE); } } } void SendOldFightPrint(Player *To, GString *text, gboolean FightOver) { gboolean Fighting, CanShoot; Fighting = !FightOver; CanShoot = CanPlayerFire(To); To->Flags &= ~(CANSHOOT + FIGHTING); if (Fighting) To->Flags |= FIGHTING; if (Fighting && CanShoot) To->Flags |= CANSHOOT; SendPlayerData(To); To->Flags &= ~(CANSHOOT + FIGHTING); SendServerMessage(NULL, C_NONE, C_FIGHTPRINT, To, text->str); } void SendFightLeave(Player *Play, gboolean FightOver) { SendFightMessage(Play, NULL, 0, FightOver ? F_LASTLEAVE : F_LEAVE, (price_t)0, TRUE, NULL); } void ReceiveFightMessage(gchar *Data, gchar **AttackName, gchar **DefendName, int *DefendHealth, int *DefendBitches, gchar **BitchName, int *BitchesKilled, int *ArmPercent, FightPoint *fp, gboolean *CanRunHere, gboolean *Loot, gboolean *CanFire, gchar **Message) { gchar *pt, *Flags; pt = Data; *AttackName = GetNextWord(&pt, ""); *DefendName = GetNextWord(&pt, ""); *DefendHealth = GetNextInt(&pt, 0); *DefendBitches = GetNextInt(&pt, 0); *BitchName = GetNextWord(&pt, ""); *BitchesKilled = GetNextInt(&pt, 0); *ArmPercent = GetNextInt(&pt, 0); Flags = GetNextWord(&pt, NULL); if (Flags && strlen(Flags) >= 4) { *fp = Flags[0]; *CanRunHere = (Flags[1] == '1'); *Loot = (Flags[2] == '1'); *CanFire = (Flags[3] == '1'); } else { *fp = F_MSG; *CanRunHere = *Loot = *CanFire = FALSE; } *Message = pt; switch (*fp) { case F_HIT: SoundPlay(Sounds.FightHit); if (*BitchesKilled > 0) { SoundPlay(*DefendName[0] ? Sounds.EnemyBitchKilled : Sounds.BitchKilled); } if (*DefendHealth <= 0) { SoundPlay(*DefendName[0] ? Sounds.EnemyKilled : Sounds.Killed); } break; case F_MISS: SoundPlay(Sounds.FightMiss); break; case F_RELOAD: SoundPlay(Sounds.FightReload); break; case F_FAILFLEE: SoundPlay(*AttackName[0] ? Sounds.EnemyFailFlee : Sounds.FailFlee); break; case F_LEAVE: case F_LASTLEAVE: SoundPlay(*AttackName[0] ? Sounds.EnemyFlee : Sounds.Flee); break; default: break; } } void SendFightMessage(Player *Attacker, Player *Defender, int BitchesKilled, FightPoint fp, price_t Loot, gboolean Broadcast, gchar *Msg) { guint ArrayInd; int ArmPercent, Damage, MaxDamage, i; Player *To; GString *text; gchar *BitchName; if (!Attacker->FightArray) return; MaxDamage = Damage = 0; for (i = 0; i < NumGun; i++) { if (Gun[i].Damage > MaxDamage) MaxDamage = Gun[i].Damage; Damage += Gun[i].Damage * Attacker->Guns[i].Carried; } MaxDamage *= (Attacker->Bitches.Carried + 2); ArmPercent = Damage * 100 / MaxDamage; text = g_string_new(""); for (ArrayInd = 0; ArrayInd < Attacker->FightArray->len; ArrayInd++) { To = (Player *)g_ptr_array_index(Attacker->FightArray, ArrayInd); if (!Broadcast && To != Attacker) continue; g_string_truncate(text, 0); if (HaveAbility(To, A_NEWFIGHT)) { if (Defender) { if (IsCop(Defender)) { if (Defender->Bitches.Carried == 1) { BitchName = Cop[Defender->CopIndex - 1].DeputyName; } else { BitchName = Cop[Defender->CopIndex - 1].DeputiesName; } } else { if (Defender->Bitches.Carried == 1) { BitchName = Names.Bitch; } else { BitchName = Names.Bitches; } } } else BitchName = ""; g_string_printf(text, "%s^%s^%d^%d^%s^%d^%d^%c%c%c%c^", Attacker == To ? "" : GetPlayerName(Attacker), (Defender == To || Defender == NULL) ? "" : GetPlayerName(Defender), Defender ? Defender->Health : 0, Defender ? Defender->Bitches.Carried : 0, BitchName, BitchesKilled, ArmPercent, fp, CanRunHere(To) ? '1' : '0', Loot ? '1' : '0', fp != F_ARRIVED && fp != F_LASTLEAVE && CanPlayerFire(To) ? '1' : '0'); } if (Msg) { g_string_append(text, Msg); } else { FormatFightMessage(To, text, Attacker, Defender, BitchesKilled, ArmPercent, fp, Loot); } if (HaveAbility(To, A_NEWFIGHT)) { SendServerMessage(NULL, C_NONE, C_FIGHTPRINT, To, text->str); } else if (CanRunHere(To)) { if (fp != F_ARRIVED && fp != F_MSG && fp != F_LASTLEAVE && (fp != F_LEAVE || Attacker != To) && CanPlayerFire(To) && To->EventNum == E_FIGHT) { SendOldCanFireMessage(To, text); } else if (text->len > 0) SendPrintMessage(NULL, C_NONE, To, text->str); } else { SendOldFightPrint(To, text, fp == F_LASTLEAVE); } } g_string_free(text, TRUE); } void FormatFightMessage(Player *To, GString *text, Player *Attacker, Player *Defender, int BitchesKilled, int ArmPercent, FightPoint fp, price_t Loot) { gchar *Armament, *DefendName, *AttackName; int Health, Bitches; gchar *BitchName, *BitchesName; if (Defender && IsCop(Defender)) { BitchName = Cop[Defender->CopIndex - 1].DeputyName; BitchesName = Cop[Defender->CopIndex - 1].DeputiesName; } else { BitchName = Names.Bitch; BitchesName = Names.Bitches; } AttackName = (!Attacker || Attacker == To ? "" : GetPlayerName(Attacker)); DefendName = (!Defender || Defender == To ? "" : GetPlayerName(Defender)); Health = Defender ? Defender->Health : 0; Bitches = Defender ? Defender->Bitches.Carried : 0; switch (fp) { case F_ARRIVED: Armament = ArmPercent < 10 ? _("pitifully armed") : ArmPercent < 25 ? _("lightly armed") : ArmPercent < 60 ? _("moderately well armed") : ArmPercent < 80 ? _("heavily armed") : _("armed to the teeth"); if (DefendName[0]) { if (IsCop(Defender) && !AttackName[0]) { if (Bitches == 0) { dpg_string_append_printf(text, _("%s - %s - is chasing you, man!"), DefendName, Armament); } else { dpg_string_append_printf(text, _("%s and %d %tde - %s - are chasing you, man!"), DefendName, Bitches, BitchesName, Armament); } } else { dpg_string_append_printf(text, _("%s arrives with %d %tde, %s!"), DefendName, Bitches, BitchesName, Armament); } } break; case F_STAND: if (AttackName[0]) { g_string_append_printf(text, _("%s stands and takes it"), AttackName); } else { g_string_append(text, _("You stand there like a dummy.")); } break; case F_FAILFLEE: if (AttackName[0]) { g_string_append_printf(text, _("%s tries to get away, but fails."), AttackName); } else { g_string_append(text, _("Panic! You can't get away!")); } break; case F_LEAVE: case F_LASTLEAVE: if (Attacker->Health > 0) { if (AttackName[0]) { if (!IsCop(Attacker) && brandom(0, 100) < 70 && Attacker->IsAt >= 0) { dpg_string_append_printf(text, _("%s has got away to %tde!"), AttackName, Location[Attacker->IsAt].Name); } else { g_string_append_printf(text, _("%s has got away!"), AttackName); } } else { g_string_append_printf(text, _("You got away!")); } } break; case F_RELOAD: if (!AttackName[0]) { g_string_append(text, _("Guns reloaded...")); } break; case F_MISS: if (AttackName[0] && DefendName[0]) { g_string_append_printf(text, _("%s shoots at %s... and misses!"), AttackName, DefendName); } else if (AttackName[0]) { g_string_append_printf(text, _("%s shoots at you... and misses!"), AttackName); } else if (DefendName[0]) { g_string_append_printf(text, _("You missed %s!"), DefendName); } break; case F_HIT: if (AttackName[0] && DefendName[0]) { if (Health == 0 && Bitches == 0) { g_string_append_printf(text, _("%s shoots %s dead."), AttackName, DefendName); } else if (BitchesKilled) { dpg_string_append_printf(text, _("%s shoots at %s and kills a %tde!"), AttackName, DefendName, BitchName); } else { g_string_append_printf(text, _("%s shoots at %s."), AttackName, DefendName); } } else if (AttackName[0]) { if (Health == 0 && Bitches == 0) { g_string_append_printf(text, _("%s wasted you, man! What a drag!"), AttackName); } else if (BitchesKilled) { dpg_string_append_printf(text, _("%s shoots at you... and kills a %tde!"), AttackName, BitchName); } else { g_string_append_printf(text, _("%s hits you, man!"), AttackName); } } else if (DefendName[0]) { if (Health == 0 && Bitches == 0) { g_string_append_printf(text, _("You killed %s!"), DefendName); } else if (BitchesKilled) { dpg_string_append_printf(text, _("You hit %s, and killed a %tde!"), DefendName, BitchName); } else { g_string_append_printf(text, _("You hit %s!"), DefendName); } if (Loot > 0) { dpg_string_append_printf(text, _(" You find %P on the body!"), Loot); } else if (Loot < 0) { g_string_append(text, _(" You loot the body!")); } } break; case F_MSG: break; } } dopewars-1.6.2/src/admin.h000644 000765 000024 00000003416 14256242752 015320 0ustar00benstaff000000 000000 /************************************************************************ * admin.h Header file for dopewars server administration * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_ADMIN_H__ #define __DP_ADMIN_H__ #ifdef HAVE_CONFIG_H #include #endif #if !defined(CYGWIN) && defined(NETWORKING) struct CMDLINE; void AdminServer(struct CMDLINE *cmdline); #endif /* CYGWIN */ #endif /* __DP_ADMIN_H__ */ dopewars-1.6.2/src/mac_helpers.m000644 000765 000024 00000003451 14256242752 016516 0ustar00benstaff000000 000000 /************************************************************************ * mac_helpers.m Helper functions for Mac builds * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #import #include "mac_helpers.h" void mac_open_url(const char *url) { NSString *urlstr = [[NSString alloc] initWithUTF8String:url]; [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlstr]]; } dopewars-1.6.2/src/gtkport/gtkenums.h000644 000765 000024 00000007225 14256000066 017547 0ustar00benstaff000000 000000 /************************************************************************ * gtkenums.h Enumerated types for gtkport code * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __GTKENUMS_H__ #define __GTKENUMS_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN typedef enum { GTK_WINDOW_TOPLEVEL, GTK_WINDOW_DIALOG, GTK_WINDOW_POPUP } GtkWindowType; typedef enum { GTK_ACCEL_VISIBLE = 1 << 0, GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1 } GtkAccelFlags; typedef enum { GTK_BUTTONBOX_SPREAD, GTK_BUTTONBOX_EDGE, GTK_BUTTONBOX_START, GTK_BUTTONBOX_END } GtkButtonBoxStyle; typedef enum { GTK_STATE_NORMAL, GTK_STATE_ACTIVE, GTK_STATE_PRELIGHT, GTK_STATE_SELECTED, GTK_STATE_INSENSITIVE } GtkStateType; typedef enum { GTK_VISIBILITY_NONE, GTK_VISIBILITY_PARTIAL, GTK_VISIBILITY_FULL } GtkVisibility; typedef enum { GTK_PROGRESS_LEFT_TO_RIGHT, GTK_PROGRESS_RIGHT_TO_LEFT, GTK_PROGRESS_BOTTOM_TO_TOP, GTK_PROGRESS_TOP_TO_BOTTOM } GtkProgressBarOrientation; typedef enum { GTK_EXPAND = 1 << 0, GTK_SHRINK = 1 << 1, GTK_FILL = 1 << 2 } GtkAttachOptions; typedef enum { GTK_SELECTION_SINGLE, GTK_SELECTION_BROWSE, GTK_SELECTION_MULTIPLE, GTK_SELECTION_EXTENDED } GtkSelectionMode; typedef enum { GTK_SHADOW_NONE, GTK_SHADOW_IN, GTK_SHADOW_OUT, GTK_SHADOW_ETCHED_IN, GTK_SHADOW_ETCHED_OUT } GtkShadowType; typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; typedef enum { GTK_REALIZED = 1 << 6, GTK_VISIBLE = 1 << 8, GTK_SENSITIVE = 1 << 10, GTK_CAN_FOCUS = 1 << 11, GTK_HAS_FOCUS = 1 << 12, GTK_CAN_DEFAULT = 1 << 13, GTK_IS_DEFAULT = 1 << 14 } GtkWidgetFlags; typedef enum { GDK_WINDOW_TYPE_HINT_NORMAL, GDK_WINDOW_TYPE_HINT_DIALOG, GDK_WINDOW_TYPE_HINT_MENU, GDK_WINDOW_TYPE_HINT_TOOLBAR } GdkWindowTypeHint; typedef enum { GTK_WIN_POS_NONE, GTK_WIN_POS_CENTER, GTK_WIN_POS_MOUSE, GTK_WIN_POS_CENTER_ALWAYS, GTK_WIN_POS_CENTER_ON_PARENT } GtkWindowPosition; typedef enum { GTK_ORIENTATION_HORIZONTAL, GTK_ORIENTATION_VERTICAL } GtkOrientation; typedef enum { GTK_SORT_ASCENDING, GTK_SORT_DESCENDING } GtkSortType; enum { G_TYPE_STRING, G_TYPE_UINT, G_TYPE_INT, G_TYPE_POINTER }; #endif /* CYGWIN */ #endif /* __GTKENUMS_H__ */ dopewars-1.6.2/src/gtkport/itemfactory.h000644 000765 000024 00000010551 14256242752 020246 0ustar00benstaff000000 000000 /************************************************************************ * itemfactory.h GtkItemFactory and friends for Unix/Win32 * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * When using GTK+3, which has removed GtkItemFactory, or Win32, * * provide our own implementation; on GTK+2, use the implementation in * * GTK+ itself. * * * * 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. * ************************************************************************/ #ifndef __ITEM_FACTORY_H__ #define __ITEM_FACTORY_H__ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef CYGWIN #include #include #include "gtktypes.h" #else #include #endif /* Use GTK+2's own implementation of these functions */ #if GTK_MAJOR_VERSION == 2 #define DPGtkTranslateFunc GtkTranslateFunc #define DPGtkItemFactoryCallback GtkItemFactoryCallback #define DPGtkItemFactoryEntry GtkItemFactoryEntry #define DPGtkItemFactory GtkItemFactory GtkItemFactory *dp_gtk_item_factory_new(const gchar *path, GtkAccelGroup *accel_group); #define dp_gtk_item_factory_create_items gtk_item_factory_create_items #define dp_gtk_item_factory_create_item gtk_item_factory_create_item #define dp_gtk_item_factory_get_widget gtk_item_factory_get_widget #define dp_gtk_item_factory_set_translate_func gtk_item_factory_set_translate_func #else typedef gchar *(*DPGtkTranslateFunc) (const gchar *path, gpointer func_data); typedef void (*DPGtkItemFactoryCallback) (); typedef struct _DPGtkItemFactoryEntry DPGtkItemFactoryEntry; typedef struct _DPGtkItemFactory DPGtkItemFactory; struct _DPGtkItemFactoryEntry { gchar *path; gchar *accelerator; DPGtkItemFactoryCallback callback; guint callback_action; gchar *item_type; }; struct _DPGtkItemFactory { GSList *children; gchar *path; GtkAccelGroup *accel_group; GtkWidget *top_widget; DPGtkTranslateFunc translate_func; gpointer translate_data; }; DPGtkItemFactory *dp_gtk_item_factory_new(const gchar *path, GtkAccelGroup *accel_group); void dp_gtk_item_factory_create_item(DPGtkItemFactory *ifactory, DPGtkItemFactoryEntry *entry, gpointer callback_data, guint callback_type); void dp_gtk_item_factory_create_items(DPGtkItemFactory *ifactory, guint n_entries, DPGtkItemFactoryEntry *entries, gpointer callback_data); GtkWidget *dp_gtk_item_factory_get_widget(DPGtkItemFactory *ifactory, const gchar *path); void dp_gtk_item_factory_set_translate_func(DPGtkItemFactory *ifactory, DPGtkTranslateFunc func, gpointer data, GDestroyNotify notify); #endif /* GTK+2 */ #endif /* __ITEM_FACTORY_H__ */ dopewars-1.6.2/src/gtkport/treeview.c000644 000765 000024 00000107372 14256242752 017555 0ustar00benstaff000000 000000 /************************************************************************ * treeview.c GtkTreeView (and friends) implementation for gtkport * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport.h" #ifdef CYGWIN #include #include #include #include "unicodewrap.h" #define LISTITEMHPACK 3 #define LISTHEADERPACK 6 static const gchar *WC_GTKTREEVIEWHDR = "WC_GTKTREEVIEWHDR"; static WNDPROC wpOrigListProc; static void gtk_tree_view_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_tree_view_set_size(GtkWidget *widget, GtkAllocation *allocation); static gboolean gtk_tree_view_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef); static void gtk_tree_view_realize(GtkWidget *widget); static void gtk_tree_view_destroy(GtkWidget *widget); static void gtk_tree_view_show(GtkWidget *widget); static void gtk_tree_view_hide(GtkWidget *widget); static void gtk_tree_view_draw_row(GtkTreeView *tv, LPDRAWITEMSTRUCT lpdis); static void gtk_tree_view_update_selection(GtkWidget *widget); static void gtk_tree_view_update_widths(GtkTreeView *tv, GtkTreeModel *model, GtkListStoreRow *row); static void gtk_tree_view_update_all_widths(GtkTreeView *tv); static void gtk_tree_view_do_auto_resize(GtkTreeView *tv); static void gtk_tree_view_set_column_width(GtkTreeView *tv, gint column, gint width); static void gtk_tree_view_set_column_width_full(GtkTreeView *tv, gint column, gint width, gboolean ResizeHeader); static void gtk_tree_view_click_column(GtkWidget *widget, gint column); static GtkSignalType GtkTreeViewSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_tree_view_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_tree_view_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_tree_view_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_tree_view_destroy}, {"click-column", gtk_marshal_VOID__GINT, gtk_tree_view_click_column}, {"changed", gtk_marshal_VOID__VOID, NULL}, {"show", gtk_marshal_VOID__VOID, gtk_tree_view_show}, {"hide", gtk_marshal_VOID__VOID, gtk_tree_view_hide}, {"", NULL, NULL} }; static GtkClass GtkTreeViewClass = { "tree_view", &GtkContainerClass, sizeof(GtkTreeView), GtkTreeViewSignals, gtk_tree_view_wndproc }; static GtkClass GtkListStoreClass = { "list_store", &GtkObjectClass, sizeof(GtkListStore), NULL, NULL }; static void SetTreeViewHeaderSize(GtkTreeView *clist) { RECT rc; HWND hWnd; int width; hWnd = GTK_WIDGET(clist)->hWnd; clist->scrollpos = GetScrollPos(hWnd, SB_HORZ); GetWindowRect(hWnd, &rc); width = (int)SendMessageW(hWnd, LB_GETHORIZONTALEXTENT, 0, 0); width = MAX(width, rc.right - rc.left) + 100; SetWindowPos(clist->header, HWND_TOP, -clist->scrollpos, 0, width, clist->header_size, SWP_NOZORDER); } static LRESULT APIENTRY ListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { LRESULT retval; GtkWidget *widget; widget = GTK_WIDGET(GetWindowLongPtr(hwnd, GWLP_USERDATA)); retval = CallWindowProcW(wpOrigListProc, hwnd, msg, wParam, lParam); if (msg == WM_HSCROLL && widget) { GtkTreeView *clist = GTK_TREE_VIEW(widget); SetTreeViewHeaderSize(clist); } return retval; } gboolean gtk_tree_view_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef) { LPDRAWITEMSTRUCT lpdis; HD_NOTIFYA FAR *phdr; HD_NOTIFYW FAR *phdrw; NMHDR *nmhdr; switch(msg) { case WM_COMMAND: if (lParam && HIWORD(wParam) == LBN_SELCHANGE) { gtk_tree_view_update_selection(widget); return FALSE; } break; case WM_DRAWITEM: lpdis = (LPDRAWITEMSTRUCT)lParam; if (lpdis) { gtk_tree_view_draw_row(GTK_TREE_VIEW(widget), lpdis); *dodef = FALSE; return TRUE; } break; case WM_NOTIFY: nmhdr = (NMHDR *)lParam; if (nmhdr) { switch(nmhdr->code) { case HDN_ENDTRACKA: phdr = (HD_NOTIFYA FAR *)lParam; gtk_tree_view_set_column_width_full(GTK_TREE_VIEW(widget), phdr->iItem, phdr->pitem->cxy, FALSE); return FALSE; case HDN_ENDTRACKW: phdrw = (HD_NOTIFYW FAR *)lParam; gtk_tree_view_set_column_width_full(GTK_TREE_VIEW(widget), phdrw->iItem, phdrw->pitem->cxy, FALSE); return FALSE; case HDN_ITEMCLICKA: phdr = (HD_NOTIFYA FAR *)lParam; gtk_signal_emit(G_OBJECT(widget), "click-column", (gint)phdr->iItem); return FALSE; case HDN_ITEMCLICKW: phdrw = (HD_NOTIFYW FAR *)lParam; gtk_signal_emit(G_OBJECT(widget), "click-column", (gint)phdrw->iItem); return FALSE; default: break; } } break; } return FALSE; } static void gtk_tree_view_set_extent(GtkTreeView *tv) { HWND hWnd; hWnd = GTK_WIDGET(tv)->hWnd; if (hWnd) { GSList *colpt; int width = 0; for (colpt = tv->columns; colpt; colpt = g_slist_next(colpt)) { GtkTreeViewColumn *col = colpt->data; width += col->width; } SendMessageW(hWnd, LB_SETHORIZONTALEXTENT, (WPARAM)width, 0); SetTreeViewHeaderSize(tv); } } void gtk_tree_view_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkTreeView *clist = GTK_TREE_VIEW(widget); gtk_container_set_size(widget, allocation); if (clist->header) { POINT pt; pt.x = allocation->x; pt.y = allocation->y; MapWidgetOrigin(widget, &pt); SetWindowPos(clist->scrollwin, HWND_TOP, pt.x, pt.y, allocation->width, clist->header_size, SWP_NOZORDER); allocation->y += clist->header_size - 1; allocation->height -= clist->header_size - 1; } gtk_tree_view_set_extent(clist); } GtkWidget *gtk_tree_view_new(void) { GtkTreeView *view; view = GTK_TREE_VIEW(GtkNewObject(&GtkTreeViewClass)); view->model = NULL; view->scrollpos = 0; view->columns = NULL; view->headers_clickable = TRUE; view->mode = GTK_SELECTION_SINGLE; view->selection = NULL; return GTK_WIDGET(view); } GtkTreeSelection *gtk_tree_view_get_selection(GtkTreeView *tree_view) { /* The selection *is* the tree view */ return tree_view; } void gtk_tree_view_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy * 6 + 12; } } void gtk_tree_view_realize(GtkWidget *widget) { HWND Parent, header, scrollwin; HD_LAYOUT hdl; HD_ITEM hdi; RECT rcParent; WINDOWPOS wp; GtkTreeView *tv = GTK_TREE_VIEW(widget); GSList *colpt; gint i; gtk_container_realize(widget); Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); rcParent.left = rcParent.top = 0; rcParent.right = rcParent.bottom = 800; scrollwin = myCreateWindow(WC_GTKTREEVIEWHDR, NULL, WS_CHILD | WS_BORDER, 0, 0, 0, 0, Parent, NULL, hInst, NULL); SetWindowLongPtr(scrollwin, GWLP_USERDATA, (LONG_PTR)widget); header = myCreateWindowEx(0, WC_HEADER, NULL, WS_CHILD | HDS_HORZ | WS_VISIBLE | (tv->headers_clickable ? HDS_BUTTONS : 0), 0, 0, 0, 0, scrollwin, NULL, hInst, NULL); SetWindowLongPtr(header, GWLP_USERDATA, (LONG_PTR)widget); tv->header = header; tv->scrollwin = scrollwin; gtk_set_default_font(header); hdl.prc = &rcParent; hdl.pwpos = ℘ SendMessageW(header, HDM_LAYOUT, 0, (LPARAM)&hdl); tv->header_size = wp.cy; widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, "LISTBOX", "", WS_CHILD | WS_TABSTOP | WS_VSCROLL | WS_HSCROLL | LBS_OWNERDRAWFIXED | LBS_NOTIFY, 0, 0, 0, 0, Parent, NULL, hInst, NULL); /* Subclass the window */ wpOrigListProc = (WNDPROC)SetWindowLongPtrW(widget->hWnd, GWLP_WNDPROC, (LONG_PTR)ListWndProc); gtk_set_default_font(widget->hWnd); if (tv->model) { for (i = 0; i < tv->model->rows->len; ++i) { SendMessageW(widget->hWnd, LB_ADDSTRING, 0, 1); } } gtk_tree_view_update_all_widths(tv); for (colpt = tv->columns, i = 0; colpt; colpt = g_slist_next(colpt), ++i) { GtkTreeViewColumn *col = colpt->data; if (col->auto_resize) { col->width = col->optimal_width; } hdi.mask = HDI_TEXT | HDI_FORMAT | HDI_WIDTH; hdi.pszText = col->title; if (hdi.pszText) { if (!g_slist_next(colpt)) hdi.cxy = 9000; else hdi.cxy = col->width; hdi.cchTextMax = strlen(hdi.pszText); hdi.fmt = HDF_LEFT | HDF_STRING; myHeader_InsertItem(header, i + 1, &hdi); } } } static void gtk_list_store_row_free(GtkListStoreRow *row, GtkListStore *store) { int i; for (i = 0; i < store->ncols; ++i) { if (store->coltype[i] == G_TYPE_STRING) { g_free(row->data[i]); } } } void gtk_list_store_clear(GtkListStore *list_store) { guint i; for (i = 0; i < list_store->rows->len; ++i) { GtkListStoreRow *row = &g_array_index(list_store->rows, GtkListStoreRow, i); gtk_list_store_row_free(row, list_store); } g_array_set_size(list_store->rows, 0); list_store->need_sort = FALSE; /* an empty store is sorted */ if (list_store->view) { HWND hWnd; gtk_tree_view_update_all_widths(list_store->view); hWnd = GTK_WIDGET(list_store->view)->hWnd; if (hWnd) { SendMessageW(hWnd, LB_RESETCONTENT, 0, 0); } } } void gtk_list_store_insert(GtkListStore *list_store, GtkTreeIter *iter, gint position) { GtkListStoreRow row; /* Add a new empty row to the store and return a pointer to it */ row.data = g_new0(gpointer, list_store->ncols); if (position < 0) { g_array_append_val(list_store->rows, row); *iter = list_store->rows->len - 1; } else { g_array_insert_val(list_store->rows, position, row); *iter = position; } } void gtk_list_store_append(GtkListStore *list_store, GtkTreeIter *iter) { gtk_list_store_insert(list_store, iter, -1); } void gtk_list_store_set(GtkListStore *list_store, GtkTreeIter *iter, ...) { va_list ap; int colind; gboolean new_row = TRUE; GtkListStoreRow *row = &g_array_index(list_store->rows, GtkListStoreRow, *iter); list_store->need_sort = TRUE; va_start(ap, iter); while ((colind = va_arg(ap, int)) >= 0) { switch(list_store->coltype[colind]) { case G_TYPE_STRING: g_free(row->data[colind]); /* Free any existing string */ if (row->data[colind]) { new_row = FALSE; } row->data[colind] = g_strdup(va_arg(ap, const char*)); break; case G_TYPE_UINT: row->data[colind] = GUINT_TO_POINTER(va_arg(ap, unsigned)); break; case G_TYPE_INT: row->data[colind] = GINT_TO_POINTER(va_arg(ap, int)); break; case G_TYPE_POINTER: row->data[colind] = va_arg(ap, gpointer); break; } } va_end(ap); if (list_store->view) { GtkWidget *widget = GTK_WIDGET(list_store->view); gtk_tree_view_update_widths(list_store->view, list_store, row); gtk_tree_view_do_auto_resize(list_store->view); if (GTK_WIDGET_REALIZED(widget)) { HWND hWnd = widget->hWnd; if (new_row) { SendMessageW(hWnd, LB_INSERTSTRING, (WPARAM)*iter, 1); } else { InvalidateRect(hWnd, NULL, FALSE); } } } } void gtk_list_store_swap(GtkListStore *store, GtkTreeIter *a, GtkTreeIter *b) { GtkTreeIter tmp; GtkListStoreRow rowa = g_array_index(store->rows, GtkListStoreRow, *a); GtkListStoreRow rowb = g_array_index(store->rows, GtkListStoreRow, *b); g_array_index(store->rows, GtkListStoreRow, *a) = rowb; g_array_index(store->rows, GtkListStoreRow, *b) = rowa; store->need_sort = TRUE; /* Swap the iterators too since in our implementation they are just row indices */ tmp = *a; *a = *b; *b = tmp; } void gtk_tree_model_get(GtkTreeModel *tree_model, GtkTreeIter *iter, ...) { va_list ap; char **strpt; unsigned *uintpt; int *intpt; gpointer *ptpt; int colind; GtkListStoreRow *row = &g_array_index(tree_model->rows, GtkListStoreRow, *iter); va_start(ap, iter); while ((colind = va_arg(ap, int)) >= 0) { switch(tree_model->coltype[colind]) { case G_TYPE_STRING: strpt = va_arg(ap, char **); *strpt = g_strdup(row->data[colind]); break; case G_TYPE_UINT: uintpt = va_arg(ap, unsigned *); *uintpt = GPOINTER_TO_UINT(row->data[colind]); break; case G_TYPE_INT: intpt = va_arg(ap, int *); *intpt = GPOINTER_TO_INT(row->data[colind]); break; case G_TYPE_POINTER: ptpt = va_arg(ap, gpointer *); *ptpt = row->data[colind]; break; } } va_end(ap); } gboolean gtk_tree_model_iter_nth_child(GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *parent, gint n) { /* We only work with one level (lists) for now */ g_assert(parent == NULL); *iter = n; return TRUE; } gint gtk_tree_model_iter_n_children(GtkTreeModel *tree_model, GtkTreeIter *iter) { /* We only work with one level (lists) for now */ if (iter) { return 1; } else { return tree_model->rows->len; } } static void gtk_tree_view_column_free(gpointer data) { GtkTreeViewColumn *col = data; g_free(col->title); g_free(col); } void gtk_tree_model_free(GtkTreeModel *model) { gtk_list_store_clear(model); /* Remove all rows */ g_array_free(model->rows, TRUE); g_array_free(model->sort_func, TRUE); g_free(model->coltype); g_free(model); } void gtk_tree_view_destroy(GtkWidget *widget) { GtkTreeView *view = GTK_TREE_VIEW(widget); g_slist_free_full(view->columns, gtk_tree_view_column_free); view->columns = NULL; if (view->model) { gtk_tree_model_free(view->model); } view->model = NULL; } void gtk_tree_view_click_column(GtkWidget *widget, gint column) { GtkTreeView *view = GTK_TREE_VIEW(widget); GtkTreeViewColumn *col = g_slist_nth_data(view->columns, column); GtkListStore *model = view->model; if (!model || !view->headers_clickable) return; if (col->sort_column_id == model->sort_column_id) { /* toggle order */ if (model->sort_order == GTK_SORT_ASCENDING) { model->sort_order = GTK_SORT_DESCENDING; } else { model->sort_order = GTK_SORT_ASCENDING; } } else { model->sort_column_id = col->sort_column_id; model->sort_order = GTK_SORT_ASCENDING; } model->need_sort = TRUE; gtk_tree_view_sort(view); } void gtk_tree_view_show(GtkWidget *widget) { if (GTK_WIDGET_REALIZED(widget)) { ShowWindow(GTK_TREE_VIEW(widget)->scrollwin, SW_SHOWNORMAL); } } void gtk_tree_view_hide(GtkWidget *widget) { if (GTK_WIDGET_REALIZED(widget)) { ShowWindow(GTK_TREE_VIEW(widget)->scrollwin, SW_HIDE); } } /* Draw an individual cell (row+column) */ static void draw_cell_text(GtkTreeViewColumn *col, GtkTreeModel *model, LPDRAWITEMSTRUCT lpdis, GtkListStoreRow *row, RECT *rcCol) { UINT align; char *val; int modcol = col->model_column; /* Convert float 0.0, 0.5 or 1.0 into int, allow for some rounding error */ switch((int)(col->xalign * 10. + 0.1)) { case 10: align = DT_RIGHT; break; case 5: align = DT_CENTER; break; default: align = DT_LEFT; break; } align |= DT_SINGLELINE | DT_VCENTER | DT_END_ELLIPSIS; switch(model->coltype[modcol]) { case G_TYPE_STRING: if (row->data[modcol]) { myDrawText(lpdis->hDC, row->data[modcol], -1, rcCol, align); } break; case G_TYPE_UINT: val = g_strdup_printf("%u", GPOINTER_TO_UINT(row->data[modcol])); myDrawText(lpdis->hDC, val, -1, rcCol, align); g_free(val); break; case G_TYPE_INT: val = g_strdup_printf("%d", GPOINTER_TO_INT(row->data[modcol])); myDrawText(lpdis->hDC, val, -1, rcCol, align); g_free(val); break; } } void gtk_tree_view_draw_row(GtkTreeView *tv, LPDRAWITEMSTRUCT lpdis) { HBRUSH bkgrnd; COLORREF textcol, oldtextcol; RECT rcCol; int oldbkmode; guint nrows; gint CurrentX, right; GtkListStoreRow *row; if (lpdis->itemState & ODS_SELECTED) { bkgrnd = (HBRUSH)(1 + COLOR_HIGHLIGHT); textcol = (COLORREF)GetSysColor(COLOR_HIGHLIGHTTEXT); } else { bkgrnd = (HBRUSH)(1 + COLOR_WINDOW); textcol = (COLORREF)GetSysColor(COLOR_WINDOWTEXT); } oldtextcol = SetTextColor(lpdis->hDC, textcol); oldbkmode = SetBkMode(lpdis->hDC, TRANSPARENT); FillRect(lpdis->hDC, &lpdis->rcItem, bkgrnd); nrows = tv->model ? tv->model->rows->len : 0; if (lpdis->itemID >= 0 && lpdis->itemID < nrows) { int width; GSList *colpt; row = &g_array_index(tv->model->rows, GtkListStoreRow, lpdis->itemID); width = CurrentX = 0; for (colpt = tv->columns; colpt; colpt = g_slist_next(colpt)) { GtkTreeViewColumn *col = colpt->data; width += col->width; } right = MAX(lpdis->rcItem.right, width); rcCol.top = lpdis->rcItem.top; rcCol.bottom = lpdis->rcItem.bottom; if (row->data) for (colpt = tv->columns; colpt; colpt = g_slist_next(colpt)) { GtkTreeViewColumn *col = colpt->data; rcCol.left = CurrentX + LISTITEMHPACK; CurrentX += col->width; rcCol.right = CurrentX - LISTITEMHPACK; if (rcCol.left > right) rcCol.left = right; if (rcCol.right > right - LISTITEMHPACK) rcCol.right = right - LISTITEMHPACK; if (!g_slist_next(colpt)) rcCol.right = right - LISTITEMHPACK; draw_cell_text(col, tv->model, lpdis, row, &rcCol); } } SetTextColor(lpdis->hDC, oldtextcol); SetBkMode(lpdis->hDC, oldbkmode); if (lpdis->itemState & ODS_FOCUS) { DrawFocusRect(lpdis->hDC, &lpdis->rcItem); } } void gtk_tree_view_do_auto_resize(GtkTreeView *tv) { GSList *colpt; gint i; for (colpt = tv->columns, i = 0; colpt; colpt = g_slist_next(colpt), i++) { GtkTreeViewColumn *col = colpt->data; if (col->auto_resize) { gtk_tree_view_set_column_width(tv, i, col->optimal_width); } } } gint gtk_tree_view_optimal_column_width(GtkTreeView *tv, gint column) { GtkTreeViewColumn *col = g_slist_nth_data(tv->columns, column); return col->optimal_width; } void gtk_tree_view_update_all_widths(GtkTreeView *tv) { SIZE size; HWND header; gint i; header = tv->header; if (header) { GSList *colpt; for (colpt = tv->columns, i = 0; colpt; colpt = g_slist_next(colpt), i++) { GtkTreeViewColumn *col = colpt->data; if (GetTextSize(header, col->title, &size, defFont)) { int new_width = size.cx + 4 + 2 * LISTHEADERPACK; col->width = MAX(col->width, new_width); col->optimal_width = MAX(col->optimal_width, new_width); } } } if (tv->model) { for (i = 0; i < tv->model->rows->len; ++i) { GtkListStoreRow *row = &g_array_index(tv->model->rows, GtkListStoreRow, i); gtk_tree_view_update_widths(tv, tv->model, row); } } gtk_tree_view_set_extent(tv); } void gtk_tree_view_update_widths(GtkTreeView *tv, GtkTreeModel *model, GtkListStoreRow *row) { SIZE size; GSList *colpt; HWND hWnd; hWnd = GTK_WIDGET(tv)->hWnd; if (!hWnd) return; for (colpt = tv->columns; colpt; colpt = g_slist_next(colpt)) { GtkTreeViewColumn *col = colpt->data; int modcol = col->model_column; char *text; switch (model->coltype[modcol]) { case G_TYPE_STRING: text = row->data[modcol]; break; case G_TYPE_UINT: case G_TYPE_INT: text = "9999"; /* hack */ break; default: text = NULL; } if (text && GetTextSize(hWnd, text, &size, defFont)) { int new_width = size.cx + 4 + 2 * LISTITEMHPACK; col->optimal_width = MAX(col->optimal_width, new_width); } } } gboolean gtk_list_store_remove(GtkListStore *list_store, GtkTreeIter *iter) { gint rowind = *iter; if (rowind >= 0 && rowind < list_store->rows->len) { GtkListStoreRow *row = &g_array_index(list_store->rows, GtkListStoreRow, rowind); gtk_list_store_row_free(row, list_store); g_array_remove_index(list_store->rows, rowind); if (list_store->view && GTK_WIDGET_REALIZED(GTK_WIDGET(list_store->view))) { HWND hWnd = GTK_WIDGET(list_store->view)->hWnd; SendMessageW(hWnd, LB_DELETESTRING, (WPARAM)rowind, 0); } return TRUE; } else { return FALSE; } } GtkWidget *gtk_scrolled_tree_view_new(GtkWidget **pack_widg) { GtkWidget *widget; widget = gtk_tree_view_new(); *pack_widg = widget; return widget; } void gtk_tree_view_set_column_width(GtkTreeView *tv, gint column, gint width) { gtk_tree_view_set_column_width_full(tv, column, width, TRUE); } void gtk_tree_view_set_column_width_full(GtkTreeView *tv, gint column, gint width, gboolean ResizeHeader) { int ncols; GtkTreeViewColumn *col; HWND hWnd, header; HD_ITEM hdi; ncols = g_slist_length(tv->columns); if (column < 0 || column >= ncols) return; col = g_slist_nth_data(tv->columns, column); col->width = width; if (GTK_WIDGET_REALIZED(GTK_WIDGET(tv))) { header = tv->header; if (ResizeHeader && header) { hdi.mask = HDI_WIDTH; if (column == ncols - 1) width = 9000; hdi.cxy = width; if (SendMessageW(header, HDM_GETITEM, (WPARAM)column, (LPARAM)&hdi) && hdi.cxy != width) { hdi.mask = HDI_WIDTH; hdi.cxy = width; SendMessageW(header, HDM_SETITEM, (WPARAM)column, (LPARAM)&hdi); } } gtk_tree_view_set_extent(tv); hWnd = GTK_WIDGET(tv)->hWnd; if (hWnd) InvalidateRect(hWnd, NULL, FALSE); } } void gtk_tree_selection_set_mode(GtkTreeSelection *selection, GtkSelectionMode type) { selection->mode = type; } void gtk_tree_selection_select_path(GtkTreeSelection *selection, GtkTreePath *path) { HWND hWnd; guint row = *path; hWnd = GTK_WIDGET(selection)->hWnd; if (hWnd) { if (selection->mode == GTK_SELECTION_SINGLE) { SendMessageW(hWnd, LB_SETCURSEL, (WPARAM)row, 0); } else { SendMessageW(hWnd, LB_SETSEL, (WPARAM)TRUE, (LPARAM)row); } gtk_tree_view_update_selection(GTK_WIDGET(selection)); } } void gtk_tree_selection_unselect_all(GtkTreeSelection *selection) { GList *sel; for (sel = selection->selection; sel; sel = g_list_next(sel)) { guint row = GPOINTER_TO_UINT(sel->data); gtk_tree_selection_unselect_path(selection, &row); } } GList *gtk_tree_selection_get_selected_rows(GtkTreeSelection *selection, GtkTreeModel **model) { GList *sel, *pathsel = NULL; for (sel = selection->selection; sel; sel = g_list_next(sel)) { guint row = GPOINTER_TO_UINT(sel->data); GtkTreePath *path = g_new(GtkTreePath, 1); *path = row; pathsel = g_list_append(pathsel, path); } if (model) { *model = selection->model; } return pathsel; } gint *gtk_tree_path_get_indices_with_depth(GtkTreePath *path, gint *depth) { /* Only one level; path *is* the row index */ *depth = 1; return (gint *)path; } void gtk_tree_selection_unselect_path(GtkTreeSelection *selection, GtkTreePath *path) { HWND hWnd; guint row = *path; hWnd = GTK_WIDGET(selection)->hWnd; if (hWnd) { if (selection->mode == GTK_SELECTION_SINGLE) { SendMessageW(hWnd, LB_SETCURSEL, (WPARAM)(-1), 0); } else { SendMessageW(hWnd, LB_SETSEL, (WPARAM)FALSE, (LPARAM)row); } gtk_tree_view_update_selection(GTK_WIDGET(selection)); } } gint gtk_tree_selection_count_selected_rows(GtkTreeSelection *selection) { return g_list_length(selection->selection); } gboolean gtk_tree_selection_get_selected(GtkTreeSelection *selection, GtkTreeModel **model, GtkTreeIter *iter) { if (model) { *model = selection->model; } /* Just return the first selected row */ if (selection->selection) { if (iter) { int row = GPOINTER_TO_INT(g_list_nth_data(selection->selection, 0)); *iter = row; } return TRUE; } else { return FALSE; } } void gtk_tree_selection_selected_foreach(GtkTreeSelection *selection, GtkTreeSelectionForeachFunc func, gpointer data) { GList *sel; for (sel = selection->selection; sel; sel = g_list_next(sel)) { guint row = GPOINTER_TO_UINT(sel->data); func(selection->model, &row, &row, data); } } void gtk_tree_view_update_selection(GtkWidget *widget) { GtkTreeView *tv = GTK_TREE_VIEW(widget); gint i; g_list_free(tv->selection); tv->selection = NULL; if (widget->hWnd) { if (tv->model) for (i = 0; i < tv->model->rows->len; i++) { if (SendMessageW(widget->hWnd, LB_GETSEL, (WPARAM)i, 0) > 0) { tv->selection = g_list_append(tv->selection, GINT_TO_POINTER(i)); } } gtk_signal_emit(G_OBJECT(widget), "changed"); } } static LRESULT CALLBACK TreeViewHdrWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; gboolean retval = FALSE, dodef = TRUE; widget = GTK_WIDGET(GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (widget) { retval = gtk_tree_view_wndproc(widget, msg, wParam, lParam, &dodef); } if (dodef) { return DefWindowProcW(hwnd, msg, wParam, lParam); } else { return retval; } } void InitTreeViewClass(HINSTANCE hInstance) { WNDCLASS wc; wc.style = 0; wc.lpfnWndProc = TreeViewHdrWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKTREEVIEWHDR; myRegisterClass(&wc); } /* Make a new GtkListStore and fill in the column types */ GtkListStore *gtk_list_store_new(gint n_columns, ...) { GtkListStore *store; int i; va_list ap; va_start(ap, n_columns); store = GTK_LIST_STORE(GtkNewObject(&GtkListStoreClass)); store->view = NULL; store->ncols = n_columns; store->coltype = g_new(int, n_columns); store->rows = g_array_new(FALSE, FALSE, sizeof(GtkListStoreRow)); store->sort_column_id = GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID; store->sort_func = g_array_new(FALSE, TRUE, sizeof(gpointer)); store->need_sort = FALSE; for (i = 0; i < n_columns; ++i) { store->coltype[i] = va_arg(ap, int); } va_end(ap); return store; } void gtk_tree_sortable_set_sort_func(GtkTreeSortable *sortable, gint sort_column_id, GtkTreeIterCompareFunc sort_func, gpointer user_data, GDestroyNotify destroy) { /* We don't currently support user_data */ if (sort_column_id >= sortable->sort_func->len) { g_array_set_size(sortable->sort_func, sort_column_id+1); } g_array_index(sortable->sort_func, gpointer, sort_column_id) = sort_func; } void gtk_tree_sortable_set_sort_column_id(GtkTreeSortable *sortable, gint sort_column_id, GtkSortType order) { if (sortable->sort_column_id != sort_column_id || sortable->sort_order != order) { sortable->sort_column_id = sort_column_id; sortable->sort_order = order; sortable->need_sort = TRUE; } } /* We don't support customizing renderers right now */ GtkCellRenderer *gtk_cell_renderer_text_new(void) { return NULL; } static GtkTreeViewColumn *new_column_internal(const char *title, va_list args) { GtkTreeViewColumn *col; const char *name; col = g_new0(GtkTreeViewColumn, 1); col->title = g_strdup(title); col->resizeable = FALSE; col->expand = FALSE; col->auto_resize = TRUE; col->sort_column_id = -1; col->model_column = -1; col->xalign = 0.0; /* left align by default */ /* Currently we only support the "text" attribute to point to the ListStore column */ while ((name = va_arg(args, const char *)) != NULL) { if (strcmp(name, "text") == 0) { col->model_column = va_arg(args, int); } } return col; } GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, GtkCellRenderer *cell, ...) { GtkTreeViewColumn *col; va_list args; va_start(args, cell); col = new_column_internal(title, args); va_end(args); return col; } gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view, gint position, const gchar *title, GtkCellRenderer *cell, ...) { GtkTreeViewColumn *col; va_list args; va_start(args, cell); col = new_column_internal(title, args); va_end(args); return gtk_tree_view_insert_column(tree_view, col, position); } void gtk_tree_view_scroll_to_cell(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gboolean use_align, gfloat row_align, gfloat col_align) { /* not implemented */ } void gtk_tree_view_column_set_resizable(GtkTreeViewColumn *tree_column, gboolean resizable) { tree_column->resizeable = resizable; } void gtk_tree_view_column_set_expand(GtkTreeViewColumn *tree_column, gboolean expand) { tree_column->expand = expand; } void gtk_tree_view_column_set_sort_column_id(GtkTreeViewColumn *tree_column, gint sort_column_id) { tree_column->sort_column_id = sort_column_id; } void gtk_tree_view_column_set_alignment(GtkTreeViewColumn *tree_column, gfloat xalign) { tree_column->xalign = xalign; } gint gtk_tree_view_insert_column(GtkTreeView *tree_view, GtkTreeViewColumn *column, gint position) { tree_view->columns = g_slist_insert(tree_view->columns, column, position); return g_slist_length(tree_view->columns); } GtkTreeViewColumn *gtk_tree_view_get_column(GtkTreeView *tree_view, gint n) { return g_slist_nth_data(tree_view->columns, n); } void gtk_tree_view_set_model(GtkTreeView *tree_view, GtkTreeModel *model) { /* We only support a single model per view, so ignore attempts to remove it */ if (model) { tree_view->model = model; model->view = tree_view; } } struct ListStoreSortData { GtkTreeIterCompareFunc sort_func; GtkListStore *store; gboolean reversed; }; static gint tree_view_sort_func(gconstpointer a, gconstpointer b, gpointer data){ /* Map from sorting an array of guint indices into sorting a GtkListStore */ struct ListStoreSortData *d = data; const guint *inda = a, *indb = b; if (d->reversed) { return d->sort_func(d->store, (guint*)indb, (guint*)inda, NULL); } else { return d->sort_func(d->store, (guint*)inda, (guint*)indb, NULL); } } void gtk_tree_view_sort(GtkTreeView *tv) { GtkListStore *model = tv->model; struct ListStoreSortData data; HWND hWnd; GArray *inds, *revinds; guint i; GArray *newrows; if (!model || !model->need_sort || model->sort_column_id == GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID) { return; } /* Before sort, inds[row] = row */ inds = g_array_sized_new(FALSE, FALSE, sizeof(guint), model->rows->len); for (i = 0; i < model->rows->len; ++i) { g_array_append_val(inds, i); } data.sort_func = g_array_index(model->sort_func, GtkTreeIterCompareFunc, model->sort_column_id); data.store = model; data.reversed = model->sort_order == GTK_SORT_DESCENDING; g_array_sort_with_data(inds, tree_view_sort_func, &data); /* After sort, inds[newrow] = oldrow */ /* Now we can reconstruct model->rows in the new order */ newrows = g_array_sized_new(FALSE, FALSE, sizeof(GtkListStoreRow), model->rows->len); for (i = 0; i < model->rows->len; ++i) { guint oldrow = g_array_index(inds, guint, i); g_array_append_val(newrows, g_array_index(model->rows, GtkListStoreRow, oldrow)); } /* Make revinds[oldrow] = newrow */ revinds = g_array_sized_new(FALSE, FALSE, sizeof(guint), model->rows->len); g_array_set_size(revinds, model->rows->len); for (i = 0; i < model->rows->len; ++i) { guint oldrow = g_array_index(inds, guint, i); g_array_index(revinds, guint, oldrow) = i; } /* Update selection (only works for a single selection currently) */ if (tv->selection) { guint oldrow = GPOINTER_TO_UINT(tv->selection->data); guint newrow = g_array_index(revinds, guint, oldrow); if (oldrow != newrow) { gtk_tree_selection_unselect_path(tv, &oldrow); gtk_tree_selection_select_path(tv, &newrow); } } /* No need to free the old row data since the new structure takes ownership */ g_array_free(model->rows, TRUE); model->rows = newrows; g_array_free(inds, TRUE); g_array_free(revinds, TRUE); model->need_sort = FALSE; hWnd = GTK_WIDGET(tv)->hWnd; if (hWnd) InvalidateRect(hWnd, NULL, FALSE); } GtkTreeModel *gtk_tree_view_get_model(GtkTreeView *tree_view) { return tree_view->model; } void gtk_tree_view_set_headers_clickable(GtkTreeView *tree_view, gboolean setting) { tree_view->headers_clickable = setting; } /* These are noops; we only use these for GtkListStore, which should always be owned (and thus freed) by our GtkTreeView */ void g_object_unref(gpointer object) { } gpointer g_object_ref(gpointer object) { return object; } #else /* for systems with GTK+ */ GtkWidget *gtk_scrolled_tree_view_new(GtkWidget **pack_widg) { GtkWidget *scrollwin, *clist; clist = gtk_tree_view_new(); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(scrollwin), clist); *pack_widg = scrollwin; return clist; } #endif dopewars-1.6.2/src/gtkport/unicodewrap.c000644 000765 000024 00000021620 14256242752 020232 0ustar00benstaff000000 000000 /************************************************************************ * unicodewrap.c Unicode wrapper functions for Win32 * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include #include #include "unicodewrap.h" /* * Converts a string from our internal representation (UTF-8) to a form * suitable for Windows Unicode-aware functions (i.e. UTF-16). This * returned string must be g_free'd when no longer needed. */ gunichar2 *strtow32(const char *instr, int len) { gunichar2 *outstr; if (!instr) { return NULL; } outstr = g_utf8_to_utf16(instr, len, NULL, NULL, NULL); if (!outstr) { outstr = g_utf8_to_utf16("[?]", len, NULL, NULL, NULL); } return outstr; } gchar *w32tostr(const gunichar2 *instr, int len) { gchar *outstr; if (!instr) { return NULL; } outstr = g_utf16_to_utf8(instr, len, NULL, NULL, NULL); if (!outstr) { outstr = g_strdup("[?]"); } return outstr; } BOOL mySetWindowText(HWND hWnd, LPCTSTR lpString) { BOOL retval; gunichar2 *text; text = strtow32(lpString, -1); retval = SetWindowTextW(hWnd, text); g_free(text); return retval; } HWND myCreateWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam) { return myCreateWindowEx(0, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam); } HWND myCreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam) { HWND retval; gunichar2 *classname, *winname; classname = strtow32(lpClassName, -1); winname = strtow32(lpWindowName, -1); retval = CreateWindowExW(dwExStyle, classname, winname, dwStyle, x, y, nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam); g_free(classname); g_free(winname); return retval; } gchar *myGetWindowText(HWND hWnd) { gint textlen; gunichar2 *buffer; gchar *retstr; textlen = SendMessage(hWnd, WM_GETTEXTLENGTH, 0, 0); buffer = g_new0(gunichar2, textlen + 1); GetWindowTextW(hWnd, buffer, textlen + 1); buffer[textlen] = '\0'; retstr = w32tostr(buffer, textlen); g_free(buffer); return retstr; } int myDrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat) { int retval; gunichar2 *text; text = strtow32(lpString, nCount); retval = DrawTextW(hDC, text, -1, lpRect, uFormat); g_free(text); return retval; } static BOOL makeMenuItemInfoW(LPMENUITEMINFOW lpmiiw, LPMENUITEMINFO lpmii) { BOOL strdata; strdata = (lpmii->fMask & MIIM_TYPE) && !(lpmii->fType & (MFT_BITMAP | MFT_SEPARATOR)); lpmiiw->cbSize = sizeof(MENUITEMINFOW); lpmiiw->fMask = lpmii->fMask; lpmiiw->fType = lpmii->fType; lpmiiw->fState = lpmii->fState; lpmiiw->wID = lpmii->wID; lpmiiw->hSubMenu = lpmii->hSubMenu; lpmiiw->hbmpChecked = lpmii->hbmpChecked; lpmiiw->hbmpUnchecked = lpmii->hbmpUnchecked; lpmiiw->dwItemData = lpmii->dwItemData; lpmiiw->dwTypeData = strdata ? strtow32(lpmii->dwTypeData, -1) : (LPWSTR)lpmii->dwTypeData; lpmiiw->cch = lpmii->cch; return strdata; } BOOL WINAPI mySetMenuItemInfo(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii) { BOOL retval; MENUITEMINFOW miiw; BOOL strdata; strdata = makeMenuItemInfoW(&miiw, lpmii); retval = SetMenuItemInfoW(hMenu, uItem, fByPosition, &miiw); if (strdata) { g_free(miiw.dwTypeData); } return retval; } BOOL WINAPI myInsertMenuItem(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii) { BOOL retval; MENUITEMINFOW miiw; BOOL strdata; strdata = makeMenuItemInfoW(&miiw, lpmii); retval = InsertMenuItemW(hMenu, uItem, fByPosition, &miiw); if (strdata) { g_free(miiw.dwTypeData); } return retval; } static BOOL makeHeaderItemW(HD_ITEMW *phdiw, const HD_ITEM *phdi) { BOOL strdata; strdata = phdi->mask & HDI_TEXT; phdiw->mask = phdi->mask; phdiw->cxy = phdi->cxy; phdiw->pszText = strdata ? strtow32(phdi->pszText, -1) : (LPWSTR)phdi->pszText; phdiw->hbm = phdi->hbm; phdiw->cchTextMax = phdi->cchTextMax; phdiw->fmt = phdi->fmt; phdiw->lParam = phdi->lParam; return strdata; } static BOOL makeTabItemW(TC_ITEMW *tiew, const TC_ITEM *tie) { BOOL strdata; strdata = tie->mask & TCIF_TEXT; tiew->mask = tie->mask; tiew->pszText = strdata ? strtow32(tie->pszText, -1) : (LPWSTR)tie->pszText; tiew->cchTextMax = tie->cchTextMax; tiew->iImage = tie->iImage; tiew->lParam = tie->lParam; return strdata; } int myHeader_InsertItem(HWND hWnd, int index, const HD_ITEM *phdi) { int retval; if (IsWindowUnicode(hWnd)) { HD_ITEMW hdiw; BOOL strdata; strdata = makeHeaderItemW(&hdiw, phdi); retval = (int)SendMessageW(hWnd, HDM_INSERTITEMW, (WPARAM)index, (LPARAM)&hdiw); if (strdata) { g_free(hdiw.pszText); } } else { retval = (int)SendMessageA(hWnd, HDM_INSERTITEMA, (WPARAM)index, (LPARAM)phdi); } return retval; } int myTabCtrl_InsertItem(HWND hWnd, int index, const TC_ITEM *pitem) { int retval; TC_ITEMW tiew; BOOL strdata; strdata = makeTabItemW(&tiew, pitem); retval = (int)SendMessageW(hWnd, TCM_INSERTITEMW, (WPARAM)index, (LPARAM)&tiew); if (strdata) { g_free(tiew.pszText); } return retval; } ATOM myRegisterClass(CONST WNDCLASS *lpWndClass) { ATOM retval; WNDCLASSW wcw; wcw.style = lpWndClass->style; wcw.lpfnWndProc = lpWndClass->lpfnWndProc; wcw.cbClsExtra = lpWndClass->cbClsExtra; wcw.cbWndExtra = lpWndClass->cbWndExtra; wcw.hInstance = lpWndClass->hInstance; wcw.hIcon = lpWndClass->hIcon; wcw.hCursor = lpWndClass->hCursor; wcw.hbrBackground = lpWndClass->hbrBackground; wcw.lpszMenuName = strtow32(lpWndClass->lpszMenuName, -1); wcw.lpszClassName = strtow32(lpWndClass->lpszClassName, -1); retval = RegisterClassW(&wcw); g_free((LPWSTR)wcw.lpszMenuName); g_free((LPWSTR)wcw.lpszClassName); return retval; } HWND myCreateDialog(HINSTANCE hInstance, LPCTSTR lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc) { HWND retval; gunichar2 *text; text = strtow32(lpTemplate, -1); retval = CreateDialogW(hInstance, text, hWndParent, lpDialogFunc); g_free(text); return retval; } void myEditReplaceSel(HWND hWnd, BOOL fCanUndo, LPCSTR lParam) { gunichar2 *text; text = strtow32(lParam, -1); SendMessageW(hWnd, EM_REPLACESEL, (WPARAM)fCanUndo, (LPARAM)text); g_free(text); } int myMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType) { int retval; gunichar2 *text, *caption; text = strtow32(lpText, -1); caption = strtow32(lpCaption, -1); retval = MessageBoxW(hWnd, text, caption, uType); g_free(text); g_free(caption); return retval; } size_t myw32strlen(const char *str) { return g_utf8_strlen(str, -1); } LRESULT myComboBox_AddString(HWND hWnd, LPCTSTR text) { LRESULT retval; gunichar2 *w32text; w32text = strtow32(text, -1); retval = SendMessageW(hWnd, CB_ADDSTRING, 0, (LPARAM)w32text); g_free(w32text); return retval; } #endif /* CYGWIN */ dopewars-1.6.2/src/gtkport/gtkport.h000644 000765 000024 00000060120 14256242752 017407 0ustar00benstaff000000 000000 /************************************************************************ * gtkport.h Portable "almost-GTK+" for Unix/Win32 * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __GTKPORT_H__ #define __GTKPORT_H__ #ifdef HAVE_CONFIG_H #include #endif #include "itemfactory.h" #ifdef CYGWIN /* GTK+ emulation prototypes etc. for Win32 platform */ /* Provide prototypes compatible with GTK+3 */ #define GTK_MAJOR_VERSION 3 #include #include #include #include #include "gtkenums.h" #include "gtktypes.h" #include "treeview.h" struct _GtkMisc { GtkWidget widget; }; struct _GtkProgressBar { GtkWidget widget; GtkProgressBarOrientation orient; gfloat position; }; struct _GtkSeparator { GtkWidget widget; }; struct _GtkHSeparator { GtkSeparator separator; }; struct _GtkVSeparator { GtkSeparator separator; }; struct _GtkMenuItem { GtkWidget widget; GtkMenu *submenu; gint ID; gint accelind; gchar *text; gint check:1; gint active:1; }; struct _GtkMenuShell { GtkWidget widget; HMENU menu; GSList *children; }; struct _GtkMenu { GtkMenuShell menushell; guint active; }; struct _GtkMenuBar { GtkMenuShell menushell; gint LastID; }; typedef struct _GtkEditable GtkEditable; typedef struct _GtkEntry GtkEntry; typedef struct _GtkText GtkText; typedef struct _GtkTextBuffer GtkTextBuffer; typedef struct _GtkSpinButton GtkSpinButton; struct _GtkEditable { GtkWidget widget; GString *text; gint is_editable:1; }; struct _GtkEntry { GtkEditable editable; gint is_visible:1; }; struct _GtkSpinButton { GtkEntry entry; GtkAdjustment *adj; HWND updown; }; struct _GtkTextBuffer { GData *tags; }; struct _GtkText { GtkEditable editable; gint word_wrap:1; GtkTextBuffer *buffer; }; typedef struct _GtkLabel GtkLabel; struct _GtkLabel { GtkWidget widget; gchar *text; }; typedef struct _GtkUrl GtkUrl; struct _GtkUrl { GtkLabel label; gchar *target; }; struct _GtkPanedChild { GtkWidget *widget; gint resize:1; gint shrink:1; }; struct _GtkPaned { GtkContainer container; GtkPanedChild children[2]; GtkAllocation true_alloc; gint handle_size, gutter_size; gint handle_pos; gint Tracking:1; }; struct _GtkVPaned { GtkPaned paned; }; struct _GtkHPaned { GtkPaned paned; }; typedef struct _GtkBox GtkBox; typedef struct _GtkBoxChild GtkBoxChild; typedef struct _GtkHBox GtkHBox; typedef struct _GtkVBox GtkVBox; typedef struct _GtkNotebookChild GtkNotebookChild; typedef struct _GtkNotebook GtkNotebook; struct _GtkBoxChild { GtkWidget *widget; guint expand:1; guint fill:1; }; struct _GtkBox { GtkContainer container; GList *children; guint16 spacing; gint maxreq; guint homogeneous:1; }; struct _GtkHBox { GtkBox box; }; struct _GtkVBox { GtkBox box; }; struct _GtkNotebookChild { GtkWidget *child, *tab_label; HWND tabpage; }; struct _GtkNotebook { GtkContainer container; GSList *children; gint selection; }; typedef struct _GtkBin GtkBin; struct _GtkBin { GtkContainer container; GtkWidget *child; }; typedef struct _GtkFrame GtkFrame; typedef struct _GtkButton GtkButton; typedef struct _GtkToggleButton GtkToggleButton; typedef struct _GtkCheckButton GtkCheckButton; typedef struct _GtkRadioButton GtkRadioButton; struct _GtkFrame { GtkBin bin; gchar *text; GtkRequisition label_req; }; struct _GtkButton { GtkWidget widget; gchar *text; }; struct _GtkComboBox { GtkWidget widget; GtkTreeModel *model; gint model_column; gint active; }; struct _GtkToggleButton { GtkButton button; gboolean toggled; }; struct _GtkCheckButton { GtkToggleButton toggle; }; struct _GtkRadioButton { GtkCheckButton check; GSList *group; }; typedef struct _GtkWindow GtkWindow; struct _GtkWindow { GtkBin bin; GtkWindowType type; gchar *title; gint default_width, default_height; GtkMenuBar *menu_bar; GtkAccelGroup *accel_group; GtkWidget *focus; HACCEL hAccel; guint modal:1; guint allow_shrink:1; guint allow_grow:1; guint auto_shrink:1; }; typedef struct _GtkTable GtkTable; typedef struct _GtkTableChild GtkTableChild; typedef struct _GtkTableRowCol GtkTableRowCol; struct _GtkTable { GtkContainer container; GList *children; GtkTableRowCol *rows, *cols; guint16 nrows, ncols; guint16 column_spacing, row_spacing; guint homogeneous:1; }; struct _GtkTableChild { GtkWidget *widget; guint16 left_attach, right_attach, top_attach, bottom_attach; GtkAttachOptions xoptions, yoptions; }; struct _GtkTableRowCol { guint16 requisition; guint16 allocation; gint16 spacing; }; extern GtkClass GtkContainerClass; extern GtkClass GtkObjectClass; extern HFONT defFont; extern HINSTANCE hInst; #define G_OBJECT(obj) ((GObject *)(obj)) #define GTK_CONTAINER(obj) ((GtkContainer *)(obj)) #define GTK_PANED(obj) ((GtkPaned *)(obj)) #define GTK_VPANED(obj) ((GtkVPaned *)(obj)) #define GTK_HPANED(obj) ((GtkHPaned *)(obj)) #define GTK_BIN(obj) ((GtkBin *)(obj)) #define GTK_FRAME(obj) ((GtkFrame *)(obj)) #define GTK_BOX(obj) ((GtkBox *)(obj)) #define GTK_HBOX(obj) ((GtkHBox *)(obj)) #define GTK_VBOX(obj) ((GtkVBox *)(obj)) #define GTK_NOTEBOOK(obj) ((GtkNotebook *)(obj)) #define GTK_WIDGET(obj) ((GtkWidget *)(obj)) #define GTK_EDITABLE(obj) ((GtkEditable *)(obj)) #define GTK_ENTRY(obj) ((GtkEntry *)(obj)) #define GTK_SPIN_BUTTON(obj) ((GtkSpinButton *)(obj)) #define GTK_TEXT(obj) ((GtkText *)(obj)) #define GTK_WINDOW(obj) ((GtkWindow *)(obj)) #define GTK_BUTTON(obj) ((GtkButton *)(obj)) #define GTK_COMBO_BOX(obj) ((GtkComboBox *)(obj)) #define GTK_CELL_LAYOUT(obj) ((GtkCellLayout *)(obj)) #define GTK_TOGGLE_BUTTON(obj) ((GtkToggleButton *)(obj)) #define GTK_RADIO_BUTTON(obj) ((GtkRadioButton *)(obj)) #define GTK_CHECK_BUTTON(obj) ((GtkCheckButton *)(obj)) #define GTK_LABEL(obj) ((GtkLabel *)(obj)) #define GTK_URL(obj) ((GtkUrl *)(obj)) #define GTK_TABLE(obj) ((GtkTable *)(obj)) #define GTK_MENU_SHELL(obj) ((GtkMenuShell *)(obj)) #define GTK_MENU_BAR(obj) ((GtkMenuBar *)(obj)) #define GTK_MENU_ITEM(obj) ((GtkMenuItem *)(obj)) #define GTK_CHECK_MENU_ITEM(obj) ((GtkMenuItem *)(obj)) #define GTK_MENU(obj) ((GtkMenu *)(obj)) #define GTK_MISC(obj) ((GtkMisc *)(obj)) #define GTK_PROGRESS_BAR(obj) ((GtkProgressBar *)(obj)) #define G_CALLBACK(f) ((GCallback) (f)) #define GTK_OBJECT_FLAGS(obj) (G_OBJECT(obj)->flags) #define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS(wid)) #define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS(wid)>K_REALIZED) != 0) #define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS(wid)>K_SENSITIVE) != 0) #define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS(wid)>K_CAN_FOCUS) != 0) #define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS(wid)>K_HAS_FOCUS) != 0) #define GTK_WIDGET_SET_FLAGS(wid,flag) (GTK_WIDGET_FLAGS(wid) |= (flag)) #define GTK_WIDGET_UNSET_FLAGS(wid,flag) (GTK_WIDGET_FLAGS(wid) &= ~(flag)) void gtk_widget_set_can_default(GtkWidget *wid, gboolean flag); typedef int GdkEvent; gboolean gtk_widget_get_visible(GtkWidget *widget); void gtk_widget_show(GtkWidget *widget); void gtk_widget_show_all(GtkWidget *widget); void gtk_widget_hide_all(GtkWidget *widget); void gtk_widget_hide(GtkWidget *widget); void gtk_widget_destroy(GtkWidget *widget); void gtk_widget_realize(GtkWidget *widget); void gtk_widget_set_sensitive(GtkWidget *widget, gboolean sensitive); void gtk_widget_size_request(GtkWidget *widget, GtkRequisition *requisition); void gtk_widget_set_size(GtkWidget *widget, GtkAllocation *allocation); GtkWidget *gtk_widget_get_ancestor(GtkWidget *widget, GtkType type); GtkWidget *gtk_window_new(GtkWindowType type); void gtk_window_set_title(GtkWindow *window, const gchar *title); void gtk_window_set_default_size(GtkWindow *window, gint width, gint height); void gtk_window_set_transient_for(GtkWindow *window, GtkWindow *parent); void gtk_window_set_policy(GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink); void gtk_container_add(GtkContainer *container, GtkWidget *widget); void gtk_container_set_border_width(GtkContainer *container, guint border_width); GtkWidget *gtk_button_new_with_label(const gchar *label); GtkWidget *gtk_button_new_with_mnemonic(const gchar *label); GtkWidget *gtk_label_new(const gchar *text); GtkWidget *gtk_box_new(GtkOrientation orientation, gint spacing); void gtk_box_set_homogeneous(GtkBox *box, gboolean homogeneous); GtkWidget *gtk_check_button_new_with_label(const gchar *label); GtkWidget *gtk_radio_button_new_with_label(GSList *group, const gchar *label); GtkWidget *gtk_radio_button_new_with_label_from_widget(GtkRadioButton *group, const gchar *label); GtkWidget *gtk_frame_new(const gchar *text); void gtk_frame_set_shadow_type(GtkFrame *frame, GtkShadowType type); GtkWidget *gtk_text_new(GtkAdjustment *hadj, GtkAdjustment *vadj); GtkWidget *gtk_entry_new(); void gtk_entry_set_visibility(GtkEntry *entry, gboolean visible); /* GtkTable implementation */ GtkWidget *gtk_table_new(guint rows, guint cols, gboolean homogeneous); void gtk_table_resize(GtkTable *table, guint rows, guint cols); void gtk_table_attach(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, guint xpadding, guint ypadding); void gtk_table_attach_defaults(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach); void gtk_table_set_row_spacing(GtkTable *table, guint row, guint spacing); void gtk_table_set_col_spacing(GtkTable *table, guint column, guint spacing); void gtk_table_set_row_spacings(GtkTable *table, guint spacing); void gtk_table_set_col_spacings(GtkTable *table, guint spacing); GSList *gtk_radio_button_get_group(GtkRadioButton *radio_button); void gtk_editable_insert_text(GtkEditable *editable, const gchar *new_text, gint new_text_length, gint *position); void gtk_editable_delete_text(GtkEditable *editable, gint start_pos, gint end_pos); gchar *gtk_editable_get_chars(GtkEditable *editable, gint start_pos, gint end_pos); void gtk_editable_set_editable(GtkEditable *editable, gboolean is_editable); void gtk_editable_set_position(GtkEditable *editable, gint position); gint gtk_editable_get_position(GtkEditable *editable); guint gtk_text_get_length(GtkText *text); void gtk_text_set_editable(GtkText *text, gboolean is_editable); void gtk_text_set_word_wrap(GtkText *text, gboolean word_wrap); void gtk_text_freeze(GtkText *text); void gtk_text_thaw(GtkText *text); GtkTextBuffer *gtk_text_view_get_buffer(GtkText *text); void gtk_text_buffer_create_tag(GtkTextBuffer *buffer, const gchar *name, ...); void gtk_box_pack_start(GtkBox *box, GtkWidget *child, gboolean Expand, gboolean Fill, gint Padding); void gtk_toggle_button_toggled(GtkToggleButton *toggle_button); gboolean gtk_toggle_button_get_active(GtkToggleButton *toggle_button); void gtk_toggle_button_set_active(GtkToggleButton *toggle_button, gboolean is_active); void gtk_main_quit(); void gtk_main(); guint g_signal_connect(GObject *object, const gchar *name, GCallback func, gpointer func_data); guint g_signal_connect_swapped(GObject *object, const gchar *name, GCallback func, GObject *slot_object); void gtk_signal_emit(GObject *object, const gchar *name, ...); void SetCustomWndProc(WNDPROC wndproc); void win32_init(HINSTANCE hInstance, HINSTANCE hPrevInstance, char *MainIcon); void gtk_menu_shell_insert(GtkMenuShell *menu_shell, GtkWidget *child, gint position); void gtk_menu_shell_append(GtkMenuShell *menu_shell, GtkWidget *child); void gtk_menu_shell_prepend(GtkMenuShell *menu_shell, GtkWidget *child); GtkWidget *gtk_menu_bar_new(); void gtk_menu_bar_insert(GtkMenuBar *menu_bar, GtkWidget *child, gint position); void gtk_menu_bar_append(GtkMenuBar *menu_bar, GtkWidget *child); void gtk_menu_bar_prepend(GtkMenuBar *menu_bar, GtkWidget *child); GtkWidget *gtk_menu_new(); void gtk_menu_insert(GtkMenu *menu, GtkWidget *child, gint position); void gtk_menu_append(GtkMenu *menu, GtkWidget *child); void gtk_menu_prepend(GtkMenu *menu, GtkWidget *child); GtkWidget *gtk_menu_item_new_with_label(const gchar *label); #define gtk_menu_item_new_with_mnemonic gtk_menu_item_new_with_label #define gtk_check_menu_item_new_with_mnemonic gtk_menu_item_new_with_label GtkMenu *gtk_menu_item_get_submenu(GtkMenuItem *menu_item); void gtk_menu_item_set_submenu(GtkMenuItem *menu_item, GtkWidget *submenu); void gtk_check_menu_item_set_active(GtkMenuItem *menu_item, gboolean active); gboolean gtk_check_menu_item_get_active(GtkMenuItem *menu_item); void gtk_menu_set_active(GtkMenu *menu, guint index); GtkWidget *gtk_notebook_new(); void gtk_notebook_append_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label); void gtk_notebook_insert_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label, gint position); void gtk_notebook_set_current_page(GtkNotebook *notebook, gint page_num); gint gtk_notebook_get_current_page(GtkNotebook *notebook); GObject *gtk_adjustment_new(gfloat value, gfloat lower, gfloat upper, gfloat step_increment, gfloat page_increment, gfloat page_size); GtkWidget *gtk_spin_button_new(GtkAdjustment *adjustment, gfloat climb_rate, guint digits); guint dp_g_io_add_watch(GIOChannel *channel, GIOCondition condition, GIOFunc func, gpointer user_data); guint dp_g_timeout_add(guint interval, GSourceFunc function, gpointer data); gboolean dp_g_source_remove(guint tag); GtkWidget *gtk_separator_new(GtkOrientation orientation); void g_object_set_data(GObject *object, const gchar *key, gpointer data); gpointer g_object_get_data(GObject *object, const gchar *key); GtkAccelGroup *gtk_accel_group_new(); void gtk_accel_group_destroy(GtkAccelGroup *accel_group); gint gtk_accel_group_add(GtkAccelGroup *accel_group, ACCEL *newaccel); void gtk_widget_grab_default(GtkWidget *widget); void gtk_widget_grab_focus(GtkWidget *widget); void gtk_window_set_modal(GtkWindow *window, gboolean modal); void gtk_window_add_accel_group(GtkWindow *window, GtkAccelGroup *accel_group); void gtk_entry_set_text(GtkEntry *entry, const gchar *text); void gtk_widget_add_accelerator(GtkWidget *widget, const gchar *accel_signal, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods, GtkAccelFlags accel_flags); void gtk_widget_remove_accelerator(GtkWidget *widget, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods); extern const GtkType GTK_TYPE_WINDOW, GTK_TYPE_MENU_BAR; GtkWidget *gtk_paned_new(GtkOrientation orientation); void gtk_paned_add1(GtkPaned *paned, GtkWidget *child); void gtk_paned_add2(GtkPaned *paned, GtkWidget *child); void gtk_paned_pack1(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink); void gtk_paned_pack2(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink); void gtk_paned_set_position(GtkPaned *paned, gint position); #define gtk_container_border_width gtk_container_set_border_width GtkWidget *gtk_button_box_new(GtkOrientation orientation); void gtk_box_set_spacing(GtkBox *box, gint spacing); #define gtk_button_box_set_layout(box, layout) {} GtkWidget *gtk_combo_box_new_with_model(GtkTreeModel *model); void gtk_combo_box_set_model(GtkComboBox *combo_box, GtkTreeModel *model); void gtk_combo_box_set_active(GtkComboBox *combo_box, gint index); void gtk_cell_layout_set_attributes(GtkCellLayout *cell_layout, GtkCellRenderer *cell, ...); #define gtk_cell_layout_pack_start(layout, renderer, expand) {} GtkTreeModel *gtk_combo_box_get_model(GtkComboBox *combo_box); gboolean gtk_combo_box_get_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter); void gtk_label_set_text(GtkLabel *label, const gchar *str); /* Not currently supported */ #define gtk_label_set_text_with_mnemonic gtk_label_set_text #define gtk_label_set_mnemonic_widget(label, widget) {} const gchar *gtk_label_get_text(GtkLabel *label); void gtk_text_set_point(GtkText *text, guint index); void gtk_widget_set_size_request(GtkWidget *widget, gint width, gint height); gint gtk_spin_button_get_value_as_int(GtkSpinButton *spin_button); void gtk_spin_button_set_value(GtkSpinButton *spin_button, gfloat value); void gtk_spin_button_set_adjustment(GtkSpinButton *spin_button, GtkAdjustment *adjustment); void gtk_spin_button_update(GtkSpinButton *spin_button); void gtk_misc_set_alignment(GtkMisc *misc, gfloat xalign, gfloat yalign); GtkWidget *gtk_progress_bar_new(); void gtk_progress_bar_set_fraction(GtkProgressBar *pbar, gfloat percentage); guint gtk_main_level(void); GObject *GtkNewObject(GtkClass *klass); BOOL GetTextSize(HWND hWnd, char *text, LPSIZE lpSize, HFONT hFont); void gtk_container_realize(GtkWidget *widget); void gtk_set_default_font(HWND hWnd); HWND gtk_get_parent_hwnd(GtkWidget *widget); GtkStyle *gtk_style_new(void); void gtk_widget_set_style(GtkWidget *widget, GtkStyle *style); void gtk_window_set_type_hint(GtkWindow *window, GdkWindowTypeHint hint); void gtk_window_set_position(GtkWindow *window, GtkWindowPosition position); /* Functions for handling emitted signals */ void gtk_marshal_BOOL__GPOIN(GObject *object, GSList *actions, GCallback default_action, va_list args); void gtk_marshal_BOOL__GINT(GObject *object, GSList *actions, GCallback default_action, va_list args); void gtk_marshal_VOID__VOID(GObject *object, GSList *actions, GCallback default_action, va_list args); void gtk_marshal_VOID__BOOL(GObject *object, GSList *actions, GCallback default_action, va_list args); void gtk_marshal_VOID__GPOIN(GObject *object, GSList *actions, GCallback default_action, va_list args); void gtk_marshal_VOID__GINT(GObject *object, GSList *actions, GCallback default_action, va_list args); void gtk_marshal_VOID__GINT_GINT_EVENT(GObject *object, GSList *actions, GCallback default_action, va_list args); /* Private functions */ void gtk_container_set_size(GtkWidget *widget, GtkAllocation *allocation); void MapWidgetOrigin(GtkWidget *widget, POINT *pt); #else /* CYGWIN */ /* Include standard GTK+ headers on Unix systems */ /* We'd like to do this under GTK+2, but we can't until we get rid of clists, gtk_object, etc. #define GTK_DISABLE_DEPRECATED 1 */ #include #include /* Provide compatibility functions for GTK+2 so we can use GTK+3 syntax */ #if GTK_MAJOR_VERSION == 2 GtkWidget *gtk_button_box_new(GtkOrientation orientation); GtkWidget *gtk_box_new(GtkOrientation orientation, gint spacing); GtkWidget *gtk_separator_new(GtkOrientation orientation); GtkWidget *gtk_paned_new(GtkOrientation orientation); #endif /* Defines for GtkMessageBox options */ #define MB_OK 1 #define MB_CANCEL 2 #define MB_YES 4 #define MB_NO 8 #define MB_MAX 4 #define MB_YESNO (MB_YES|MB_NO) #define IDOK GTK_RESPONSE_OK #define IDCANCEL GTK_RESPONSE_CANCEL #define IDYES GTK_RESPONSE_YES #define IDNO GTK_RESPONSE_NO /* Other flags */ #define MB_IMMRETURN 16 typedef struct _GtkUrl GtkUrl; struct _GtkUrl { GtkLabel *label; gchar *target, *bin; }; #endif /* CYGWIN */ #if CYGWIN typedef enum { GTK_MESSAGE_INFO, GTK_MESSAGE_WARNING, GTK_MESSAGE_QUESTION, GTK_MESSAGE_ERROR } GtkMessageType; #define gtk_text_view_set_editable(text, edit) gtk_text_set_editable(text, edit) #define gtk_text_view_set_wrap_mode(text, wrap) gtk_text_set_word_wrap(text, wrap) #define GTK_WRAP_WORD TRUE #define GTK_TEXT_VIEW(wid) GTK_TEXT(wid) #define GtkTextView GtkText #endif /* Global functions */ gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options); guint SetAccelerator(GtkWidget *labelparent, gchar *Text, GtkWidget *sendto, gchar *signal, GtkAccelGroup *accel_group, gboolean needalt); GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg); void TextViewAppend(GtkTextView *textview, const gchar *text, const gchar *tagname, gboolean scroll); void TextViewClear(GtkTextView *textview); GtkWidget *gtk_url_new(const gchar *text, const gchar *target, const gchar *bin); gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title); void DisplayHTML(GtkWidget *parent, const gchar *bin, const gchar *target); GtkWidget *gtk_scrolled_tree_view_new(GtkWidget **pack_widg); /* GtkTable is used in GTK2 (and early GTK3) but GtkGrid is used in later * GTK3 and GTK4. Provide an interface similar to GtkGrid that internally * uses either GtkTable or GtkGrid. Use a dp_ prefix to avoid clashes with * the real GtkTable */ #if CYGWIN || GTK_MAJOR_VERSION < 3 \ || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 4) #define GTK_GRID GTK_TABLE typedef GtkTable GtkGrid; #define gtk_grid_set_row_spacing(grid, spacing) gtk_table_set_row_spacings(grid, spacing) #define gtk_grid_set_column_spacing(grid, spacing) gtk_table_set_col_spacings(grid, spacing) #define dp_gtk_grid_resize(grid, rows, cols) gtk_table_resize(grid, rows, cols) #else #define dp_gtk_grid_resize(grid, rows, cols) {} #endif GtkWidget *dp_gtk_grid_new(guint rows, guint columns, gboolean homogeneous); void dp_gtk_grid_attach(GtkGrid *grid, GtkWidget *child, gint left, gint top, gint width, gint height, gboolean expand); void set_label_alignment(GtkWidget *widget, gfloat xalign, gfloat yalign); /* Make a new GtkLabel, with the text possibly bold */ GtkWidget *make_bold_label(const char *text, gboolean bold); #endif /* __GTKPORT_H__ */ dopewars-1.6.2/src/gtkport/itemfactory.c000644 000765 000024 00000020707 14256242752 020245 0ustar00benstaff000000 000000 /************************************************************************ * itemfactory.c GtkItemFactory and friends for Unix/Win32 * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport.h" /* No need to reimplement functions if we have GTK+2 */ #if GTK_MAJOR_VERSION == 2 GtkItemFactory *dp_gtk_item_factory_new(const gchar *path, GtkAccelGroup *accel_group) { return gtk_item_factory_new(GTK_TYPE_MENU_BAR, path, accel_group); } #endif #if defined(CYGWIN) || GTK_MAJOR_VERSION > 2 #ifdef CYGWIN #define OurAccel ACCEL #else typedef struct _OurAccel OurAccel; struct _OurAccel { guint key; GdkModifierType mods; GtkAccelFlags flags; }; #endif typedef struct _DPGtkItemFactoryChild DPGtkItemFactoryChild; struct _DPGtkItemFactoryChild { gchar *path; GtkWidget *widget; }; DPGtkItemFactory *dp_gtk_item_factory_new(const gchar *path, GtkAccelGroup *accel_group) { DPGtkItemFactory *new_fac; new_fac = g_new0(DPGtkItemFactory, 1); new_fac->path = g_strdup(path); new_fac->accel_group = accel_group; new_fac->top_widget = gtk_menu_bar_new(); new_fac->translate_func = NULL; return new_fac; } static gint PathCmp(const gchar *path1, const gchar *path2) { gint Match = 1; if (!path1 || !path2) return 0; while (*path1 && *path2 && Match) { while (*path1 == '_') path1++; while (*path2 == '_') path2++; if (*path1 == *path2) { path1++; path2++; } else Match = 0; } if (*path1 || *path2) Match = 0; return Match; } static gchar *TransPath(DPGtkItemFactory *ifactory, gchar *path) { gchar *transpath = NULL; if (ifactory->translate_func) { transpath = (*ifactory->translate_func) (path, ifactory->translate_data); } return transpath ? transpath : path; } static void gtk_item_factory_parse_path(DPGtkItemFactory *ifactory, gchar *path, DPGtkItemFactoryChild **parent, GString *menu_title) { GSList *list; DPGtkItemFactoryChild *child; gchar *root, *pt, *transpath; transpath = TransPath(ifactory, path); pt = strrchr(transpath, '/'); if (pt) g_string_assign(menu_title, pt + 1); pt = strrchr(path, '/'); if (!pt) return; root = g_strdup(path); root[pt - path] = '\0'; for (list = ifactory->children; list; list = g_slist_next(list)) { child = (DPGtkItemFactoryChild *)list->data; if (PathCmp(child->path, root) == 1) { *parent = child; break; } } g_free(root); } static gboolean gtk_item_factory_parse_accel(DPGtkItemFactory *ifactory, gchar *accelerator, GString *menu_title, OurAccel *accel) { gchar *apt; if (!accelerator) return FALSE; apt = accelerator; #ifdef CYGWIN accel->fVirt = 0; accel->key = 0; accel->cmd = 0; g_string_append(menu_title, "\t"); #else accel->key = 0; accel->mods = 0; accel->flags = GTK_ACCEL_VISIBLE; #endif if (strncmp(apt, "", 9) == 0) { #ifdef CYGWIN accel->fVirt |= FCONTROL; g_string_append(menu_title, "Ctrl+"); #else accel->mods |= GDK_CONTROL_MASK; #endif apt += 9; } if (strlen(apt) == 1) { accel->key = *apt; #ifdef CYGWIN g_string_append_c(menu_title, *apt); accel->fVirt |= FVIRTKEY; #endif } else if (strcmp(apt, "F1") == 0) { #ifdef CYGWIN g_string_append(menu_title, apt); accel->fVirt |= FVIRTKEY; accel->key = VK_F1; #else accel->key = GDK_KEY_F1; #endif } return (accel->key != 0); } void dp_gtk_item_factory_create_item(DPGtkItemFactory *ifactory, DPGtkItemFactoryEntry *entry, gpointer callback_data, guint callback_type) { DPGtkItemFactoryChild *new_child, *parent = NULL; GString *menu_title; GtkWidget *menu_item, *menu; OurAccel accel; gboolean haveaccel; new_child = g_new0(DPGtkItemFactoryChild, 1); new_child->path = g_strdup(entry->path); menu_title = g_string_new(""); gtk_item_factory_parse_path(ifactory, new_child->path, &parent, menu_title); haveaccel = gtk_item_factory_parse_accel(ifactory, entry->accelerator, menu_title, &accel); if (entry->item_type && strcmp(entry->item_type, "") == 0) { menu_item = gtk_check_menu_item_new_with_mnemonic(menu_title->str); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_item), TRUE); } else { menu_item = gtk_menu_item_new_with_mnemonic(menu_title->str); } new_child->widget = menu_item; if (entry->callback) { g_signal_connect(G_OBJECT(menu_item), "activate", entry->callback, callback_data); } if (parent) { menu = GTK_WIDGET(gtk_menu_item_get_submenu(GTK_MENU_ITEM(parent->widget))); if (!menu) { menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(parent->widget), menu); } gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item); } else { gtk_menu_shell_append(GTK_MENU_SHELL(ifactory->top_widget), menu_item); } if (haveaccel && ifactory->accel_group) { #ifdef CYGWIN GTK_MENU_ITEM(menu_item)->accelind = gtk_accel_group_add(ifactory->accel_group, &accel); #else gtk_widget_add_accelerator(menu_item, "activate", ifactory->accel_group, accel.key, accel.mods, accel.flags); #endif } g_string_free(menu_title, TRUE); ifactory->children = g_slist_append(ifactory->children, new_child); } void dp_gtk_item_factory_create_items(DPGtkItemFactory *ifactory, guint n_entries, DPGtkItemFactoryEntry *entries, gpointer callback_data) { gint i; for (i = 0; i < n_entries; i++) { dp_gtk_item_factory_create_item(ifactory, &entries[i], callback_data, 0); } } GtkWidget *dp_gtk_item_factory_get_widget(DPGtkItemFactory *ifactory, const gchar *path) { gint root_len; GSList *list; DPGtkItemFactoryChild *child; root_len = strlen(ifactory->path); if (!path || strlen(path) < root_len) return NULL; if (strncmp(ifactory->path, path, root_len) != 0) return NULL; if (strlen(path) == root_len) return ifactory->top_widget; for (list = ifactory->children; list; list = g_slist_next(list)) { child = (DPGtkItemFactoryChild *)list->data; if (PathCmp(child->path, &path[root_len]) == 1) return child->widget; } return NULL; } void dp_gtk_item_factory_set_translate_func(DPGtkItemFactory *ifactory, DPGtkTranslateFunc func, gpointer data, GDestroyNotify notify) { ifactory->translate_func = func; ifactory->translate_data = data; } #endif /* defined(CYGWIN) || GTK_MAJOR_VERSION > 2 */ dopewars-1.6.2/src/gtkport/Makefile.am000644 000765 000024 00000000475 14256242752 017607 0ustar00benstaff000000 000000 noinst_LIBRARIES = libgtkport.a libgtkport_a_SOURCES = gtkport.c gtkport.h gtkenums.h \ unicodewrap.c unicodewrap.h treeview.h treeview.c \ itemfactory.c itemfactory.h gtktypes.h AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GTK_CFLAGS@ @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.6.2/src/gtkport/gtktypes.h000644 000765 000024 00000011402 14256242752 017566 0ustar00benstaff000000 000000 /************************************************************************ * gtktypes.h Custom types for gtkport code * * Copyright (C) 2002-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __GTKTYPES_H__ #define __GTKTYPES_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #define MB_IMMRETURN 0 #define MYWM_SOCKETDATA (WM_USER+100) #define MYWM_TASKBAR (WM_USER+101) #define MYWM_SERVICE (WM_USER+102) #define GDK_MOD1_MASK 0 extern HICON mainIcon; #define GDK_KEY_KP_0 0xFFB0 #define GDK_KEY_KP_1 0xFFB1 #define GDK_KEY_KP_2 0xFFB2 #define GDK_KEY_KP_3 0xFFB3 #define GDK_KEY_KP_4 0xFFB4 #define GDK_KEY_KP_5 0xFFB5 #define GDK_KEY_KP_6 0xFFB6 #define GDK_KEY_KP_7 0xFFB7 #define GDK_KEY_KP_8 0xFFB8 #define GDK_KEY_KP_9 0xFFB9 typedef gint (*GtkFunction) (gpointer data); typedef void (*GtkDestroyNotify) (gpointer data); typedef struct _GtkClass GtkClass; typedef struct _GObject GObject; typedef struct _GtkRequisition GtkRequisition; typedef struct _GtkAllocation GtkAllocation; typedef struct _GtkWidget GtkWidget; typedef struct _GtkSignalType GtkSignalType; typedef struct _GtkContainer GtkContainer; typedef void (*GCallback) (); typedef void (*GtkSignalMarshaller) (GObject *object, GSList *actions, GCallback default_action, va_list args); typedef struct _GdkColor GdkColor; typedef struct _GtkStyle GtkStyle; typedef struct _GtkMenuShell GtkMenuShell; typedef struct _GtkMenuBar GtkMenuBar; typedef struct _GtkMenuItem GtkMenuItem; typedef struct _GtkMenu GtkMenu; typedef struct _GtkAdjustment GtkAdjustment; typedef struct _GtkSeparator GtkSeparator; typedef struct _GtkMisc GtkMisc; typedef struct _GtkProgressBar GtkProgressBar; typedef struct _GtkHSeparator GtkHSeparator; typedef struct _GtkVSeparator GtkVSeparator; typedef struct _GtkAccelGroup GtkAccelGroup; typedef struct _GtkPanedChild GtkPanedChild; typedef struct _GtkPaned GtkPaned; typedef struct _GtkVPaned GtkVPaned; typedef struct _GtkHPaned GtkHPaned; typedef struct _GtkComboBox GtkComboBox; /* Currently we only use cell_layout for combo box, so make it a synonym */ typedef struct _GtkComboBox GtkCellLayout; struct _GtkAccelGroup { ACCEL *accel; /* list of ACCEL structures */ gint numaccel; }; struct _GtkSignalType { gchar *name; GtkSignalMarshaller marshaller; GCallback default_action; }; struct _GdkColor { gulong pixel; gushort red; gushort green; gushort blue; }; struct _GtkStyle { GdkColor fg[5]; GdkColor bg[5]; }; typedef gboolean (*GtkWndProc) (GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef); struct _GtkClass { gchar *Name; GtkClass *parent; gint Size; GtkSignalType *signals; GtkWndProc wndproc; }; typedef GtkClass *GtkType; struct _GObject { GtkClass *klass; GData *object_data; GData *signals; guint32 flags; }; struct _GtkAdjustment { GObject object; gfloat value, lower, upper; gfloat step_increment, page_increment, page_size; }; struct _GtkRequisition { gint16 width, height; }; struct _GtkAllocation { gint16 x, y, width, height; }; struct _GtkWidget { GObject object; HWND hWnd; GtkRequisition requisition; GtkAllocation allocation; GtkRequisition usize; GtkWidget *parent; }; struct _GtkContainer { GtkWidget widget; GtkWidget *child; guint border_width:16; }; #endif /* CYGWIN */ #endif /* __GTKTYPES_H__ */ dopewars-1.6.2/src/gtkport/unicodewrap.h000644 000765 000024 00000006433 14256242752 020244 0ustar00benstaff000000 000000 /************************************************************************ * unicodewrap.h Unicode wrapper functions for Win32 * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __UNICODEWRAP_H__ #define __UNICODEWRAP_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include #include BOOL mySetWindowText(HWND hWnd, LPCTSTR lpString); HWND myCreateWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam); HWND myCreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam); gchar *myGetWindowText(HWND hWnd); int myDrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat); BOOL WINAPI mySetMenuItemInfo(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii); BOOL WINAPI myInsertMenuItem(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii); int myHeader_InsertItem(HWND hWnd, int index, const HD_ITEM *phdi); int myTabCtrl_InsertItem(HWND hWnd, int index, const TC_ITEM *pitem); ATOM myRegisterClass(CONST WNDCLASS *lpWndClass); HWND myCreateDialog(HINSTANCE hInstance, LPCTSTR lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc); void myEditReplaceSel(HWND hWnd, BOOL fCanUndo, LPCSTR lParam); int myMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType); size_t myw32strlen(const char *str); LRESULT myComboBox_AddString(HWND hWnd, LPCTSTR text); gchar *w32tostr(const gunichar2 *instr, int len); gunichar2 *strtow32(const char *instr, int len); #endif /* CYGWIN */ #endif /* __UNICODEWRAP_H__ */ dopewars-1.6.2/src/gtkport/treeview.h000644 000765 000024 00000022566 14256242752 017563 0ustar00benstaff000000 000000 /************************************************************************ * treeview.h GtkTreeView (and friends) implementation for gtkport * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __TREEVIEW_H__ #define __TREEVIEW_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include "gtkenums.h" typedef struct _GtkTreeView GtkTreeView; typedef struct _GtkTreeViewColumn GtkTreeViewColumn; typedef struct _GtkListStore GtkListStore; /* ListStore is the only model we provide here, so they can be synonyms */ typedef struct _GtkListStore GtkTreeModel; typedef struct _GtkCellRenderer GtkCellRenderer; /* Our TreeModel is sortable, so this can be a synonym */ typedef struct _GtkListStore GtkTreeSortable; /* We only support one selection per tree view, so make them synonyms */ typedef struct _GtkTreeView GtkTreeSelection; /* A list row is just a list of pointers to column data */ typedef struct _GtkListStoreRow GtkListStoreRow; /* Tree iterators and paths are each just a row index */ typedef guint GtkTreeIter; typedef guint GtkTreePath; typedef gint (*GtkTreeIterCompareFunc) (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data); struct _GtkTreeView { GtkContainer container; HWND header, scrollwin; GtkTreeModel *model; int scrollpos; gint16 header_size; GtkSelectionMode mode; GSList *columns; /* List of GtkTreeViewColumn objects */ GList *selection; gint headers_clickable:1; }; struct _GtkTreeViewColumn { gchar *title; /* header title */ int model_column; /* the index of the column in the GtkTreeModel */ gint sort_column_id; /* what to sort by when this column is selected */ gint width; gint optimal_width; gfloat xalign; /* 0.0 for left, 0.5 for center, 1.0 for right align */ guint visible:1; guint resizeable:1; guint auto_resize:1; guint expand:1; /* should the column take up available space? */ }; struct _GtkListStoreRow { gpointer *data; /* Data for each column */ }; struct _GtkListStore { GObject object; int ncols; /* Number of columns */ int *coltype; /* Type of each column (e.g. G_TYPE_STRING) */ GArray *rows; /* All rows in the list as GtkListStoreRow */ GtkTreeView *view; /* The currently connected view (only one supported) */ gint sort_column_id; /* what to sort by, if >= 0 */ GtkSortType sort_order; GArray *sort_func; /* callback functions for sorting, by sort_column_id */ gint need_sort:1; /* set once data is added/changed */ }; /* Empty struct; we don't support customizing the renderer */ struct _GtkCellRenderer { }; typedef void (*GtkTreeSelectionForeachFunc) (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); #define GTK_TREE_VIEW(obj) ((GtkTreeView *)(obj)) #define GTK_TREE_MODEL(obj) ((GtkTreeModel *)(obj)) #define GTK_TREE_SORTABLE(obj) ((GtkTreeSortable *)(obj)) #define GTK_LIST_STORE(obj) ((GtkListStore *)(obj)) #define GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID (-1) #define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID (-2) GtkListStore *gtk_list_store_new(gint n_columns, ...); void gtk_list_store_clear(GtkListStore *list_store); void gtk_list_store_insert(GtkListStore *list_store, GtkTreeIter *iter, gint position); void gtk_list_store_append(GtkListStore *list_store, GtkTreeIter *iter); gboolean gtk_list_store_remove(GtkListStore *list_store, GtkTreeIter *iter); void gtk_list_store_set(GtkListStore *list_store, GtkTreeIter *iter, ...); void gtk_list_store_swap(GtkListStore *store, GtkTreeIter *a, GtkTreeIter *b); void gtk_tree_model_get(GtkTreeModel *tree_model, GtkTreeIter *iter, ...); gboolean gtk_tree_model_iter_nth_child(GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *parent, gint n); gint gtk_tree_model_iter_n_children(GtkTreeModel *tree_model, GtkTreeIter *iter); GtkWidget *gtk_tree_view_new(void); GtkTreeSelection *gtk_tree_view_get_selection(GtkTreeView *tree_view); void gtk_tree_view_set_model(GtkTreeView *tree_view, GtkTreeModel *model); GtkTreeModel *gtk_tree_view_get_model(GtkTreeView *tree_view); void gtk_tree_view_set_headers_clickable(GtkTreeView *tree_view, gboolean setting); gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view, gint position, const gchar *title, GtkCellRenderer *cell, ...); void gtk_tree_view_scroll_to_cell(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gboolean use_align, gfloat row_align, gfloat col_align); void gtk_tree_selection_selected_foreach(GtkTreeSelection *selection, GtkTreeSelectionForeachFunc func, gpointer data); void gtk_tree_selection_set_mode(GtkTreeSelection *selection, GtkSelectionMode type); gboolean gtk_tree_selection_get_selected(GtkTreeSelection *selection, GtkTreeModel **model, GtkTreeIter *iter); gint gtk_tree_selection_count_selected_rows(GtkTreeSelection *selection); void gtk_tree_selection_select_path(GtkTreeSelection *selection, GtkTreePath *path); void gtk_tree_selection_unselect_path(GtkTreeSelection *selection, GtkTreePath *path); void gtk_tree_selection_unselect_all(GtkTreeSelection *selection); #define gtk_tree_selection_select_iter(sel, iter) gtk_tree_selection_select_path(sel, iter) #define gtk_tree_selection_unselect_iter(sel, iter) gtk_tree_selection_unselect_path(sel, iter) GList *gtk_tree_selection_get_selected_rows(GtkTreeSelection *selection, GtkTreeModel **model); #define gtk_tree_path_free g_free gint *gtk_tree_path_get_indices_with_depth(GtkTreePath *path, gint *depth); GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, GtkCellRenderer *cell, ...); void gtk_tree_view_column_set_resizable(GtkTreeViewColumn *tree_column, gboolean resizable); void gtk_tree_view_column_set_expand(GtkTreeViewColumn *tree_column, gboolean expand); void gtk_tree_view_column_set_sort_column_id(GtkTreeViewColumn *tree_column, gint sort_column_id); /* We treat this as the alignment of all cells in this column, not just the alignment of the header */ void gtk_tree_view_column_set_alignment(GtkTreeViewColumn *tree_column, gfloat xalign); /* This is only used to set the xalign property, so make it a noop */ #define g_object_set(object, name, value, end) {} gint gtk_tree_view_insert_column(GtkTreeView *tree_view, GtkTreeViewColumn *column, gint position); GtkTreeViewColumn *gtk_tree_view_get_column(GtkTreeView *tree_view, gint n); /* Force a sort of the view */ void gtk_tree_view_sort(GtkTreeView *tv); void gtk_tree_sortable_set_sort_func(GtkTreeSortable *sortable, gint sort_column_id, GtkTreeIterCompareFunc sort_func, gpointer user_data, GDestroyNotify destroy); void gtk_tree_sortable_set_sort_column_id(GtkTreeSortable *sortable, gint sort_column_id, GtkSortType order); GtkCellRenderer *gtk_cell_renderer_text_new(void); void g_object_unref(gpointer object); gpointer g_object_ref(gpointer object); /* Private functions */ void InitTreeViewClass(HINSTANCE hInstance); void gtk_tree_model_free(GtkTreeModel *model); #endif /* CYGWIN */ #endif dopewars-1.6.2/src/gtkport/gtkport.c000644 000765 000024 00000476020 14256242752 017414 0ustar00benstaff000000 000000 /************************************************************************ * gtkport.c Portable "almost-GTK+" for Unix/Win32 * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifndef CYGWIN #include /* For pid_t (fork) */ #include /* For wait */ #ifdef HAVE_UNISTD_H #include /* For fork and execv */ #endif #endif /* !CYGWIN */ #include #include #include #include #include #include "gtkport.h" #include "nls.h" #ifdef APPLE #include "mac_helpers.h" #endif #ifdef CYGWIN #include "unicodewrap.h" #include #include #include #include #include #include #define LISTITEMVPACK 0 #define PANED_STARTPOS 200 HICON mainIcon = NULL; static WNDPROC customWndProc = NULL; static gboolean HaveRichEdit = FALSE; static const gchar *RichEditClass = "RichEdit20W"; static gboolean HaveXPControls = FALSE; static guint RecurseLevel = 0; static const gchar *WC_GTKSEP = "WC_GTKSEP"; static const gchar *WC_GTKVPANED = "WC_GTKVPANED"; static const gchar *WC_GTKHPANED = "WC_GTKHPANED"; static const gchar *WC_GTKDIALOG = "WC_GTKDIALOG"; static const gchar *WC_GTKURL = "WC_GTKURL"; static void gtk_button_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_entry_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_entry_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_text_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_text_destroy(GtkWidget *widget); static void gtk_button_destroy(GtkWidget *widget); static void gtk_check_button_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_check_button_toggled(GtkCheckButton *check_button, gpointer data); static void gtk_radio_button_clicked(GtkRadioButton *radio_button, gpointer data); static void gtk_radio_button_toggled(GtkRadioButton *radio_button, gpointer data); static void gtk_container_destroy(GtkWidget *widget); static void gtk_container_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_container_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_window_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_window_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_window_destroy(GtkWidget *widget); static void gtk_window_set_menu(GtkWindow *window, GtkMenuBar *menu_bar); static GtkWidget *gtk_window_get_menu_ID(GtkWindow *window, gint ID); static gboolean gtk_window_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef); static void gtk_table_destroy(GtkWidget *widget); static void gtk_table_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_table_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_table_realize(GtkWidget *widget); static void gtk_box_destroy(GtkWidget *widget); static void gtk_hbox_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_hbox_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_vbox_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_vbox_set_size(GtkWidget *widget, GtkAllocation *allocation); static gint gtk_window_delete_event(GtkWidget *widget, GdkEvent *event); static void gtk_window_realize(GtkWidget *widget); static void gtk_window_show(GtkWidget *widget); static void gtk_window_hide(GtkWidget *widget); static void gtk_button_realize(GtkWidget *widget); static void gtk_entry_realize(GtkWidget *widget); static void gtk_text_realize(GtkWidget *widget); static void gtk_check_button_realize(GtkWidget *widget); static void gtk_radio_button_realize(GtkWidget *widget); static void gtk_radio_button_destroy(GtkWidget *widget); static void gtk_box_realize(GtkWidget *widget); static void gtk_label_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_label_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_url_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_label_destroy(GtkWidget *widget); static void gtk_url_destroy(GtkWidget *widget); static void gtk_label_realize(GtkWidget *widget); static void gtk_url_realize(GtkWidget *widget); static void gtk_frame_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_frame_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_frame_destroy(GtkWidget *widget); static void gtk_frame_realize(GtkWidget *widget); static void gtk_box_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_table_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_show_all_full(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_show_full(GtkWidget *widget, gboolean recurse); static void gtk_widget_update(GtkWidget *widget, gboolean ForceResize); static void gtk_container_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_box_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_table_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_hide_all_full(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_hide_full(GtkWidget *widget, gboolean recurse); static void gtk_menu_bar_realize(GtkWidget *widget); static void gtk_menu_item_realize(GtkWidget *widget); static void gtk_menu_item_enable(GtkWidget *widget); static void gtk_menu_item_disable(GtkWidget *widget); static void gtk_menu_realize(GtkWidget *widget); static void gtk_menu_shell_realize(GtkWidget *widget); static GtkWidget *gtk_menu_shell_get_menu_ID(GtkMenuShell *menu_shell, gint ID); static void gtk_widget_create(GtkWidget *widget); static void gtk_notebook_realize(GtkWidget *widget); static void gtk_notebook_destroy(GtkWidget *widget); static void gtk_notebook_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_notebook_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_notebook_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_notebook_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_spin_button_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_spin_button_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_spin_button_realize(GtkWidget *widget); static void gtk_spin_button_destroy(GtkWidget *widget); static void gtk_spin_button_show(GtkWidget *widget); static void gtk_spin_button_hide(GtkWidget *widget); static void gtk_separator_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_separator_realize(GtkWidget *widget); static void gtk_paned_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_paned_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_paned_realize(GtkWidget *widget); static void gtk_vpaned_realize(GtkWidget *widget); static void gtk_hpaned_realize(GtkWidget *widget); static void gtk_vpaned_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_hpaned_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_vpaned_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_hpaned_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_combo_box_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_combo_box_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_combo_box_realize(GtkWidget *widget); static void gtk_combo_box_destroy(GtkWidget *widget); static void gtk_button_set_text(GtkButton *button, gchar *text); static void gtk_menu_item_set_text(GtkMenuItem *menuitem, gchar *text); static void gtk_editable_create(GtkWidget *widget); static void gtk_combo_box_update_selection(GtkWidget *widget); static void gtk_widget_set_focus(GtkWidget *widget); static void gtk_widget_lose_focus(GtkWidget *widget); static void gtk_window_update_focus(GtkWindow *window); static void gtk_window_set_focus(GtkWindow *window); static void gtk_window_handle_user_size(GtkWindow *window, GtkAllocation *allocation); static void gtk_window_handle_minmax_size(GtkWindow *window, LPMINMAXINFO minmax); static void gtk_window_handle_auto_size(GtkWindow *window, GtkAllocation *allocation); static void gtk_window_set_initial_position(GtkWindow *window, GtkAllocation *allocation); static void gtk_progress_bar_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_progress_bar_realize(GtkWidget *widget); static void gtk_accel_group_set_id(GtkAccelGroup *accel_group, gint ind, gint ID); static void EnableParent(GtkWindow *window); struct _OurSource { guint id; /* Unique identifier */ /* Used for timeouts (dp_g_timeout_add()) */ GSourceFunc timeout_function; /* Used for IO channels (dp_g_io_watch()) */ GIOChannel *io_channel; GIOFunc io_function; int socket; gpointer data; /* Data passed to callback function */ }; typedef struct _OurSource OurSource; static GtkSignalType GtkObjectSignals[] = { {"create", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; GtkClass GtkObjectClass = { "object", NULL, sizeof(GObject), GtkObjectSignals, NULL }; static GtkClass GtkAdjustmentClass = { "adjustment", &GtkObjectClass, sizeof(GtkAdjustment), NULL, NULL }; static GtkSignalType GtkWidgetSignals[] = { {"create", gtk_marshal_VOID__VOID, gtk_widget_create}, {"size_request", gtk_marshal_VOID__GPOIN, NULL}, {"set_size", gtk_marshal_VOID__GPOIN, NULL}, {"realize", gtk_marshal_VOID__VOID, NULL}, {"destroy", gtk_marshal_VOID__VOID, NULL}, {"show", gtk_marshal_VOID__VOID, NULL}, {"hide", gtk_marshal_VOID__VOID, NULL}, {"show_all", gtk_marshal_VOID__BOOL, NULL}, {"hide_all", gtk_marshal_VOID__BOOL, NULL}, {"enable", gtk_marshal_VOID__VOID, NULL}, {"disable", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkWidgetClass = { "widget", &GtkObjectClass, sizeof(GtkWidget), GtkWidgetSignals, NULL }; static GtkSignalType GtkSeparatorSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_separator_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_separator_realize}, {"", NULL, NULL} }; static GtkSignalType GtkProgressBarSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_progress_bar_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_progress_bar_realize}, {"", NULL, NULL} }; static GtkClass GtkProgressBarClass = { "progressbar", &GtkWidgetClass, sizeof(GtkProgressBar), GtkProgressBarSignals, NULL }; static GtkClass GtkSeparatorClass = { "separator", &GtkWidgetClass, sizeof(GtkSeparator), GtkSeparatorSignals, NULL }; static GtkClass GtkHSeparatorClass = { "hseparator", &GtkSeparatorClass, sizeof(GtkHSeparator), NULL, NULL }; static GtkClass GtkVSeparatorClass = { "vseparator", &GtkSeparatorClass, sizeof(GtkVSeparator), NULL, NULL }; static GtkClass GtkMenuShellClass = { "menushell", &GtkWidgetClass, sizeof(GtkMenuShell), NULL, NULL }; static GtkSignalType GtkMenuBarSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_menu_bar_realize}, {"", NULL, NULL} }; static GtkClass GtkMenuBarClass = { "menubar", &GtkMenuShellClass, sizeof(GtkMenuBar), GtkMenuBarSignals, NULL }; static GtkSignalType GtkMenuItemSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_menu_item_realize}, {"set_text", gtk_marshal_VOID__GPOIN, gtk_menu_item_set_text}, {"activate", gtk_marshal_VOID__VOID, NULL}, {"enable", gtk_marshal_VOID__VOID, gtk_menu_item_enable}, {"disable", gtk_marshal_VOID__VOID, gtk_menu_item_disable}, {"", NULL, NULL} }; static GtkClass GtkMenuItemClass = { "menuitem", &GtkWidgetClass, sizeof(GtkMenuItem), GtkMenuItemSignals, NULL }; static GtkSignalType GtkMenuSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_menu_realize}, {"", NULL, NULL} }; static GtkClass GtkMenuClass = { "menu", &GtkMenuShellClass, sizeof(GtkMenu), GtkMenuSignals, NULL }; static GtkSignalType GtkEditableSignals[] = { {"create", gtk_marshal_VOID__VOID, gtk_editable_create}, {"activate", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkEditableClass = { "editable", &GtkWidgetClass, sizeof(GtkEditable), GtkEditableSignals, NULL }; static GtkSignalType GtkEntrySignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_entry_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_entry_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_entry_realize}, {"", NULL, NULL} }; static GtkClass GtkEntryClass = { "entry", &GtkEditableClass, sizeof(GtkEntry), GtkEntrySignals, NULL }; static GtkSignalType GtkSpinButtonSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_spin_button_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_spin_button_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_spin_button_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_spin_button_destroy}, {"hide", gtk_marshal_VOID__VOID, gtk_spin_button_hide}, {"show", gtk_marshal_VOID__VOID, gtk_spin_button_show}, {"", NULL, NULL} }; static GtkClass GtkSpinButtonClass = { "spinbutton", &GtkEntryClass, sizeof(GtkSpinButton), GtkSpinButtonSignals, NULL }; static GtkSignalType GtkTextSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_text_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_text_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_text_destroy}, {"", NULL, NULL} }; static GtkClass GtkTextClass = { "text", &GtkEditableClass, sizeof(GtkText), GtkTextSignals, NULL }; static GtkSignalType GtkLabelSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_label_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_label_set_size}, {"set_text", gtk_marshal_VOID__GPOIN, gtk_label_set_text}, {"realize", gtk_marshal_VOID__VOID, gtk_label_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_label_destroy}, {"", NULL, NULL} }; static GtkClass GtkLabelClass = { "label", &GtkWidgetClass, sizeof(GtkLabel), GtkLabelSignals, NULL }; static GtkSignalType GtkUrlSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_url_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_label_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_url_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_url_destroy}, {"", NULL, NULL} }; static GtkClass GtkUrlClass = { "URL", &GtkLabelClass, sizeof(GtkUrl), GtkUrlSignals, NULL }; static GtkSignalType GtkButtonSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_button_size_request}, {"set_text", gtk_marshal_VOID__GPOIN, gtk_button_set_text}, {"realize", gtk_marshal_VOID__VOID, gtk_button_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_button_destroy}, {"clicked", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkButtonClass = { "button", &GtkWidgetClass, sizeof(GtkButton), GtkButtonSignals, NULL }; static GtkSignalType GtkComboBoxSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_combo_box_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_combo_box_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_combo_box_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_combo_box_destroy}, {"changed", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkComboBoxClass = { "combobox", &GtkWidgetClass, sizeof(GtkComboBox), GtkComboBoxSignals, NULL }; static GtkSignalType GtkToggleButtonSignals[] = { {"toggled", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkToggleButtonClass = { "toggle", &GtkButtonClass, sizeof(GtkToggleButton), GtkToggleButtonSignals, NULL }; static GtkSignalType GtkCheckButtonSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_check_button_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_check_button_realize}, {"", NULL, NULL} }; static GtkClass GtkCheckButtonClass = { "check", &GtkToggleButtonClass, sizeof(GtkCheckButton), GtkCheckButtonSignals, NULL }; static GtkSignalType GtkRadioButtonSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_radio_button_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_radio_button_destroy}, {"", NULL, NULL} }; static GtkClass GtkRadioButtonClass = { "radio", &GtkCheckButtonClass, sizeof(GtkRadioButton), GtkRadioButtonSignals, NULL }; static GtkSignalType GtkContainerSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_container_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_container_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_container_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_container_destroy}, {"show_all", gtk_marshal_VOID__BOOL, gtk_container_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_container_hide_all}, {"", NULL, NULL} }; GtkClass GtkContainerClass = { "container", &GtkWidgetClass, sizeof(GtkContainer), GtkContainerSignals, NULL }; static GtkSignalType GtkPanedSignals[] = { {"show_all", gtk_marshal_VOID__BOOL, gtk_paned_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_paned_hide_all}, {"", NULL, NULL} }; static GtkClass GtkPanedClass = { "paned", &GtkContainerClass, sizeof(GtkPaned), GtkPanedSignals, NULL }; static GtkSignalType GtkVPanedSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_vpaned_realize}, {"size_request", gtk_marshal_VOID__GPOIN, gtk_vpaned_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_vpaned_set_size}, {"", NULL, NULL} }; static GtkClass GtkVPanedClass = { "vpaned", &GtkPanedClass, sizeof(GtkVPaned), GtkVPanedSignals, NULL }; static GtkSignalType GtkHPanedSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_hpaned_realize}, {"size_request", gtk_marshal_VOID__GPOIN, gtk_hpaned_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_hpaned_set_size}, {"", NULL, NULL} }; static GtkClass GtkHPanedClass = { "hpaned", &GtkPanedClass, sizeof(GtkHPaned), GtkHPanedSignals, NULL }; static GtkSignalType GtkBoxSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_box_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_box_destroy}, {"show_all", gtk_marshal_VOID__BOOL, gtk_box_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_box_hide_all}, {"", NULL, NULL} }; static GtkClass GtkBoxClass = { "box", &GtkContainerClass, sizeof(GtkBox), GtkBoxSignals, NULL }; static GtkSignalType GtkNotebookSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_notebook_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_notebook_destroy}, {"size_request", gtk_marshal_VOID__GPOIN, gtk_notebook_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_notebook_set_size}, {"show_all", gtk_marshal_VOID__BOOL, gtk_notebook_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_notebook_hide_all}, {"", NULL, NULL} }; static GtkClass GtkNotebookClass = { "notebook", &GtkContainerClass, sizeof(GtkNotebook), GtkNotebookSignals, NULL }; static GtkSignalType GtkTableSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_table_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_table_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_table_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_table_destroy}, {"show_all", gtk_marshal_VOID__BOOL, gtk_table_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_table_hide_all}, {"", NULL, NULL} }; static GtkClass GtkTableClass = { "table", &GtkContainerClass, sizeof(GtkTable), GtkTableSignals, NULL }; static GtkSignalType GtkHBoxSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_hbox_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_hbox_set_size}, {"", NULL, NULL} }; static GtkClass GtkHBoxClass = { "hbox", &GtkBoxClass, sizeof(GtkHBox), GtkHBoxSignals, NULL }; static GtkSignalType GtkVBoxSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_vbox_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_vbox_set_size}, {"", NULL, NULL} }; static GtkClass GtkVBoxClass = { "vbox", &GtkBoxClass, sizeof(GtkVBox), GtkVBoxSignals, NULL }; static GtkClass GtkBinClass = { "bin", &GtkContainerClass, sizeof(GtkBin), NULL, NULL }; static GtkSignalType GtkFrameSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_frame_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_frame_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_frame_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_frame_destroy}, {"", NULL, NULL} }; static GtkClass GtkFrameClass = { "frame", &GtkBinClass, sizeof(GtkFrame), GtkFrameSignals, NULL }; static GtkSignalType GtkWindowSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_window_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_window_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_window_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_window_destroy}, {"show", gtk_marshal_VOID__VOID, gtk_window_show}, {"hide", gtk_marshal_VOID__VOID, gtk_window_hide}, {"delete_event", gtk_marshal_BOOL__GPOIN, G_CALLBACK(gtk_window_delete_event)}, {"", NULL, NULL} }; static GtkClass GtkWindowClass = { "window", &GtkBinClass, sizeof(GtkWindow), GtkWindowSignals, gtk_window_wndproc }; const GtkType GTK_TYPE_WINDOW = &GtkWindowClass; const GtkType GTK_TYPE_MENU_BAR = &GtkMenuBarClass; const GtkType GTK_TYPE_NOTEBOOK = &GtkNotebookClass; HINSTANCE hInst; HFONT defFont; static HFONT urlFont; static GSList *WindowList = NULL; static GSList *OurSources = NULL; static HWND TopLevel = NULL; static WNDPROC wpOrigEntryProc, wpOrigTextProc; void gtk_set_default_font(HWND hWnd) { SendMessageW(hWnd, WM_SETFONT, (WPARAM)defFont, MAKELPARAM(FALSE, 0)); } GObject *GtkNewObject(GtkClass *klass) { GObject *newObj; newObj = g_malloc0(klass->Size); newObj->klass = klass; gtk_signal_emit(newObj, "create"); return newObj; } static void DispatchSocketEvent(SOCKET sock, long event) { GSList *list; OurSource *s; for (list = OurSources; list; list = g_slist_next(list)) { s = (OurSource *)(list->data); if (s->socket == sock) { (*s->io_function) (s->io_channel, (event & (FD_READ | FD_CLOSE | FD_ACCEPT) ? G_IO_IN : 0) | (event & (FD_WRITE | FD_CONNECT) ? G_IO_OUT : 0), s->data); break; } } } static void DispatchTimeoutEvent(UINT id) { GSList *list; OurSource *s; for (list = OurSources; list; list = g_slist_next(list)) { s = (OurSource *)list->data; if (s->id == id) { if (s->timeout_function) { if (!(*s->timeout_function) (s->data)) { dp_g_source_remove(s->id); } } break; } } } static HWND gtk_get_window_hwnd(GtkWidget *widget) { widget = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (widget) { return widget->hWnd; } else { return NULL; } } HWND gtk_get_parent_hwnd(GtkWidget *widget) { GtkWidget *child = NULL; while (widget && G_OBJECT(widget)->klass != GTK_TYPE_WINDOW && G_OBJECT(widget)->klass != GTK_TYPE_NOTEBOOK) { child = widget; widget = widget->parent; } if (widget) { if (G_OBJECT(widget)->klass == GTK_TYPE_NOTEBOOK) { GSList *children; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { GtkNotebookChild *note_child; note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child == child) { return note_child->tabpage; } } return NULL; } else { return widget->hWnd; } } else { return NULL; } } static void UpdatePanedGhostRect(GtkPaned *paned, RECT *OldRect, RECT *NewRect, gint16 x, gint16 y) { HWND hWnd, parent; RECT rect, clrect; POINT MouseCoord; HDC hDC; GtkWidget *widget = GTK_WIDGET(paned); if (!OldRect && !NewRect) return; parent = gtk_get_parent_hwnd(widget); hWnd = widget->hWnd; if (!parent || !hWnd) return; MouseCoord.x = x; MouseCoord.y = y; MapWindowPoints(hWnd, parent, &MouseCoord, 1); rect.left = paned->true_alloc.x; rect.top = paned->true_alloc.y; GetClientRect(hWnd, &clrect); if (clrect.right > clrect.bottom) { rect.right = paned->true_alloc.x + paned->true_alloc.width; rect.bottom = MouseCoord.y; } else { rect.bottom = paned->true_alloc.y + paned->true_alloc.height; rect.right = MouseCoord.x; } if (OldRect && NewRect && OldRect->right == rect.right && OldRect->bottom == rect.bottom) return; hDC = GetDC(parent); if (OldRect) DrawFocusRect(hDC, OldRect); if (NewRect) { CopyRect(NewRect, &rect); DrawFocusRect(hDC, NewRect); } ReleaseDC(parent, hDC); } LRESULT CALLBACK GtkPanedProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HPEN oldpen, dkpen, ltpen; RECT rect; static RECT GhostRect; HDC hDC; gint newpos; GtkPaned *paned; paned = GTK_PANED(GetWindowLongPtrW(hwnd, GWLP_USERDATA)); switch (msg) { case WM_PAINT: if (GetUpdateRect(hwnd, NULL, TRUE)) { BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rect); hDC = ps.hdc; ltpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DHILIGHT)); dkpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DSHADOW)); if (rect.right > rect.bottom) { oldpen = SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.right, rect.top); SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.bottom - 1, NULL); LineTo(hDC, rect.right, rect.bottom - 1); } else { oldpen = SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.left, rect.bottom); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.right - 1, rect.top, NULL); LineTo(hDC, rect.right - 1, rect.bottom); } SelectObject(hDC, oldpen); DeleteObject(ltpen); DeleteObject(dkpen); EndPaint(hwnd, &ps); } return TRUE; case WM_LBUTTONDOWN: if (!paned) break; SetCapture(hwnd); paned->Tracking = TRUE; UpdatePanedGhostRect(paned, NULL, &GhostRect, LOWORD(lParam), HIWORD(lParam)); return TRUE; case WM_MOUSEMOVE: if (!paned || !paned->Tracking) break; UpdatePanedGhostRect(paned, &GhostRect, &GhostRect, LOWORD(lParam), HIWORD(lParam)); return TRUE; case WM_LBUTTONUP: if (!paned || !paned->Tracking) break; ReleaseCapture(); paned->Tracking = FALSE; UpdatePanedGhostRect(paned, &GhostRect, NULL, LOWORD(lParam), HIWORD(lParam)); GetClientRect(hwnd, &rect); if (rect.right > rect.bottom) { newpos = ((gint16)HIWORD(lParam) + GTK_WIDGET(paned)->allocation.y - paned->true_alloc.y) * 100 / paned->true_alloc.height; } else { newpos = ((gint16)LOWORD(lParam) + GTK_WIDGET(paned)->allocation.x - paned->true_alloc.x) * 100 / paned->true_alloc.width; } gtk_paned_set_position(paned, newpos); return TRUE; default: return DefWindowProcW(hwnd, msg, wParam, lParam); } return FALSE; } void DisplayHTML(GtkWidget *parent, const gchar *bin, const gchar *target) { ShellExecute(parent->hWnd, "open", target, NULL, NULL, 0); } LRESULT CALLBACK GtkUrlProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; if (msg == WM_PAINT) { gchar *text; RECT wndrect; PAINTSTRUCT ps; HDC hDC; HFONT oldFont; widget = GTK_WIDGET(GetWindowLongPtrW(hwnd, GWLP_USERDATA)); text = GTK_LABEL(widget)->text; if (text && BeginPaint(hwnd, &ps)) { hDC = ps.hdc; oldFont = SelectObject(hDC, urlFont); SetTextColor(hDC, RGB(0, 0, 0xCC)); SetBkMode(hDC, TRANSPARENT); GetClientRect(hwnd, &wndrect); myDrawText(hDC, text, -1, &wndrect, DT_CENTER | DT_VCENTER | DT_END_ELLIPSIS); SelectObject(hDC, oldFont); EndPaint(hwnd, &ps); } return TRUE; } else if (msg == WM_LBUTTONUP) { widget = GTK_WIDGET(GetWindowLongPtrW(hwnd, GWLP_USERDATA)); DisplayHTML(widget, NULL, GTK_URL(widget)->target); return FALSE; } else return DefWindowProcW(hwnd, msg, wParam, lParam); } LRESULT CALLBACK GtkSepProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HPEN oldpen, dkpen, ltpen; RECT rect; HDC hDC; if (msg == WM_PAINT) { if (GetUpdateRect(hwnd, NULL, TRUE)) { BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rect); hDC = ps.hdc; ltpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DHILIGHT)); dkpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DSHADOW)); if (rect.right > rect.bottom) { oldpen = SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.right, rect.top); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top + 1, NULL); LineTo(hDC, rect.right, rect.top + 1); } else { oldpen = SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.left, rect.bottom); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left + 1, rect.top, NULL); LineTo(hDC, rect.left + 1, rect.bottom); } SelectObject(hDC, oldpen); DeleteObject(ltpen); DeleteObject(dkpen); EndPaint(hwnd, &ps); } return TRUE; } else return DefWindowProcW(hwnd, msg, wParam, lParam); } gboolean gtk_window_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef) { RECT rect; GtkAllocation alloc; GtkWidget *menu; gboolean signal_return; GdkEvent event = 0; switch(msg) { case WM_SIZE: GetWindowRect(widget->hWnd, &rect); alloc.x = rect.left; alloc.y = rect.top; alloc.width = rect.right - rect.left; alloc.height = rect.bottom - rect.top; gtk_window_handle_user_size(GTK_WINDOW(widget), &alloc); gtk_widget_set_size(widget, &alloc); InvalidateRect(widget->hWnd, NULL, TRUE); UpdateWindow(widget->hWnd); return FALSE; case WM_GETMINMAXINFO: gtk_window_handle_minmax_size(GTK_WINDOW(widget), (LPMINMAXINFO)lParam); return FALSE; case WM_ACTIVATE: case WM_ACTIVATEAPP: if ((msg == WM_ACTIVATE && LOWORD(wParam) != WA_INACTIVE) || (msg == WM_ACTIVATEAPP && wParam)) { if (GTK_WINDOW(widget)->focus) { gtk_widget_set_focus(GTK_WINDOW(widget)->focus); } if (!GTK_WINDOW(widget)->focus) { gtk_window_set_focus(GTK_WINDOW(widget)); } } else if (msg == WM_ACTIVATE && LOWORD(wParam) == WA_INACTIVE) { gtk_window_update_focus(GTK_WINDOW(widget)); } return FALSE; case WM_CLOSE: gtk_signal_emit(G_OBJECT(widget), "delete_event", &event, &signal_return); *dodef = FALSE; return TRUE; case WM_COMMAND: if (HIWORD(wParam) == 0 || HIWORD(wParam) == 1) { menu = gtk_window_get_menu_ID(GTK_WINDOW(widget), LOWORD(wParam)); if (menu) { if (GTK_MENU_ITEM(menu)->check) { gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu), !GTK_CHECK_MENU_ITEM(menu)->active); } gtk_signal_emit(G_OBJECT(menu), "activate"); return FALSE; } } break; } return FALSE; } static BOOL HandleWinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef) { GtkWidget *widget; GtkClass *klass; LPMEASUREITEMSTRUCT lpmis; HDC hDC; TEXTMETRIC tm; LPDRAWITEMSTRUCT lpdis; NMHDR *nmhdr; gboolean retval = FALSE; *dodef = TRUE; if (customWndProc && CallWindowProcW(customWndProc, hwnd, msg, wParam, lParam)) return TRUE; widget = GTK_WIDGET(GetWindowLongPtrW(hwnd, GWLP_USERDATA)); if (widget && (klass = G_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } switch (msg) { case WM_DRAWITEM: if ((lpdis = (LPDRAWITEMSTRUCT)lParam) && (widget = GTK_WIDGET(GetWindowLongPtrW(lpdis->hwndItem, GWLP_USERDATA))) && (klass = G_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } break; case WM_MEASUREITEM: lpmis = (LPMEASUREITEMSTRUCT)lParam; hDC = GetDC(hwnd); if (!GetTextMetrics(hDC, &tm)) g_warning("GetTextMetrics failed"); ReleaseDC(hwnd, hDC); if (lpmis) { lpmis->itemHeight = tm.tmHeight + LISTITEMVPACK * 2; return TRUE; } break; case WM_COMMAND: widget = GTK_WIDGET(GetWindowLongPtrW((HWND)lParam, GWLP_USERDATA)); klass = NULL; if (widget && (klass = G_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } if (lParam && klass == &GtkComboBoxClass && HIWORD(wParam) == CBN_SELENDOK) { gtk_combo_box_update_selection(widget); } else if (lParam && HIWORD(wParam) == BN_CLICKED) { gtk_signal_emit(G_OBJECT(widget), "clicked"); } else return TRUE; break; case WM_NOTIFY: nmhdr = (NMHDR *)lParam; if (!nmhdr) break; widget = GTK_WIDGET(GetWindowLongPtrW(nmhdr->hwndFrom, GWLP_USERDATA)); if (widget && (klass = G_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } if (widget && nmhdr->code == TCN_SELCHANGE) { gtk_notebook_set_current_page(GTK_NOTEBOOK(widget), TabCtrl_GetCurSel(nmhdr->hwndFrom)); return FALSE; } break; case MYWM_SOCKETDATA: /* Ignore network messages if in recursive message loops, to avoid * dodgy race conditions */ if (RecurseLevel <= 1) { /* Make any error available by the usual WSAGetLastError() mechanism */ WSASetLastError(WSAGETSELECTERROR(lParam)); DispatchSocketEvent((SOCKET)wParam, WSAGETSELECTEVENT(lParam)); } break; case WM_TIMER: DispatchTimeoutEvent((UINT)wParam); return FALSE; } return retval; } LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { gboolean retval, dodef = TRUE; retval = HandleWinMessage(hwnd, msg, wParam, lParam, &dodef); if (dodef) { return DefWindowProcW(hwnd, msg, wParam, lParam); } else { return retval; } } INT_PTR APIENTRY MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { gboolean dodef; if (msg == WM_INITDIALOG) { return TRUE; } else { return HandleWinMessage(hwnd, msg, wParam, lParam, &dodef); } } LRESULT APIENTRY EntryWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; if (msg == WM_KEYUP && wParam == VK_RETURN) { widget = GTK_WIDGET(GetWindowLongPtrW(hwnd, GWLP_USERDATA)); if (widget) gtk_signal_emit(G_OBJECT(widget), "activate"); return FALSE; } return CallWindowProcW(wpOrigEntryProc, hwnd, msg, wParam, lParam); } LRESULT APIENTRY TextWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; if (msg == WM_GETDLGCODE) { widget = GTK_WIDGET(GetWindowLongPtrW(hwnd, GWLP_USERDATA)); if (!GTK_EDITABLE(widget)->is_editable) { return DLGC_HASSETSEL | DLGC_WANTARROWS; } } return CallWindowProcW(wpOrigTextProc, hwnd, msg, wParam, lParam); } void SetCustomWndProc(WNDPROC wndproc) { customWndProc = wndproc; } /* * Returns TRUE if we are using version 6 of the Common Controls library * (as shipped with Windows XP) and thus need to worry about visual themes */ static gboolean CheckForXPControls(void) { HINSTANCE hDll; BOOL retval = FALSE; hDll = LoadLibrary("COMCTL32.DLL"); if (hDll) { DLLGETVERSIONPROC getverproc; getverproc = (DLLGETVERSIONPROC)GetProcAddress(hDll, "DllGetVersion"); if (getverproc) { DLLVERSIONINFO dvi; HRESULT hr; ZeroMemory(&dvi, sizeof(dvi)); dvi.cbSize = sizeof(dvi); hr = getverproc(&dvi); if (SUCCEEDED(hr) && dvi.dwMajorVersion >= 6) { retval = TRUE; } } FreeLibrary(hDll); } return retval; } void win32_init(HINSTANCE hInstance, HINSTANCE hPrevInstance, char *MainIcon) { WNDCLASS wc; hInst = hInstance; defFont = (HFONT) GetStockObject(DEFAULT_GUI_FONT); urlFont = CreateFont(14, 0, 0, 0, FW_SEMIBOLD, FALSE, TRUE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FF_SWISS | DEFAULT_PITCH, NULL); WindowList = NULL; RecurseLevel = 0; customWndProc = NULL; if (MainIcon) { mainIcon = LoadIcon(hInstance, MainIcon); } else { mainIcon = LoadIcon(NULL, IDI_APPLICATION); } InitCommonControls(); LoadLibrary("RICHED20.DLL"); HaveRichEdit = GetClassInfo(hInstance, RichEditClass, &wc); HaveXPControls = CheckForXPControls(); if (!hPrevInstance) { wc.style = 0; wc.lpfnWndProc = MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = mainIcon; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = "mainwin"; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKDIALOG; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkPanedProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_SIZEWE); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKHPANED; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkPanedProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_SIZENS); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKVPANED; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkSepProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKSEP; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkUrlProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_HAND); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKURL; myRegisterClass(&wc); InitTreeViewClass(hInstance); } } guint gtk_main_level(void) { return RecurseLevel; } void gtk_widget_update(GtkWidget *widget, gboolean ForceResize) { GtkRequisition req; GtkWidget *window; GtkAllocation alloc; if (!GTK_WIDGET_REALIZED(widget)) return; gtk_widget_size_request(widget, &req); window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { alloc.x = alloc.y = 0; alloc.width = window->requisition.width; alloc.height = window->requisition.height; gtk_window_handle_auto_size(GTK_WINDOW(window), &alloc); if (alloc.width != window->allocation.width || alloc.height != window->allocation.height || ForceResize) { gtk_widget_set_size(window, &alloc); } } } void gtk_widget_show(GtkWidget *widget) { gtk_widget_show_full(widget, TRUE); } gboolean gtk_widget_get_visible(GtkWidget *widget) { return (GTK_WIDGET_FLAGS(widget) & GTK_VISIBLE) != 0; } void gtk_widget_show_full(GtkWidget *widget, gboolean recurse) { GtkAllocation alloc; if (gtk_widget_get_visible(widget)) return; GTK_WIDGET_SET_FLAGS(widget, GTK_VISIBLE); if (recurse) gtk_widget_show_all_full(widget, TRUE); else gtk_signal_emit(G_OBJECT(widget), "show"); if (!GTK_WIDGET_REALIZED(widget) && G_OBJECT(widget)->klass == &GtkWindowClass) { gtk_widget_realize(widget); alloc.x = alloc.y = 0; alloc.width = widget->requisition.width; alloc.height = widget->requisition.height; gtk_window_set_initial_position(GTK_WINDOW(widget), &alloc); gtk_widget_set_size(widget, &alloc); ShowWindow(widget->hWnd, SW_SHOWNORMAL); UpdateWindow(widget->hWnd); } else if (GTK_WIDGET_REALIZED(widget) && G_OBJECT(widget)->klass != &GtkWindowClass) { gtk_widget_update(widget, TRUE); if (!recurse) ShowWindow(widget->hWnd, SW_SHOWNORMAL); } // g_print("widget show - set focus\n"); gtk_widget_set_focus(widget); } void gtk_widget_hide(GtkWidget *widget) { gtk_widget_hide_all_full(widget, FALSE); } void gtk_widget_hide_full(GtkWidget *widget, gboolean recurse) { GtkAllocation alloc; GtkRequisition req; GtkWidget *window; if (!gtk_widget_get_visible(widget)) return; if (recurse) gtk_widget_hide_all_full(widget, TRUE); else { gtk_signal_emit(G_OBJECT(widget), "hide"); if (widget->hWnd) ShowWindow(widget->hWnd, SW_HIDE); } GTK_WIDGET_UNSET_FLAGS(widget, GTK_VISIBLE); gtk_widget_lose_focus(widget); gtk_widget_size_request(widget, &req); if (GTK_WIDGET_REALIZED(widget)) { window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { alloc.x = alloc.y = 0; alloc.width = window->requisition.width; alloc.height = window->requisition.height; gtk_window_handle_auto_size(GTK_WINDOW(window), &alloc); gtk_widget_set_size(window, &alloc); } } } void gtk_widget_set_focus(GtkWidget *widget) { GtkWidget *window; if (!widget || !GTK_WIDGET_CAN_FOCUS(widget) || !GTK_WIDGET_SENSITIVE(widget) || !gtk_widget_get_visible(widget)) return; window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); gtk_window_update_focus(GTK_WINDOW(window)); if (!window || GTK_WINDOW(window)->focus) return; // g_print("Window %p focus set to widget %p // (%s)\n",window,widget,G_OBJECT(widget)->klass->Name); GTK_WINDOW(window)->focus = widget; if (widget->hWnd) { // if (!SetFocus(widget->hWnd)) g_print("SetFocus failed on widget // %p\n",widget); SetFocus(widget->hWnd); } // else g_print("Cannot call SetFocus - no hWnd\n"); } static BOOL CALLBACK SetFocusEnum(HWND hWnd, LPARAM data) { GtkWidget *widget; GtkWindow *window = GTK_WINDOW(data); widget = GTK_WIDGET(GetWindowLongPtrW(hWnd, GWLP_USERDATA)); if (!widget || !GTK_WIDGET_CAN_FOCUS(widget) || !GTK_WIDGET_SENSITIVE(widget) || !gtk_widget_get_visible(widget) || window->focus == widget) { return TRUE; } else { // g_print("gtk_window_set_focus: focus set to widget %p\n",widget); window->focus = widget; SetFocus(widget->hWnd); return FALSE; } } void gtk_window_set_focus(GtkWindow *window) { if (!window || !GTK_WIDGET(window)->hWnd) return; EnumChildWindows(GTK_WIDGET(window)->hWnd, SetFocusEnum, (LPARAM)window); } void gtk_widget_lose_focus(GtkWidget *widget) { GtkWidget *window; if (!widget || !GTK_WIDGET_CAN_FOCUS(widget)) return; window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); gtk_window_update_focus(GTK_WINDOW(window)); if (GTK_WINDOW(window)->focus == widget) { gtk_window_set_focus(GTK_WINDOW(window)); } } void gtk_window_update_focus(GtkWindow *window) { GtkWidget *widget; HWND FocusWnd; if (GTK_WIDGET(window)->hWnd != GetActiveWindow()) return; FocusWnd = GetFocus(); window->focus = NULL; if (FocusWnd) { widget = GTK_WIDGET(GetWindowLongPtrW(FocusWnd, GWLP_USERDATA)); if (widget && GTK_WIDGET(window)->hWnd && IsChild(GTK_WIDGET(window)->hWnd, FocusWnd)) { window->focus = widget; } } } void gtk_widget_realize(GtkWidget *widget) { GtkRequisition req; if (GTK_WIDGET_REALIZED(widget)) return; gtk_signal_emit(G_OBJECT(widget), "realize", &req); if (widget->hWnd) SetWindowLongPtrW(widget->hWnd, GWLP_USERDATA, (LONG_PTR)widget); GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED); gtk_widget_set_sensitive(widget, GTK_WIDGET_SENSITIVE(widget)); gtk_widget_size_request(widget, &req); } void gtk_widget_create(GtkWidget *widget) { GTK_WIDGET_SET_FLAGS(widget, GTK_SENSITIVE); widget->usize.width = 0; widget->usize.height = 0; } void gtk_widget_destroy(GtkWidget *widget) { if (!widget) return; /* If we're closing a modal window, reactivate the parent _before_ * calling DestroyWindow, to avoid annoying flicker caused if Windows * chooses to reactivate another application when we close the modal * dialog */ if (G_OBJECT(widget)->klass == &GtkWindowClass) { EnableParent(GTK_WINDOW(widget)); } gtk_widget_lose_focus(widget); if (widget->hWnd) DestroyWindow(widget->hWnd); widget->hWnd = NULL; gtk_signal_emit(G_OBJECT(widget), "destroy"); g_free(widget); } void gtk_widget_set_sensitive(GtkWidget *widget, gboolean sensitive) { if (sensitive) { GTK_WIDGET_SET_FLAGS(widget, GTK_SENSITIVE); if (widget->hWnd) EnableWindow(widget->hWnd, sensitive); gtk_widget_set_focus(widget); } else { GTK_WIDGET_UNSET_FLAGS(widget, GTK_SENSITIVE); gtk_widget_lose_focus(widget); if (widget->hWnd) EnableWindow(widget->hWnd, sensitive); } gtk_signal_emit(G_OBJECT(widget), sensitive ? "enable" : "disable"); if (sensitive && widget->hWnd && G_OBJECT(widget)->klass == &GtkWindowClass) SetActiveWindow(widget->hWnd); } void gtk_widget_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkRequisition req; requisition->width = requisition->height = 0; if (gtk_widget_get_visible(widget)) { gtk_signal_emit(G_OBJECT(widget), "size_request", requisition); } if (requisition->width < widget->usize.width) requisition->width = widget->usize.width; if (requisition->height < widget->usize.height) requisition->height = widget->usize.height; if (requisition->width != widget->requisition.width || requisition->height != widget->requisition.height) { memcpy(&widget->requisition, requisition, sizeof(GtkRequisition)); if (widget->parent) gtk_widget_size_request(widget->parent, &req); } } void MapWidgetOrigin(GtkWidget *widget, POINT *pt) { HWND imm_parent, window_parent; imm_parent = GetParent(widget->hWnd); window_parent = gtk_get_window_hwnd(widget); if (imm_parent && window_parent && imm_parent != window_parent) { MapWindowPoints(window_parent, imm_parent, pt, 1); } } void gtk_widget_set_size(GtkWidget *widget, GtkAllocation *allocation) { gtk_signal_emit(G_OBJECT(widget), "set_size", allocation); memcpy(&widget->allocation, allocation, sizeof(GtkAllocation)); if (widget->hWnd) { POINT pt; pt.x = allocation->x; pt.y = allocation->y; MapWidgetOrigin(widget, &pt); SetWindowPos(widget->hWnd, HWND_TOP, pt.x, pt.y, allocation->width, allocation->height, SWP_NOZORDER | (G_OBJECT(widget)->klass == &GtkWindowClass ? SWP_NOMOVE : 0)); } } GtkWidget *gtk_window_new(GtkWindowType type) { GtkWindow *win; win = GTK_WINDOW(GtkNewObject(&GtkWindowClass)); win->title = g_strdup(""); win->type = type; win->allow_grow = TRUE; return GTK_WIDGET(win); } void gtk_window_set_title(GtkWindow *window, const gchar *title) { g_free(window->title); window->title = g_strdup(title); } gint gtk_window_delete_event(GtkWidget *widget, GdkEvent *event) { gtk_widget_destroy(widget); return TRUE; } void gtk_window_set_default_size(GtkWindow *window, gint width, gint height) { window->default_width = width; window->default_height = height; } void gtk_window_set_transient_for(GtkWindow *window, GtkWindow *parent) { if (window && parent) { GTK_WIDGET(window)->parent = GTK_WIDGET(parent); if (GTK_WIDGET(window)->hWnd && GTK_WIDGET(parent)->hWnd) { SetParent(GTK_WIDGET(window)->hWnd, GTK_WIDGET(parent)->hWnd); } } } void gtk_window_set_policy(GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink) { window->allow_shrink = allow_shrink; window->allow_grow = allow_grow; window->auto_shrink = auto_shrink; } void gtk_window_set_menu(GtkWindow *window, GtkMenuBar *menu_bar) { HWND hWnd; HMENU hMenu; hWnd = GTK_WIDGET(window)->hWnd; hMenu = GTK_MENU_SHELL(menu_bar)->menu; if (hWnd && hMenu) SetMenu(hWnd, hMenu); window->menu_bar = menu_bar; } void gtk_container_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkContainer *container; GtkAllocation child_alloc; container = GTK_CONTAINER(widget); if (container->child) { child_alloc.x = allocation->x + container->border_width; child_alloc.y = allocation->y + container->border_width; child_alloc.width = allocation->width - container->border_width * 2; child_alloc.height = allocation->height - container->border_width * 2; gtk_widget_set_size(container->child, &child_alloc); } } void gtk_frame_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkFrame *frame; GtkContainer *container; frame = GTK_FRAME(widget); container = GTK_CONTAINER(widget); allocation->x += container->border_width; allocation->y += container->border_width; allocation->width -= container->border_width * 2; allocation->height -= container->border_width * 2; if (container->child) { GtkAllocation child_alloc; child_alloc.x = allocation->x + 3; child_alloc.y = allocation->y + 3 + frame->label_req.height; child_alloc.width = allocation->width - 6; child_alloc.height = allocation->height - frame->label_req.height - 6; gtk_widget_set_size(container->child, &child_alloc); } } void gtk_frame_set_shadow_type(GtkFrame *frame, GtkShadowType type) { } void gtk_container_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkContainer *container; container = GTK_CONTAINER(widget); if (container->child) { requisition->width = container->child->requisition.width + container->border_width * 2; requisition->height = container->child->requisition.height + container->border_width * 2; } } void gtk_window_size_request(GtkWidget *widget, GtkRequisition *requisition) { gtk_container_size_request(widget, requisition); requisition->width += GetSystemMetrics(SM_CXSIZEFRAME) * 2; requisition->height += GetSystemMetrics(SM_CYSIZEFRAME) * 2 + GetSystemMetrics(SM_CYCAPTION); if (GTK_WINDOW(widget)->menu_bar) { requisition->height += GetSystemMetrics(SM_CYMENU); } } void gtk_window_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkAllocation child_alloc; GtkWindow *window = GTK_WINDOW(widget); child_alloc.x = child_alloc.y = 0; child_alloc.width = allocation->width - GetSystemMetrics(SM_CXSIZEFRAME) * 2; child_alloc.height = allocation->height - GetSystemMetrics(SM_CYSIZEFRAME) * 2 - GetSystemMetrics(SM_CYCAPTION); if (window->menu_bar) { child_alloc.height -= GetSystemMetrics(SM_CYMENU); } gtk_container_set_size(widget, &child_alloc); } void gtk_button_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size, minsize; GtkButton *but = GTK_BUTTON(widget); gtk_container_size_request(widget, requisition); /* Without minsize, an unexpanded "OK" button looks silly... */ if (GetTextSize(widget->hWnd, but->text, &size, defFont) && GetTextSize(widget->hWnd, "Cancel", &minsize, defFont)) { size.cx = MAX(size.cx, minsize.cx); size.cy = MAX(size.cy, minsize.cy); requisition->width = size.cx + 15; requisition->height = size.cy + 10; } } BOOL GetTextSize(HWND hWnd, char *text, LPSIZE lpSize, HFONT hFont) { HDC hDC; BOOL RetVal = 0; SIZE LineSize; HFONT oldFont; char *endpt, *startpt; hDC = GetDC(hWnd); oldFont = SelectObject(hDC, hFont); startpt = text; lpSize->cx = lpSize->cy = 0; while (startpt) { endpt = startpt; while (endpt && *endpt != '\n' && *endpt) endpt++; if (endpt) { if ((endpt == startpt && GetTextExtentPoint32(hDC, "W", 1, &LineSize)) || (endpt != startpt && GetTextExtentPoint32(hDC, startpt, endpt - startpt, &LineSize))) { RetVal = 1; if (LineSize.cx > lpSize->cx) lpSize->cx = LineSize.cx; lpSize->cy += LineSize.cy; } if (*endpt == '\0') break; startpt = endpt + 1; } else break; } SelectObject(hDC, oldFont); ReleaseDC(hWnd, hDC); return RetVal; } void gtk_entry_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "text", &size, defFont)) { requisition->width = size.cx * 6; requisition->height = size.cy + 8; } } void gtk_text_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy * 2 + 8; } } void gtk_frame_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; GtkFrame *frame = GTK_FRAME(widget); gtk_container_size_request(widget, requisition); if (GetTextSize(widget->hWnd, frame->text, &size, defFont)) { frame->label_req.width = size.cx; frame->label_req.height = size.cy; if (size.cx > requisition->width) requisition->width = size.cx; requisition->width += 6; requisition->height += size.cy + 6; } } void gtk_check_button_size_request(GtkWidget *widget, GtkRequisition *requisition) { gtk_button_size_request(widget, requisition); requisition->width += 10; } GtkWidget *gtk_button_new_with_label(const gchar *label) { GtkButton *but; but = GTK_BUTTON(GtkNewObject(&GtkButtonClass)); but->text = g_strdup(label); g_strdelimit(but->text, "_", '&'); return GTK_WIDGET(but); } GtkWidget *gtk_check_button_new_with_label(const gchar *label) { GtkButton *but; but = GTK_BUTTON(GtkNewObject(&GtkCheckButtonClass)); but->text = g_strdup(label); g_strdelimit(but->text, "_", '&'); return GTK_WIDGET(but); } GtkWidget *gtk_radio_button_new_with_label_from_widget(GtkRadioButton *group, const gchar *label) { GSList *list; list = gtk_radio_button_get_group(group); return (gtk_radio_button_new_with_label(list, label)); } GtkWidget *gtk_radio_button_new_with_label(GSList *group, const gchar *label) { GtkButton *but; GtkRadioButton *radio; GSList *listpt; but = GTK_BUTTON(GtkNewObject(&GtkRadioButtonClass)); but->text = g_strdup(label); g_strdelimit(but->text, "_", '&'); if (group == NULL) GTK_TOGGLE_BUTTON(but)->toggled = TRUE; group = g_slist_append(group, GTK_RADIO_BUTTON(but)); for (listpt = group; listpt; listpt = g_slist_next(listpt)) { radio = GTK_RADIO_BUTTON(listpt->data); radio->group = group; } return GTK_WIDGET(but); } GtkWidget *gtk_label_new(const gchar *text) { GtkLabel *label; label = GTK_LABEL(GtkNewObject(&GtkLabelClass)); gtk_label_set_text(label, text); return GTK_WIDGET(label); } GtkWidget *gtk_url_new(const gchar *text, const gchar *target, const gchar *bin) { GtkUrl *url; url = GTK_URL(GtkNewObject(&GtkUrlClass)); GTK_LABEL(url)->text = g_strdup(text); url->target = g_strdup(target); /* N.B. "bin" argument is ignored under Win32 */ return GTK_WIDGET(url); } GtkWidget *gtk_box_new(GtkOrientation orientation, gint spacing) { GtkBox *box; if (orientation == GTK_ORIENTATION_HORIZONTAL) { box = GTK_BOX(GtkNewObject(&GtkHBoxClass)); } else { box = GTK_BOX(GtkNewObject(&GtkVBoxClass)); } box->spacing = spacing; box->homogeneous = FALSE; return GTK_WIDGET(box); } void gtk_box_set_homogeneous(GtkBox *box, gboolean homogeneous) { box->homogeneous = homogeneous; } GtkWidget *gtk_frame_new(const gchar *text) { GtkFrame *frame; frame = GTK_FRAME(GtkNewObject(&GtkFrameClass)); frame->text = g_strdup(text); return GTK_WIDGET(frame); } GtkWidget *gtk_text_new(GtkAdjustment *hadj, GtkAdjustment *vadj) { GtkText *text; text = GTK_TEXT(GtkNewObject(&GtkTextClass)); text->buffer = g_new(GtkTextBuffer, 1); g_datalist_init(&text->buffer->tags); return GTK_WIDGET(text); } GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg) { GtkWidget *text; text = gtk_text_new(NULL, NULL); *pack_widg = text; return text; } GtkWidget *gtk_entry_new() { GtkEntry *entry; entry = GTK_ENTRY(GtkNewObject(&GtkEntryClass)); entry->is_visible = TRUE; return GTK_WIDGET(entry); } GSList *gtk_radio_button_get_group(GtkRadioButton *radio_button) { return radio_button->group; } static void gtk_editable_sync_text(GtkEditable *editable) { HWND hWnd; gchar *buffer; hWnd = GTK_WIDGET(editable)->hWnd; if (!hWnd) { return; } buffer = myGetWindowText(hWnd); g_string_assign(editable->text, buffer); g_free(buffer); } void gtk_editable_insert_text(GtkEditable *editable, const gchar *new_text, gint new_text_length, gint *position) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; gint i; GString *newstr; gtk_editable_sync_text(editable); /* Convert Unix-style lone '\n' to Windows-style '\r\n' */ newstr = g_string_new(""); for (i = 0; i < new_text_length && new_text[i]; i++) { if (new_text[i] == '\n' && (i == 0 || new_text[i - 1] != '\r')) { g_string_append_c(newstr, '\r'); } g_string_append_c(newstr, new_text[i]); } g_string_insert(editable->text, *position, newstr->str); hWnd = widget->hWnd; if (hWnd) { SendMessageW(hWnd, EM_SETSEL, (WPARAM)*position, (LPARAM)*position); myEditReplaceSel(hWnd, FALSE, newstr->str); *position += newstr->len; gtk_editable_set_position(editable, *position); } g_string_free(newstr, TRUE); } static void gtk_text_view_set_format(GtkTextView *textview, const gchar *tagname, guint len, gint endpos) { CHARFORMAT *cf, cfdef; GtkWidget *widget = GTK_WIDGET(textview); GtkTextBuffer *buffer; DWORD st, end; if (!GTK_WIDGET_REALIZED(widget)) { return; } /* RichEdit controls do something odd behind the scenes with line ends, * so we use our guess for the last character position, and then read * back the resultant selection to get the true "length" of the control */ SendMessageW(widget->hWnd, EM_SETSEL, (WPARAM)endpos, (LPARAM)endpos); SendMessageW(widget->hWnd, EM_GETSEL, (WPARAM)&st, (LPARAM)&end); endpos = (gint)end; SendMessageW(widget->hWnd, EM_SETSEL, (WPARAM)(endpos - len), (LPARAM)endpos); if (!tagname || !(buffer = gtk_text_view_get_buffer(textview)) || !(cf = g_datalist_get_data(&buffer->tags, tagname))) { cfdef.cbSize = sizeof(CHARFORMAT); cfdef.dwMask = CFM_COLOR; cfdef.dwEffects = CFE_AUTOCOLOR; cf = &cfdef; } SendMessageW(widget->hWnd, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)cf); } void gtk_editable_delete_text(GtkEditable *editable, gint start_pos, gint end_pos) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; gtk_editable_sync_text(editable); if (end_pos < 0 || end_pos >= editable->text->len) end_pos = editable->text->len; g_string_erase(editable->text, start_pos, end_pos - start_pos); hWnd = widget->hWnd; if (hWnd) { mySetWindowText(hWnd, editable->text->str); } } gchar *gtk_editable_get_chars(GtkEditable *editable, gint start_pos, gint end_pos) { gchar *retbuf; gint copylen; gtk_editable_sync_text(editable); if (end_pos < 0 || end_pos >= editable->text->len) end_pos = editable->text->len; copylen = end_pos - start_pos; retbuf = g_new(gchar, copylen + 1); memcpy(retbuf, &editable->text->str[start_pos], copylen); retbuf[copylen] = '\0'; return retbuf; } void gtk_editable_set_editable(GtkEditable *editable, gboolean is_editable) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; editable->is_editable = is_editable; hWnd = widget->hWnd; if (hWnd) SendMessageW(hWnd, EM_SETREADONLY, (WPARAM)(!is_editable), (LPARAM)0); } void gtk_editable_set_position(GtkEditable *editable, gint position) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; if (!GTK_WIDGET_REALIZED(widget)) return; hWnd = widget->hWnd; /* RichEdit 2.0 doesn't appear to show the caret unless we show the * selection */ SendMessageW(hWnd, EM_HIDESELECTION, 0, 0); SendMessageW(hWnd, EM_SETSEL, (WPARAM)position, (LPARAM)position); SendMessageW(hWnd, EM_SCROLLCARET, 0, 0); SendMessageW(hWnd, EM_HIDESELECTION, 1, 0); } gint gtk_editable_get_position(GtkEditable *editable) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; DWORD EndPos; if (!GTK_WIDGET_REALIZED(widget)) return 0; hWnd = widget->hWnd; SendMessageW(hWnd, EM_GETSEL, (WPARAM)NULL, (LPARAM)&EndPos); return (gint)EndPos; } guint gtk_text_get_length(GtkText *text) { return GTK_EDITABLE(text)->text->len; } void gtk_box_pack_start(GtkBox *box, GtkWidget *child, gboolean Expand, gboolean Fill, gint Padding) { GtkBoxChild *newChild; newChild = g_new0(GtkBoxChild, 1); newChild->widget = child; newChild->expand = Expand; newChild->fill = Fill; box->children = g_list_append(box->children, (gpointer)newChild); child->parent = GTK_WIDGET(box); if (GTK_WIDGET_REALIZED(GTK_WIDGET(box))) { gtk_widget_realize(child); gtk_widget_update(GTK_WIDGET(box), TRUE); } } void gtk_button_destroy(GtkWidget *widget) { g_free(GTK_BUTTON(widget)->text); } void gtk_frame_destroy(GtkWidget *widget) { gtk_container_destroy(widget); g_free(GTK_FRAME(widget)->text); } void gtk_container_destroy(GtkWidget *widget) { GtkWidget *child = GTK_CONTAINER(widget)->child; if (child) gtk_widget_destroy(child); } void gtk_box_destroy(GtkWidget *widget) { GtkBoxChild *child; GList *children; gtk_container_destroy(widget); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_destroy(child->widget); g_free(child); } g_list_free(GTK_BOX(widget)->children); } static void gtk_text_destroy(GtkWidget *widget) { GtkText *text = GTK_TEXT(widget); GtkTextBuffer *buffer = gtk_text_view_get_buffer(text); if (buffer) { g_datalist_clear(&buffer->tags); g_free(buffer); } } static void EnableParent(GtkWindow *window) { GtkWidget *parent; parent = GTK_WIDGET(window)->parent; if (window->modal && parent) { GSList *list; GtkWindow *listwin; HWND ourhWnd, parenthWnd; ourhWnd = GTK_WIDGET(window)->hWnd; parenthWnd = parent->hWnd; for (list = WindowList; list; list = g_slist_next(list)) { listwin = GTK_WINDOW(list->data); if (listwin != window && listwin->modal && gtk_widget_get_visible(GTK_WIDGET(listwin)) && GTK_WIDGET(listwin)->parent == parent) return; } gtk_widget_set_sensitive(parent, TRUE); if (ourhWnd && parenthWnd && ourhWnd == GetActiveWindow()) { SetActiveWindow(parenthWnd); } } } void gtk_window_destroy(GtkWidget *widget) { GtkWindow *window = GTK_WINDOW(widget); WindowList = g_slist_remove(WindowList, (gpointer)window); gtk_container_destroy(widget); if (window->accel_group) gtk_accel_group_destroy(window->accel_group); if (window->hAccel) DestroyAcceleratorTable(window->hAccel); g_free(window->title); } void gtk_window_show(GtkWidget *widget) { GtkWindow *window = GTK_WINDOW(widget); if (window->modal && widget->parent) gtk_widget_set_sensitive(widget->parent, FALSE); } void gtk_window_hide(GtkWidget *widget) { GtkWindow *window = GTK_WINDOW(widget); EnableParent(window); } void gtk_hbox_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkBoxChild *child; GList *children; GtkRequisition *child_req; gint spacing = GTK_BOX(widget)->spacing, numchildren = 0; gint maxreq = 0; gboolean homogeneous = GTK_BOX(widget)->homogeneous; gboolean first = TRUE; for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && gtk_widget_get_visible(child->widget)) { if (first) { first = FALSE; } else { requisition->width += spacing; } child_req = &child->widget->requisition; if (homogeneous) { numchildren++; if (child_req->width > maxreq) maxreq = child_req->width; } else { requisition->width += child_req->width; } if (child_req->height > requisition->height) requisition->height = child_req->height; } } if (homogeneous) requisition->width += numchildren * maxreq; GTK_BOX(widget)->maxreq = maxreq; requisition->width += 2 * GTK_CONTAINER(widget)->border_width; requisition->height += 2 * GTK_CONTAINER(widget)->border_width; } void gtk_vbox_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkBoxChild *child; GList *children; GtkRequisition *child_req; gint spacing = GTK_BOX(widget)->spacing, numchildren = 0; gint maxreq = 0; gboolean homogeneous = GTK_BOX(widget)->homogeneous; gboolean first = TRUE; for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && gtk_widget_get_visible(child->widget)) { if (first) { first = FALSE; } else { requisition->height += spacing; } child_req = &child->widget->requisition; child_req = &child->widget->requisition; if (homogeneous) { numchildren++; if (child_req->height > maxreq) maxreq = child_req->height; } else { requisition->height += child_req->height; } if (child_req->width > requisition->width) requisition->width = child_req->width; } } if (homogeneous) requisition->height += numchildren * maxreq; GTK_BOX(widget)->maxreq = maxreq; requisition->width += 2 * GTK_CONTAINER(widget)->border_width; requisition->height += 2 * GTK_CONTAINER(widget)->border_width; } static void gtk_box_count_children(GtkBox *box, gint16 allocation, gint16 requisition, gint *extra) { GtkBoxChild *child; GList *children; gint NumCanExpand = 0; for (children = box->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && gtk_widget_get_visible(child->widget) && child->expand) NumCanExpand++; } *extra = allocation - requisition; if (NumCanExpand > 0) *extra /= NumCanExpand; } static void gtk_box_size_child(GtkBox *box, GtkBoxChild *child, gint extra, gint16 maxpos, gint16 requisition, gint16 *pos, gint16 *size, GList *listpt, gint16 *curpos) { gboolean TooSmall = FALSE; *pos = *curpos; if (extra < 0) { extra = 0; TooSmall = TRUE; } if (child->expand && child->fill) { *size = requisition + extra; *curpos += requisition + extra; } else if (child->expand) { *size = requisition; *pos += extra / 2; *curpos += requisition + extra; } else { *size = requisition; *curpos += requisition; } *curpos += box->spacing; if (TooSmall) { if (*pos >= maxpos) { *pos = *size = 0; } else if (*pos + *size > maxpos) { *size = maxpos - *pos; } } } void gtk_hbox_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkBox *box; GtkBoxChild *child; GList *children; GtkAllocation child_alloc; gint extra; gint16 curpos; gint maxpos, height, border_width; border_width = GTK_CONTAINER(widget)->border_width; maxpos = allocation->x + allocation->width - border_width; height = allocation->height - 2 * border_width; box = GTK_BOX(widget); curpos = allocation->x + border_width; gtk_box_count_children(box, allocation->width, widget->requisition.width, &extra); for (children = box->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && gtk_widget_get_visible(child->widget)) { gtk_box_size_child(box, child, extra, maxpos, box->homogeneous ? box->maxreq : child->widget->requisition.width, &child_alloc.x, &child_alloc.width, children, &curpos); child_alloc.y = allocation->y + border_width; child_alloc.height = height; gtk_widget_set_size(child->widget, &child_alloc); } } } void gtk_vbox_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkBox *box; GtkBoxChild *child; GList *children; GtkAllocation child_alloc; gint extra; gint16 curpos; gint width, maxpos, border_width; border_width = GTK_CONTAINER(widget)->border_width; width = allocation->width - 2 * border_width; maxpos = allocation->y + allocation->height - border_width; box = GTK_BOX(widget); curpos = allocation->y + border_width; gtk_box_count_children(box, allocation->height, widget->requisition.height, &extra); for (children = box->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && gtk_widget_get_visible(child->widget)) { gtk_box_size_child(box, child, extra, maxpos, box->homogeneous ? box->maxreq : child->widget->requisition.height, &child_alloc.y, &child_alloc.height, children, &curpos); child_alloc.x = allocation->x + border_width; child_alloc.width = width; gtk_widget_set_size(child->widget, &child_alloc); } } } void gtk_window_realize(GtkWidget *widget) { GtkWindow *win = GTK_WINDOW(widget); HWND Parent; DWORD resize = 0; if (win->allow_shrink || win->allow_grow) resize = WS_SIZEBOX; Parent = gtk_get_parent_hwnd(widget->parent); if (Parent) { widget->hWnd = myCreateDialog(hInst, "gtkdialog", Parent, MainDlgProc); mySetWindowText(widget->hWnd, win->title); } else { widget->hWnd = myCreateWindow("mainwin", win->title, WS_OVERLAPPEDWINDOW | CS_HREDRAW | CS_VREDRAW | resize, CW_USEDEFAULT, 0, 0, 0, Parent, NULL, hInst, NULL); if (!TopLevel) TopLevel = widget->hWnd; } WindowList = g_slist_append(WindowList, (gpointer)win); gtk_set_default_font(widget->hWnd); gtk_container_realize(widget); if (win->accel_group && win->accel_group->numaccel) { win->hAccel = CreateAcceleratorTable(win->accel_group->accel, win->accel_group->numaccel); } } void gtk_container_realize(GtkWidget *widget) { GtkWidget *child = GTK_CONTAINER(widget)->child; if (child) gtk_widget_realize(child); } void gtk_box_realize(GtkWidget *widget) { GtkBoxChild *child; GList *children; gtk_container_realize(widget); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_realize(child->widget); } } void gtk_button_realize(GtkWidget *widget) { GtkButton *but = GTK_BUTTON(widget); HWND Parent; GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow("BUTTON", but->text, WS_CHILD | WS_TABSTOP | (GTK_WIDGET_FLAGS(widget) & GTK_IS_DEFAULT ? BS_DEFPUSHBUTTON : BS_PUSHBUTTON), widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); } void gtk_entry_realize(GtkWidget *widget) { HWND Parent; Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_TABSTOP | ES_AUTOHSCROLL, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); /* Subclass the window (we assume that all edit boxes have the same * window procedure) */ wpOrigEntryProc = (WNDPROC)SetWindowLongPtrW(widget->hWnd, GWLP_WNDPROC, (LONG_PTR)EntryWndProc); gtk_set_default_font(widget->hWnd); gtk_editable_set_editable(GTK_EDITABLE(widget), GTK_EDITABLE(widget)->is_editable); gtk_entry_set_visibility(GTK_ENTRY(widget), GTK_ENTRY(widget)->is_visible); mySetWindowText(widget->hWnd, GTK_EDITABLE(widget)->text->str); } void gtk_text_realize(GtkWidget *widget) { HWND Parent; gboolean editable; Parent = gtk_get_parent_hwnd(widget); editable = GTK_EDITABLE(widget)->is_editable; GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, HaveRichEdit ? RichEditClass : "EDIT", "", WS_CHILD | (editable ? WS_TABSTOP : 0) | ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL | (GTK_TEXT(widget)->word_wrap ? 0 : ES_AUTOHSCROLL), 0, 0, 0, 0, Parent, NULL, hInst, NULL); /* Subclass the window (we assume that all multiline edit boxes have the * same window procedure) */ wpOrigTextProc = (WNDPROC)SetWindowLongPtrW(widget->hWnd, GWLP_WNDPROC, (LONG_PTR)TextWndProc); gtk_set_default_font(widget->hWnd); gtk_editable_set_editable(GTK_EDITABLE(widget), GTK_EDITABLE(widget)->is_editable); mySetWindowText(widget->hWnd, GTK_EDITABLE(widget)->text->str); } void gtk_frame_realize(GtkWidget *widget) { HWND Parent; GtkFrame *frame = GTK_FRAME(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow("BUTTON", frame->text, WS_CHILD | BS_GROUPBOX, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); gtk_container_realize(widget); } void gtk_check_button_realize(GtkWidget *widget) { GtkButton *but = GTK_BUTTON(widget); HWND Parent; gboolean toggled; Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindow("BUTTON", but->text, WS_CHILD | WS_TABSTOP | BS_CHECKBOX, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); g_signal_connect(G_OBJECT(widget), "clicked", gtk_toggle_button_toggled, NULL); g_signal_connect(G_OBJECT(widget), "toggled", gtk_check_button_toggled, NULL); toggled = GTK_TOGGLE_BUTTON(widget)->toggled; GTK_TOGGLE_BUTTON(widget)->toggled = !toggled; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), toggled); } void gtk_radio_button_realize(GtkWidget *widget) { GtkButton *but = GTK_BUTTON(widget); HWND Parent; gboolean toggled; Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindow("BUTTON", but->text, WS_CHILD | WS_TABSTOP | BS_RADIOBUTTON, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); g_signal_connect(G_OBJECT(widget), "clicked", gtk_radio_button_clicked, NULL); g_signal_connect(G_OBJECT(widget), "toggled", gtk_radio_button_toggled, NULL); toggled = GTK_TOGGLE_BUTTON(widget)->toggled; GTK_TOGGLE_BUTTON(widget)->toggled = !toggled; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), toggled); } void gtk_radio_button_destroy(GtkWidget *widget) { GSList *group, *listpt; GtkRadioButton *radio; gtk_button_destroy(widget); group = GTK_RADIO_BUTTON(widget)->group; group = g_slist_remove(group, GTK_RADIO_BUTTON(widget)); for (listpt = group; listpt; listpt = g_slist_next(listpt)) { radio = GTK_RADIO_BUTTON(listpt->data); radio->group = group; } } void gtk_container_show_all(GtkWidget *widget, gboolean hWndOnly) { GtkContainer *container = GTK_CONTAINER(widget); if (container->child) gtk_widget_show_all_full(container->child, hWndOnly); } void gtk_container_hide_all(GtkWidget *widget, gboolean hWndOnly) { GtkContainer *container = GTK_CONTAINER(widget); if (container->child) gtk_widget_hide_all_full(container->child, hWndOnly); } void gtk_box_show_all(GtkWidget *widget, gboolean hWndOnly) { GtkBoxChild *child; GList *children; gtk_container_show_all(widget, hWndOnly); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_show_all_full(child->widget, hWndOnly); } } void gtk_box_hide_all(GtkWidget *widget, gboolean hWndOnly) { GtkBoxChild *child; GList *children; gtk_container_hide_all(widget, hWndOnly); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_hide_all_full(child->widget, hWndOnly); } } void gtk_table_show_all(GtkWidget *widget, gboolean hWndOnly) { GList *children; GtkTableChild *child; gtk_container_show_all(widget, hWndOnly); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child && child->widget) gtk_widget_show_all_full(child->widget, hWndOnly); } } void gtk_table_hide_all(GtkWidget *widget, gboolean hWndOnly) { GList *children; GtkTableChild *child; gtk_container_hide_all(widget, hWndOnly); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child && child->widget) gtk_widget_hide_all_full(child->widget, hWndOnly); } } void gtk_widget_hide_all(GtkWidget *widget) { gtk_widget_hide_all_full(widget, FALSE); } void gtk_widget_hide_all_full(GtkWidget *widget, gboolean hWndOnly) { gtk_signal_emit(G_OBJECT(widget), "hide_all", hWndOnly); if (hWndOnly) { gtk_signal_emit(G_OBJECT(widget), "hide"); if (widget->hWnd) ShowWindow(widget->hWnd, SW_HIDE); } else gtk_widget_hide_full(widget, FALSE); } void gtk_widget_show_all(GtkWidget *widget) { gtk_widget_show_all_full(widget, FALSE); } void gtk_widget_show_all_full(GtkWidget *widget, gboolean hWndOnly) { GtkAllocation alloc; gboolean InitWindow = FALSE; if (!GTK_WIDGET_REALIZED(widget) && G_OBJECT(widget)->klass == &GtkWindowClass) InitWindow = TRUE; if (InitWindow) gtk_widget_realize(widget); gtk_signal_emit(G_OBJECT(widget), "show_all", hWndOnly); if (hWndOnly) { if (gtk_widget_get_visible(widget)) { gtk_signal_emit(G_OBJECT(widget), "show"); if (widget->hWnd) ShowWindow(widget->hWnd, SW_SHOWNORMAL); } } else { gtk_widget_show_full(widget, FALSE); } if (InitWindow) { gtk_widget_update(widget, TRUE); alloc.x = alloc.y = 0; alloc.width = widget->requisition.width; alloc.height = widget->requisition.height; gtk_window_set_initial_position(GTK_WINDOW(widget), &alloc); ShowWindow(widget->hWnd, SW_SHOWNORMAL); UpdateWindow(widget->hWnd); } } GtkWidget *gtk_widget_get_ancestor(GtkWidget *widget, GtkType type) { if (!widget) return NULL; while (widget && G_OBJECT(widget)->klass != type) { widget = widget->parent; } return widget; } void gtk_label_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; GtkLabel *label = GTK_LABEL(widget); if (GetTextSize(widget->hWnd, label->text, &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy; } } void gtk_url_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; GtkLabel *label = GTK_LABEL(widget); if (GetTextSize(widget->hWnd, label->text, &size, urlFont)) { requisition->width = size.cx; requisition->height = size.cy; } } void gtk_label_set_size(GtkWidget *widget, GtkAllocation *allocation) { gint yexcess; yexcess = allocation->height - widget->requisition.height; if (yexcess > 0) { allocation->y += yexcess / 2; allocation->height -= yexcess; } } void gtk_entry_set_size(GtkWidget *widget, GtkAllocation *allocation) { gint yexcess; yexcess = allocation->height - widget->requisition.height; if (yexcess > 0) { allocation->y += yexcess / 2; allocation->height -= yexcess; } } void gtk_label_destroy(GtkWidget *widget) { g_free(GTK_LABEL(widget)->text); } void gtk_url_destroy(GtkWidget *widget) { g_free(GTK_LABEL(widget)->text); g_free(GTK_URL(widget)->target); } void gtk_label_realize(GtkWidget *widget) { GtkLabel *label = GTK_LABEL(widget); HWND Parent; Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow("STATIC", label->text, WS_CHILD | SS_CENTER, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); } void gtk_url_realize(GtkWidget *widget) { HWND Parent; Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKURL, GTK_LABEL(widget)->text, WS_CHILD, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); } void gtk_container_add(GtkContainer *container, GtkWidget *widget) { container->child = widget; widget->parent = GTK_WIDGET(container); if (GTK_WIDGET_REALIZED(GTK_WIDGET(container))) { gtk_widget_realize(widget); gtk_widget_update(GTK_WIDGET(container), TRUE); } } void gtk_container_set_border_width(GtkContainer *container, guint border_width) { container->border_width = border_width; } GtkWidget *gtk_table_new(guint rows, guint cols, gboolean homogeneous) { GtkTable *table; table = GTK_TABLE(GtkNewObject(&GtkTableClass)); table->nrows = rows; table->ncols = cols; table->homogeneous = homogeneous; table->rows = g_new0(GtkTableRowCol, rows); table->cols = g_new0(GtkTableRowCol, cols); return GTK_WIDGET(table); } void gtk_table_resize(GtkTable *table, guint rows, guint cols) { gint i; table->rows = g_realloc(table->rows, sizeof(GtkTableRowCol) * rows); table->cols = g_realloc(table->cols, sizeof(GtkTableRowCol) * cols); for (i = table->nrows; i < rows; i++) { table->rows[i].requisition = 0; table->rows[i].allocation = 0; table->rows[i].spacing = table->row_spacing; } for (i = table->ncols; i < cols; i++) { table->cols[i].requisition = 0; table->cols[i].allocation = 0; table->cols[i].spacing = table->column_spacing; } table->nrows = rows; table->ncols = cols; gtk_widget_update(GTK_WIDGET(table), FALSE); } void gtk_table_attach_defaults(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach) { gtk_table_attach(table, widget, left_attach, right_attach, top_attach, bottom_attach, GTK_EXPAND, GTK_EXPAND, 0, 0); } void gtk_table_attach(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, guint xpadding, guint ypadding) { GtkTableChild *newChild; newChild = g_new0(GtkTableChild, 1); newChild->widget = widget; newChild->left_attach = left_attach; newChild->right_attach = right_attach; newChild->top_attach = top_attach; newChild->bottom_attach = bottom_attach; newChild->xoptions = xoptions; newChild->yoptions = yoptions; table->children = g_list_append(table->children, (gpointer)newChild); widget->parent = GTK_WIDGET(table); if (GTK_WIDGET_REALIZED(GTK_WIDGET(table))) { gtk_widget_realize(widget); gtk_widget_update(GTK_WIDGET(table), TRUE); } } void gtk_table_destroy(GtkWidget *widget) { GList *children; GtkTableChild *child; gtk_container_destroy(widget); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child->widget) gtk_widget_destroy(child->widget); g_free(child); } g_list_free(GTK_TABLE(widget)->children); } static void gtk_table_get_size_children(GtkTable *table, GtkAttachOptions colopts, GtkAttachOptions *cols) { GList *children; for (children = table->children; children; children = g_list_next(children)) { GtkRequisition child_req; GtkWidget *child_wid; int i; GtkTableChild *child = (GtkTableChild *)(children->data); if (!child) continue; if (colopts) { if (child->xoptions & colopts) { for (i = child->left_attach; i < child->right_attach; i++) { cols[i] = colopts; } } else { continue; } } else if (child->xoptions & GTK_SHRINK) { continue; } child_wid = child->widget; if (child_wid && child->left_attach < child->right_attach && child->top_attach < child->bottom_attach && gtk_widget_get_visible(child_wid)) { child_req.width = child_wid->requisition.width; child_req.height = child_wid->requisition.height; child_req.height /= (child->bottom_attach - child->top_attach); if (colopts) { child_req.width /= (child->right_attach - child->left_attach); for (i = child->left_attach; i < child->right_attach; i++) { if (child_req.width > table->cols[i].requisition) table->cols[i].requisition = child_req.width; } } else { for (i = child->left_attach; i < child->right_attach; i++) { child_req.width -= table->cols[i].requisition; } if (child_req.width > 0) { int nexpand = 0, ntotal = child->right_attach - child->left_attach; for (i = child->left_attach; i < child->right_attach; i++) { if (cols[i] == 0) { nexpand++; } } if (nexpand) { for (i = child->left_attach; i < child->right_attach; i++) { if (cols[i] == 0) { table->cols[i].requisition += child_req.width / nexpand; } } } else { for (i = child->left_attach; i < child->right_attach; i++) { table->cols[i].requisition += child_req.width / ntotal; } } } } for (i = child->top_attach; i < child->bottom_attach; i++) { if (child_req.height > table->rows[i].requisition) table->rows[i].requisition = child_req.height; } } } } void gtk_table_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkTable *table; gint16 MaxReq; int i; GtkAttachOptions *cols; table = GTK_TABLE(widget); for (i = 0; i < table->ncols; i++) table->cols[i].requisition = 0; for (i = 0; i < table->nrows; i++) table->rows[i].requisition = 0; gtk_container_size_request(widget, requisition); cols = g_new0(GtkAttachOptions, table->ncols); if (!table->homogeneous) { gtk_table_get_size_children(table, GTK_SHRINK, cols); } gtk_table_get_size_children(table, 0, cols); g_free(cols); if (table->homogeneous) { MaxReq = 0; for (i = 0; i < table->ncols; i++) if (table->cols[i].requisition > MaxReq) { MaxReq = table->cols[i].requisition; } for (i = 0; i < table->ncols; i++) table->cols[i].requisition = MaxReq; MaxReq = 0; for (i = 0; i < table->nrows; i++) if (table->rows[i].requisition > MaxReq) { MaxReq = table->rows[i].requisition; } for (i = 0; i < table->nrows; i++) table->rows[i].requisition = MaxReq; } requisition->width = requisition->height = 2 * GTK_CONTAINER(widget)->border_width; for (i = 0; i < table->ncols; i++) requisition->width += table->cols[i].requisition; for (i = 0; i < table->ncols - 1; i++) requisition->width += table->cols[i].spacing; for (i = 0; i < table->nrows; i++) requisition->height += table->rows[i].requisition; for (i = 0; i < table->nrows - 1; i++) requisition->height += table->rows[i].spacing; } void gtk_table_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkTable *table; gint row_extra = 0, col_extra = 0, i, row_expand = 0, col_expand = 0; GtkAllocation child_alloc; GList *children; GtkTableChild *child; gint border_width; GtkAttachOptions *rowopt, *colopt; table = GTK_TABLE(widget); border_width = GTK_CONTAINER(widget)->border_width; rowopt = g_new0(GtkAttachOptions, table->nrows); colopt = g_new0(GtkAttachOptions, table->ncols); for (children = table->children; children; children = g_list_next(children)) { GtkTableChild *child = (GtkTableChild *)(children->data); GtkWidget *child_wid; if (!child) continue; child_wid = child->widget; if (child_wid && child->left_attach < child->right_attach && child->top_attach < child->bottom_attach && gtk_widget_get_visible(child_wid)) { if (child->xoptions & GTK_SHRINK) { for (i = child->left_attach; i < child->right_attach; i++) { colopt[i] |= GTK_SHRINK; } } if (child->yoptions & GTK_EXPAND) { for (i = child->top_attach; i < child->bottom_attach; i++) { rowopt[i] |= GTK_EXPAND; } } } } for (i = 0; i < table->ncols; i++) { if (!(colopt[i] & GTK_SHRINK)) { col_expand++; } } for (i = 0; i < table->nrows; i++) { if (rowopt[i] & GTK_EXPAND) { row_expand++; } } if (col_expand) { col_extra = (allocation->width - widget->requisition.width) / col_expand; } if (row_expand) { row_extra = (allocation->height - widget->requisition.height) / row_expand; } for (i = 0; i < table->ncols; i++) { table->cols[i].allocation = table->cols[i].requisition + (colopt[i] & GTK_SHRINK ? 0 : col_extra); } for (i = 0; i < table->nrows; i++) { table->rows[i].allocation = table->rows[i].requisition + (rowopt[i] & GTK_SHRINK ? 0 : row_extra); } g_free(rowopt); g_free(colopt); for (children = table->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (!child || !child->widget || !gtk_widget_get_visible(child->widget)) continue; child_alloc.x = allocation->x + border_width; child_alloc.y = allocation->y + border_width; child_alloc.width = child_alloc.height = 0; for (i = 0; i < child->left_attach; i++) { child_alloc.x += table->cols[i].allocation + table->cols[i].spacing; } for (i = 0; i < child->top_attach; i++) { child_alloc.y += table->rows[i].allocation + table->rows[i].spacing; } for (i = child->left_attach; i < child->right_attach; i++) { child_alloc.width += table->cols[i].allocation; if (i < child->right_attach - 1) { child_alloc.width += table->cols[i].spacing; } } for (i = child->top_attach; i < child->bottom_attach; i++) { child_alloc.height += table->rows[i].allocation; if (i < child->bottom_attach - 1) { child_alloc.height += table->rows[i].spacing; } } gtk_widget_set_size(child->widget, &child_alloc); } } void gtk_table_realize(GtkWidget *widget) { GList *children; GtkTableChild *child; gtk_container_realize(widget); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child->widget) gtk_widget_realize(child->widget); } } void gtk_table_set_row_spacing(GtkTable *table, guint row, guint spacing) { if (table && row >= 0 && row < table->nrows) { table->rows[row].spacing = spacing; } } void gtk_table_set_col_spacing(GtkTable *table, guint column, guint spacing) { if (table && column >= 0 && column < table->ncols) { table->cols[column].spacing = spacing; } } void gtk_table_set_row_spacings(GtkTable *table, guint spacing) { int i; table->row_spacing = spacing; for (i = 0; i < table->nrows; i++) table->rows[i].spacing = spacing; } void gtk_table_set_col_spacings(GtkTable *table, guint spacing) { int i; table->column_spacing = spacing; for (i = 0; i < table->ncols; i++) table->cols[i].spacing = spacing; } void gtk_toggle_button_toggled(GtkToggleButton *toggle_button) { toggle_button->toggled = !toggle_button->toggled; gtk_signal_emit(G_OBJECT(toggle_button), "toggled"); } void gtk_check_button_toggled(GtkCheckButton *check_button, gpointer data) { HWND hWnd; gboolean is_active = GTK_TOGGLE_BUTTON(check_button)->toggled; hWnd = GTK_WIDGET(check_button)->hWnd; if (hWnd) { SendMessageW(hWnd, BM_SETCHECK, is_active ? BST_CHECKED : BST_UNCHECKED, 0); } } void gtk_radio_button_clicked(GtkRadioButton *radio_button, gpointer data) { GtkToggleButton *toggle = GTK_TOGGLE_BUTTON(radio_button); if (toggle->toggled) return; else gtk_toggle_button_toggled(toggle); } void gtk_radio_button_toggled(GtkRadioButton *radio_button, gpointer data) { HWND hWnd; GSList *group; GtkRadioButton *radio; gboolean is_active = GTK_TOGGLE_BUTTON(radio_button)->toggled; hWnd = GTK_WIDGET(radio_button)->hWnd; if (hWnd) { SendMessageW(hWnd, BM_SETCHECK, is_active ? BST_CHECKED : BST_UNCHECKED, 0); } if (is_active) { for (group = radio_button->group; group; group = g_slist_next(group)) { radio = GTK_RADIO_BUTTON(group->data); if (radio && radio != radio_button) { GTK_TOGGLE_BUTTON(radio)->toggled = FALSE; hWnd = GTK_WIDGET(radio)->hWnd; if (hWnd) SendMessageW(hWnd, BM_SETCHECK, BST_UNCHECKED, 0); } } } } gboolean gtk_toggle_button_get_active(GtkToggleButton *toggle_button) { return (toggle_button->toggled); } void gtk_toggle_button_set_active(GtkToggleButton *toggle_button, gboolean is_active) { if (toggle_button->toggled == is_active) return; else gtk_toggle_button_toggled(toggle_button); } void gtk_main_quit() { PostQuitMessage(0); } void gtk_main() { MSG msg; GSList *list; BOOL MsgDone; GtkWidget *widget, *window; HACCEL hAccel; RecurseLevel++; while (GetMessageW(&msg, NULL, 0, 0)) { MsgDone = FALSE; widget = GTK_WIDGET(GetWindowLongPtrW(msg.hwnd, GWLP_USERDATA)); window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { hAccel = GTK_WINDOW(window)->hAccel; if (hAccel) { MsgDone = TranslateAccelerator(window->hWnd, hAccel, &msg); } } if (!MsgDone) for (list = WindowList; list && !MsgDone; list = g_slist_next(list)) { widget = GTK_WIDGET(list->data); if (widget && widget->hWnd && (MsgDone = IsDialogMessageW(widget->hWnd, &msg)) == TRUE) break; } if (!MsgDone) { TranslateMessage(&msg); DispatchMessageW(&msg); } } RecurseLevel--; } typedef struct _GtkSignal GtkSignal; struct _GtkSignal { GCallback func; GObject *slot_object; gpointer func_data; }; typedef gint (*GtkGIntSignalFunc) (); void gtk_marshal_BOOL__GINT(GObject *object, GSList *actions, GCallback default_action, va_list args) { gboolean *retval; gint arg1; GtkSignal *signal; GtkGIntSignalFunc sigfunc; arg1 = va_arg(args, gint); retval = va_arg(args, gboolean *); if (!retval) { g_warning("gtk_marshal_BOOL__GINT: retval NULL"); return; } while (actions) { signal = (GtkSignal *)actions->data; sigfunc = (GtkGIntSignalFunc)signal->func; if (signal->slot_object) { *retval = (*sigfunc) (signal->slot_object, arg1); } else *retval = (*sigfunc) (object, arg1, signal->func_data); if (*retval) return; actions = g_slist_next(actions); } sigfunc = (GtkGIntSignalFunc)default_action; if (sigfunc) *retval = (*sigfunc) (object, arg1); } void gtk_marshal_BOOL__GPOIN(GObject *object, GSList *actions, GCallback default_action, va_list args) { gboolean *retval; gpointer arg1; GtkSignal *signal; GtkGIntSignalFunc sigfunc; arg1 = va_arg(args, gpointer); retval = va_arg(args, gboolean *); if (!retval) { g_warning("gtk_marshal_BOOL__GPOIN: retval NULL"); return; } while (actions) { signal = (GtkSignal *)actions->data; sigfunc = (GtkGIntSignalFunc)signal->func; if (signal->slot_object) { *retval = (*sigfunc) (signal->slot_object, arg1); } else *retval = (*sigfunc) (object, arg1, signal->func_data); if (*retval) return; actions = g_slist_next(actions); } sigfunc = (GtkGIntSignalFunc)default_action; if (sigfunc) *retval = (*sigfunc) (object, arg1); } void gtk_marshal_VOID__VOID(GObject *object, GSList *actions, GCallback default_action, va_list args) { GtkSignal *signal; while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object); } else (*signal->func) (object, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object); } void gtk_marshal_VOID__GINT(GObject *object, GSList *actions, GCallback default_action, va_list args) { gint arg1; GtkSignal *signal; arg1 = va_arg(args, gint); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1); } else (*signal->func) (object, arg1, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1); } void gtk_marshal_VOID__GPOIN(GObject *object, GSList *actions, GCallback default_action, va_list args) { gpointer arg1; GtkSignal *signal; arg1 = va_arg(args, gpointer); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1); } else (*signal->func) (object, arg1, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1); } void gtk_marshal_VOID__BOOL(GObject *object, GSList *actions, GCallback default_action, va_list args) { gboolean arg1; GtkSignal *signal; arg1 = va_arg(args, gboolean); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1); } else (*signal->func) (object, arg1, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1); } void gtk_marshal_VOID__GINT_GINT_EVENT(GObject *object, GSList *actions, GCallback default_action, va_list args) { gint arg1, arg2; GdkEvent *arg3; GtkSignal *signal; arg1 = va_arg(args, gint); arg2 = va_arg(args, gint); arg3 = va_arg(args, GdkEvent *); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1, arg2, arg3); } else (*signal->func) (object, arg1, arg2, arg3, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1, arg2, arg3); } static GtkSignalType *gtk_get_signal_type(GObject *object, const gchar *name) { GtkClass *klass; GtkSignalType *signals; for (klass = object->klass; klass; klass = klass->parent) { for (signals = klass->signals; signals && signals->name[0]; signals++) { if (strcmp(signals->name, name) == 0) return signals; } } return NULL; } void gtk_signal_emit(GObject *object, const gchar *name, ...) { GSList *signal_list; GtkSignalType *signal_type; va_list ap; if (!object) return; va_start(ap, name); signal_list = (GSList *)g_datalist_get_data(&object->signals, name); signal_type = gtk_get_signal_type(object, name); if (signal_type && signal_type->marshaller) { (*signal_type->marshaller) (object, signal_list, signal_type->default_action, ap); } va_end(ap); if (!signal_type) g_warning("gtk_signal_emit: unknown signal %s", name); } guint g_signal_connect(GObject *object, const gchar *name, GCallback func, gpointer func_data) { GtkSignal *signal; GtkSignalType *signal_type; GSList *signal_list; if (!object) return 0; signal_type = gtk_get_signal_type(object, name); if (!signal_type) { g_warning("g_signal_connect: unknown signal %s", name); return 0; } signal_list = (GSList *)g_datalist_get_data(&object->signals, name); signal = g_new0(GtkSignal, 1); signal->func = func; signal->func_data = func_data; signal_list = g_slist_append(signal_list, signal); g_datalist_set_data(&object->signals, name, signal_list); return 0; } guint g_signal_connect_swapped(GObject *object, const gchar *name, GCallback func, GObject *slot_object) { GtkSignal *signal; GtkSignalType *signal_type; GSList *signal_list; if (!object) return 0; signal_type = gtk_get_signal_type(object, name); if (!signal_type) { g_warning("g_signal_connect_swapped: unknown signal %s", name); return 0; } signal_list = (GSList *)g_datalist_get_data(&object->signals, name); signal = g_new0(GtkSignal, 1); signal->func = func; signal->slot_object = slot_object; signal_list = g_slist_append(signal_list, signal); g_datalist_set_data(&object->signals, name, signal_list); return 0; } void gtk_menu_shell_insert(GtkMenuShell *menu_shell, GtkWidget *child, gint position) { menu_shell->children = g_slist_insert(menu_shell->children, (gpointer)child, position); child->parent = GTK_WIDGET(menu_shell); } void gtk_menu_shell_append(GtkMenuShell *menu_shell, GtkWidget *child) { gtk_menu_shell_insert(menu_shell, child, -1); } void gtk_menu_shell_prepend(GtkMenuShell *menu_shell, GtkWidget *child) { gtk_menu_shell_insert(menu_shell, child, 0); } GtkWidget *gtk_menu_bar_new() { GtkMenuBar *menu_bar; menu_bar = GTK_MENU_BAR(GtkNewObject(&GtkMenuBarClass)); return GTK_WIDGET(menu_bar); } void gtk_menu_bar_insert(GtkMenuBar *menu_bar, GtkWidget *child, gint position) { gtk_menu_shell_insert(GTK_MENU_SHELL(menu_bar), child, position); } void gtk_menu_bar_append(GtkMenuBar *menu_bar, GtkWidget *child) { gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), child); } void gtk_menu_bar_prepend(GtkMenuBar *menu_bar, GtkWidget *child) { gtk_menu_shell_prepend(GTK_MENU_SHELL(menu_bar), child); } GtkWidget *gtk_menu_new() { GtkMenu *menu; menu = GTK_MENU(GtkNewObject(&GtkMenuClass)); return GTK_WIDGET(menu); } void gtk_menu_insert(GtkMenu *menu, GtkWidget *child, gint position) { gtk_menu_shell_insert(GTK_MENU_SHELL(menu), child, position); } void gtk_menu_append(GtkMenu *menu, GtkWidget *child) { gtk_menu_shell_append(GTK_MENU_SHELL(menu), child); } void gtk_menu_prepend(GtkMenu *menu, GtkWidget *child) { gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), child); } GtkWidget *gtk_menu_item_new_with_label(const gchar *label) { GtkMenuItem *menu_item; menu_item = GTK_MENU_ITEM(GtkNewObject(&GtkMenuItemClass)); menu_item->accelind = -1; menu_item->text = g_strdup(label); menu_item->check = 0; menu_item->active = 0; g_strdelimit(menu_item->text, "_", '&'); return GTK_WIDGET(menu_item); } void gtk_menu_item_set_submenu(GtkMenuItem *menu_item, GtkWidget *submenu) { menu_item->submenu = GTK_MENU(submenu); submenu->parent = GTK_WIDGET(menu_item); } GtkMenu *gtk_menu_item_get_submenu(GtkMenuItem *menu_item) { return menu_item->submenu; } gboolean gtk_check_menu_item_get_active(GtkMenuItem *menu_item) { return menu_item->active; } void gtk_check_menu_item_set_active(GtkMenuItem *menu_item, gboolean active) { GtkWidget *widget = GTK_WIDGET(menu_item); menu_item->check = 1; menu_item->active = active; if (GTK_WIDGET_REALIZED(widget)) { MENUITEMINFO mii; HMENU parent_menu; parent_menu = GTK_MENU_SHELL(widget->parent)->menu; mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_STATE; mii.fState = active ? MFS_CHECKED : MFS_UNCHECKED; mySetMenuItemInfo(parent_menu, menu_item->ID, FALSE, &mii); } } static GtkWidget *gtk_menu_item_get_menu_ID(GtkMenuItem *menu_item, gint ID) { if (menu_item->ID == ID) { return GTK_WIDGET(menu_item); } else if (menu_item->submenu) { return gtk_menu_shell_get_menu_ID(GTK_MENU_SHELL(menu_item->submenu), ID); } else return NULL; } GtkWidget *gtk_menu_shell_get_menu_ID(GtkMenuShell *menu_shell, gint ID) { GSList *list; GtkWidget *menu_item; for (list = menu_shell->children; list; list = list->next) { menu_item = gtk_menu_item_get_menu_ID(GTK_MENU_ITEM(list->data), ID); if (menu_item) return menu_item; } return NULL; } GtkWidget *gtk_window_get_menu_ID(GtkWindow *window, gint ID) { if (window->menu_bar) { return gtk_menu_shell_get_menu_ID(GTK_MENU_SHELL(window->menu_bar), ID); } else return NULL; } void gtk_menu_bar_realize(GtkWidget *widget) { GtkMenuBar *menu_bar = GTK_MENU_BAR(widget); GtkWidget *window; GTK_MENU_SHELL(widget)->menu = CreateMenu(); menu_bar->LastID = 1000; gtk_menu_shell_realize(widget); window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); gtk_window_set_menu(GTK_WINDOW(window), menu_bar); } void gtk_menu_item_realize(GtkWidget *widget) { GtkMenuItem *menu_item = GTK_MENU_ITEM(widget); MENUITEMINFO mii; GtkWidget *menu_bar, *window; HMENU parent_menu; gint pos; menu_bar = gtk_widget_get_ancestor(widget, GTK_TYPE_MENU_BAR); if (menu_bar) menu_item->ID = GTK_MENU_BAR(menu_bar)->LastID++; if (menu_item->accelind >= 0) { window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window && GTK_WINDOW(window)->accel_group) { gtk_accel_group_set_id(GTK_WINDOW(window)->accel_group, menu_item->accelind, menu_item->ID); } } if (menu_item->submenu) gtk_widget_realize(GTK_WIDGET(menu_item->submenu)); parent_menu = GTK_MENU_SHELL(widget->parent)->menu; pos = g_slist_index(GTK_MENU_SHELL(widget->parent)->children, widget); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_TYPE | MIIM_ID | MIIM_STATE; if (menu_item->submenu) { mii.fMask |= MIIM_SUBMENU; mii.hSubMenu = GTK_MENU_SHELL(menu_item->submenu)->menu; } mii.fType = MFT_STRING; if (GTK_WIDGET_SENSITIVE(widget)) { mii.fState = MFS_ENABLED; } else { mii.fState = MFS_GRAYED; } if (menu_item->check) { mii.fState |= (menu_item->active ? MFS_CHECKED : MFS_UNCHECKED); } mii.wID = menu_item->ID; mii.dwTypeData = (LPTSTR)menu_item->text; mii.cch = myw32strlen(menu_item->text); myInsertMenuItem(parent_menu, pos, TRUE, &mii); } void gtk_menu_realize(GtkWidget *widget) { GTK_MENU_SHELL(widget)->menu = CreatePopupMenu(); gtk_menu_shell_realize(widget); } void gtk_menu_set_active(GtkMenu *menu, guint index) { menu->active = index; } void gtk_menu_shell_realize(GtkWidget *widget) { GSList *children; GtkMenuShell *menu = GTK_MENU_SHELL(widget); for (children = menu->children; children; children = g_slist_next(children)) { gtk_widget_realize(GTK_WIDGET(children->data)); } } void gtk_menu_item_enable(GtkWidget *widget) { GtkWidget *parent; HMENU hMenu; HWND hWnd; parent = widget->parent; if (!parent) return; hMenu = GTK_MENU_SHELL(parent)->menu; if (hMenu) EnableMenuItem(hMenu, GTK_MENU_ITEM(widget)->ID, MF_BYCOMMAND | MF_ENABLED); hWnd = gtk_get_parent_hwnd(widget); if (hWnd) DrawMenuBar(hWnd); } void gtk_menu_item_disable(GtkWidget *widget) { GtkWidget *parent; HMENU hMenu; HWND hWnd; parent = widget->parent; if (!parent) return; hMenu = GTK_MENU_SHELL(parent)->menu; if (hMenu) EnableMenuItem(hMenu, GTK_MENU_ITEM(widget)->ID, MF_BYCOMMAND | MF_GRAYED); hWnd = gtk_get_parent_hwnd(widget); if (hWnd) DrawMenuBar(hWnd); } GtkWidget *gtk_notebook_new() { GtkNotebook *notebook; notebook = GTK_NOTEBOOK(GtkNewObject(&GtkNotebookClass)); return GTK_WIDGET(notebook); } void gtk_notebook_append_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label) { gtk_notebook_insert_page(notebook, child, tab_label, -1); } void gtk_notebook_insert_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label, gint position) { GtkNotebookChild *note_child; GtkWidget *widget = GTK_WIDGET(notebook); note_child = g_new0(GtkNotebookChild, 1); note_child->child = child; note_child->tab_label = tab_label; note_child->tabpage = myCreateDialog(hInst, "tabpage", gtk_get_parent_hwnd(widget->parent), MainDlgProc); EnableThemeDialogTexture(note_child->tabpage, ETDT_ENABLETAB); notebook->children = g_slist_insert(notebook->children, note_child, position); child->parent = GTK_WIDGET(notebook); } void gtk_notebook_set_current_page(GtkNotebook *notebook, gint page_num) { GSList *children; GtkNotebookChild *note_child; GtkWidget *widget = GTK_WIDGET(notebook); gint pos = 0; if (page_num < 0) page_num = g_slist_length(notebook->children) - 1; notebook->selection = page_num; if (GTK_WIDGET_REALIZED(widget)) { if (widget->hWnd) TabCtrl_SetCurSel(widget->hWnd, page_num); for (children = notebook->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) { if (pos == page_num) { ShowWindow(note_child->tabpage, SW_SHOW); } else { ShowWindow(note_child->tabpage, SW_HIDE); } pos++; } } } } gint gtk_notebook_get_current_page(GtkNotebook *notebook) { return notebook->selection; } void gtk_notebook_realize(GtkWidget *widget) { GSList *children; GtkNotebookChild *note_child; HWND Parent; gint tab_pos = 0; TC_ITEM tie; Parent = gtk_get_parent_hwnd(widget->parent); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindow(WC_TABCONTROL, "", WS_CHILD | WS_TABSTOP, 0, 0, 0, 0, Parent, NULL, hInst, NULL); if (widget->hWnd == NULL) g_print("Error creating window!\n"); gtk_set_default_font(widget->hWnd); tie.mask = TCIF_TEXT | TCIF_IMAGE; tie.iImage = -1; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child) { if (note_child->tab_label) tie.pszText = GTK_LABEL(note_child->tab_label)->text; else tie.pszText = "No label"; myTabCtrl_InsertItem(widget->hWnd, tab_pos++, &tie); note_child->tabpage = myCreateDialog(hInst, "tabpage", gtk_get_parent_hwnd(widget->parent), MainDlgProc); EnableThemeDialogTexture(note_child->tabpage, ETDT_ENABLETAB); if (note_child->child) { gtk_widget_realize(note_child->child); } } } gtk_notebook_set_current_page(GTK_NOTEBOOK(widget), GTK_NOTEBOOK(widget)->selection); } void gtk_notebook_show_all(GtkWidget *widget, gboolean hWndOnly) { GSList *children; GtkNotebookChild *note_child; if (!hWndOnly) for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) gtk_widget_show_all_full(note_child->child, hWndOnly); } gtk_notebook_set_current_page(GTK_NOTEBOOK(widget), GTK_NOTEBOOK(widget)->selection); } void gtk_notebook_hide_all(GtkWidget *widget, gboolean hWndOnly) { GSList *children; GtkNotebookChild *note_child; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) gtk_widget_hide_all_full(note_child->child, hWndOnly); ShowWindow(note_child->tabpage, SW_HIDE); } } void gtk_notebook_destroy(GtkWidget *widget) { GSList *children; GtkNotebookChild *note_child; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child) { gtk_widget_destroy(note_child->child); gtk_widget_destroy(note_child->tab_label); DestroyWindow(note_child->tabpage); } g_free(note_child); } g_slist_free(GTK_NOTEBOOK(widget)->children); } void gtk_notebook_set_size(GtkWidget *widget, GtkAllocation *allocation) { GSList *children; RECT rect; gtk_container_set_size(widget, allocation); rect.left = allocation->x; rect.top = allocation->y; rect.right = allocation->x + allocation->width; rect.bottom = allocation->y + allocation->height; TabCtrl_AdjustRect(widget->hWnd, FALSE, &rect); for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { GtkNotebookChild *note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) { GtkAllocation child_alloc; child_alloc.x = rect.left + GTK_CONTAINER(widget)->border_width; child_alloc.y = rect.top + GTK_CONTAINER(widget)->border_width; child_alloc.width = rect.right - rect.left - 2 * GTK_CONTAINER(widget)->border_width; child_alloc.height = rect.bottom - rect.top - 2 * GTK_CONTAINER(widget)->border_width; SetWindowPos(note_child->tabpage, HWND_TOP, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER); gtk_widget_set_size(note_child->child, &child_alloc); } } } void gtk_notebook_size_request(GtkWidget *widget, GtkRequisition *requisition) { GSList *children; GtkNotebookChild *note_child; GtkRequisition *child_req; RECT rect; requisition->width = requisition->height = 0; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child && gtk_widget_get_visible(note_child->child)) { child_req = ¬e_child->child->requisition; if (child_req->width > requisition->width) requisition->width = child_req->width; if (child_req->height > requisition->height) requisition->height = child_req->height; } } requisition->width += GTK_CONTAINER(widget)->border_width * 2; requisition->height += GTK_CONTAINER(widget)->border_width * 2; rect.left = rect.top = 0; rect.right = requisition->width; rect.bottom = requisition->height; TabCtrl_AdjustRect(widget->hWnd, TRUE, &rect); requisition->width = rect.right - rect.left; requisition->height = rect.bottom - rect.top; } GObject *gtk_adjustment_new(gfloat value, gfloat lower, gfloat upper, gfloat step_increment, gfloat page_increment, gfloat page_size) { GtkAdjustment *adj; adj = (GtkAdjustment *)(GtkNewObject(&GtkAdjustmentClass)); adj->value = value; adj->lower = lower; adj->upper = upper; adj->step_increment = step_increment; adj->page_increment = page_increment; adj->page_size = page_size; return G_OBJECT(adj); } GtkWidget *gtk_spin_button_new(GtkAdjustment *adjustment, gfloat climb_rate, guint digits) { GtkSpinButton *spin; spin = GTK_SPIN_BUTTON(GtkNewObject(&GtkSpinButtonClass)); GTK_ENTRY(spin)->is_visible = TRUE; gtk_spin_button_set_adjustment(spin, adjustment); return GTK_WIDGET(spin); } void gtk_spin_button_size_request(GtkWidget *widget, GtkRequisition *requisition) { gtk_entry_size_request(widget, requisition); } void gtk_spin_button_set_size(GtkWidget *widget, GtkAllocation *allocation) { int udwidth; HWND updown; udwidth = GetSystemMetrics(SM_CXVSCROLL); allocation->width -= udwidth; updown = GTK_SPIN_BUTTON(widget)->updown; if (updown) { POINT pt; pt.x = allocation->x; pt.y = allocation->y; MapWidgetOrigin(widget, &pt); SetWindowPos(updown, HWND_TOP, pt.x + allocation->width, pt.y, udwidth, allocation->height, SWP_NOZORDER); } } gint gtk_spin_button_get_value_as_int(GtkSpinButton *spin_button) { HWND hWnd; LRESULT lres; hWnd = spin_button->updown; if (hWnd) { lres = SendMessageW(hWnd, UDM_GETPOS, 0, 0); if (HIWORD(lres) != 0) return 0; else return (gint)LOWORD(lres); } else return (gint)spin_button->adj->value; } void gtk_spin_button_set_value(GtkSpinButton *spin_button, gfloat value) { HWND hWnd; spin_button->adj->value = value; hWnd = spin_button->updown; if (hWnd) SendMessageW(hWnd, UDM_SETPOS, 0, (LPARAM)MAKELONG((short)value, 0)); } void gtk_spin_button_set_adjustment(GtkSpinButton *spin_button, GtkAdjustment *adjustment) { HWND hWnd; spin_button->adj = adjustment; hWnd = spin_button->updown; if (hWnd) { SendMessageW(hWnd, UDM_SETRANGE, 0, (LPARAM)MAKELONG((short)adjustment->upper, (short)adjustment->lower)); SendMessageW(hWnd, UDM_SETPOS, 0, (LPARAM)MAKELONG((short)adjustment->value, 0)); } } void gtk_spin_button_realize(GtkWidget *widget) { GtkSpinButton *spin = GTK_SPIN_BUTTON(widget); HWND Parent; gtk_entry_realize(widget); Parent = gtk_get_parent_hwnd(widget->parent); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); spin->updown = CreateUpDownControl(WS_CHILD | WS_BORDER | WS_TABSTOP | UDS_SETBUDDYINT | UDS_NOTHOUSANDS | UDS_ARROWKEYS, 0, 0, 0, 0, Parent, 0, hInst, widget->hWnd, 20, 10, 15); gtk_set_default_font(spin->updown); gtk_spin_button_set_adjustment(spin, spin->adj); } void gtk_spin_button_destroy(GtkWidget *widget) { g_free(GTK_SPIN_BUTTON(widget)->adj); } void gtk_spin_button_show(GtkWidget *widget) { HWND updown; updown = GTK_SPIN_BUTTON(widget)->updown; if (updown) ShowWindow(updown, SW_SHOWNORMAL); } void gtk_spin_button_hide(GtkWidget *widget) { HWND updown; updown = GTK_SPIN_BUTTON(widget)->updown; if (updown) ShowWindow(updown, SW_HIDE); } void gtk_spin_button_update(GtkSpinButton *spin_button) { } GtkWidget *gtk_separator_new(GtkOrientation orientation) { if (orientation == GTK_ORIENTATION_HORIZONTAL) { return GTK_WIDGET(GtkNewObject(&GtkHSeparatorClass)); } else { return GTK_WIDGET(GtkNewObject(&GtkVSeparatorClass)); } } void gtk_separator_size_request(GtkWidget *widget, GtkRequisition *requisition) { requisition->height = requisition->width = 2; } void gtk_separator_realize(GtkWidget *widget) { HWND Parent; Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKSEP, "", WS_CHILD, 0, 0, 0, 0, Parent, NULL, hInst, NULL); } void g_object_set_data(GObject *object, const gchar *key, gpointer data) { g_datalist_set_data(&object->object_data, key, data); } gpointer g_object_get_data(GObject *object, const gchar *key) { return g_datalist_get_data(&object->object_data, key); } GtkAccelGroup *gtk_accel_group_new() { GtkAccelGroup *new_accel; new_accel = g_new0(GtkAccelGroup, 1); new_accel->accel = NULL; new_accel->numaccel = 0; return new_accel; } gint gtk_accel_group_add(GtkAccelGroup *accel_group, ACCEL *newaccel) { accel_group->numaccel++; accel_group->accel = g_realloc(accel_group->accel, accel_group->numaccel * sizeof(ACCEL)); memcpy(&accel_group->accel[accel_group->numaccel - 1], newaccel, sizeof(ACCEL)); return (accel_group->numaccel - 1); } void gtk_accel_group_set_id(GtkAccelGroup *accel_group, gint ind, gint ID) { if (ind < accel_group->numaccel) accel_group->accel[ind].cmd = ID; } void gtk_accel_group_destroy(GtkAccelGroup *accel_group) { g_free(accel_group->accel); g_free(accel_group); } void gtk_widget_grab_default(GtkWidget *widget) { GTK_WIDGET_SET_FLAGS(widget, GTK_IS_DEFAULT); } void gtk_widget_grab_focus(GtkWidget *widget) { if (widget->hWnd && GTK_WIDGET_CAN_FOCUS(widget)) { SetFocus(widget->hWnd); } } void gtk_window_set_modal(GtkWindow *window, gboolean modal) { window->modal = modal; } void gtk_window_add_accel_group(GtkWindow *window, GtkAccelGroup *accel_group) { window->accel_group = accel_group; } void gtk_entry_set_text(GtkEntry *entry, const gchar *text) { int pos = 0; gtk_editable_delete_text(GTK_EDITABLE(entry), 0, -1); gtk_editable_insert_text(GTK_EDITABLE(entry), text, strlen(text), &pos); } void gtk_entry_set_visibility(GtkEntry *entry, gboolean visible) { HWND hWnd; entry->is_visible = visible; hWnd = GTK_WIDGET(entry)->hWnd; if (hWnd) SendMessageW(hWnd, EM_SETPASSWORDCHAR, visible ? 0 : (WPARAM)'*', 0); } guint SetAccelerator(GtkWidget *labelparent, gchar *Text, GtkWidget *sendto, gchar *signal, GtkAccelGroup *accel_group, gboolean needalt) { gtk_signal_emit(G_OBJECT(labelparent), "set_text", Text); return 0; } void gtk_widget_add_accelerator(GtkWidget *widget, const gchar *accel_signal, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods, GtkAccelFlags accel_flags) { } void gtk_widget_remove_accelerator(GtkWidget *widget, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods) { } GtkWidget *gtk_paned_new(GtkOrientation orientation) { GtkPaned *paned; if (orientation == GTK_ORIENTATION_HORIZONTAL) { paned = GTK_PANED(GtkNewObject(&GtkHPanedClass)); } else { paned = GTK_PANED(GtkNewObject(&GtkVPanedClass)); } GTK_PANED(paned)->handle_size = 5; GTK_PANED(paned)->handle_pos = PANED_STARTPOS; return GTK_WIDGET(paned); } static void gtk_paned_pack(GtkPaned *paned, gint pos, GtkWidget *child, gboolean resize, gboolean shrink) { paned->children[pos].widget = child; paned->children[pos].resize = resize; paned->children[pos].shrink = shrink; child->parent = GTK_WIDGET(paned); } void gtk_paned_pack1(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink) { gtk_paned_pack(paned, 0, child, resize, shrink); } void gtk_paned_pack2(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink) { gtk_paned_pack(paned, 1, child, resize, shrink); } void gtk_paned_add1(GtkPaned *paned, GtkWidget *child) { gtk_paned_pack1(paned, child, FALSE, TRUE); } void gtk_paned_add2(GtkPaned *paned, GtkWidget *child) { gtk_paned_pack2(paned, child, FALSE, TRUE); } void gtk_paned_show_all(GtkWidget *widget, gboolean hWndOnly) { GtkPaned *paned = GTK_PANED(widget); gint i; for (i = 0; i < 2; i++) if (paned->children[i].widget) { gtk_widget_show_all_full(paned->children[i].widget, hWndOnly); } } void gtk_paned_hide_all(GtkWidget *widget, gboolean hWndOnly) { GtkPaned *paned = GTK_PANED(widget); gint i; for (i = 0; i < 2; i++) if (paned->children[i].widget) gtk_widget_hide_all_full(paned->children[i].widget, hWndOnly); } void gtk_paned_realize(GtkWidget *widget) { GtkPaned *paned = GTK_PANED(widget); gint i; for (i = 0; i < 2; i++) if (paned->children[i].widget) { gtk_widget_realize(paned->children[i].widget); } } void gtk_vpaned_realize(GtkWidget *widget) { HWND Parent; gtk_paned_realize(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKVPANED, "", WS_CHILD, 0, 0, 0, 0, Parent, NULL, hInst, NULL); } void gtk_hpaned_realize(GtkWidget *widget) { HWND Parent; gtk_paned_realize(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKHPANED, "", WS_CHILD, 0, 0, 0, 0, Parent, NULL, hInst, NULL); } static void gtk_paned_set_handle_percent(GtkPaned *paned, gint16 req[2]) { if (req[0] + req[1]) paned->handle_pos = req[0] * 100 / (req[0] + req[1]); else paned->handle_pos = 0; } void gtk_vpaned_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkPaned *paned = GTK_PANED(widget); gint i; gint16 req[2] = { 0, 0 }; requisition->width = requisition->height = 0; for (i = 0; i < 2; i++) if (paned->children[i].widget) { if (paned->children[i].widget->requisition.width > requisition->width) requisition->width = paned->children[i].widget->requisition.width; req[i] = paned->children[i].widget->requisition.height; requisition->height += req[i]; } requisition->height += paned->handle_size; gtk_paned_set_handle_percent(paned, req); } void gtk_hpaned_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkPaned *paned = GTK_PANED(widget); gint i; gint16 req[2] = { 0, 0 }; requisition->width = requisition->height = 0; for (i = 0; i < 2; i++) if (paned->children[i].widget) { if (paned->children[i].widget->requisition.height > requisition->height) requisition->height = paned->children[i].widget->requisition.height; req[i] = paned->children[i].widget->requisition.width; requisition->width += req[i]; } requisition->width += paned->handle_size; gtk_paned_set_handle_percent(paned, req); } void gtk_vpaned_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkPaned *paned = GTK_PANED(widget); GtkWidget *child; gint16 alloc; GtkAllocation child_alloc; memcpy(&paned->true_alloc, allocation, sizeof(GtkAllocation)); alloc = allocation->height - paned->handle_size; child = paned->children[0].widget; if (child) { child_alloc.x = allocation->x; child_alloc.y = allocation->y; child_alloc.width = allocation->width; child_alloc.height = alloc * paned->handle_pos / 100; gtk_widget_set_size(child, &child_alloc); } child = paned->children[1].widget; if (child) { child_alloc.x = allocation->x; child_alloc.width = allocation->width; child_alloc.height = alloc * (100 - paned->handle_pos) / 100; child_alloc.y = allocation->y + allocation->height - child_alloc.height; gtk_widget_set_size(child, &child_alloc); } allocation->y += alloc * paned->handle_pos / 100; allocation->height = paned->handle_size; } void gtk_hpaned_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkPaned *paned = GTK_PANED(widget); GtkWidget *child; gint16 alloc; GtkAllocation child_alloc; memcpy(&paned->true_alloc, allocation, sizeof(GtkAllocation)); alloc = allocation->width - paned->handle_size; child = paned->children[0].widget; if (child) { child_alloc.x = allocation->x; child_alloc.y = allocation->y; child_alloc.height = allocation->height; child_alloc.width = alloc * paned->handle_pos / 100; gtk_widget_set_size(child, &child_alloc); } child = paned->children[1].widget; if (child) { child_alloc.x = allocation->x; child_alloc.height = allocation->height; child_alloc.width = alloc * (100 - paned->handle_pos) / 100; child_alloc.x = allocation->x + allocation->width - child_alloc.width; gtk_widget_set_size(child, &child_alloc); } allocation->x += alloc * paned->handle_pos / 100; allocation->width = paned->handle_size; } void gtk_text_set_editable(GtkText *text, gboolean is_editable) { gtk_editable_set_editable(GTK_EDITABLE(text), is_editable); } void gtk_text_set_word_wrap(GtkText *text, gboolean word_wrap) { text->word_wrap = word_wrap; } void gtk_text_freeze(GtkText *text) { } void gtk_text_thaw(GtkText *text) { } GtkTextBuffer *gtk_text_view_get_buffer(GtkText *text) { return text->buffer; } static int parse_colcomp(const gchar *hexval) { int col = 0, i, ch; for (i = 0; i < 4; ++i) { col <<= 4; ch = toupper(hexval[i]); if (ch >= '0' && ch <= '9') { col |= (ch - '0'); } else if (ch >= 'A' && ch <= 'F') { col |= (ch - 'A' + 10); } } return col / 257; /* Scale from 0-65535 to 0-255 */ } static gboolean parse_color(const gchar *name, COLORREF *color) { int red, green, blue, i, ch; if (!name || strlen(name) != 13 || name[0] != '#') { return FALSE; } for (i = strlen(name) - 1; i >= 1; --i) { ch = toupper(name[i]); if (!((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F'))) { return FALSE; } } red = parse_colcomp(&name[1]); green = parse_colcomp(&name[5]); blue = parse_colcomp(&name[9]); if (color) { *color = RGB(red, green, blue); } return TRUE; } void gtk_text_buffer_create_tag(GtkTextBuffer *buffer, const gchar *name, ...) { va_list ap; gchar *attr, *data; CHARFORMAT *cf; va_start(ap, name); cf = g_new(CHARFORMAT, 1); cf->cbSize = sizeof(CHARFORMAT); cf->dwMask = 0; do { attr = va_arg(ap, gchar *); if (attr) { if (strcmp(attr, "foreground") == 0) { data = va_arg(ap, gchar *); cf->dwMask |= CFM_COLOR; cf->dwEffects = 0; if (!parse_color(data, &cf->crTextColor)) { cf->dwEffects = CFE_AUTOCOLOR; } } } } while (attr); g_datalist_set_data_full(&buffer->tags, name, cf, g_free); va_end(ap); } GtkWidget *gtk_combo_box_new_with_model(GtkTreeModel *model) { GtkComboBox *combo_box; combo_box = GTK_COMBO_BOX(GtkNewObject(&GtkComboBoxClass)); combo_box->active = -1; combo_box->model_column = -1; gtk_combo_box_set_model(combo_box, model); return GTK_WIDGET(combo_box); } void gtk_cell_layout_set_attributes(GtkCellLayout *cell_layout, GtkCellRenderer *cell, ...) { const char *name; va_list args; va_start(args, cell); /* Currently we only support the "text" attribute to point to the ListStore column */ while ((name = va_arg(args, const char *)) != NULL) { if (strcmp(name, "text") == 0) { cell_layout->model_column = va_arg(args, int); } } va_end(args); } void gtk_combo_box_set_model(GtkComboBox *combo_box, GtkTreeModel *model) { HWND hWnd; if (!model) return; combo_box->model = model; hWnd = GTK_WIDGET(combo_box)->hWnd; /* For now we work only with a single column of string type */ if (hWnd) { SendMessageW(hWnd, CB_RESETCONTENT, 0, 0); } if (hWnd && combo_box->model_column >= 0) { int nrow; int col = combo_box->model_column; g_assert(model->coltype[col] == G_TYPE_STRING); for (nrow = 0; nrow < combo_box->model->rows->len; ++nrow) { GtkListStoreRow *row = &g_array_index(combo_box->model->rows, GtkListStoreRow, nrow); myComboBox_AddString(hWnd, row->data[col]); } SendMessageW(hWnd, CB_SETCURSEL, (WPARAM)combo_box->active, 0); } } GtkTreeModel *gtk_combo_box_get_model(GtkComboBox *combo_box) { return combo_box->model; } void gtk_combo_box_set_active(GtkComboBox *combo_box, gint index) { combo_box->active = index; } gboolean gtk_combo_box_get_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter) { if (combo_box->active >= 0) { *iter = combo_box->active; return TRUE; } else { return FALSE; } } void gtk_combo_box_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { requisition->width = size.cx + 40; requisition->height = size.cy + 4; } } void gtk_combo_box_set_size(GtkWidget *widget, GtkAllocation *allocation) { allocation->height *= 6; } void gtk_combo_box_realize(GtkWidget *widget) { HWND Parent; GtkComboBox *combo_box = GTK_COMBO_BOX(widget); Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, "COMBOBOX", "", WS_CHILD | WS_TABSTOP | WS_VSCROLL | CBS_HASSTRINGS | CBS_DROPDOWNLIST, 0, 0, 0, 0, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); gtk_combo_box_set_model(combo_box, combo_box->model); } void gtk_combo_box_destroy(GtkWidget *widget) { GtkComboBox *combo_box = GTK_COMBO_BOX(widget); if (combo_box->model) { gtk_tree_model_free(combo_box->model); } combo_box->model = NULL; } void gtk_label_set_text(GtkLabel *label, const gchar *str) { HWND hWnd; g_free(label->text); label->text = g_strdup(str ? str : ""); g_strdelimit(label->text, "_", '&'); hWnd = GTK_WIDGET(label)->hWnd; if (hWnd) { gtk_widget_update(GTK_WIDGET(label), FALSE); mySetWindowText(hWnd, label->text); } } void gtk_button_set_text(GtkButton *button, gchar *text) { HWND hWnd; g_free(button->text); button->text = g_strdup(text ? text : ""); g_strdelimit(button->text, "_", '&'); hWnd = GTK_WIDGET(button)->hWnd; if (hWnd) { gtk_widget_update(GTK_WIDGET(button), FALSE); mySetWindowText(hWnd, button->text); } } static void gtk_menu_item_set_text(GtkMenuItem *menuitem, gchar *text) { GtkWidget *widget = GTK_WIDGET(menuitem); g_free(menuitem->text); menuitem->text = g_strdup(text ? text : ""); g_strdelimit(menuitem->text, "_", '&'); if (GTK_WIDGET_REALIZED(widget)) { MENUITEMINFO mii; HMENU parent_menu; parent_menu = GTK_MENU_SHELL(widget->parent)->menu; mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_TYPE; mii.fType = MFT_STRING; mii.dwTypeData = (LPTSTR)menuitem->text; mii.cch = myw32strlen(menuitem->text); mySetMenuItemInfo(parent_menu, menuitem->ID, FALSE, &mii); } } const char *gtk_label_get_text(GtkLabel *label) { return label->text; } void gtk_text_set_point(GtkText *text, guint index) { gtk_editable_set_position(GTK_EDITABLE(text), index); } void gtk_widget_set_size_request(GtkWidget *widget, gint width, gint height) { widget->usize.width = width; widget->usize.height = height; } void gtk_editable_create(GtkWidget *widget) { GtkEditable *editable = GTK_EDITABLE(widget); gtk_widget_create(widget); editable->is_editable = TRUE; editable->text = g_string_new(""); } void gtk_combo_box_update_selection(GtkWidget *widget) { LRESULT lres; if (widget->hWnd == NULL) return; lres = SendMessageW(widget->hWnd, CB_GETCURSEL, 0, 0); if (lres == CB_ERR) return; GTK_COMBO_BOX(widget)->active = lres; gtk_signal_emit(G_OBJECT(widget), "changed"); } void gtk_window_handle_user_size(GtkWindow *window, GtkAllocation *allocation) { } void gtk_window_handle_minmax_size(GtkWindow *window, LPMINMAXINFO minmax) { GtkRequisition *req; req = >K_WIDGET(window)->requisition; if (!window->allow_shrink) { minmax->ptMinTrackSize.x = req->width; minmax->ptMinTrackSize.y = req->height; } if (!window->allow_grow) { minmax->ptMaxTrackSize.x = req->width; minmax->ptMaxTrackSize.y = req->height; } } void gtk_window_set_initial_position(GtkWindow *window, GtkAllocation *allocation) { RECT rect; GtkWidget *widget = GTK_WIDGET(window); GetWindowRect(GetDesktopWindow(), &rect); if (widget->parent) { allocation->x = rect.left + (rect.right - rect.left - allocation->width) / 2; allocation->y = rect.top + (rect.bottom - rect.top - allocation->height) / 2; if (allocation->x < 0) allocation->x = 0; if (allocation->y < 0) allocation->y = 0; if (widget->hWnd) SetWindowPos(widget->hWnd, HWND_TOP, allocation->x, allocation->y, 0, 0, SWP_NOSIZE | SWP_NOZORDER); } } void gtk_window_handle_auto_size(GtkWindow *window, GtkAllocation *allocation) { GtkWidget *widget = GTK_WIDGET(window); if (allocation->width < window->default_width) { allocation->width = window->default_width; } if (allocation->height < window->default_height) { allocation->height = window->default_height; } if (allocation->width < widget->allocation.width) { allocation->width = widget->allocation.width; } if (allocation->height < widget->allocation.height) { allocation->height = widget->allocation.height; } } void gtk_paned_set_position(GtkPaned *paned, gint position) { GtkAllocation allocation; if (position < 0) position = 0; if (position > 100) position = 100; paned->handle_pos = position; memcpy(&allocation, &paned->true_alloc, sizeof(GtkAllocation)); gtk_widget_set_size(GTK_WIDGET(paned), &allocation); } void gtk_misc_set_alignment(GtkMisc *misc, gfloat xalign, gfloat yalign) { } GtkWidget *gtk_progress_bar_new() { GtkProgressBar *prog; prog = GTK_PROGRESS_BAR(GtkNewObject(&GtkProgressBarClass)); prog->orient = GTK_PROGRESS_LEFT_TO_RIGHT; prog->position = 0; return GTK_WIDGET(prog); } void gtk_progress_bar_set_fraction(GtkProgressBar *pbar, gfloat percentage) { GtkWidget *widget; widget = GTK_WIDGET(pbar); pbar->position = percentage; if (GTK_WIDGET_REALIZED(widget)) { SendMessageW(widget->hWnd, PBM_SETPOS, (WPARAM)(10000.0 * pbar->position), 0); } } void gtk_progress_bar_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample", &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy; } } void gtk_progress_bar_realize(GtkWidget *widget) { HWND Parent; GtkProgressBar *prog; prog = GTK_PROGRESS_BAR(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, PROGRESS_CLASS, "", WS_CHILD, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); SendMessageW(widget->hWnd, PBM_SETRANGE, 0, MAKELPARAM(0, 10000)); SendMessageW(widget->hWnd, PBM_SETPOS, (WPARAM)(10000.0 * prog->position), 0); } gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options) { gint retval; RecurseLevel++; switch(type) { case GTK_MESSAGE_WARNING: Options |= MB_ICONWARNING; break; case GTK_MESSAGE_ERROR: Options |= MB_ICONERROR; break; case GTK_MESSAGE_QUESTION: Options |= MB_ICONQUESTION; break; default: break; } retval = myMessageBox(parent && parent->hWnd ? parent->hWnd : NULL, Text, Title, Options); RecurseLevel--; return retval; } /* Add a new source and return a unique ID */ static guint add_our_source(OurSource *source) { GSList *list; guint id = 1; /* Get an unused ID */ list = OurSources; while (list) { OurSource *s = (OurSource *)list->data; if (s->id == id) { id++; list = OurSources; /* Back to the start */ } else { list = g_slist_next(list); } } source->id = id; OurSources = g_slist_append(OurSources, source); return source->id; } /* Like g_timeout_add(), but uses the Windows event loop */ guint dp_g_timeout_add(guint interval, GSourceFunc function, gpointer data) { guint id; OurSource *source = g_new0(OurSource, 1); source->timeout_function = function; source->data = data; id = add_our_source(source); if (SetTimer(TopLevel, id, interval, NULL) == 0) { g_warning("Failed to create timer!"); } return id; } /* Like g_io_add_watch(), but uses the Windows event loop */ guint dp_g_io_add_watch(GIOChannel *channel, GIOCondition condition, GIOFunc func, gpointer user_data) { OurSource *source = g_new0(OurSource, 1); source->io_channel = channel; source->io_function = func; source->socket = g_io_channel_unix_get_fd(channel); source->data = user_data; WSAAsyncSelect(source->socket, TopLevel, MYWM_SOCKETDATA, (condition & G_IO_IN ? FD_READ | FD_CLOSE | FD_ACCEPT : 0) | (condition & G_IO_OUT ? FD_WRITE | FD_CONNECT : 0)); return add_our_source(source); } /* Like g_source_remove(), but uses the Windows event loop */ gboolean dp_g_source_remove(guint tag) { GSList *list; OurSource *s; for (list = OurSources; list; list = g_slist_next(list)) { s = (OurSource *)list->data; if (s->id == tag) { if (s->timeout_function) { if (KillTimer(TopLevel, s->id) == 0) { g_warning("Failed to kill timer!"); } } else { WSAAsyncSelect(s->socket, TopLevel, 0, 0); } OurSources = g_slist_remove(OurSources, s); g_free(s); break; } } return TRUE; } GtkWidget *gtk_button_new_with_mnemonic(const gchar *label) { return gtk_button_new_with_label(label); } /* We don't really handle styles, so these are just placeholder functions */ static GtkStyle statstyle; GtkStyle *gtk_style_new(void) { return &statstyle; } void gtk_widget_set_style(GtkWidget *widget, GtkStyle *style) { } GtkWidget *gtk_button_box_new(GtkOrientation orientation) { GtkWidget *bbox, *spacer; if (orientation == GTK_ORIENTATION_HORIZONTAL) { bbox = gtk_box_new(orientation, 0); } else { bbox = gtk_box_new(orientation, 5); } gtk_box_set_homogeneous(GTK_BOX(bbox), TRUE); if (orientation == GTK_ORIENTATION_HORIZONTAL) { /* Add a spacer so that all hboxes are right-aligned */ spacer = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(bbox), spacer, TRUE, TRUE, 0); } return bbox; } void gtk_box_set_spacing(GtkBox *box, gint spacing) { box->spacing = spacing; } /* * Win32 doesn't use a window manager, so this is just a placeholder. */ void gtk_window_set_type_hint(GtkWindow *window, GdkWindowTypeHint hint) { } void gtk_window_set_position(GtkWindow *window, GtkWindowPosition position) { } #define GTK_GET_FILE_LEN 800 gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title) { OPENFILENAMEW ofn; gunichar2 *title2, file[GTK_GET_FILE_LEN]; file[0] = 0; title2 = strtow32(title, -1); /* Convert from our (UTF-8) representation to Windows Unicode */ if (oldname) { glong nwritten; char *abspath = NULL; gunichar2 *oldname2; /* Make absolute if necessary; OpenFileName does not work with relative paths */ if (!g_path_is_absolute(oldname)) { abspath = g_canonicalize_filename(oldname, NULL); } oldname2 = g_utf8_to_utf16(abspath ? abspath : oldname, -1, NULL, &nwritten, NULL); if (oldname2) { memcpy(file, oldname2, MIN(GTK_GET_FILE_LEN, nwritten) * sizeof(gunichar2)); /* Ensure null terminated */ file[GTK_GET_FILE_LEN - 1] = 0; g_free(oldname2); } g_free(abspath); } ofn.lStructSize = sizeof(OPENFILENAMEW); ofn.hwndOwner = parent ? parent->hWnd : NULL; ofn.hInstance = NULL; ofn.lpstrFilter = NULL; ofn.lpstrCustomFilter = NULL; ofn.nFilterIndex = 1; ofn.lpstrFile = file; ofn.nMaxFile = GTK_GET_FILE_LEN; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; ofn.lpstrTitle = title2; ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_NOCHANGEDIR; ofn.lpstrDefExt = NULL; if (GetOpenFileNameW(&ofn)) { g_free(title2); return w32tostr(file, -1); } else { g_free(title2); return NULL; } } void gtk_widget_set_can_default(GtkWidget *wid, gboolean flag) { if (flag) { GTK_WIDGET_SET_FLAGS(wid, GTK_CAN_DEFAULT); } else { GTK_WIDGET_UNSET_FLAGS(wid, GTK_CAN_DEFAULT); } } #else /* CYGWIN */ #if GTK_MAJOR_VERSION == 2 GtkWidget *gtk_button_box_new(GtkOrientation orientation) { if (orientation == GTK_ORIENTATION_HORIZONTAL) { return gtk_hbutton_box_new(); } else { return gtk_vbutton_box_new(); } } GtkWidget *gtk_box_new(GtkOrientation orientation, gint spacing) { if (orientation == GTK_ORIENTATION_HORIZONTAL) { return gtk_hbox_new(FALSE, spacing); } else { return gtk_vbox_new(FALSE, spacing); } } GtkWidget *gtk_separator_new(GtkOrientation orientation) { if (orientation == GTK_ORIENTATION_HORIZONTAL) { return gtk_hseparator_new(); } else { return gtk_vseparator_new(); } } GtkWidget *gtk_paned_new(GtkOrientation orientation) { if (orientation == GTK_ORIENTATION_HORIZONTAL) { return gtk_hpaned_new(); } else { return gtk_vpaned_new(); } } #endif guint SetAccelerator(GtkWidget *labelparent, gchar *Text, GtkWidget *sendto, gchar *signal, GtkAccelGroup *accel_group, gboolean needalt) { #if GTK_MAJOR_VERSION == 2 guint AccelKey; AccelKey = gtk_label_parse_uline(GTK_LABEL(GTK_BIN(labelparent)->child), Text); if (sendto && AccelKey) { gtk_widget_add_accelerator(sendto, signal, accel_group, AccelKey, needalt ? GDK_MOD1_MASK : 0, GTK_ACCEL_VISIBLE); } return AccelKey; #else gtk_label_set_text_with_mnemonic( GTK_LABEL(gtk_bin_get_child(GTK_BIN(labelparent))), Text); if (sendto) { gtk_label_set_mnemonic_widget( GTK_LABEL(gtk_bin_get_child(GTK_BIN(labelparent))), sendto); } return 0; #endif } GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg) { GtkWidget *textview, *scrollwin, *frame; textview = gtk_text_view_new(); frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(scrollwin), textview); gtk_container_add(GTK_CONTAINER(frame), scrollwin); *pack_widg = frame; return textview; } void TextViewAppend(GtkTextView *textview, const gchar *text, const gchar *tagname, gboolean scroll) { GtkTextBuffer *buffer; GtkTextIter iter; GtkTextMark *insert; buffer = gtk_text_view_get_buffer(textview); gtk_text_buffer_get_end_iter(buffer, &iter); gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, text, -1, tagname, NULL); if (scroll) { gtk_text_buffer_place_cursor(buffer, &iter); insert = gtk_text_buffer_get_mark(buffer, "insert"); gtk_text_view_scroll_mark_onscreen(textview, insert); } } void TextViewClear(GtkTextView *textview) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(textview); gtk_text_buffer_set_text(buffer, "", -1); } static void DestroyGtkMessageBox(GtkWidget *widget, gpointer data) { gtk_main_quit(); } static void GtkMessageBoxCallback(GtkWidget *widget, gpointer data) { gint *retval; GtkWidget *dialog; dialog = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); retval = (gint *)g_object_get_data(G_OBJECT(widget), "retval"); if (retval) *retval = GPOINTER_TO_INT(data); gtk_widget_destroy(dialog); } gint OldGtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, gint Options) { GtkWidget *dialog, *button, *label, *vbox, *hbbox, *hsep; GtkAccelGroup *accel_group; gint i; static gint retval; gboolean imm_return; const gchar *ButtonData[MB_MAX] = { N_("_OK"), N_("_Cancel"), N_("_Yes"), N_("_No") }; imm_return = Options & MB_IMMRETURN; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); if (parent) gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent)); if (!imm_return) { g_signal_connect(G_OBJECT(dialog), "destroy", G_CALLBACK(DestroyGtkMessageBox), NULL); } if (Title) gtk_window_set_title(GTK_WINDOW(dialog), Title); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); if (Text) { label = gtk_label_new(Text); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); } hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); retval = MB_CANCEL; hbbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL); for (i = 0; i < MB_MAX; i++) { if (Options & (1 << i)) { button = gtk_button_new_with_mnemonic(_(ButtonData[i])); if (!imm_return) { g_object_set_data(G_OBJECT(button), "retval", &retval); } g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(GtkMessageBoxCallback), GINT_TO_POINTER(1 << i)); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); } } gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); if (!imm_return) gtk_main(); return retval; } gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options) { GtkWidget *dialog; gint retval; GtkButtonsType buttons = GTK_BUTTONS_NONE; if (Options & MB_IMMRETURN || !parent) { return OldGtkMessageBox(parent, Text, Title, Options); } if (Options & MB_CANCEL) buttons = GTK_BUTTONS_OK_CANCEL; else if (Options & MB_OK) buttons = GTK_BUTTONS_OK; else if (Options & MB_YESNO) buttons = GTK_BUTTONS_YES_NO; dialog = gtk_message_dialog_new(GTK_WINDOW(parent), GTK_DIALOG_MODAL, type, buttons, "%s", Text); if (Title) gtk_window_set_title(GTK_WINDOW(dialog), Title); retval = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return retval; } void DisplayHTML(GtkWidget *parent, const gchar *bin, const gchar *target) { #ifdef APPLE mac_open_url(target); #elif defined(HAVE_FORK) char *args[3]; pid_t pid; int status; if (target && target[0] && bin && bin[0]) { args[0] = (char *)bin; args[1] = (char *)target; args[2] = NULL; /* Fork twice so that the spawned process gets init as its parent */ pid = fork(); if (pid > 0) { wait(&status); } else if (pid == 0) { pid = fork(); if (pid == 0) { execv(bin, args); g_print("dopewars: cannot execute %s\n", bin); _exit(EXIT_FAILURE); } else { _exit(EXIT_SUCCESS); } } } #endif } GtkWidget *gtk_url_new(const gchar *text, const gchar *target, const gchar *bin) { GtkWidget *button; button = gtk_link_button_new(text); gtk_link_button_set_uri(GTK_LINK_BUTTON(button), target); return button; } gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title) { GtkWidget *dialog; GtkFileChooser *chooser; gint res; gchar *ret; dialog = gtk_file_chooser_dialog_new( title, GTK_WINDOW(parent), GTK_FILE_CHOOSER_ACTION_OPEN, _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Select"), GTK_RESPONSE_ACCEPT, NULL); chooser = GTK_FILE_CHOOSER(dialog); gtk_file_chooser_set_filename(chooser, oldname); res = gtk_dialog_run(GTK_DIALOG(dialog)); ret = NULL; if (res == GTK_RESPONSE_ACCEPT) { ret = gtk_file_chooser_get_filename(chooser); } gtk_widget_destroy(dialog); return ret; } #endif /* CYGWIN */ /* Make a new GtkLabel, with the text possibly bold */ GtkWidget *make_bold_label(const char *text, gboolean bold) { #ifdef CYGWIN /* We don't support bold text on Windows yet */ return gtk_label_new(text); #else if (bold) { GtkWidget *label = gtk_label_new(NULL); gchar *markup = g_markup_printf_escaped( "%s", text); gtk_label_set_markup(GTK_LABEL(label), markup); g_free(markup); return label; } else { return gtk_label_new(text); } #endif } #if !CYGWIN && \ (GTK_MAJOR_VERSION > 3 || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION >= 4)) /* GtkGrid does not take a size, unlike GtkTable */ GtkWidget *dp_gtk_grid_new(guint rows, guint cols, gboolean homogeneous) { GtkWidget *grid = gtk_grid_new(); if (homogeneous) { gtk_grid_set_row_homogeneous(GTK_GRID(grid), TRUE); gtk_grid_set_column_homogeneous(GTK_GRID(grid), TRUE); } return grid; } void dp_gtk_grid_attach(GtkGrid *grid, GtkWidget *child, gint left, gint top, gint width, gint height, gboolean expand) { gtk_grid_attach(grid, child, left, top, width, height); if (expand) { gtk_widget_set_hexpand(child, TRUE); } } #else /* Implementation for older GTK or Win32, using GtkTable */ GtkWidget *dp_gtk_grid_new(guint rows, guint columns, gboolean homogeneous) { GtkWidget *table = gtk_table_new(rows, columns, homogeneous); return table; } void dp_gtk_grid_attach(GtkGrid *grid, GtkWidget *child, gint left, gint top, gint width, gint height, gboolean expand) { gtk_table_attach(grid, child, left, left + width, top, top + height, expand ? (GTK_EXPAND | GTK_FILL) : GTK_SHRINK, expand ? (GTK_EXPAND | GTK_FILL) : GTK_SHRINK, 0, 0); } #endif #if !CYGWIN && \ (GTK_MAJOR_VERSION > 3 || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION >= 2)) void set_label_alignment(GtkWidget *widget, gfloat xalign, gfloat yalign) { gtk_label_set_xalign(GTK_LABEL(widget), xalign); gtk_label_set_yalign(GTK_LABEL(widget), yalign); } #else void set_label_alignment(GtkWidget *widget, gfloat xalign, gfloat yalign) { gtk_misc_set_alignment(GTK_MISC(widget), xalign, yalign); } #endif #if CYGWIN void TextViewAppend(GtkTextView *textview, const gchar *text, const gchar *tagname, gboolean scroll) { gint editpos; editpos = gtk_text_get_length(GTK_TEXT(textview)); gtk_editable_insert_text(GTK_EDITABLE(textview), text, strlen(text), &editpos); #ifdef CYGWIN gtk_text_view_set_format(textview, tagname, myw32strlen(text), editpos); #endif if (scroll) { gtk_editable_set_position(GTK_EDITABLE(textview), editpos); } } void TextViewClear(GtkTextView *textview) { gtk_editable_delete_text(GTK_EDITABLE(textview), 0, -1); } #endif dopewars-1.6.2/src/gtkport/Makefile.in000644 000765 000024 00000050451 14256243572 017620 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = src/gtkport ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libgtkport_a_AR = $(AR) $(ARFLAGS) libgtkport_a_LIBADD = am_libgtkport_a_OBJECTS = gtkport.$(OBJEXT) unicodewrap.$(OBJEXT) \ treeview.$(OBJEXT) itemfactory.$(OBJEXT) libgtkport_a_OBJECTS = $(am_libgtkport_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/auxbuild/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/gtkport.Po \ ./$(DEPDIR)/itemfactory.Po ./$(DEPDIR)/treeview.Po \ ./$(DEPDIR)/unicodewrap.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libgtkport_a_SOURCES) DIST_SOURCES = $(libgtkport_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/auxbuild/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LIBRARIES = libgtkport.a libgtkport_a_SOURCES = gtkport.c gtkport.h gtkenums.h \ unicodewrap.c unicodewrap.h treeview.h treeview.c \ itemfactory.c itemfactory.h gtktypes.h AM_CPPFLAGS = -I${srcdir} -I$(top_srcdir)/src @GTK_CFLAGS@ @GLIB_CFLAGS@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/gtkport/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/gtkport/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libgtkport.a: $(libgtkport_a_OBJECTS) $(libgtkport_a_DEPENDENCIES) $(EXTRA_libgtkport_a_DEPENDENCIES) $(AM_V_at)-rm -f libgtkport.a $(AM_V_AR)$(libgtkport_a_AR) libgtkport.a $(libgtkport_a_OBJECTS) $(libgtkport_a_LIBADD) $(AM_V_at)$(RANLIB) libgtkport.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtkport.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/itemfactory.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/treeview.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicodewrap.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/gtkport.Po -rm -f ./$(DEPDIR)/itemfactory.Po -rm -f ./$(DEPDIR)/treeview.Po -rm -f ./$(DEPDIR)/unicodewrap.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/gtkport.Po -rm -f ./$(DEPDIR)/itemfactory.Po -rm -f ./$(DEPDIR)/treeview.Po -rm -f ./$(DEPDIR)/unicodewrap.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: dopewars-1.6.2/src/cursesport/cursesport.c000644 000765 000024 00000016372 14256242752 020652 0ustar00benstaff000000 000000 /************************************************************************ * cursesport.c Portability functions to enable curses applications * * to be built on Win32 systems * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "cursesport.h" #include "dopewars.h" #include #ifdef CYGWIN /* Code for native Win32 build under Cygwin */ int COLS, LINES; static int Width, Depth; static CHAR_INFO RealScreen[25][80], VirtualScreen[25][80]; static HANDLE hOut, hIn; static int CurAttr = 0; static int CurX, CurY; static WORD Attr[10]; void refresh(void) { int y; COORD size, offset; SMALL_RECT screenpos; move(CurY, CurX); for (y = 0; y < Depth; y++) { if (memcmp(&RealScreen[y][0], &VirtualScreen[y][0], sizeof(CHAR_INFO) * Width) != 0) { memcpy(&RealScreen[y][0], &VirtualScreen[y][0], Width * sizeof(CHAR_INFO)); size.X = Width; size.Y = 1; offset.X = offset.Y = 0; screenpos.Left = 0; screenpos.Top = y; screenpos.Right = Width - 1; screenpos.Bottom = y; WriteConsoleOutputW(hOut, &VirtualScreen[y][0], size, offset, &screenpos); } } } static HANDLE WINAPI GetConHandle(TCHAR *pszName) { SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(sa); sa.lpSecurityDescriptor = NULL; sa.bInheritHandle = TRUE; return CreateFile(pszName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, &sa, OPEN_EXISTING, (DWORD)0, (HANDLE)0); } SCREEN *newterm(void *a, void *b, void *c) { int i; Width = COLS = 80; Depth = LINES = 25; CurAttr = 1 << 16; CurX = 0; CurY = 0; for (i = 0; i < 10; i++) Attr[i] = FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN; hOut = GetConHandle("CONOUT$"); hIn = GetConHandle("CONIN$"); SetConsoleMode(hIn, 0); SetConsoleMode(hOut, 0); return NULL; } void start_color(void) { } void init_pair(int index, WORD fg, WORD bg) { if (index >= 0 && index < 10) { Attr[index] = 0; switch (fg) { case COLOR_MAGENTA: Attr[index] |= (FOREGROUND_RED + FOREGROUND_BLUE); break; case COLOR_BLUE: Attr[index] |= FOREGROUND_BLUE; break; case COLOR_RED: Attr[index] |= FOREGROUND_RED; break; case COLOR_WHITE: Attr[index] |= (FOREGROUND_RED + FOREGROUND_BLUE + FOREGROUND_GREEN); break; } switch (bg) { case COLOR_MAGENTA: Attr[index] |= (BACKGROUND_RED + BACKGROUND_BLUE); break; case COLOR_BLUE: Attr[index] |= BACKGROUND_BLUE; break; case COLOR_RED: Attr[index] |= BACKGROUND_RED; break; case COLOR_WHITE: Attr[index] |= (BACKGROUND_RED + BACKGROUND_BLUE + BACKGROUND_GREEN); break; } } } void cbreak(void) { } void noecho(void) { } void nodelay(void *a, char b) { } void keypad(void *a, char b) { } void curs_set(BOOL visible) { CONSOLE_CURSOR_INFO ConCurInfo; ConCurInfo.dwSize = 10; ConCurInfo.bVisible = visible; SetConsoleCursorInfo(hOut, &ConCurInfo); } void endwin(void) { CurAttr = 0; refresh(); curs_set(1); } void move(int y, int x) { COORD coord; if (x >= Width) { x = 0; } if (y >= Depth) { y = 0; } CurX = x; CurY = y; coord.X = x; coord.Y = y; SetConsoleCursorPosition(hOut, coord); } void attrset(int newAttr) { CurAttr = newAttr; } void addstr(const char *str) { int i; for (i = 0; i < strlen(str); i++) addch((guchar)str[i]); } void addch(unsigned ch_and_attr) { int attr; unsigned int ch; gunichar gch; /* Keep track of a UTF-8-encoded character */ static char utf8_str[4]; static int utf8_width = 0; static int utf8_pos = 0; ch = ch_and_attr & 0xFFFF; if (ch > 0xFF || ch <= 0x7F) { /* Already Unicode (e.g. box-drawing character), or ASCII */ VirtualScreen[CurY][CurX].Char.UnicodeChar = ch; } else if (ch & 64) { /* UTF-8 encoded; first byte (get the width) */ utf8_width = ch & 16 ? 4 : ch & 32 ? 3 : 2; utf8_pos = 0; utf8_str[utf8_pos++] = ch; return; } else { /* UTF-8 encoded; intermediate or last byte */ utf8_str[utf8_pos++] = ch; if (utf8_pos < utf8_width) return; gch = g_utf8_get_char(utf8_str); /* Windows console can only handle 2-byte Unicode */ VirtualScreen[CurY][CurX].Char.UnicodeChar = gch > 0xFFFF ? '?' : gch; } attr = ch_and_attr >> 16; if (attr > 0) VirtualScreen[CurY][CurX].Attributes = Attr[attr]; else VirtualScreen[CurY][CurX].Attributes = Attr[CurAttr >> 16]; if (++CurX >= Width) { CurX = 0; if (++CurY >= Depth) CurY = 0; } } void mvaddstr(int y, int x, const char *str) { move(y, x); addstr(str); } void mvaddch(int y, int x, int ch) { move(y, x); addch(ch); } /* * Waits for the user to press a key. */ gunichar bgetch(void) { DWORD NumRead; WCHAR Buffer[10]; refresh(); ReadConsoleW(hIn, Buffer, 1, &NumRead, NULL); return (int)(Buffer[0]); } void standout(void) { } void standend(void) { } #else /* Code for Unix build */ /* * Calls the curses getch() function; if the key pressed is Ctrl-L * then automatically clears and redraws the screen, otherwise just * passes the key back to the calling routine. */ gunichar bgetch() { int c; c = getch(); while (c == '\f') { wrefresh(curscr); c = getch(); } /* Ignore special keys (e.g arrow keys) so we don't confuse them with * Unicode characters */ if (c > 255) { return 0; } /* In UTF-8 locales we may need to read multiple bytes to assemble a complete Unicode character */ if (LocaleIsUTF8 && (c & 192) == 192) { /* First UTF-8 byte */ char utf8_str[10]; int i, utf8_width = c & 16 ? 4 : c & 32 ? 3 : 2; utf8_str[0] = (guchar)c; for (i = 1; i < utf8_width; ++i) { utf8_str[i] = (guchar)getch(); } return g_utf8_get_char(utf8_str); } return c; } #endif /* CYGWIN */ dopewars-1.6.2/src/cursesport/Makefile.am000644 000765 000024 00000000246 14256242752 020322 0ustar00benstaff000000 000000 noinst_LIBRARIES = libcursesport.a libcursesport_a_SOURCES = cursesport.c cursesport.h AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.6.2/src/cursesport/cursesport.h000644 000765 000024 00000007144 14256242752 020654 0ustar00benstaff000000 000000 /************************************************************************ * cursesport.h Portability functions to enable curses applications * * to be built on Win32 systems * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __CURSESPORT_H__ #define __CURSESPORT_H__ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef CYGWIN /* Definitions for native Win32 build */ #include #include #include #include #include extern int COLS, LINES; #define COLOR_MAGENTA 1 #define COLOR_BLACK 2 #define COLOR_WHITE 3 #define COLOR_BLUE 4 #define COLOR_RED 5 #define COLOR_PAIR(i) ((i) << 16) #define ACS_VLINE 0x2502 #define ACS_ULCORNER 0x250c #define ACS_HLINE 0x2500 #define ACS_URCORNER 0x2510 #define ACS_TTEE 0x252c #define ACS_LLCORNER 0x2514 #define ACS_LRCORNER 0x2518 #define ACS_BTEE 0x2534 #define ACS_LTEE 0x251c #define ACS_RTEE 0x2524 typedef int SCREEN; #define stdscr 0 #define curscr 0 #define KEY_ENTER 13 #define KEY_BACKSPACE 8 #define A_BOLD 0 SCREEN *newterm(void *, void *, void *); void refresh(void); #define wrefresh(win) refresh() void start_color(void); void init_pair(int index, WORD fg, WORD bg); void cbreak(void); void noecho(void); void nodelay(void *, char); void keypad(void *, char); void curs_set(BOOL visible); void endwin(void); void move(int y, int x); void attrset(int newAttr); void addstr(const char *str); void addch(unsigned ch); void mvaddstr(int x, int y, const char *str); void mvaddch(int x, int y, int ch); #define erase() clear_screen() void standout(void); void standend(void); void endwin(void); #else /* Definitions for Unix build */ #include /* Include a suitable curses-type library */ #if HAVE_LIBNCURSES || defined(CURSES_HAVE_NCURSES_H) #include #elif HAVE_LIBCURSES || defined(CURSES_HAVE_CURSES_H) #include #elif defined(CURSES_HAVE_NCURSES_NCURSES_H) #include #elif defined(CURSES_HAVE_NCURSES_CURSES_H) #include #elif HAVE_LIBCUR_COLR #include #endif #endif /* CYGWIN */ gunichar bgetch(void); #endif /* __CURSESPORT_H__ */ dopewars-1.6.2/src/cursesport/Makefile.in000644 000765 000024 00000047135 14256243572 020344 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = src/cursesport ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libcursesport_a_AR = $(AR) $(ARFLAGS) libcursesport_a_LIBADD = am_libcursesport_a_OBJECTS = cursesport.$(OBJEXT) libcursesport_a_OBJECTS = $(am_libcursesport_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/auxbuild/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/cursesport.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcursesport_a_SOURCES) DIST_SOURCES = $(libcursesport_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/auxbuild/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LIBRARIES = libcursesport.a libcursesport_a_SOURCES = cursesport.c cursesport.h AM_CPPFLAGS = -I${srcdir} -I$(top_srcdir)/src @GLIB_CFLAGS@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/cursesport/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/cursesport/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcursesport.a: $(libcursesport_a_OBJECTS) $(libcursesport_a_DEPENDENCIES) $(EXTRA_libcursesport_a_DEPENDENCIES) $(AM_V_at)-rm -f libcursesport.a $(AM_V_AR)$(libcursesport_a_AR) libcursesport.a $(libcursesport_a_OBJECTS) $(libcursesport_a_LIBADD) $(AM_V_at)$(RANLIB) libcursesport.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cursesport.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/cursesport.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/cursesport.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: dopewars-1.6.2/src/gui_client/optdialog.c000644 000765 000024 00000105711 14256242752 020330 0ustar00benstaff000000 000000 /************************************************************************ * optdialog.c Configuration file editing dialog * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For strcmp */ #include /* For atoi */ #include "configfile.h" /* For UpdateConfigFile etc. */ #include "dopewars.h" /* For struct GLOBALS etc. */ #include "gtk_client.h" /* For mainwindow etc. */ #include "nls.h" /* For _ function */ #include "sound.h" /* For SoundPlay */ #include "gtkport/gtkport.h" /* For gtk_ functions */ struct ConfigWidget { GtkWidget *widget; gint globind; int maxindex; gchar **data; }; static GSList *configlist = NULL, *clists = NULL; struct ConfigMembers { gchar *label, *name; }; static void FreeConfigWidgets(void) { while (configlist) { int i; struct ConfigWidget *cwid = (struct ConfigWidget *)configlist->data; for (i = 0; i < cwid->maxindex; i++) { g_free(cwid->data[i]); } g_free(cwid->data); configlist = g_slist_remove(configlist, cwid); } } static void UpdateAllLists(void) { GSList *listpt; for (listpt = clists; listpt; listpt = g_slist_next(listpt)) { GtkTreeView *tv = GTK_TREE_VIEW(listpt->data); GtkTreeSelection *treesel = gtk_tree_view_get_selection(tv); /* Force unselection, which should trigger *_sel_changed function to copy widget data into configuration */ gtk_tree_selection_unselect_all(treesel); } } static void SaveConfigWidget(struct GLOBALS *gvar, struct ConfigWidget *cwid, int structind) { gboolean changed = FALSE; if (gvar->BoolVal) { gboolean *boolpt, newset; boolpt = GetGlobalBoolean(cwid->globind, structind); if (cwid->maxindex) { newset = (cwid->data[structind - 1] != NULL); } else { newset = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cwid->widget)); } changed = (*boolpt != newset); *boolpt = newset; } else { gchar *text; if (cwid->maxindex) { text = cwid->data[structind - 1]; } else { text = gtk_editable_get_chars(GTK_EDITABLE(cwid->widget), 0, -1); } if (gvar->IntVal) { int *intpt, newset; intpt = GetGlobalInt(cwid->globind, structind); newset = atoi(text); if (newset < gvar->MinVal) { newset = gvar->MinVal; } if (gvar->MaxVal > gvar->MinVal && newset > gvar->MaxVal) { newset = gvar->MaxVal; } changed = (*intpt != newset); *intpt = newset; } else if (gvar->PriceVal) { price_t *pricept, newset; pricept = GetGlobalPrice(cwid->globind, structind); newset = strtoprice(text); changed = (*pricept != newset); *pricept = newset; } else if (gvar->StringVal) { gchar **strpt; strpt = GetGlobalString(cwid->globind, structind); changed = (strcmp(*strpt, text) != 0); AssignName(strpt, text); } if (!cwid->maxindex) { g_free(text); } } gvar->Modified |= changed; } static void ResizeList(struct GLOBALS *gvar, int newmax) { int i; for (i = 0; i < NUMGLOB; i++) { if (Globals[i].StructListPt == gvar->StructListPt && Globals[i].ResizeFunc) { Globals[i].Modified = TRUE; (Globals[i].ResizeFunc) (newmax); return; } } g_assert(0); } static void SaveConfigWidgets(void) { GSList *listpt; UpdateAllLists(); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && gvar->NameStruct[0]) { int i; if (cwid->maxindex != *gvar->MaxIndex) { ResizeList(gvar, cwid->maxindex); } for (i = 1; i <= *gvar->MaxIndex; i++) { SaveConfigWidget(gvar, cwid, i); } } else { SaveConfigWidget(gvar, cwid, 0); } } } static void AddConfigWidget(GtkWidget *widget, int ind) { struct ConfigWidget *cwid = g_new(struct ConfigWidget, 1); struct GLOBALS *gvar; cwid->widget = widget; cwid->globind = ind; cwid->data = NULL; cwid->maxindex = 0; gvar = &Globals[ind]; if (gvar->MaxIndex) { int i; cwid->maxindex = *gvar->MaxIndex; cwid->data = g_new(gchar *, *gvar->MaxIndex); for (i = 1; i <= *gvar->MaxIndex; i++) { if (gvar->StringVal) { cwid->data[i - 1] = g_strdup(*GetGlobalString(ind, i)); } else if (gvar->IntVal) { cwid->data[i - 1] = g_strdup_printf("%d", *GetGlobalInt(ind, i)); } else if (gvar->PriceVal) { cwid->data[i - 1] = pricetostr(*GetGlobalPrice(ind, i)); } else if (gvar->BoolVal) { if (*GetGlobalBoolean(ind, i)) { cwid->data[i - 1] = g_strdup("1"); } else { cwid->data[i - 1] = NULL; } } } } configlist = g_slist_append(configlist, cwid); } static GtkWidget *NewConfigCheck(gchar *name, gchar *label) { GtkWidget *check; int ind; struct GLOBALS *gvar; ind = GetGlobalIndex(name, NULL); g_assert(ind >= 0); gvar = &Globals[ind]; g_assert(gvar->BoolVal); check = gtk_check_button_new_with_label(label); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), *gvar->BoolVal); AddConfigWidget(check, ind); return check; } static GtkWidget *NewConfigEntry(gchar *name) { GtkWidget *entry; gchar *tmpstr; int ind; struct GLOBALS *gvar; ind = GetGlobalIndex(name, NULL); g_assert(ind >= 0); entry = gtk_entry_new(); gvar = &Globals[ind]; if (gvar->StringVal) { gtk_entry_set_text(GTK_ENTRY(entry), *gvar->StringVal); } else if (gvar->IntVal) { if (gvar->MaxVal > gvar->MinVal) { GtkAdjustment *spin_adj; gtk_widget_destroy(entry); spin_adj = (GtkAdjustment *)gtk_adjustment_new(*gvar->IntVal, gvar->MinVal, gvar->MaxVal, 1.0, 10.0, 0.0); entry = gtk_spin_button_new(spin_adj, 1.0, 0); } else { tmpstr = g_strdup_printf("%d", *gvar->IntVal); gtk_entry_set_text(GTK_ENTRY(entry), tmpstr); g_free(tmpstr); } } else if (gvar->PriceVal) { tmpstr = pricetostr(*gvar->PriceVal); gtk_entry_set_text(GTK_ENTRY(entry), tmpstr); g_free(tmpstr); } AddConfigWidget(entry, ind); return entry; } static void AddStructConfig(GtkWidget *grid, int row, gchar *structname, struct ConfigMembers *member) { int ind; struct GLOBALS *gvar; ind = GetGlobalIndex(structname, member->name); g_assert(ind >= 0); gvar = &Globals[ind]; if (gvar->BoolVal) { GtkWidget *check; check = gtk_check_button_new_with_label(_(member->label)); dp_gtk_grid_attach(GTK_GRID(grid), check, 0, row, 2, 1, TRUE); AddConfigWidget(check, ind); } else { GtkWidget *label, *entry; label = gtk_label_new(_(member->label)); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, row, 1, 1, FALSE); if (gvar->IntVal && gvar->MaxVal > gvar->MinVal) { GtkAdjustment *spin_adj = (GtkAdjustment *) gtk_adjustment_new(gvar->MinVal, gvar->MinVal, gvar->MaxVal, 1.0, 10.0, 0.0); entry = gtk_spin_button_new(spin_adj, 1.0, 0); } else { entry = gtk_entry_new(); } dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, row, 1, 1, TRUE); AddConfigWidget(entry, ind); } } static void swap_rows(GtkTreeView *tv, gint selrow, gint swaprow, gchar *structname) { GSList *listpt; GtkTreeIter seliter, swapiter; GtkTreeModel *model = gtk_tree_view_get_model(tv); GtkTreeSelection *treesel = gtk_tree_view_get_selection(tv); g_assert(gtk_tree_model_iter_nth_child(model, &seliter, NULL, selrow)); g_assert(gtk_tree_model_iter_nth_child(model, &swapiter, NULL, swaprow)); gtk_tree_selection_unselect_iter(treesel, &seliter); gtk_list_store_swap(GTK_LIST_STORE(model), &seliter, &swapiter); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { gchar *tmp = cwid->data[selrow]; cwid->data[selrow] = cwid->data[swaprow]; cwid->data[swaprow] = tmp; } } gtk_tree_selection_select_iter(treesel, &seliter); } /* Return the index of the currently selected row, or -1 if none is selected. This works only for lists (not trees) with GTK_SELECTION_SINGLE mode */ static int get_tree_selection_row_index(GtkTreeSelection *treesel, GtkTreeModel **model) { int row = -1; GList *selrows = gtk_tree_selection_get_selected_rows(treesel, model); if (selrows) { GtkTreePath *path = selrows->data; gint depth; gint *inds = gtk_tree_path_get_indices_with_depth(path, &depth); g_assert(selrows->next == NULL); g_assert(depth == 1); row = inds[0]; } g_list_free_full(selrows, (GDestroyNotify)gtk_tree_path_free); return row; } static void list_delete(GtkWidget *widget, gchar *structname) { GtkTreeView *tv; GtkTreeSelection *treesel; GtkTreeModel *model; int minlistlength, nrows, row; tv = GTK_TREE_VIEW(g_object_get_data(G_OBJECT(widget), "treeview")); g_assert(tv); treesel = gtk_tree_view_get_selection(tv); row = get_tree_selection_row_index(treesel, &model); minlistlength = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(model), "minlistlength")); nrows = gtk_tree_model_iter_n_children(model, NULL); if (nrows > minlistlength && row >= 0) { GtkTreeIter iter; GSList *listpt; gboolean valid; /* Prevent selection changed from reading deleted entry */ g_object_set_data(G_OBJECT(model), "oldsel", GINT_TO_POINTER(-1)); g_assert(gtk_tree_model_iter_nth_child(model, &iter, NULL, row)); gtk_tree_selection_unselect_iter(treesel, &iter); valid = gtk_list_store_remove(GTK_LIST_STORE(model), &iter); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { int i; cwid->maxindex--; g_free(cwid->data[row]); for (i = row; i < cwid->maxindex; i++) { cwid->data[i] = cwid->data[i + 1]; } cwid->data = g_realloc(cwid->data, sizeof(gchar *) * cwid->maxindex); } } if (valid) { gtk_tree_selection_select_iter(treesel, &iter); } } } static void list_new(GtkWidget *widget, gchar *structname) { GtkTreeView *tv; GtkListStore *store; GtkTreeSelection *treesel; GtkTreeIter iter; int row; GSList *listpt; gchar *newname; tv = GTK_TREE_VIEW(g_object_get_data(G_OBJECT(widget), "treeview")); g_assert(tv); treesel = gtk_tree_view_get_selection(tv); store = GTK_LIST_STORE(gtk_tree_view_get_model(tv)); newname = g_strdup_printf(_("New %s"), structname); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, newname, -1); row = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL) - 1; for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { cwid->maxindex++; g_assert(cwid->maxindex == row + 1); cwid->data = g_realloc(cwid->data, sizeof(gchar *) * cwid->maxindex); if (strcmp(gvar->Name, "Name") == 0) { cwid->data[row] = g_strdup(newname); } else { cwid->data[row] = g_strdup(""); } } } g_free(newname); gtk_tree_selection_select_iter(treesel, &iter); } static void list_up(GtkWidget *widget, gchar *structname) { GtkTreeView *tv; GtkTreeSelection *treesel; int row; tv = GTK_TREE_VIEW(g_object_get_data(G_OBJECT(widget), "treeview")); g_assert(tv); treesel = gtk_tree_view_get_selection(tv); row = get_tree_selection_row_index(treesel, NULL); if (row > 0) { swap_rows(tv, row, row - 1, structname); } } static void list_down(GtkWidget *widget, gchar *structname) { GtkTreeView *tv; GtkTreeSelection *treesel; GtkTreeModel *model; int row, nrows; tv = GTK_TREE_VIEW(g_object_get_data(G_OBJECT(widget), "treeview")); g_assert(tv); treesel = gtk_tree_view_get_selection(tv); row = get_tree_selection_row_index(treesel, &model); nrows = gtk_tree_model_iter_n_children(model, NULL); if (row < nrows - 1 && row >= 0) { swap_rows(tv, row, row + 1, structname); } } static void list_sel_changed(GtkTreeSelection *treesel, gpointer data) { GtkTreeModel *model; GtkWidget *delbut, *upbut, *downbut; int minlistlength, nrows, row, oldsel; GSList *listpt; gchar *structname = data; row = get_tree_selection_row_index(treesel, &model); nrows = gtk_tree_model_iter_n_children(model, NULL); delbut = GTK_WIDGET(g_object_get_data(G_OBJECT(model), "delete")); upbut = GTK_WIDGET(g_object_get_data(G_OBJECT(model), "up")); downbut = GTK_WIDGET(g_object_get_data(G_OBJECT(model), "down")); oldsel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(model), "oldsel")); g_assert(delbut && upbut && downbut); minlistlength = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(model), "minlistlength")); gtk_widget_set_sensitive(delbut, nrows > minlistlength); gtk_widget_set_sensitive(upbut, row > 0); gtk_widget_set_sensitive(downbut, row < nrows - 1); /* Store any edited data from old-selected row */ if (oldsel >= 0) { for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *conf = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[conf->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { g_free(conf->data[oldsel]); conf->data[oldsel] = NULL; if (gvar->BoolVal) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(conf->widget))) { conf->data[oldsel] = g_strdup("1"); } } else { conf->data[oldsel] = gtk_editable_get_chars( GTK_EDITABLE(conf->widget), 0, -1); gtk_entry_set_text(GTK_ENTRY(conf->widget), ""); } if (strcmp(gvar->Name, "Name") == 0) { GtkTreeIter ositer; g_assert(gtk_tree_model_iter_nth_child(model, &ositer, NULL, oldsel)); gtk_list_store_set(GTK_LIST_STORE(model), &ositer, 0, conf->data[oldsel], -1); } } } } g_object_set_data(G_OBJECT(model), "oldsel", GINT_TO_POINTER(row)); /* Update widgets with selected row */ if (row >= 0) { for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *conf = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[conf->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { if (gvar->BoolVal) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(conf->widget), conf->data[row] != NULL); } else { gtk_entry_set_text(GTK_ENTRY(conf->widget), conf->data[row]); } } } } } static void sound_sel_changed(GtkTreeSelection *treesel, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkWidget *entry; int row, oldsel, globind; row = get_tree_selection_row_index(treesel, &model); oldsel = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(model), "oldsel")); entry = GTK_WIDGET(g_object_get_data(G_OBJECT(model), "entry")); /* Store any edited data from old-selected row */ if (oldsel >= 0) { gchar *text, **oldtext; g_assert(gtk_tree_model_iter_nth_child(model, &iter, NULL, oldsel)); gtk_tree_model_get(model, &iter, 2, &globind, -1); g_assert(globind >=0 && globind < NUMGLOB); text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); oldtext = GetGlobalString(globind, 0); g_assert(text && oldtext); if (strcmp(text, *oldtext) != 0) { AssignName(GetGlobalString(globind, 0), text); Globals[globind].Modified = TRUE; } gtk_entry_set_text(GTK_ENTRY(entry), ""); g_free(text); } g_object_set_data(G_OBJECT(model), "oldsel", GINT_TO_POINTER(row)); /* Update new selection */ if (row >= 0) { gchar **text; g_assert(gtk_tree_model_iter_nth_child(model, &iter, NULL, row)); gtk_tree_model_get(model, &iter, 2, &globind, -1); g_assert(globind >=0 && globind < NUMGLOB); text = GetGlobalString(globind, 0); gtk_entry_set_text(GTK_ENTRY(entry), *text); } } static void BrowseSound(GtkWidget *entry) { gchar *oldtext, *newtext; GtkWidget *dialog = gtk_widget_get_ancestor(entry, GTK_TYPE_WINDOW); oldtext = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); newtext = GtkGetFile(dialog, oldtext, _("Select sound file")); g_free(oldtext); if (newtext) { gtk_entry_set_text(GTK_ENTRY(entry), newtext); g_free(newtext); } } static void TestPlaySound(GtkWidget *entry) { gchar *text; gboolean sound_enabled; text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); sound_enabled = IsSoundEnabled(); SoundEnable(TRUE); SoundPlay(text); SoundEnable(sound_enabled); g_free(text); } static void OKCallback(GtkWidget *widget, GtkWidget *dialog) { GtkToggleButton *unicode_check; SaveConfigWidgets(); unicode_check = GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(dialog), "unicode_check")); UpdateConfigFile(NULL, gtk_toggle_button_get_active(unicode_check)); gtk_widget_destroy(dialog); } static gchar *GetHelpPage(const gchar *pagename) { gchar *root, *file; root = GetDocRoot(); file = g_strdup_printf("%shelp/%s.html", root, pagename); g_free(root); return file; } static void HelpCallback(GtkWidget *widget, GtkWidget *notebook) { const static gchar *pagehelp[] = { "general", "locations", "drugs", "guns", "cops", "server", "sounds" }; gint page = gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)); gchar *help; help = GetHelpPage(pagehelp[page]); DisplayHTML(widget, OurWebBrowser, help); g_free(help); } static void FinishOptDialog(GtkWidget *widget, gpointer data) { FreeConfigWidgets(); g_slist_free(clists); clists = NULL; } static GtkWidget *CreateList(gchar *structname, struct ConfigMembers *members) { GtkWidget *hbox, *vbox, *hbbox, *tv, *scrollwin, *button, *grid; GtkTreeSelection *treesel; GtkListStore *store; GtkCellRenderer *renderer; GtkTreeIter iter; int ind, minlistlength = 0; gint i, nummembers; struct GLOBALS *gvar; struct ConfigMembers namemember = { N_("Name"), "Name" }; ind = GetGlobalIndex(structname, "Name"); g_assert(ind >= 0); gvar = &Globals[ind]; g_assert(gvar->StringVal && gvar->MaxIndex); for (i = 0; i < NUMGLOB; i++) { if (Globals[i].StructListPt == gvar->StructListPt && Globals[i].ResizeFunc) { minlistlength = Globals[i].MinVal; } } nummembers = 0; while (members && members[nummembers].label) { nummembers++; } hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 10); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); tv = gtk_scrolled_tree_view_new(&scrollwin); store = gtk_list_store_new(1, G_TYPE_STRING); gtk_tree_view_set_model(GTK_TREE_VIEW(tv), GTK_TREE_MODEL(store)); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes( GTK_TREE_VIEW(tv), -1, structname, renderer, "text", 0, NULL); g_object_unref(store); gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(tv), FALSE); treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv)); g_signal_connect(G_OBJECT(treesel), "changed", G_CALLBACK(list_sel_changed), structname); gtk_tree_selection_set_mode(treesel, GTK_SELECTION_SINGLE); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID, GTK_SORT_ASCENDING); clists = g_slist_append(clists, tv); for (i = 1; i <= *gvar->MaxIndex; i++) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, *GetGlobalString(ind, i), -1); } gtk_box_pack_start(GTK_BOX(vbox), scrollwin, TRUE, TRUE, 0); hbbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_set_homogeneous(GTK_BOX(hbbox), TRUE); g_object_set_data(G_OBJECT(store), "oldsel", GINT_TO_POINTER(-1)); button = gtk_button_new_with_label(_("New")); g_object_set_data(G_OBJECT(button), "treeview", tv); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(list_new), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Delete")); gtk_widget_set_sensitive(button, FALSE); g_object_set_data(G_OBJECT(button), "treeview", tv); g_object_set_data(G_OBJECT(store), "delete", button); g_object_set_data(G_OBJECT(store), "minlistlength", GINT_TO_POINTER(minlistlength)); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(list_delete), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Up")); gtk_widget_set_sensitive(button, FALSE); g_object_set_data(G_OBJECT(button), "treeview", tv); g_object_set_data(G_OBJECT(store), "up", button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(list_up), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Down")); gtk_widget_set_sensitive(button, FALSE); g_object_set_data(G_OBJECT(button), "treeview", tv); g_object_set_data(G_OBJECT(store), "down", button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(list_down), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); grid = dp_gtk_grid_new(nummembers + 1, 2, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 5); gtk_grid_set_column_spacing(GTK_GRID(grid), 5); AddStructConfig(grid, 0, structname, &namemember); for (i = 0; i < nummembers; i++) { AddStructConfig(grid, i + 1, structname, &members[i]); } gtk_box_pack_start(GTK_BOX(hbox), grid, TRUE, TRUE, 0); return hbox; } static void FillSoundsList(GtkTreeView *tv) { GtkListStore *store; GtkTreeIter iter; gint i; /* Don't update the widget until we're done */ store = GTK_LIST_STORE(gtk_tree_view_get_model(tv)); g_object_ref(store); gtk_tree_view_set_model(tv, NULL); gtk_list_store_clear(store); for (i = 0; i < NUMGLOB; i++) { if (strlen(Globals[i].Name) > 7 && strncmp(Globals[i].Name, "Sounds.", 7) == 0) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, &Globals[i].Name[7], 1, _(Globals[i].Help), 2, i, -1); } } gtk_tree_view_set_model(tv, GTK_TREE_MODEL(store)); } void OptDialog(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *notebook, *label, *check, *entry, *grid; GtkWidget *hbox, *vbox, *vbox2, *hsep, *button, *hbbox, *tv; GtkWidget *scrollwin; GtkAccelGroup *accel_group; gchar *sound_titles[2]; GtkCellRenderer *renderer; GtkListStore *store; GtkTreeSelection *treesel; struct ConfigMembers locmembers[] = { { N_("Police presence"), "PolicePresence" }, { N_("Minimum no. of drugs"), "MinDrug" }, { N_("Maximum no. of drugs"), "MaxDrug" }, { NULL, NULL } }; struct ConfigMembers drugmembers[] = { { N_("Minimum normal price"), "MinPrice" }, { N_("Maximum normal price"), "MaxPrice" }, { N_("Can be specially cheap"), "Cheap" }, { N_("Cheap string"), "CheapStr" }, { N_("Can be specially expensive"), "Expensive" }, { NULL, NULL } }; struct ConfigMembers gunmembers[] = { { N_("Price"), "Price" }, { N_("Inventory space"), "Space" }, { N_("Damage"), "Damage" }, { NULL, NULL } }; struct ConfigMembers copmembers[] = { { N_("Name of one deputy"), "DeputyName" }, { N_("Name of several deputies"), "DeputiesName" }, { N_("Minimum no. of deputies"), "MinDeputies" }, { N_("Maximum no. of deputies"), "MaxDeputies" }, { N_("Cop armor"), "Armor" }, { N_("Deputy armor"), "DeputyArmor" }, { NULL, NULL } }; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_title(GTK_WINDOW(dialog), _("Options")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(MainWindow)); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); notebook = gtk_notebook_new(); grid = dp_gtk_grid_new(8, 3, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 5); gtk_grid_set_column_spacing(GTK_GRID(grid), 5); check = NewConfigCheck("Sanitized", _("Remove drug references")); dp_gtk_grid_attach(GTK_GRID(grid), check, 0, 0, 1, 1, FALSE); check = gtk_check_button_new_with_label(_("Unicode config file")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), IsConfigFileUTF8()); dp_gtk_grid_attach(GTK_GRID(grid), check, 1, 0, 2, 1, TRUE); g_object_set_data(G_OBJECT(dialog), "unicode_check", check); label = gtk_label_new(_("Game length (turns)")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1, FALSE); entry = NewConfigEntry("NumTurns"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 1, 2, 1, TRUE); label = gtk_label_new(_("Starting cash")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 2, 1, 1, FALSE); entry = NewConfigEntry("StartCash"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 2, 2, 1, TRUE); label = gtk_label_new(_("Starting debt")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 3, 1, 1, FALSE); entry = NewConfigEntry("StartDebt"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 3, 2, 1, TRUE); label = gtk_label_new(_("Currency symbol")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 4, 1, 1, FALSE); entry = NewConfigEntry("Currency.Symbol"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 4, 1, 1, TRUE); check = NewConfigCheck("Currency.Prefix", _("Symbol prefixes prices")); dp_gtk_grid_attach(GTK_GRID(grid), check, 2, 4, 1, 1, TRUE); label = gtk_label_new(_("Name of one bitch")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 5, 1, 1, FALSE); entry = NewConfigEntry("Names.Bitch"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 5, 2, 1, TRUE); label = gtk_label_new(_("Name of several bitches")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 6, 1, 1, FALSE); entry = NewConfigEntry("Names.Bitches"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 6, 2, 1, TRUE); #ifndef CYGWIN label = gtk_label_new(_("Web browser")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 7, 1, 1, FALSE); entry = NewConfigEntry("WebBrowser"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 7, 2, 1, TRUE); #endif gtk_container_set_border_width(GTK_CONTAINER(grid), 7); label = gtk_label_new(_("General")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), grid, label); hbox = CreateList("Location", locmembers); gtk_container_set_border_width(GTK_CONTAINER(hbox), 7); label = gtk_label_new(_("Locations")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 7); hbox = CreateList("Drug", drugmembers); gtk_box_pack_start(GTK_BOX(vbox2), hbox, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox2), hsep, FALSE, FALSE, 0); grid = dp_gtk_grid_new(2, 2, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 5); gtk_grid_set_column_spacing(GTK_GRID(grid), 5); label = gtk_label_new(_("Expensive string 1")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1, FALSE); entry = NewConfigEntry("Drugs.ExpensiveStr1"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 0, 1, 1, TRUE); label = gtk_label_new(_("Expensive string 2")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1, FALSE); entry = NewConfigEntry("Drugs.ExpensiveStr2"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 1, 1, 1, TRUE); gtk_box_pack_start(GTK_BOX(vbox2), grid, FALSE, FALSE, 0); label = gtk_label_new(_("Drugs")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); hbox = CreateList("Gun", gunmembers); gtk_container_set_border_width(GTK_CONTAINER(hbox), 7); label = gtk_label_new(_("Guns")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); hbox = CreateList("Cop", copmembers); gtk_container_set_border_width(GTK_CONTAINER(hbox), 7); label = gtk_label_new(_("Cops")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); #ifdef NETWORKING grid = dp_gtk_grid_new(6, 4, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 5); gtk_grid_set_column_spacing(GTK_GRID(grid), 5); check = NewConfigCheck("MetaServer.Active", _("Server reports to metaserver")); dp_gtk_grid_attach(GTK_GRID(grid), check, 0, 0, 2, 1, TRUE); #ifdef CYGWIN check = NewConfigCheck("MinToSysTray", _("Minimize to System Tray")); dp_gtk_grid_attach(GTK_GRID(grid), check, 2, 0, 2, 1, TRUE); #endif label = gtk_label_new(_("Metaserver URL")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1, FALSE); entry = NewConfigEntry("MetaServer.URL"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 1, 3, 1, TRUE); label = gtk_label_new(_("Comment")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 4, 1, 1, FALSE); entry = NewConfigEntry("MetaServer.Comment"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 4, 3, 1, TRUE); label = gtk_label_new(_("MOTD (welcome message)")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 5, 1, 1, FALSE); entry = NewConfigEntry("ServerMOTD"); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 5, 3, 1, TRUE); gtk_container_set_border_width(GTK_CONTAINER(grid), 7); label = gtk_label_new(_("Server")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), grid, label); #endif vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 7); sound_titles[0] = _("Sound name"); sound_titles[1] = _("Description"); tv = gtk_scrolled_tree_view_new(&scrollwin); store = gtk_list_store_new(3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT); g_object_set_data(G_OBJECT(store), "oldsel", GINT_TO_POINTER(-1)); gtk_tree_view_set_model(GTK_TREE_VIEW(tv), GTK_TREE_MODEL(store)); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes( GTK_TREE_VIEW(tv), -1, sound_titles[0], renderer, "text", 0, NULL); gtk_tree_view_insert_column_with_attributes( GTK_TREE_VIEW(tv), -1, sound_titles[1], renderer, "text", 1, NULL); g_object_unref(store); gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(tv), FALSE); treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv)); gtk_tree_selection_set_mode(treesel, GTK_SELECTION_SINGLE); FillSoundsList(GTK_TREE_VIEW(tv)); g_signal_connect(G_OBJECT(treesel), "changed", G_CALLBACK(sound_sel_changed), NULL); clists = g_slist_append(clists, tv); gtk_box_pack_start(GTK_BOX(vbox2), scrollwin, TRUE, TRUE, 0); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); label = gtk_label_new(_("Sound file")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); entry = gtk_entry_new(); g_object_set_data(G_OBJECT(store), "entry", entry); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Browse...")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(BrowseSound), G_OBJECT(entry)); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); button = gtk_button_new_with_label(_("Play")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(TestPlaySound), G_OBJECT(entry)); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), hbox, FALSE, FALSE, 0); label = gtk_label_new(_("Sounds")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 0); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_OK")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(OKCallback), (gpointer)dialog); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_mnemonic(_("_Help")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(HelpCallback), (gpointer)notebook); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_mnemonic(_("_Cancel")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); g_signal_connect(G_OBJECT(dialog), "destroy", G_CALLBACK(FinishOptDialog), NULL); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } dopewars-1.6.2/src/gui_client/dopewars-pill.xpm000644 000765 000024 00000002731 14256000066 021476 0ustar00benstaff000000 000000 /* XPM */ static char * dopewars_pill_xpm[] = { "32 32 19 1", " c None", ". c #000000", "+ c #A00000", "@ c #0080FF", "# c #FF0000", "$ c #40A0FF", "% c #FF2D2D", "& c #FFFFFF", "* c #FE1111", "= c #FF0D0D", "- c #3FA0FF", "; c #FC0000", "> c #3E9FFF", ", c #FA0000", "' c #0C1E30", ") c #3D9EFF", "! c #081521", "~ c #FD0000", "{ c #210000", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ...................... ", " ..+++++++++.@@@@@@@@@@.. ", " .+++#######+.@$$$$$$$$@@@. ", " .++%&&######+.@$$$$$$$$$$@@. ", " .+*&&=######+.@$$$$$$$$$$-@. ", " .++#&########+.@$$$$$$$$$$$@@. ", " .+##&########+.@$$$$$$$$$$$$@. ", " .+###########+.@$$$$$$$$$$$$@. ", " .+###########+.@$$$$$$$$$$$$@. ", " .+;##########+.@$$$$$$$$$$$>@. ", " .++##########+.@$.$$..$..$$@@. ", " .+,#########+.@$$.$.&$'$$)@. ", " .++#########+.@$$$...$!$$@@. ", " .+++~~~~~~~+.@$$$$$$$$@@@. ", " .{+++++++++.@@@@@@@@@@.. ", " ...................... ", " ", " ", " ", " ", " ", " ", " "}; dopewars-1.6.2/src/gui_client/gtk_client.c000644 000765 000024 00000341127 14256242752 020474 0ustar00benstaff000000 000000 /************************************************************************ * gtk_client.c dopewars client using the GTK+ toolkit * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "configfile.h" #include "convert.h" #include "dopewars.h" #include "gtk_client.h" #include "message.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" #include "util.h" #include "gtkport/gtkport.h" #include "dopewars-pill.xpm" #include "optdialog.h" #include "newgamedia.h" #define BT_BUY (GINT_TO_POINTER(1)) #define BT_SELL (GINT_TO_POINTER(2)) #define BT_DROP (GINT_TO_POINTER(3)) #define ET_SPY 0 #define ET_TIPOFF 1 struct InventoryWidgets { GtkWidget *HereList, *CarriedList; GtkWidget *HereFrame, *CarriedFrame; GtkWidget *BuyButton, *SellButton, *DropButton; GtkWidget *vbbox; }; struct StatusWidgets { GtkWidget *Location, *Date, *SpaceName, *SpaceValue, *CashName; GtkWidget *CashValue, *DebtName, *DebtValue, *BankName, *BankValue; GtkWidget *GunsName, *GunsValue, *BitchesName, *BitchesValue; GtkWidget *HealthName, *HealthValue; }; struct ClientDataStruct { GtkWidget *window, *messages; Player *Play; DPGtkItemFactory *Menu; struct StatusWidgets Status; struct InventoryWidgets Drug, Gun, InvenDrug, InvenGun; GtkWidget *JetButton, *vbox, *PlayerList, *TalkList; guint JetAccel; struct CMDLINE *cmdline; }; struct DealDiaStruct { GtkWidget *dialog, *cost, *carrying, *space, *afford, *amount; gint DrugInd; gpointer Type; }; static struct DealDiaStruct DealDialog; GtkWidget *MainWindow = NULL; static struct ClientDataStruct ClientData; static gboolean InGame = FALSE; static GtkWidget *FightDialog = NULL, *SpyReportsDialog; static gboolean IsShowingPlayerList = FALSE, IsShowingTalkList = FALSE; static gboolean IsShowingInventory = FALSE, IsShowingGunShop = FALSE; static gboolean IsShowingDealDrugs = FALSE; static void display_intro(GtkWidget *widget, gpointer data); static void QuitGame(GtkWidget *widget, gpointer data); static void DestroyGtk(GtkWidget *widget, gpointer data); static void NewGame(GtkWidget *widget, gpointer data); static void AbandonGame(GtkWidget *widget, gpointer data); static void ToggleSound(GtkWidget *widget, gpointer data); static void ListScores(GtkWidget *widget, gpointer data); static void ListInventory(GtkWidget *widget, gpointer data); static void EndGame(void); static void Jet(GtkWidget *parent); static void UpdateMenus(void); #ifdef NETWORKING gboolean GetClientMessage(GIOChannel *source, GIOCondition condition, gpointer data); void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean Exception, gboolean CallNow); /* Data waiting to be sent to/read from the metaserver */ CurlConnection MetaConn; #endif /* NETWORKING */ static void HandleClientMessage(char *buf, Player *Play); static void PrepareHighScoreDialog(void); static void AddScoreToDialog(char *Data); static void CompleteHighScoreDialog(gboolean AtEnd); static void PrintMessage(char *Data, char *tagname); static void DisplayFightMessage(char *Data); static GtkWidget *CreateStatusWidgets(struct StatusWidgets *Status); static void DisplayStats(Player *Play, struct StatusWidgets *Status); static void UpdateStatus(Player *Play); static void SetJetButtonTitle(GtkAccelGroup *accel_group); static void UpdateInventory(struct InventoryWidgets *Inven, Inventory *Objects, int NumObjects, gboolean AreDrugs); static void JetButtonPressed(GtkWidget *widget, gpointer data); static void DealDrugs(GtkWidget *widget, gpointer data); static void DealGuns(GtkWidget *widget, gpointer data); static void QuestionDialog(char *Data, Player *From); static void TransferDialog(gboolean Debt); static void ListPlayers(GtkWidget *widget, gpointer data); static void TalkToAll(GtkWidget *widget, gpointer data); static void TalkToPlayers(GtkWidget *widget, gpointer data); static void TalkDialog(gboolean TalkToAll); static GtkWidget *CreatePlayerList(void); static void UpdatePlayerList(GtkWidget *clist, gboolean IncludeSelf); static void TipOff(GtkWidget *widget, gpointer data); static void SpyOnPlayer(GtkWidget *widget, gpointer data); static void ErrandDialog(gint ErrandType); static void SackBitch(GtkWidget *widget, gpointer data); static void DestroyShowing(GtkWidget *widget, gpointer data); static void SetShowing(GtkWidget *window, gboolean *showing); static gint DisallowDelete(GtkWidget *widget, GdkEvent * event, gpointer data); static void GunShopDialog(void); static void NewNameDialog(void); static void UpdatePlayerLists(void); static void CreateInventory(GtkWidget *hbox, gchar *Objects, GtkAccelGroup *accel_group, gboolean CreateButtons, gboolean CreateHere, struct InventoryWidgets *widgets, GCallback CallBack); static void GetSpyReports(GtkWidget *widget, gpointer data); static void DisplaySpyReports(Player *Play); static DPGtkItemFactoryEntry menu_items[] = { /* The names of the menus and their items in the GTK+ client */ {N_("/_Game"), NULL, NULL, 0, ""}, {N_("/Game/_New..."), "N", NewGame, 0, NULL}, {N_("/Game/_Abandon..."), "A", AbandonGame, 0, NULL}, {N_("/Game/_Options..."), "O", OptDialog, 0, NULL}, {N_("/Game/Enable _sound"), NULL, ToggleSound, 0, ""}, {N_("/Game/_Quit..."), "Q", QuitGame, 0, NULL}, {N_("/_Talk"), NULL, NULL, 0, ""}, {N_("/Talk/To _All..."), NULL, TalkToAll, 0, NULL}, {N_("/Talk/To _Player..."), NULL, TalkToPlayers, 0, NULL}, {N_("/_List"), NULL, NULL, 0, ""}, {N_("/List/_Players..."), NULL, ListPlayers, 0, NULL}, {N_("/List/_Scores..."), NULL, ListScores, 0, NULL}, {N_("/List/_Inventory..."), NULL, ListInventory, 0, NULL}, {N_("/_Errands"), NULL, NULL, 0, ""}, {N_("/Errands/_Spy..."), NULL, SpyOnPlayer, 0, NULL}, {N_("/Errands/_Tipoff..."), NULL, TipOff, 0, NULL}, /* N.B. "Sack Bitch" has to be recreated (and thus translated) at the * start of each game, below, so is not marked for gettext here */ {"/Errands/S_ack Bitch...", NULL, SackBitch, 0, NULL}, {N_("/Errands/_Get spy reports..."), NULL, GetSpyReports, 0, NULL}, {N_("/_Help"), NULL, NULL, 0, ""}, {N_("/Help/_About..."), "F1", display_intro, 0, NULL} }; static gchar *MenuTranslate(const gchar *path, gpointer func_data) { /* Translate menu items, using gettext */ return _(path); } static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GtkMessageBox(MainWindow, message, /* Titles of the message boxes for warnings and errors */ log_level & G_LOG_LEVEL_WARNING ? _("Warning") : log_level & G_LOG_LEVEL_CRITICAL ? _("Error") : _("Message"), GTK_MESSAGE_INFO, MB_OK | (gtk_main_level() > 0 ? MB_IMMRETURN : 0)); } /* * Creates an hbutton_box widget, and sets a sensible spacing and layout. */ GtkWidget *my_hbbox_new(void) { GtkWidget *hbbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL); gtk_button_box_set_layout(GTK_BUTTON_BOX(hbbox), GTK_BUTTONBOX_END); gtk_box_set_spacing(GTK_BOX(hbbox), 8); return hbbox; } /* * Do the equivalent of gtk_box_pack_start_defaults(). * This has been removed from GTK+3. */ void my_gtk_box_pack_start_defaults(GtkBox *box, GtkWidget *child) { #ifdef CYGWIN /* For compatibility with older dopewars */ gtk_box_pack_start(box, child, FALSE, FALSE, 0); #else gtk_box_pack_start(box, child, TRUE, TRUE, 0); #endif } /* * Sets the initial size and window manager hints of a dialog. */ void my_set_dialog_position(GtkWindow *dialog) { gtk_window_set_type_hint(dialog, GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_position(dialog, GTK_WIN_POS_CENTER_ON_PARENT); } void QuitGame(GtkWidget *widget, gpointer data) { if (!InGame || GtkMessageBox(ClientData.window, /* Prompt in 'quit game' dialog */ _("Abandon current game?"), /* Title of 'quit game' dialog */ _("Quit Game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) { gtk_main_quit(); } } void DestroyGtk(GtkWidget *widget, gpointer data) { gtk_main_quit(); } gint MainDelete(GtkWidget *widget, GdkEvent * event, gpointer data) { return (InGame && GtkMessageBox(ClientData.window, _("Abandon current game?"), _("Quit Game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDNO); } void NewGame(GtkWidget *widget, gpointer data) { if (InGame) { if (GtkMessageBox(ClientData.window, _("Abandon current game?"), /* Title of 'stop game to start a new game' dialog */ _("Start new game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) EndGame(); else return; } /* Save the configuration, so we can restore those elements that get * overwritten when we connect to a dopewars server */ BackupConfig(); #ifdef NETWORKING NewGameDialog(ClientData.Play, SocketStatus, &MetaConn); #else NewGameDialog(ClientData.Play); #endif } void AbandonGame(GtkWidget *widget, gpointer data) { if (InGame && GtkMessageBox(ClientData.window, _("Abandon current game?"), /* Title of 'abandon game' dialog */ _("Abandon game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) { EndGame(); } } void ToggleSound(GtkWidget *widget, gpointer data) { gboolean enable; widget = dp_gtk_item_factory_get_widget(ClientData.Menu, "
/Game/Enable sound"); if (widget) { enable = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget)); SoundEnable(enable); } } void ListScores(GtkWidget *widget, gpointer data) { if (InGame) { SendClientMessage(ClientData.Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } else { SendNullClientMessage(ClientData.Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } } void ListInventory(GtkWidget *widget, gpointer data) { GtkWidget *window, *button, *hsep, *vbox, *hbox, *hbbox; GtkAccelGroup *accel_group; if (IsShowingInventory) return; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 550, 120); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of inventory window */ gtk_window_set_title(GTK_WINDOW(window), _("Inventory")); my_set_dialog_position(GTK_WINDOW(window)); SetShowing(window, &IsShowingInventory); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 7); CreateInventory(hbox, Names.Drugs, accel_group, FALSE, FALSE, &ClientData.InvenDrug, NULL); CreateInventory(hbox, Names.Guns, accel_group, FALSE, FALSE, &ClientData.InvenGun, NULL); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_Close")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); UpdateInventory(&ClientData.InvenDrug, ClientData.Play->Drugs, NumDrug, TRUE); UpdateInventory(&ClientData.InvenGun, ClientData.Play->Guns, NumGun, FALSE); gtk_widget_show_all(window); } #ifdef NETWORKING gboolean GetClientMessage(GIOChannel *source, GIOCondition condition, gpointer data) { gchar *pt; NetworkBuffer *NetBuf; gboolean DoneOK, datawaiting; NBStatus status, oldstatus; NBSocksStatus oldsocks; NetBuf = &ClientData.Play->NetBuf; oldstatus = NetBuf->status; oldsocks = NetBuf->sockstat; datawaiting = PlayerHandleNetwork(ClientData.Play, condition & G_IO_IN, condition & G_IO_OUT, condition & G_IO_ERR, &DoneOK); status = NetBuf->status; /* Handle pre-game stuff */ if (status != NBS_CONNECTED) { /* The start game dialog isn't visible once we're connected... */ DisplayConnectStatus(oldstatus, oldsocks); } if (oldstatus != NBS_CONNECTED && (status == NBS_CONNECTED || !DoneOK)) { FinishServerConnect(DoneOK); } if (status == NBS_CONNECTED && datawaiting) { while ((pt = GetWaitingPlayerMessage(ClientData.Play)) != NULL) { HandleClientMessage(pt, ClientData.Play); g_free(pt); } } if (!DoneOK) { if (status == NBS_CONNECTED) { /* The network connection to the server was dropped unexpectedly */ g_warning(_("Connection to server lost - switching to " "single player mode")); SwitchToSinglePlayer(ClientData.Play); UpdatePlayerLists(); UpdateMenus(); } else { ShutdownNetworkBuffer(&ClientData.Play->NetBuf); } } return TRUE; } void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean Exception, gboolean CallNow) { if (NetBuf->InputTag) dp_g_source_remove(NetBuf->InputTag); NetBuf->InputTag = 0; if (Read || Write || Exception) { NetBuf->InputTag = dp_g_io_add_watch(NetBuf->ioch, (Read ? G_IO_IN : 0) | (Write ? G_IO_OUT : 0) | (Exception ? G_IO_ERR : 0), GetClientMessage, NetBuf->CallBackData); } if (CallNow) GetClientMessage(NetBuf->ioch, 0, NetBuf->CallBackData); } #endif /* NETWORKING */ void HandleClientMessage(char *pt, Player *Play) { char *Data; DispMode DisplayMode; AICode AI; MsgCode Code; Player *From, *tmp; gchar *text; gboolean Handled; GtkWidget *MenuItem; GSList *list; if (ProcessMessage(pt, Play, &From, &AI, &Code, &Data, FirstClient) == -1) { return; } Handled = HandleGenericClientMessage(From, AI, Code, Play, Data, &DisplayMode); switch (Code) { case C_STARTHISCORE: PrepareHighScoreDialog(); break; case C_HISCORE: AddScoreToDialog(Data); break; case C_ENDHISCORE: CompleteHighScoreDialog((strcmp(Data, "end") == 0)); break; case C_PRINTMESSAGE: PrintMessage(Data, NULL); break; case C_FIGHTPRINT: DisplayFightMessage(Data); break; case C_PUSH: /* The server admin has asked us to leave - so warn the user, and do so */ g_warning(_("You have been pushed from the server.\n" "Switching to single player mode.")); SwitchToSinglePlayer(Play); UpdatePlayerLists(); UpdateMenus(); break; case C_QUIT: /* The server has sent us notice that it is shutting down */ g_warning(_("The server has terminated.\n" "Switching to single player mode.")); SwitchToSinglePlayer(Play); UpdatePlayerLists(); UpdateMenus(); break; case C_NEWNAME: NewNameDialog(); break; case C_BANK: TransferDialog(FALSE); break; case C_LOANSHARK: TransferDialog(TRUE); break; case C_GUNSHOP: GunShopDialog(); break; case C_MSG: text = g_strdup_printf("%s: %s", GetPlayerName(From), Data); PrintMessage(text, "talk"); g_free(text); SoundPlay(Sounds.TalkToAll); break; case C_MSGTO: text = g_strdup_printf("%s->%s: %s", GetPlayerName(From), GetPlayerName(Play), Data); PrintMessage(text, "page"); g_free(text); SoundPlay(Sounds.TalkPrivate); break; case C_JOIN: text = g_strdup_printf(_("%s joins the game!"), Data); PrintMessage(text, "join"); g_free(text); SoundPlay(Sounds.JoinGame); UpdatePlayerLists(); UpdateMenus(); break; case C_LEAVE: if (From != &Noone) { text = g_strdup_printf(_("%s has left the game."), Data); PrintMessage(text, "leave"); g_free(text); SoundPlay(Sounds.LeaveGame); UpdatePlayerLists(); UpdateMenus(); } break; case C_QUESTION: QuestionDialog(Data, From == &Noone ? NULL : From); break; case C_SUBWAYFLASH: DisplayFightMessage(NULL); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; tmp->Flags &= ~FIGHTING; } /* Message displayed when the player "jets" to a new location */ text = dpg_strdup_printf(_("Jetting to %tde"), Location[(int)Play->IsAt].Name); PrintMessage(text, "jet"); g_free(text); SoundPlay(Sounds.Jet); break; case C_ENDLIST: MenuItem = dp_gtk_item_factory_get_widget(ClientData.Menu, "
/Errands/Sack Bitch..."); /* Text for the Errands/Sack Bitch menu item */ text = dpg_strdup_printf(_("%/Sack Bitch menu item/S_ack %Tde..."), Names.Bitch); SetAccelerator(MenuItem, text, NULL, NULL, NULL, FALSE); g_free(text); MenuItem = dp_gtk_item_factory_get_widget(ClientData.Menu, "
/Errands/Spy..."); /* Text to update the Errands/Spy menu item with the price for spying */ text = dpg_strdup_printf(_("_Spy (%P)"), Prices.Spy); SetAccelerator(MenuItem, text, NULL, NULL, NULL, FALSE); g_free(text); /* Text to update the Errands/Tipoff menu item with the price for a tipoff */ text = dpg_strdup_printf(_("_Tipoff (%P)"), Prices.Tipoff); MenuItem = dp_gtk_item_factory_get_widget(ClientData.Menu, "
/Errands/Tipoff..."); SetAccelerator(MenuItem, text, NULL, NULL, NULL, FALSE); g_free(text); if (FirstClient->next) ListPlayers(NULL, NULL); UpdateMenus(); break; case C_UPDATE: if (From == &Noone) { ReceivePlayerData(Play, Data, Play); UpdateStatus(Play); } else { ReceivePlayerData(Play, Data, From); DisplaySpyReports(From); } break; case C_DRUGHERE: UpdateInventory(&ClientData.Drug, Play->Drugs, NumDrug, TRUE); if (IsShowingInventory) { UpdateInventory(&ClientData.InvenDrug, Play->Drugs, NumDrug, TRUE); } if (IsShowingDealDrugs) { gtk_widget_destroy(DealDialog.dialog); } break; default: if (!Handled) { g_print("Unknown network message received: %s^%c^%s^%s", GetPlayerName(From), Code, GetPlayerName(Play), Data); } break; } } struct HiScoreDiaStruct { GtkWidget *dialog, *grid, *vbox; GtkAccelGroup *accel_group; }; static struct HiScoreDiaStruct HiScoreDialog = { NULL, NULL, NULL, NULL }; /* * Creates an empty dialog to display high scores. */ void PrepareHighScoreDialog(void) { GtkWidget *dialog, *vbox, *hsep, *grid; /* Make sure the server doesn't fool us into creating multiple dialogs */ if (HiScoreDialog.dialog) return; HiScoreDialog.dialog = dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); HiScoreDialog.accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), HiScoreDialog.accel_group); /* Title of the GTK+ high score dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("High Scores")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); HiScoreDialog.vbox = vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); HiScoreDialog.grid = grid = dp_gtk_grid_new(NUMHISCORE, 4, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 5); gtk_grid_set_column_spacing(GTK_GRID(grid), 30); gtk_box_pack_start(GTK_BOX(vbox), grid, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } /* * Adds a single high score (coded in "Data", which is the information * received in the relevant network message) to the dialog created by * PrepareHighScoreDialog(), above. */ void AddScoreToDialog(char *Data) { GtkWidget *label; char *cp; gchar **spl1, **spl2; int index, slen; gboolean bold; if (!HiScoreDialog.dialog) return; cp = Data; index = GetNextInt(&cp, 0); if (!cp || strlen(cp) < 3) return; bold = (*cp == 'B'); /* Is this score "our" score? (Currently * ignored) */ /* Step past the 'bold' character, and the initial '>' (if present) */ cp += 2; g_strchug(cp); /* Get the first word - the score */ spl1 = g_strsplit(cp, " ", 2); if (!spl1 || !spl1[0] || !spl1[1]) { /* Error - the high score from the server is invalid */ g_warning(_("Corrupt high score!")); g_strfreev(spl1); return; } label = make_bold_label(spl1[0], bold); set_label_alignment(label, 1.0, 0.5); dp_gtk_grid_attach(GTK_GRID(HiScoreDialog.grid), label, 0, index, 1, 1, TRUE); gtk_widget_show(label); /* Remove any leading whitespace from the remainder, since g_strsplit * will split at every space character, not at a run of them */ g_strchug(spl1[1]); /* Get the second word - the date */ spl2 = g_strsplit(spl1[1], " ", 2); if (!spl2 || !spl2[0] || !spl2[1]) { g_warning(_("Corrupt high score!")); g_strfreev(spl2); return; } label = make_bold_label(spl2[0], bold); set_label_alignment(label, 0.5, 0.5); dp_gtk_grid_attach(GTK_GRID(HiScoreDialog.grid), label, 1, index, 1, 1, TRUE); gtk_widget_show(label); /* The remainder is the name, terminated with (R.I.P.) if the player * died, and '<' for the 'current' score */ g_strchug(spl2[1]); /* Remove '<' suffix if present */ slen = strlen(spl2[1]); if (slen >= 1 && spl2[1][slen - 1] == '<') { spl2[1][slen - 1] = '\0'; } slen--; /* Check for (R.I.P.) suffix, and add it to the 4th column if found */ if (slen > 8 && spl2[1][slen - 1] == ')' && spl2[1][slen - 8] == '(') { label = make_bold_label(&spl2[1][slen - 8], bold); set_label_alignment(label, 0.5, 0.5); dp_gtk_grid_attach(GTK_GRID(HiScoreDialog.grid), label, 3, index, 1, 1, TRUE); gtk_widget_show(label); spl2[1][slen - 8] = '\0'; /* Remove suffix from the player name */ } /* Finally, add in what's left of the player name */ g_strchomp(spl2[1]); label = make_bold_label(spl2[1], bold); set_label_alignment(label, 0, 0.5); dp_gtk_grid_attach(GTK_GRID(HiScoreDialog.grid), label, 2, index, 1, 1, TRUE); gtk_widget_show(label); g_strfreev(spl1); g_strfreev(spl2); } /* * If the high scores are being displayed at the end of the game, * this function is used to end the game when the high score dialog's * "OK" button is pressed. */ static void EndHighScore(GtkWidget *widget) { EndGame(); } /* * Called when all high scores have been received. Finishes off the * high score dialog by adding an "OK" button. If the game has ended, * then "AtEnd" is TRUE, and clicking this button will end the game. */ void CompleteHighScoreDialog(gboolean AtEnd) { GtkWidget *button, *dialog, *hbbox; dialog = HiScoreDialog.dialog; if (!HiScoreDialog.dialog) { return; } hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_Close")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); if (AtEnd) { InGame = FALSE; g_signal_connect(G_OBJECT(dialog), "destroy", G_CALLBACK(EndHighScore), NULL); } my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(HiScoreDialog.vbox), hbbox, FALSE, FALSE, 0); gtk_widget_set_can_default(button, TRUE); gtk_widget_grab_default(button); gtk_widget_show_all(hbbox); /* OK, we're done - allow the creation of new high score dialogs */ HiScoreDialog.dialog = NULL; } /* * Prints an information message in the display area of the GTK+ client. * This area is used for displaying drug busts, messages from other * players, etc. The message is passed in as the string "text". */ void PrintMessage(char *text, char *tagname) { GtkTextView *messages = GTK_TEXT_VIEW(ClientData.messages); g_strdelimit(text, "^", '\n'); TextViewAppend(messages, text, tagname, FALSE); TextViewAppend(messages, "\n", NULL, TRUE); } static void FreeCombatants(void); /* * Called when one of the action buttons in the Fight dialog is clicked. * "data" specifies which button (Deal Drugs/Run/Fight/Stand) was pressed. */ static void FightCallback(GtkWidget *widget, gpointer data) { gint Answer; Player *Play; gchar text[4]; GtkWidget *window; gpointer CanRunHere = NULL; window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { CanRunHere = g_object_get_data(G_OBJECT(window), "CanRunHere"); } Answer = GPOINTER_TO_INT(data); Play = ClientData.Play; switch (Answer) { case 'D': gtk_widget_hide(FightDialog); if (!(Play->Flags & FIGHTING)) { FreeCombatants(); gtk_widget_destroy(FightDialog); FightDialog = NULL; if (HaveAbility(Play, A_DONEFIGHT)) { SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); } } break; case 'R': if (CanRunHere) { SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, "R"); } else { Jet(FightDialog); } break; case 'F': case 'S': text[0] = Answer; text[1] = '\0'; SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, text); break; } } /* * Adds an action button to the hbox at the base of the Fight dialog. * The button's caption is given by "Text", and the keyboard shortcut * (if any) is added to "accel_group". "Answer" gives the identifier * passed to FightCallback, above. */ static GtkWidget *AddFightButton(gchar *Text, GtkAccelGroup *accel_group, GtkBox *box, gint Answer) { GtkWidget *button; button = gtk_button_new_with_label(""); SetAccelerator(button, Text, button, "clicked", accel_group, FALSE); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(FightCallback), GINT_TO_POINTER(Answer)); gtk_box_pack_start(box, button, TRUE, TRUE, 0); return button; } /* Data used to keep track of the widgets giving the information about a * player/cop involved in a fight */ struct combatant { GtkWidget *name, *bitches, *healthprog, *healthlabel; }; /* * Creates an empty Fight dialog. Usually this only needs to be done once, * as when the user "closes" it, it is only hidden, ready to be reshown * later. Buttons for all actions are added here, and are hidden/shown * as necessary. */ static void CreateFightDialog(void) { GtkWidget *dialog, *vbox, *button, *hbox, *hbbox, *hsep, *text, *grid; GtkAccelGroup *accel_group; GArray *combatants; gchar *buf; FightDialog = dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(dialog), 350, 250); g_signal_connect(G_OBJECT(dialog), "delete_event", G_CALLBACK(DisallowDelete), NULL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_title(GTK_WINDOW(dialog), _("Fight")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); grid = dp_gtk_grid_new(2, 4, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 7); gtk_grid_set_column_spacing(GTK_GRID(grid), 10); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); dp_gtk_grid_attach(GTK_GRID(grid), hsep, 0, 1, 3, 1, TRUE); gtk_widget_show_all(grid); gtk_box_pack_start(GTK_BOX(vbox), grid, FALSE, FALSE, 0); g_object_set_data(G_OBJECT(dialog), "grid", grid); combatants = g_array_new(FALSE, TRUE, sizeof(struct combatant)); g_array_set_size(combatants, 1); g_object_set_data(G_OBJECT(dialog), "combatants", combatants); text = gtk_scrolled_text_view_new(&hbox); gtk_widget_set_size_request(text, 150, 120); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); g_object_set_data(G_OBJECT(dialog), "text", text); gtk_widget_show_all(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); gtk_widget_show(hsep); hbbox = my_hbbox_new(); /* Button for closing the "Fight" dialog and going back to dealing drugs (%Tde = "Drugs" by default) */ buf = dpg_strdup_printf(_("_Deal %Tde"), Names.Drugs); button = AddFightButton(buf, accel_group, GTK_BOX(hbbox), 'D'); g_object_set_data(G_OBJECT(dialog), "deal", button); g_free(buf); /* Button for shooting at other players in the "Fight" dialog, or for popping up the "Fight" dialog from the main window */ button = AddFightButton(_("_Fight"), accel_group, GTK_BOX(hbbox), 'F'); g_object_set_data(G_OBJECT(dialog), "fight", button); /* Button to stand and take it in the "Fight" dialog */ button = AddFightButton(_("_Stand"), accel_group, GTK_BOX(hbbox), 'S'); g_object_set_data(G_OBJECT(dialog), "stand", button); /* Button to run from combat in the "Fight" dialog */ button = AddFightButton(_("_Run"), accel_group, GTK_BOX(hbbox), 'R'); g_object_set_data(G_OBJECT(dialog), "run", button); gtk_widget_show(hsep); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_widget_show(hbbox); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show(dialog); } /* * Updates the display of information for a player/cop in the Fight dialog. * If the player's name (DefendName) already exists, updates the display of * total health and number of bitches - otherwise, adds a new entry. If * DefendBitches is -1, then the player has left. */ static void UpdateCombatant(gchar *DefendName, int DefendBitches, gchar *BitchName, int DefendHealth) { guint i, RowIndex; const gchar *name; struct combatant *compt; GArray *combatants; GtkWidget *grid; gchar *BitchText, *HealthText; gfloat ProgPercent; combatants = (GArray *)g_object_get_data(G_OBJECT(FightDialog), "combatants"); grid = GTK_WIDGET(g_object_get_data(G_OBJECT(FightDialog), "grid")); if (!combatants) { return; } if (DefendName[0]) { compt = NULL; for (i = 1, RowIndex = 2; i < combatants->len; i++, RowIndex++) { compt = &g_array_index(combatants, struct combatant, i); if (!compt || !compt->name) { compt = NULL; continue; } name = gtk_label_get_text(GTK_LABEL(compt->name)); if (name && strcmp(name, DefendName) == 0) { break; } compt = NULL; } if (!compt) { i = combatants->len; g_array_set_size(combatants, i + 1); compt = &g_array_index(combatants, struct combatant, i); dp_gtk_grid_resize(GTK_GRID(grid), i + 2, 4); RowIndex = i + 1; } } else { compt = &g_array_index(combatants, struct combatant, 0); RowIndex = 0; } /* Display of number of bitches or deputies during combat (%tde="bitches" or "deputies" (etc.) by default) */ BitchText = dpg_strdup_printf(_("%/Combat: Bitches/%d %tde"), DefendBitches, BitchName); /* Display of health during combat */ if (DefendBitches == -1) { HealthText = g_strdup(_("(Left)")); } else if (DefendHealth == 0 && DefendBitches == 0) { HealthText = g_strdup(_("(Dead)")); } else { HealthText = g_strdup_printf(_("Health: %d"), DefendHealth); } ProgPercent = (gfloat)DefendHealth / 100.0; if (compt->name) { if (DefendName[0]) { gtk_label_set_text(GTK_LABEL(compt->name), DefendName); } if (DefendBitches >= 0) { gtk_label_set_text(GTK_LABEL(compt->bitches), BitchText); } gtk_label_set_text(GTK_LABEL(compt->healthlabel), HealthText); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(compt->healthprog), ProgPercent); } else { /* Display of the current player's name during combat */ compt->name = gtk_label_new(DefendName[0] ? DefendName : _("You")); dp_gtk_grid_attach(GTK_GRID(grid), compt->name, 0, RowIndex, 1, 1, FALSE); compt->bitches = gtk_label_new(DefendBitches >= 0 ? BitchText : ""); dp_gtk_grid_attach(GTK_GRID(grid), compt->bitches, 1, RowIndex, 1, 1, FALSE); compt->healthprog = gtk_progress_bar_new(); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(compt->healthprog), ProgPercent); dp_gtk_grid_attach(GTK_GRID(grid), compt->healthprog, 2, RowIndex, 1, 1, TRUE); compt->healthlabel = gtk_label_new(HealthText); dp_gtk_grid_attach(GTK_GRID(grid), compt->healthlabel, 3, RowIndex, 1, 1, FALSE); gtk_widget_show(compt->name); gtk_widget_show(compt->bitches); gtk_widget_show(compt->healthprog); gtk_widget_show(compt->healthlabel); } g_free(BitchText); g_free(HealthText); } /* * Cleans up the list of all players/cops involved in a fight. */ static void FreeCombatants(void) { GArray *combatants; combatants = (GArray *)g_object_get_data(G_OBJECT(FightDialog), "combatants"); if (combatants) { g_array_free(combatants, TRUE); } } static void EnableFightButton(GtkWidget *button, gboolean enable) { if (enable) { gtk_widget_set_sensitive(button, TRUE); gtk_widget_show(button); } else { gtk_widget_hide(button); gtk_widget_set_sensitive(button, FALSE); } } /* * Given the network message "Data" concerning some happening during * combat, extracts the relevant data and updates the Fight dialog, * creating and/or showing it if necessary. * If "Data" is NULL, then closes the dialog. If "Data" is a blank * string, then just shows the dialog, displaying no new messages. */ void DisplayFightMessage(char *Data) { Player *Play; GtkAccelGroup *accel_group; GtkWidget *Deal, *Fight, *Stand, *Run; GtkTextView *textview; gchar *AttackName, *DefendName, *BitchName, *Message; FightPoint fp; int DefendHealth, DefendBitches, BitchesKilled, ArmPercent; gboolean CanRunHere, Loot, CanFire; if (!Data) { if (FightDialog) { FreeCombatants(); gtk_widget_destroy(FightDialog); FightDialog = NULL; } return; } if (FightDialog) { if (IsShowingDealDrugs) { gtk_widget_destroy(DealDialog.dialog); } if (!gtk_widget_get_visible(FightDialog)) { gtk_widget_show(FightDialog); } } else { CreateFightDialog(); } if (!FightDialog || !Data[0]) { return; } Deal = GTK_WIDGET(g_object_get_data(G_OBJECT(FightDialog), "deal")); Fight = GTK_WIDGET(g_object_get_data(G_OBJECT(FightDialog), "fight")); Stand = GTK_WIDGET(g_object_get_data(G_OBJECT(FightDialog), "stand")); Run = GTK_WIDGET(g_object_get_data(G_OBJECT(FightDialog), "run")); textview = GTK_TEXT_VIEW(g_object_get_data(G_OBJECT(FightDialog), "text")); Play = ClientData.Play; if (HaveAbility(Play, A_NEWFIGHT)) { ReceiveFightMessage(Data, &AttackName, &DefendName, &DefendHealth, &DefendBitches, &BitchName, &BitchesKilled, &ArmPercent, &fp, &CanRunHere, &Loot, &CanFire, &Message); Play->Flags |= FIGHTING; switch (fp) { case F_HIT: case F_ARRIVED: case F_MISS: UpdateCombatant(DefendName, DefendBitches, BitchName, DefendHealth); break; case F_LEAVE: if (AttackName[0]) { UpdateCombatant(AttackName, -1, BitchName, 0); } break; case F_LASTLEAVE: Play->Flags &= ~FIGHTING; break; default: break; } accel_group = (GtkAccelGroup *) g_object_get_data(G_OBJECT(ClientData.window), "accel_group"); SetJetButtonTitle(accel_group); } else { Message = Data; if (Play->Flags & FIGHTING) { fp = F_MSG; } else { fp = F_LASTLEAVE; } CanFire = (Play->Flags & CANSHOOT); CanRunHere = FALSE; } g_object_set_data(G_OBJECT(FightDialog), "CanRunHere", GINT_TO_POINTER(CanRunHere)); g_strdelimit(Message, "^", '\n'); if (strlen(Message) > 0) { TextViewAppend(textview, Message, NULL, FALSE); TextViewAppend(textview, "\n", NULL, TRUE); } EnableFightButton(Deal, !CanRunHere || fp == F_LASTLEAVE); EnableFightButton(Fight, CanFire && TotalGunsCarried(Play) > 0); EnableFightButton(Stand, CanFire && TotalGunsCarried(Play) == 0); EnableFightButton(Run, fp != F_LASTLEAVE); } /* * Updates the display of pertinent data about player "Play" (location, * health, etc. in the status widgets given by "Status". This can point * to the widgets at the top of the main window, or those in a Spy * Reports dialog. */ void DisplayStats(Player *Play, struct StatusWidgets *Status) { gchar *prstr; GString *text; text = g_string_new(NULL); dpg_string_printf(text, _("%/Current location/%tde"), Location[Play->IsAt].Name); gtk_label_set_text(GTK_LABEL(Status->Location), text->str); GetDateString(text, Play); gtk_label_set_text(GTK_LABEL(Status->Date), text->str); g_string_printf(text, "%d", Play->CoatSize); gtk_label_set_text(GTK_LABEL(Status->SpaceValue), text->str); prstr = FormatPrice(Play->Cash); gtk_label_set_text(GTK_LABEL(Status->CashValue), prstr); g_free(prstr); prstr = FormatPrice(Play->Bank); gtk_label_set_text(GTK_LABEL(Status->BankValue), prstr); g_free(prstr); prstr = FormatPrice(Play->Debt); gtk_label_set_text(GTK_LABEL(Status->DebtValue), prstr); g_free(prstr); /* Display of the total number of guns carried (%Tde="Guns" by default) */ dpg_string_printf(text, _("%/Stats: Guns/%Tde"), Names.Guns); gtk_label_set_text(GTK_LABEL(Status->GunsName), text->str); g_string_printf(text, "%d", TotalGunsCarried(Play)); gtk_label_set_text(GTK_LABEL(Status->GunsValue), text->str); if (!WantAntique) { /* Display of number of bitches in GTK+ client status window (%Tde="Bitches" by default) */ dpg_string_printf(text, _("%/GTK Stats: Bitches/%Tde"), Names.Bitches); gtk_label_set_text(GTK_LABEL(Status->BitchesName), text->str); g_string_printf(text, "%d", Play->Bitches.Carried); gtk_label_set_text(GTK_LABEL(Status->BitchesValue), text->str); } else { gtk_label_set_text(GTK_LABEL(Status->BitchesName), NULL); gtk_label_set_text(GTK_LABEL(Status->BitchesValue), NULL); } g_string_printf(text, "%d", Play->Health); gtk_label_set_text(GTK_LABEL(Status->HealthValue), text->str); g_string_free(text, TRUE); } /* * Updates all of the player status in response to a message from the * server. This includes the main window display, the gun shop (if * displayed) and the inventory (if displayed). */ void UpdateStatus(Player *Play) { GtkAccelGroup *accel_group; DisplayStats(Play, &ClientData.Status); UpdateInventory(&ClientData.Drug, ClientData.Play->Drugs, NumDrug, TRUE); accel_group = (GtkAccelGroup *) g_object_get_data(G_OBJECT(ClientData.window), "accel_group"); SetJetButtonTitle(accel_group); if (IsShowingGunShop) { UpdateInventory(&ClientData.Gun, ClientData.Play->Guns, NumGun, FALSE); } if (IsShowingInventory) { UpdateInventory(&ClientData.InvenDrug, ClientData.Play->Drugs, NumDrug, TRUE); UpdateInventory(&ClientData.InvenGun, ClientData.Play->Guns, NumGun, FALSE); } } /* Columns in inventory list */ enum { INVEN_COL_NAME = 0, INVEN_COL_NUM, INVEN_COL_INDEX, INVEN_NUM_COLS }; /* Get the currently selected inventory item (drug/gun) as an index into the drug/gun array, or -1 if none is selected */ static int get_selected_inventory(GtkTreeSelection *treesel) { GtkTreeModel *model; GtkTreeIter iter; if (gtk_tree_selection_get_selected(treesel, &model, &iter)) { int ind; gtk_tree_model_get(model, &iter, INVEN_COL_INDEX, &ind, -1); return ind; } else { return -1; } } static void scroll_to_selection(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { GtkTreeView *tv = data; gtk_tree_view_scroll_to_cell(tv, path, NULL, FALSE, 0., 0.); } void UpdateInventory(struct InventoryWidgets *Inven, Inventory *Objects, int NumObjects, gboolean AreDrugs) { GtkWidget *herelist, *carrylist; gint i; price_t price; gchar *titles[2]; gboolean CanBuy = FALSE, CanSell = FALSE, CanDrop = FALSE; GtkTreeIter iter; GtkTreeView *tv[2]; GtkListStore *carrystore, *herestore; int numlist, selectrow[2]; herelist = Inven->HereList; carrylist = Inven->CarriedList; numlist = (herelist ? 2 : 1); /* Get current selections */ tv[0] = GTK_TREE_VIEW(carrylist); carrystore = GTK_LIST_STORE(gtk_tree_view_get_model(tv[0])); if (herelist) { tv[1] = GTK_TREE_VIEW(herelist); herestore = GTK_LIST_STORE(gtk_tree_view_get_model(tv[1])); } else { tv[1] = NULL; herestore = NULL; } for (i = 0; i < numlist; i++) { selectrow[i] = get_selected_inventory(gtk_tree_view_get_selection(tv[i])); } gtk_list_store_clear(carrystore); if (herelist) { gtk_list_store_clear(herestore); } for (i = 0; i < NumObjects; i++) { if (AreDrugs) { titles[0] = dpg_strdup_printf(_("%/Inventory drug name/%tde"), Drug[i].Name); price = Objects[i].Price; } else { titles[0] = dpg_strdup_printf(_("%/Inventory gun name/%tde"), Gun[i].Name); price = Gun[i].Price; } if (herelist && price > 0) { CanBuy = TRUE; titles[1] = FormatPrice(price); gtk_list_store_append(herestore, &iter); gtk_list_store_set(herestore, &iter, INVEN_COL_NAME, titles[0], INVEN_COL_NUM, titles[1], INVEN_COL_INDEX, i, -1); g_free(titles[1]); if (i == selectrow[1]) { gtk_tree_selection_select_iter(gtk_tree_view_get_selection(tv[1]), &iter); } } if (Objects[i].Carried > 0) { if (price > 0) { CanSell = TRUE; } else { CanDrop = TRUE; } if (HaveAbility(ClientData.Play, A_DRUGVALUE) && AreDrugs) { titles[1] = dpg_strdup_printf("%d @ %P", Objects[i].Carried, Objects[i].TotalValue / Objects[i].Carried); } else { titles[1] = g_strdup_printf("%d", Objects[i].Carried); } gtk_list_store_append(carrystore, &iter); gtk_list_store_set(carrystore, &iter, INVEN_COL_NAME, titles[0], INVEN_COL_NUM, titles[1], INVEN_COL_INDEX, i, -1); g_free(titles[1]); if (i == selectrow[0]) { gtk_tree_selection_select_iter(gtk_tree_view_get_selection(tv[0]), &iter); } } g_free(titles[0]); } #ifdef CYGWIN /* Our Win32 GtkTreeView implementation doesn't auto-sort, so force it */ if (herelist) { gtk_tree_view_sort(GTK_TREE_VIEW(herelist)); } #endif /* Scroll so that selection is visible */ for (i = 0; i < numlist; i++) { gtk_tree_selection_selected_foreach(gtk_tree_view_get_selection(tv[i]), scroll_to_selection, tv[i]); } if (Inven->vbbox) { gtk_widget_set_sensitive(Inven->BuyButton, CanBuy); gtk_widget_set_sensitive(Inven->SellButton, CanSell); gtk_widget_set_sensitive(Inven->DropButton, CanDrop); } } static void JetCallback(GtkWidget *widget, gpointer data) { int NewLocation; gchar *text; GtkWidget *JetDialog; JetDialog = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "dialog")); NewLocation = GPOINTER_TO_INT(data); gtk_widget_destroy(JetDialog); text = g_strdup_printf("%d", NewLocation); SendClientMessage(ClientData.Play, C_NONE, C_REQUESTJET, NULL, text); g_free(text); } void JetButtonPressed(GtkWidget *widget, gpointer data) { if (InGame) { if (ClientData.Play->Flags & FIGHTING) { DisplayFightMessage(""); } else { Jet(NULL); } } } void Jet(GtkWidget *parent) { GtkWidget *dialog, *grid, *button, *label, *vbox; GtkAccelGroup *accel_group; gint boxsize, i, row, col; gchar *name, AccelChar; accel_group = gtk_accel_group_new(); dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); /* Title of 'Jet' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Jet to location")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), parent ? GTK_WINDOW(parent) : GTK_WINDOW(ClientData.window)); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); /* Prompt in 'Jet' dialog */ label = gtk_label_new(_("Where to, dude ? ")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); /* Generate a square box of buttons for all locations */ boxsize = 1; while (boxsize * boxsize < NumLocation) { boxsize++; } col = boxsize; row = 1; /* Avoid creating a box with an entire row empty at the bottom */ while (row * col < NumLocation) { row++; } grid = dp_gtk_grid_new(row, col, TRUE); for (i = 0; i < NumLocation; i++) { if (i < 9) { AccelChar = '1' + i; } else if (i < 35) { AccelChar = 'A' + i - 9; } else { AccelChar = '\0'; } row = i / boxsize; col = i % boxsize; if (AccelChar == '\0') { name = dpg_strdup_printf(_("%/Location to jet to/%tde"), Location[i].Name); button = gtk_button_new_with_label(name); g_free(name); } else { button = gtk_button_new_with_label(""); /* Display of locations in 'Jet' window (%tde="The Bronx" etc. by default) */ name = dpg_strdup_printf(_("_%c. %tde"), AccelChar, Location[i].Name); SetAccelerator(button, name, button, "clicked", accel_group, FALSE); /* Add keypad shortcuts as well */ if (i < 9) { gtk_widget_add_accelerator(button, "clicked", accel_group, GDK_KEY_KP_1 + i, 0, GTK_ACCEL_VISIBLE); } g_free(name); } gtk_widget_set_sensitive(button, i != ClientData.Play->IsAt); g_object_set_data(G_OBJECT(button), "dialog", dialog); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(JetCallback), GINT_TO_POINTER(i)); dp_gtk_grid_attach(GTK_GRID(grid), button, col, row, 1, 1, TRUE); } gtk_box_pack_start(GTK_BOX(vbox), grid, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } static void UpdateDealDialog(void) { GString *text; GtkAdjustment *spin_adj; gint DrugInd, CanDrop, CanCarry, CanAfford, MaxDrug; Player *Play; text = g_string_new(NULL); DrugInd = DealDialog.DrugInd; Play = ClientData.Play; /* Display of the current price of the selected drug in 'Deal Drugs' dialog */ dpg_string_printf(text, _("at %P"), Play->Drugs[DrugInd].Price); gtk_label_set_text(GTK_LABEL(DealDialog.cost), text->str); CanDrop = Play->Drugs[DrugInd].Carried; /* Display of current inventory of the selected drug in 'Deal Drugs' dialog (%tde="Opium" etc. by default) */ dpg_string_printf(text, _("You are currently carrying %d %tde"), CanDrop, Drug[DrugInd].Name); gtk_label_set_text(GTK_LABEL(DealDialog.carrying), text->str); CanCarry = Play->CoatSize; /* Available space for drugs in 'Deal Drugs' dialog */ g_string_printf(text, _("Available space: %d"), CanCarry); gtk_label_set_text(GTK_LABEL(DealDialog.space), text->str); if (DealDialog.Type == BT_BUY) { /* Just in case a price update from the server slips through */ if (Play->Drugs[DrugInd].Price == 0) { CanAfford = 0; } else { CanAfford = Play->Cash / Play->Drugs[DrugInd].Price; } /* Number of the selected drug that you can afford in 'Deal Drugs' dialog */ g_string_printf(text, _("You can afford %d"), CanAfford); gtk_label_set_text(GTK_LABEL(DealDialog.afford), text->str); MaxDrug = MIN(CanCarry, CanAfford); } else { MaxDrug = CanDrop; } spin_adj = (GtkAdjustment *)gtk_adjustment_new(MaxDrug, 0.0, MaxDrug, 1.0, 10.0, 0.0); gtk_spin_button_set_adjustment(GTK_SPIN_BUTTON(DealDialog.amount), spin_adj); gtk_spin_button_set_value(GTK_SPIN_BUTTON(DealDialog.amount), MaxDrug); g_string_free(text, TRUE); } /* Columns in deal list */ enum { DEAL_COL_NAME = 0, DEAL_COL_INDEX = 1, DEAL_NUM_COLS }; static void DealSelectCallback(GtkWidget *widget, gpointer data) { GtkTreeIter iter; if (gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter)) { GtkTreeModel *model = gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); gtk_tree_model_get(model, &iter, DEAL_COL_INDEX, &DealDialog.DrugInd, -1); UpdateDealDialog(); } } static void DealOKCallback(GtkWidget *widget, gpointer data) { GtkWidget *spinner; gint amount; gchar *text; spinner = DealDialog.amount; gtk_spin_button_update(GTK_SPIN_BUTTON(spinner)); amount = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)); text = g_strdup_printf("drug^%d^%d", DealDialog.DrugInd, data == BT_BUY ? amount : -amount); gtk_widget_destroy(DealDialog.dialog); SendClientMessage(ClientData.Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } void DealDrugs(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *label, *hbox, *hbbox, *button, *spinner, *combo_box, *vbox, *hsep, *defbutton; GtkListStore *store; GtkTreeIter iter; GtkCellRenderer *renderer; GtkAdjustment *spin_adj; GtkAccelGroup *accel_group; GtkWidget *tv; gchar *Action; GString *text; Player *Play; gint DrugInd, i, SelIndex, FirstInd; gboolean DrugIndOK; g_assert(!IsShowingDealDrugs); /* Action in 'Deal Drugs' dialog - "Buy/Sell/Drop Drugs" */ if (data == BT_BUY) { Action = _("Buy"); } else if (data == BT_SELL) { Action = _("Sell"); } else if (data == BT_DROP) { Action = _("Drop"); } else { g_warning("Bad DealDrug type"); return; } DealDialog.Type = data; Play = ClientData.Play; if (data == BT_BUY) { tv = ClientData.Drug.HereList; } else { tv = ClientData.Drug.CarriedList; } DrugInd = get_selected_inventory( gtk_tree_view_get_selection(GTK_TREE_VIEW(tv))); DrugIndOK = FALSE; FirstInd = -1; for (i = 0; i < NumDrug; i++) { if ((data == BT_DROP && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) || (data == BT_SELL && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price != 0) || (data == BT_BUY && Play->Drugs[i].Price != 0)) { if (FirstInd == -1) { FirstInd = i; } if (DrugInd == i) { DrugIndOK = TRUE; } } } if (!DrugIndOK) { if (FirstInd == -1) { return; } else { DrugInd = FirstInd; } } text = g_string_new(NULL); accel_group = gtk_accel_group_new(); dialog = DealDialog.dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(dialog), Action); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); SetShowing(dialog, &IsShowingDealDrugs); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 7); label = gtk_label_new(Action); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); store = gtk_list_store_new(DEAL_NUM_COLS, G_TYPE_STRING, G_TYPE_INT); SelIndex = -1; for (i = 0; i < NumDrug; i++) { if ((data == BT_DROP && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) || (data == BT_SELL && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price != 0) || (data == BT_BUY && Play->Drugs[i].Price != 0)) { dpg_string_printf(text, _("%/DealDrugs drug name/%tde"), Drug[i].Name); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, DEAL_COL_NAME, text->str, DEAL_COL_INDEX, i, -1); if (DrugInd >= i) { SelIndex++; } } } combo_box = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store)); g_object_unref(store); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo_box), renderer, TRUE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo_box), renderer, "text", DEAL_COL_NAME, NULL); gtk_combo_box_set_active(GTK_COMBO_BOX(combo_box), SelIndex); gtk_box_pack_start(GTK_BOX(hbox), combo_box, TRUE, TRUE, 0); DealDialog.DrugInd = DrugInd; label = DealDialog.cost = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); label = DealDialog.carrying = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); label = DealDialog.space = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); if (data == BT_BUY) { label = DealDialog.afford = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); } hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 7); if (data == BT_BUY) { /* Prompts for action in the "deal drugs" dialog */ g_string_printf(text, _("Buy how many?")); } else if (data == BT_SELL) { g_string_printf(text, _("Sell how many?")); } else { g_string_printf(text, _("Drop how many?")); } label = gtk_label_new(text->str); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); spin_adj = (GtkAdjustment *)gtk_adjustment_new(1.0, 0.0, 2.0, 1.0, 10.0, 0.0); spinner = DealDialog.amount = gtk_spin_button_new(spin_adj, 1.0, 0); g_signal_connect(G_OBJECT(spinner), "activate", G_CALLBACK(DealOKCallback), data); gtk_box_pack_start(GTK_BOX(hbox), spinner, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_OK")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(DealOKCallback), data); gtk_widget_set_can_default(button, TRUE); defbutton = button; my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_mnemonic(_("_Cancel")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); g_signal_connect(G_OBJECT(combo_box), "changed", G_CALLBACK(DealSelectCallback), NULL); g_string_free(text, TRUE); UpdateDealDialog(); gtk_widget_show_all(dialog); gtk_widget_grab_default(defbutton); } void DealGuns(GtkWidget *widget, gpointer data) { GtkWidget *tv, *dialog; gint GunInd; gchar *Title; GString *text; dialog = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (data == BT_BUY) { tv = ClientData.Gun.HereList; } else { tv = ClientData.Gun.CarriedList; } GunInd = get_selected_inventory( gtk_tree_view_get_selection(GTK_TREE_VIEW(tv))); if (GunInd < 0) { return; } /* Title of 'gun shop' dialog (%tde="guns" by default) "Buy/Sell/Drop * Guns" */ if (data == BT_BUY) { Title = dpg_strdup_printf(_("Buy %tde"), Names.Guns); } else if (data == BT_SELL) { Title = dpg_strdup_printf(_("Sell %tde"), Names.Guns); } else { Title = dpg_strdup_printf(_("Drop %tde"), Names.Guns); } text = g_string_new(""); if (data != BT_BUY && TotalGunsCarried(ClientData.Play) == 0) { dpg_string_printf(text, _("You don't have any %tde to sell!"), Names.Guns); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_BUY && TotalGunsCarried(ClientData.Play) >= ClientData.Play->Bitches.Carried + 2) { dpg_string_printf(text, _("You'll need more %tde to carry any more %tde!"), Names.Bitches, Names.Guns); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_BUY && Gun[GunInd].Space > ClientData.Play->CoatSize) { dpg_string_printf(text, _("You don't have enough space to carry that %tde!"), Names.Gun); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_BUY && Gun[GunInd].Price > ClientData.Play->Cash) { dpg_string_printf(text, _("You don't have enough cash to buy that %tde!"), Names.Gun); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_SELL && ClientData.Play->Guns[GunInd].Carried == 0) { GtkMessageBox(dialog, _("You don't have any to sell!"), Title, GTK_MESSAGE_WARNING, MB_OK); } else { g_string_printf(text, "gun^%d^%d", GunInd, data == BT_BUY ? 1 : -1); SendClientMessage(ClientData.Play, C_NONE, C_BUYOBJECT, NULL, text->str); } g_free(Title); g_string_free(text, TRUE); } static void QuestionCallback(GtkWidget *widget, gpointer data) { gint Answer; gchar text[5]; GtkWidget *dialog; Player *To; dialog = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "dialog")); To = (Player *)g_object_get_data(G_OBJECT(dialog), "From"); Answer = GPOINTER_TO_INT(data); text[0] = (gchar)Answer; text[1] = '\0'; SendClientMessage(ClientData.Play, C_NONE, C_ANSWER, To, text); gtk_widget_destroy(dialog); } void QuestionDialog(char *Data, Player *From) { GtkWidget *dialog, *label, *vbox, *hsep, *hbbox, *button; GtkAccelGroup *accel_group; gchar *Responses, **split, *LabelText, *trword, *underline; /* Button titles that correspond to the single-keypress options provided by the curses client (e.g. _Yes corresponds to 'Y' etc.) */ gchar *Words[] = { N_("_Yes"), N_("_No"), N_("_Run"), N_("_Fight"), N_("_Attack"), N_("_Evade") }; guint numWords = sizeof(Words) / sizeof(Words[0]); guint i, j; split = g_strsplit(Data, "^", 2); if (!split[0] || !split[1]) { g_warning("Bad QUESTION message %s", Data); return; } g_strdelimit(split[1], "^", '\n'); Responses = split[0]; LabelText = split[1]; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); g_signal_connect(G_OBJECT(dialog), "delete_event", G_CALLBACK(DisallowDelete), NULL); g_object_set_data(G_OBJECT(dialog), "From", (gpointer)From); /* Title of the 'ask player a question' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Question")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); while (*LabelText == '\n') LabelText++; label = gtk_label_new(LabelText); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); for (i = 0; i < strlen(Responses); i++) { switch (Responses[i]) { case 'Y': button = gtk_button_new_with_mnemonic(_("_Yes")); break; case 'N': button = gtk_button_new_with_mnemonic(_("_No")); break; default: for (j = 0, trword = NULL; j < numWords && !trword; j++) { underline = strchr(Words[j], '_'); if (underline && toupper(underline[1]) == Responses[i]) { trword = _(Words[j]); } } button = gtk_button_new_with_label(""); if (trword) { SetAccelerator(button, trword, button, "clicked", accel_group, FALSE); } else { trword = g_strdup_printf("_%c", Responses[i]); SetAccelerator(button, trword, button, "clicked", accel_group, FALSE); g_free(trword); } break; } g_object_set_data(G_OBJECT(button), "dialog", (gpointer)dialog); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(QuestionCallback), GINT_TO_POINTER((gint)Responses[i])); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); } gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); g_strfreev(split); } void GuiStartGame(void) { Player *Play = ClientData.Play; if (!Network) { ClientData.cmdline->antique = WantAntique; InitConfiguration(ClientData.cmdline); } StripTerminators(GetPlayerName(Play)); InitAbilities(Play); SendAbilities(Play); SendNullClientMessage(Play, C_NONE, C_NAME, NULL, GetPlayerName(Play)); InGame = TRUE; UpdateMenus(); gtk_widget_show_all(ClientData.vbox); UpdatePlayerLists(); SoundPlay(Sounds.StartGame); } void EndGame(void) { DisplayFightMessage(NULL); gtk_widget_hide(ClientData.vbox); TextViewClear(GTK_TEXT_VIEW(ClientData.messages)); ShutdownNetwork(ClientData.Play); UpdatePlayerLists(); CleanUpServer(); RestoreConfig(); InGame = FALSE; UpdateMenus(); SoundPlay(Sounds.EndGame); } static gint DrugSortByName(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data) { int indexa, indexb; gtk_tree_model_get(model, a, INVEN_COL_INDEX, &indexa, -1); gtk_tree_model_get(model, b, INVEN_COL_INDEX, &indexb, -1); if (indexa < 0 || indexa >= NumDrug || indexb < 0 || indexb >= NumDrug) { return 0; } return g_ascii_strcasecmp(Drug[indexa].Name, Drug[indexb].Name); } static gint DrugSortByPrice(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data) { int indexa, indexb; price_t pricediff; gtk_tree_model_get(model, a, INVEN_COL_INDEX, &indexa, -1); gtk_tree_model_get(model, b, INVEN_COL_INDEX, &indexb, -1); if (indexa < 0 || indexa >= NumDrug || indexb < 0 || indexb >= NumDrug) { return 0; } pricediff = ClientData.Play->Drugs[indexa].Price - ClientData.Play->Drugs[indexb].Price; return pricediff == 0 ? 0 : pricediff < 0 ? -1 : 1; } void UpdateMenus(void) { gboolean MultiPlayer; gint Bitches; MultiPlayer = (FirstClient && FirstClient->next != NULL); Bitches = InGame && ClientData.Play ? ClientData.Play->Bitches.Carried : 0; gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget(ClientData.Menu, "
/Talk"), InGame && Network); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Game/Options..."), !InGame); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Game/Abandon..."), InGame); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/List/Inventory..."), InGame); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/List/Players..."), InGame && Network); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Errands"), InGame); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Spy..."), InGame && MultiPlayer); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Tipoff..."), InGame && MultiPlayer); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Sack Bitch..."), Bitches > 0); gtk_widget_set_sensitive(dp_gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Get spy reports..."), InGame && MultiPlayer); } GtkWidget *CreateStatusWidgets(struct StatusWidgets *Status) { GtkWidget *grid, *label; grid = dp_gtk_grid_new(3, 6, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 3); gtk_grid_set_column_spacing(GTK_GRID(grid), 3); gtk_container_set_border_width(GTK_CONTAINER(grid), 3); label = Status->Location = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 2, 1, TRUE); label = Status->Date = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 2, 0, 2, 1, TRUE); /* Available space label in GTK+ client status display */ label = Status->SpaceName = gtk_label_new(_("Space")); dp_gtk_grid_attach(GTK_GRID(grid), label, 4, 0, 1, 1, TRUE); label = Status->SpaceValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 5, 0, 1, 1, TRUE); /* Player's cash label in GTK+ client status display */ label = Status->CashName = gtk_label_new(_("Cash")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1, TRUE); label = Status->CashValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 1, 1, 1, 1, TRUE); /* Player's debt label in GTK+ client status display */ label = Status->DebtName = gtk_label_new(_("Debt")); dp_gtk_grid_attach(GTK_GRID(grid), label, 2, 1, 1, 1, TRUE); label = Status->DebtValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 3, 1, 1, 1, TRUE); /* Player's bank balance label in GTK+ client status display */ label = Status->BankName = gtk_label_new(_("Bank")); dp_gtk_grid_attach(GTK_GRID(grid), label, 4, 1, 1, 1, TRUE); label = Status->BankValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 5, 1, 1, 1, TRUE); label = Status->GunsName = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 2, 1, 1, TRUE); label = Status->GunsValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 1, 2, 1, 1, TRUE); label = Status->BitchesName = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 2, 2, 1, 1, TRUE); label = Status->BitchesValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 3, 2, 1, 1, TRUE); /* Player's health label in GTK+ client status display */ label = Status->HealthName = gtk_label_new(_("Health")); dp_gtk_grid_attach(GTK_GRID(grid), label, 4, 2, 1, 1, TRUE); label = Status->HealthValue = gtk_label_new(NULL); dp_gtk_grid_attach(GTK_GRID(grid), label, 5, 2, 1, 1, TRUE); return grid; } void SetJetButtonTitle(GtkAccelGroup *accel_group) { GtkWidget *button; guint accel_key; gchar *caption; button = ClientData.JetButton; accel_key = ClientData.JetAccel; if (accel_key) { gtk_widget_remove_accelerator(button, accel_group, accel_key, 0); } if (ClientData.Play && ClientData.Play->Flags & FIGHTING) { caption = _("_Fight"); } else { /* Caption of 'Jet' button in main window */ caption = _("_Jet!"); } ClientData.JetAccel = SetAccelerator(button, caption, button, "clicked", accel_group, FALSE); } static void SetIcon(GtkWidget *window, char **xpmdata) { #ifndef CYGWIN GdkPixbuf *icon; icon = gdk_pixbuf_new_from_xpm_data((const char**)xpmdata); gtk_window_set_icon(GTK_WINDOW(window), icon); #endif } static void make_tags(GtkTextView *textview) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(textview); gtk_text_buffer_create_tag(buffer, "jet", "foreground", "#00000000FFFF", NULL); gtk_text_buffer_create_tag(buffer, "talk", "foreground", "#FFFF00000000", NULL); gtk_text_buffer_create_tag(buffer, "page", "foreground", "#FFFF0000FFFF", NULL); gtk_text_buffer_create_tag(buffer, "join", "foreground", "#000000008B8B", NULL); gtk_text_buffer_create_tag(buffer, "leave", "foreground", "#8B8B00000000", NULL); } #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail) #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail) #endif { GtkWidget *window, *vbox, *vbox2, *hbox, *frame, *grid, *menubar, *text, *vpaned, *button, *tv, *widget; GtkAccelGroup *accel_group; GtkTreeSortable *sortable; int i; DPGtkItemFactory *item_factory; gint nmenu_items = sizeof(menu_items) / sizeof(menu_items[0]); #ifdef CYGWIN win32_init(hInstance, hPrevInstance, "mainicon"); #else if (ReturnOnFail && !gtk_init_check(argc, argv)) return FALSE; else if (!ReturnOnFail) gtk_init(argc, argv); #endif /* GTK+2 (and the GTK emulation code on WinNT systems) expects all * strings to be UTF-8, so we force gettext to return all translations * in this encoding here. */ bind_textdomain_codeset(PACKAGE, "UTF-8"); Conv_SetInternalCodeset("UTF-8"); WantUTF8Errors(TRUE); InitConfiguration(cmdline); ClientData.cmdline = cmdline; /* Set up message handlers */ ClientMessageHandlerPt = HandleClientMessage; if (!CheckHighScoreFileConfig()) { return TRUE; } /* Have the GLib log messages pop up in a nice dialog box */ g_log_set_handler(NULL, G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL, LogMessage, NULL); SoundOpen(cmdline->plugin); /* Create the main player */ ClientData.Play = g_new(Player, 1); FirstClient = AddPlayer(0, ClientData.Play, FirstClient); if (PlayerName && PlayerName[0]) { SetPlayerName(ClientData.Play, PlayerName); } window = MainWindow = ClientData.window = gtk_window_new(GTK_WINDOW_TOPLEVEL); /* Title of main window in GTK+ client */ gtk_window_set_title(GTK_WINDOW(window), _("dopewars")); gtk_window_set_default_size(GTK_WINDOW(window), 450, 390); g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(MainDelete), NULL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(DestroyGtk), NULL); accel_group = gtk_accel_group_new(); g_object_set_data(G_OBJECT(window), "accel_group", accel_group); item_factory = ClientData.Menu = dp_gtk_item_factory_new("
", accel_group); dp_gtk_item_factory_set_translate_func(item_factory, MenuTranslate, NULL, NULL); dp_gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); menubar = dp_gtk_item_factory_get_widget(item_factory, "
"); vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(vbox2), menubar, FALSE, FALSE, 0); gtk_widget_show_all(menubar); UpdateMenus(); SoundEnable(UseSounds); widget = dp_gtk_item_factory_get_widget(ClientData.Menu, "
/Game/Enable sound"); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(widget), UseSounds); vbox = ClientData.vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); frame = gtk_frame_new(_("Stats")); gtk_container_set_border_width(GTK_CONTAINER(frame), 3); grid = CreateStatusWidgets(&ClientData.Status); gtk_container_add(GTK_CONTAINER(frame), grid); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); vpaned = gtk_paned_new(GTK_ORIENTATION_VERTICAL); text = ClientData.messages = gtk_scrolled_text_view_new(&hbox); make_tags(GTK_TEXT_VIEW(text)); gtk_widget_set_size_request(text, 100, 80); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); gtk_paned_pack1(GTK_PANED(vpaned), hbox, TRUE, TRUE); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 7); CreateInventory(hbox, Names.Drugs, accel_group, TRUE, TRUE, &ClientData.Drug, G_CALLBACK(DealDrugs)); tv = ClientData.Drug.HereList; gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(tv), TRUE); sortable = GTK_TREE_SORTABLE(gtk_tree_view_get_model(GTK_TREE_VIEW(tv))); gtk_tree_sortable_set_sort_func(sortable, 0, DrugSortByName, NULL, NULL); gtk_tree_sortable_set_sort_func(sortable, 1, DrugSortByPrice, NULL, NULL); for (i = 0; i < 2; ++i) { GtkTreeViewColumn *col = gtk_tree_view_get_column(GTK_TREE_VIEW(tv), i); gtk_tree_view_column_set_sort_column_id(col, i); } button = ClientData.JetButton = gtk_button_new_with_label(""); ClientData.JetAccel = 0; g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(JetButtonPressed), NULL); gtk_box_pack_start(GTK_BOX(ClientData.Drug.vbbox), button, TRUE, TRUE, 0); SetJetButtonTitle(accel_group); #ifdef CYGWIN /* GtkFrames don't look quite right in Win32 yet */ gtk_paned_pack2(GTK_PANED(vpaned), hbox, TRUE, TRUE); #else frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); gtk_container_add(GTK_CONTAINER(frame), hbox); gtk_paned_pack2(GTK_PANED(vpaned), frame, TRUE, TRUE); #endif gtk_box_pack_start(GTK_BOX(vbox), vpaned, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox2), vbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(window), vbox2); /* Just show the window, not the vbox - we'll do that when the game * starts */ gtk_widget_show(vbox2); gtk_widget_show(window); gtk_widget_realize(window); SetIcon(window, dopewars_pill_xpm); #ifdef NETWORKING CurlInit(&MetaConn); #endif gtk_main(); #ifdef NETWORKING CurlCleanup(&MetaConn); #endif /* Free the main player */ FirstClient = RemovePlayer(ClientData.Play, FirstClient); return TRUE; } static void PackCentredURL(GtkWidget *vbox, gchar *title, gchar *target, gchar *browser) { GtkWidget *hbox, *label, *url; /* There must surely be a nicer way of making the URL centred - but I * can't think of one... */ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); url = gtk_url_new(title, target, browser); gtk_box_pack_start(GTK_BOX(hbox), url, FALSE, FALSE, 0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); } void display_intro(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *label, *grid, *OKButton, *vbox, *hsep, *hbbox; gchar *VersionStr, *docindex; const int rows = 8, cols = 3; int i, j; GtkAccelGroup *accel_group; gchar *table_data[8][3] = { /* Credits labels in GTK+ 'about' dialog */ {N_("English Translation"), N_("Ben Webb"), NULL}, {N_("Icons and graphics"), "Ocelot Mantis", NULL}, {N_("Sounds"), "Robin Kohli, 19.5degs.com", NULL}, {N_("Drug Dealing and Research"), "Dan Wolf", NULL}, {N_("Play Testing"), "Phil Davis", "Owen Walsh"}, {N_("Extensive Play Testing"), "Katherine Holt", "Caroline Moore"}, {N_("Constructive Criticism"), "Andrea Elliot-Smith", "Pete Winn"}, {N_("Unconstructive Criticism"), "James Matthews", NULL} }; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); /* Title of GTK+ 'about' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("About dopewars")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 10); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); /* Main content of GTK+ 'about' dialog */ label = gtk_label_new(_("Based on John E. Dell's old Drug Wars game, " "dopewars is a simulation of an\nimaginary drug " "market. dopewars is an All-American game which " "features\nbuying, selling, and trying to get " "past the cops!\n\nThe first thing you need to " "do is pay off your debt to the Loan Shark. " "After\nthat, your goal is to make as much " "money as possible (and stay alive)! You\n" "have one month of game time to make " "your fortune.\n")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); /* Version and copyright notice in GTK+ 'about' dialog */ VersionStr = g_strdup_printf(_("Version %s " "Copyright (C) 1998-2022 " "Ben Webb benwebb@users.sf.net\n" "dopewars is released under the " "GNU General Public License\n"), VERSION); label = gtk_label_new(VersionStr); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); g_free(VersionStr); grid = dp_gtk_grid_new(rows, cols, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 3); gtk_grid_set_column_spacing(GTK_GRID(grid), 3); for (i = 0; i < rows; i++) { if (i > 0 || strcmp(_(table_data[i][1]), "Ben Webb") != 0) { for (j = 0; j < cols; j++) { if (table_data[i][j]) { if (j == 0 || i == 0) { label = gtk_label_new(_(table_data[i][j])); } else { label = gtk_label_new(table_data[i][j]); } dp_gtk_grid_attach(GTK_GRID(grid), label, j, i, 1, 1, TRUE); } } } } gtk_box_pack_start(GTK_BOX(vbox), grid, FALSE, FALSE, 0); /* Label at the bottom of GTK+ 'about' dialog */ label = gtk_label_new(_("\nFor information on the command line " "options, type dopewars -h at your\n" "Unix prompt. This will display a help " "screen, listing the available options.\n")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); docindex = GetDocIndex(); PackCentredURL(vbox, _("Local HTML documentation"), docindex, OurWebBrowser); g_free(docindex); PackCentredURL(vbox, "https://dopewars.sourceforge.io/", "https://dopewars.sourceforge.io/", OurWebBrowser); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); OKButton = gtk_button_new_with_mnemonic(_("_OK")); g_signal_connect_swapped(G_OBJECT(OKButton), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), OKButton); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_set_can_default(OKButton, TRUE); gtk_widget_grab_default(OKButton); gtk_widget_show_all(dialog); } static void SendDoneMessage(GtkWidget *widget, gpointer data) { SendClientMessage(ClientData.Play, C_NONE, C_DONE, NULL, NULL); } static void TransferPayAll(GtkWidget *widget, GtkWidget *dialog) { gchar *text; text = pricetostr(ClientData.Play->Debt); SendClientMessage(ClientData.Play, C_NONE, C_PAYLOAN, NULL, text); g_free(text); gtk_widget_destroy(dialog); } static void TransferOK(GtkWidget *widget, GtkWidget *dialog) { gpointer Debt; GtkWidget *deposit, *entry; gchar *text, *title; price_t money; gboolean withdraw = FALSE; Debt = g_object_get_data(G_OBJECT(dialog), "debt"); entry = GTK_WIDGET(g_object_get_data(G_OBJECT(dialog), "entry")); text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); money = strtoprice(text); g_free(text); if (Debt) { /* Title of loan shark dialog - (%Tde="The Loan Shark" by default) */ title = dpg_strdup_printf(_("%/LoanShark window title/%Tde"), Names.LoanSharkName); if (money > ClientData.Play->Debt) { money = ClientData.Play->Debt; } } else { /* Title of bank dialog - (%Tde="The Bank" by default) */ title = dpg_strdup_printf(_("%/BankName window title/%Tde"), Names.BankName); deposit = GTK_WIDGET(g_object_get_data(G_OBJECT(dialog), "deposit")); if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(deposit))) { withdraw = TRUE; } } if (money < 0) { GtkMessageBox(dialog, _("You must enter a positive amount of money!"), title, GTK_MESSAGE_WARNING, MB_OK); } else if (!Debt && withdraw && money > ClientData.Play->Bank) { GtkMessageBox(dialog, _("There isn't that much money available..."), title, GTK_MESSAGE_WARNING, MB_OK); } else if (!withdraw && money > ClientData.Play->Cash) { GtkMessageBox(dialog, _("You don't have that much money!"), title, GTK_MESSAGE_WARNING, MB_OK); } else { text = pricetostr(withdraw ? -money : money); SendClientMessage(ClientData.Play, C_NONE, Debt ? C_PAYLOAN : C_DEPOSIT, NULL, text); g_free(text); gtk_widget_destroy(dialog); } g_free(title); } void TransferDialog(gboolean Debt) { GtkWidget *dialog, *button, *label, *radio, *grid, *vbox; GtkWidget *hbbox, *hsep, *entry; GtkAccelGroup *accel_group; GSList *group; GString *text; text = g_string_new(""); dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); g_signal_connect(G_OBJECT(dialog), "destroy", G_CALLBACK(SendDoneMessage), NULL); if (Debt) { /* Title of loan shark dialog - (%Tde="The Loan Shark" by default) */ dpg_string_printf(text, _("%/LoanShark window title/%Tde"), Names.LoanSharkName); } else { /* Title of bank dialog - (%Tde="The Bank" by default) */ dpg_string_printf(text, _("%/BankName window title/%Tde"), Names.BankName); } gtk_window_set_title(GTK_WINDOW(dialog), text->str); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); grid = dp_gtk_grid_new(4, 3, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 4); gtk_grid_set_column_spacing(GTK_GRID(grid), 4); /* Display of player's cash in bank or loan shark dialog */ dpg_string_printf(text, _("Cash: %P"), ClientData.Play->Cash); label = gtk_label_new(text->str); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 3, 1, TRUE); if (Debt) { /* Display of player's debt in loan shark dialog */ dpg_string_printf(text, _("Debt: %P"), ClientData.Play->Debt); } else { /* Display of player's bank balance in bank dialog */ dpg_string_printf(text, _("Bank: %P"), ClientData.Play->Bank); } label = gtk_label_new(text->str); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 3, 1, TRUE); g_object_set_data(G_OBJECT(dialog), "debt", GINT_TO_POINTER(Debt)); if (Debt) { /* Prompt for paying back a loan */ label = gtk_label_new(_("Pay back:")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 2, 1, 2, FALSE); } else { /* Radio button selected if you want to pay money into the bank */ radio = gtk_radio_button_new_with_label(NULL, _("Deposit")); g_object_set_data(G_OBJECT(dialog), "deposit", radio); group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio)); dp_gtk_grid_attach(GTK_GRID(grid), radio, 0, 2, 1, 1, FALSE); /* Radio button selected if you want to withdraw money from the bank */ radio = gtk_radio_button_new_with_label(group, _("Withdraw")); dp_gtk_grid_attach(GTK_GRID(grid), radio, 0, 3, 1, 1, FALSE); } label = gtk_label_new(Currency.Symbol); entry = gtk_entry_new(); gtk_entry_set_text(GTK_ENTRY(entry), "0"); g_object_set_data(G_OBJECT(dialog), "entry", entry); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(TransferOK), dialog); if (Currency.Prefix) { dp_gtk_grid_attach(GTK_GRID(grid), label, 1, 2, 1, 2, FALSE); dp_gtk_grid_attach(GTK_GRID(grid), entry, 2, 2, 1, 2, TRUE); } else { dp_gtk_grid_attach(GTK_GRID(grid), label, 2, 2, 1, 2, FALSE); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 2, 1, 2, TRUE); } gtk_box_pack_start(GTK_BOX(vbox), grid, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_OK")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(TransferOK), dialog); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); if (Debt && ClientData.Play->Cash >= ClientData.Play->Debt) { /* Button to pay back the entire loan/debt */ button = gtk_button_new_with_label(_("Pay all")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(TransferPayAll), dialog); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); } button = gtk_button_new_with_mnemonic(_("_Cancel")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); g_string_free(text, TRUE); } void ListPlayers(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *clist, *button, *vbox, *hsep, *hbbox; GtkAccelGroup *accel_group; if (IsShowingPlayerList) return; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); /* Title of player list dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Player List")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_set_default_size(GTK_WINDOW(dialog), 200, 180); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), FALSE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); SetShowing(dialog, &IsShowingPlayerList); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); clist = ClientData.PlayerList = CreatePlayerList(); UpdatePlayerList(clist, FALSE); gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_Close")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } struct TalkStruct { GtkWidget *dialog, *clist, *entry, *checkbutton; }; /* Columns in player list */ enum { PLAYER_COL_NAME = 0, PLAYER_COL_PT, PLAYER_NUM_COLS }; static void TalkSendSelected(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { Player *Play; gchar *text = data; gtk_tree_model_get(model, iter, PLAYER_COL_PT, &Play, -1); if (Play) { gchar *msg = g_strdup_printf( "%s->%s: %s", GetPlayerName(ClientData.Play), GetPlayerName(Play), text); SendClientMessage(ClientData.Play, C_NONE, C_MSGTO, Play, text); PrintMessage(msg, "page"); g_free(msg); } } static void TalkSend(GtkWidget *widget, struct TalkStruct *TalkData) { gboolean AllPlayers; gchar *text; GString *msg; AllPlayers = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (TalkData->checkbutton)); text = gtk_editable_get_chars(GTK_EDITABLE(TalkData->entry), 0, -1); gtk_editable_delete_text(GTK_EDITABLE(TalkData->entry), 0, -1); if (!text) return; msg = g_string_new(""); if (AllPlayers) { SendClientMessage(ClientData.Play, C_NONE, C_MSG, NULL, text); g_string_printf(msg, "%s: %s", GetPlayerName(ClientData.Play), text); PrintMessage(msg->str, "talk"); } else { GtkTreeSelection *tsel = gtk_tree_view_get_selection( GTK_TREE_VIEW(TalkData->clist)); gtk_tree_selection_selected_foreach(tsel, TalkSendSelected, text); } g_free(text); g_string_free(msg, TRUE); } void TalkToAll(GtkWidget *widget, gpointer data) { TalkDialog(TRUE); } void TalkToPlayers(GtkWidget *widget, gpointer data) { TalkDialog(FALSE); } void TalkDialog(gboolean TalkToAll) { GtkWidget *dialog, *clist, *button, *entry, *label, *vbox, *hsep, *checkbutton, *hbbox; GtkAccelGroup *accel_group; static struct TalkStruct TalkData; if (IsShowingTalkList) return; dialog = TalkData.dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); /* Title of talk dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Talk to player(s)")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_set_default_size(GTK_WINDOW(dialog), 200, 190); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), FALSE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); SetShowing(dialog, &IsShowingTalkList); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); clist = TalkData.clist = ClientData.TalkList = CreatePlayerList(); UpdatePlayerList(clist, FALSE); gtk_tree_selection_set_mode( gtk_tree_view_get_selection(GTK_TREE_VIEW(clist)), GTK_SELECTION_MULTIPLE); gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0); checkbutton = TalkData.checkbutton = /* Checkbutton set if you want to talk to all players */ gtk_check_button_new_with_label(_("Talk to all players")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton), TalkToAll); gtk_box_pack_start(GTK_BOX(vbox), checkbutton, FALSE, FALSE, 0); /* Prompt for you to enter the message to be sent to other players */ label = gtk_label_new(_("Message:-")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); entry = TalkData.entry = gtk_entry_new(); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(TalkSend), (gpointer)&TalkData); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); /* Button to send a message to other players */ button = gtk_button_new_with_label(_("Send")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(TalkSend), (gpointer)&TalkData); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_mnemonic(_("_Close")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } GtkWidget *CreatePlayerList(void) { GtkWidget *view; GtkListStore *store; GtkCellRenderer *renderer; store = gtk_list_store_new(PLAYER_NUM_COLS, G_TYPE_STRING, G_TYPE_POINTER); view = gtk_tree_view_new(); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes( GTK_TREE_VIEW(view), -1, "Name", renderer, "text", PLAYER_COL_NAME, NULL); gtk_tree_view_set_model(GTK_TREE_VIEW(view), GTK_TREE_MODEL(store)); g_object_unref(store); /* so it is freed when the view is */ gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(view), FALSE); return view; } void UpdatePlayerList(GtkWidget *clist, gboolean IncludeSelf) { GtkListStore *store; GSList *list; GtkTreeIter iter; Player *Play; store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(clist))); /* Don't update the widget until we're done */ g_object_ref(store); gtk_tree_view_set_model(GTK_TREE_VIEW(clist), NULL); gtk_list_store_clear(store); for (list = FirstClient; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (IncludeSelf || Play != ClientData.Play) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, PLAYER_COL_NAME, GetPlayerName(Play), PLAYER_COL_PT, Play, -1); } } gtk_tree_view_set_model(GTK_TREE_VIEW(clist), GTK_TREE_MODEL(store)); g_object_unref(store); } static void ErrandOK(GtkWidget *widget, GtkWidget *clist) { GtkTreeSelection *treesel; GtkTreeModel *model; GtkTreeIter iter; GtkWidget *dialog; gint ErrandType; dialog = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "dialog")); ErrandType = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "errandtype")); treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(clist)); if (gtk_tree_selection_get_selected(treesel, &model, &iter)) { Player *Play; gtk_tree_model_get(model, &iter, PLAYER_COL_PT, &Play, -1); if (ErrandType == ET_SPY) { SendClientMessage(ClientData.Play, C_NONE, C_SPYON, Play, NULL); } else { SendClientMessage(ClientData.Play, C_NONE, C_TIPOFF, Play, NULL); } gtk_widget_destroy(dialog); } } void SpyOnPlayer(GtkWidget *widget, gpointer data) { ErrandDialog(ET_SPY); } void TipOff(GtkWidget *widget, gpointer data) { ErrandDialog(ET_TIPOFF); } void ErrandDialog(gint ErrandType) { GtkWidget *dialog, *clist, *button, *vbox, *hbbox, *hsep, *label; GtkAccelGroup *accel_group; gchar *text; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); if (ErrandType == ET_SPY) { /* Title of dialog to select a player to spy on */ gtk_window_set_title(GTK_WINDOW(dialog), _("Spy On Player")); /* Informative text for "spy on player" dialog. (%tde = "bitch", "bitch", "guns", "drugs", respectively, by default) */ text = dpg_strdup_printf(_("Please choose the player to spy on. " "Your %tde will\nthen offer his " "services to the player, and if " "successful,\nyou will be able to " "view the player's stats with the\n" "\"Get spy reports\" menu. Remember " "that the %tde will leave\nyou, so " "any %tde or %tde that he's " "carrying may be lost!"), Names.Bitch, Names.Bitch, Names.Guns, Names.Drugs); label = gtk_label_new(text); g_free(text); } else { /* Title of dialog to select a player to tip the cops off to */ gtk_window_set_title(GTK_WINDOW(dialog), _("Tip Off The Cops")); /* Informative text for "tip off cops" dialog. (%tde = "bitch", "bitch", "guns", "drugs", respectively, by default) */ text = dpg_strdup_printf(_("Please choose the player to tip off " "the cops to. Your %tde will\nhelp " "the cops to attack that player, " "and then report back to you\non " "the encounter. Remember that the " "%tde will leave you temporarily,\n" "so any %tde or %tde that he's " "carrying may be lost!"), Names.Bitch, Names.Bitch, Names.Guns, Names.Drugs); label = gtk_label_new(text); g_free(text); } my_set_dialog_position(GTK_WINDOW(dialog)); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); clist = ClientData.PlayerList = CreatePlayerList(); UpdatePlayerList(clist, FALSE); gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_OK")); g_object_set_data(G_OBJECT(button), "dialog", dialog); g_object_set_data(G_OBJECT(button), "errandtype", GINT_TO_POINTER(ErrandType)); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(ErrandOK), (gpointer)clist); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_mnemonic(_("_Cancel")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(dialog)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } void SackBitch(GtkWidget *widget, gpointer data) { char *title, *text; /* Cannot sack bitches if you don't have any! */ if (ClientData.Play->Bitches.Carried <= 0) return; /* Title of dialog to sack a bitch (%Tde = "Bitch" by default) */ title = dpg_strdup_printf(_("%/Sack Bitch dialog title/Sack %Tde"), Names.Bitch); /* Confirmation message for sacking a bitch. (%tde = "guns", "drugs", "bitch", respectively, by default) */ text = dpg_strdup_printf(_("Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)"), Names.Guns, Names.Drugs, Names.Bitch); if (GtkMessageBox(ClientData.window, text, title, GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) { ClientData.Play->Bitches.Carried--; UpdateMenus(); SendClientMessage(ClientData.Play, C_NONE, C_SACKBITCH, NULL, NULL); } g_free(text); g_free(title); } void CreateInventory(GtkWidget *hbox, gchar *Objects, GtkAccelGroup *accel_group, gboolean CreateButtons, gboolean CreateHere, struct InventoryWidgets *widgets, GCallback CallBack) { GtkWidget *scrollwin, *tv, *vbbox, *frame[2], *button[3]; GtkCellRenderer *renderer; GtkListStore *store; GtkTreeSelection *treesel; gint i, mini, icol; GString *text; gchar *titles[2][2]; gchar *button_text[3]; gpointer button_type[3] = { BT_BUY, BT_SELL, BT_DROP }; /* Column titles for display of drugs/guns carried or available for purchase */ titles[0][0] = titles[1][0] = _("Name"); titles[0][1] = _("Price"); titles[1][1] = _("Number"); /* Button titles for buying/selling/dropping guns or drugs */ button_text[0] = _("_Buy ->"); button_text[1] = _("<- _Sell"); button_text[2] = _("_Drop <-"); text = g_string_new(""); if (CreateHere) { /* Title of the display of available drugs/guns (%Tde = "Guns" or "Drugs" by default) */ dpg_string_printf(text, _("%Tde here"), Objects); widgets->HereFrame = frame[0] = gtk_frame_new(text->str); } /* Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" by default) */ dpg_string_printf(text, _("%Tde carried"), Objects); widgets->CarriedFrame = frame[1] = gtk_frame_new(text->str); widgets->HereList = widgets->CarriedList = NULL; mini = (CreateHere ? 0 : 1); for (i = mini; i < 2; i++) { GtkWidget *hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_set_homogeneous(GTK_BOX(hbox2), TRUE); gtk_container_set_border_width(GTK_CONTAINER(frame[i]), 3); tv = gtk_scrolled_tree_view_new(&scrollwin); renderer = gtk_cell_renderer_text_new(); store = gtk_list_store_new(INVEN_NUM_COLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT); gtk_tree_view_set_model(GTK_TREE_VIEW(tv), GTK_TREE_MODEL(store)); g_object_unref(store); for (icol = 0; icol < 2; ++icol) { GtkTreeViewColumn *col; if (i == 0 && icol == 1) { /* Right align prices */ GtkCellRenderer *rren = gtk_cell_renderer_text_new(); g_object_set(G_OBJECT(rren), "xalign", 1.0, NULL); col = gtk_tree_view_column_new_with_attributes( titles[i][icol], rren, "text", icol, NULL); gtk_tree_view_column_set_alignment(col, 1.0); } else { col = gtk_tree_view_column_new_with_attributes( titles[i][icol], renderer, "text", icol, NULL); } gtk_tree_view_insert_column(GTK_TREE_VIEW(tv), col, -1); } gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(tv), FALSE); treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv)); gtk_tree_selection_set_mode(treesel, GTK_SELECTION_SINGLE); gtk_box_pack_start(GTK_BOX(hbox2), scrollwin, TRUE, TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox2), 3); gtk_container_add(GTK_CONTAINER(frame[i]), hbox2); if (i == 0) { widgets->HereList = tv; } else { widgets->CarriedList = tv; } } if (CreateHere) { gtk_box_pack_start(GTK_BOX(hbox), frame[0], TRUE, TRUE, 0); } if (CreateButtons) { widgets->vbbox = vbbox = gtk_button_box_new(GTK_ORIENTATION_VERTICAL); gtk_button_box_set_layout(GTK_BUTTON_BOX(vbbox), GTK_BUTTONBOX_SPREAD); for (i = 0; i < 3; i++) { button[i] = gtk_button_new_with_label(""); SetAccelerator(button[i], _(button_text[i]), button[i], "clicked", accel_group, FALSE); if (CallBack) { g_signal_connect(G_OBJECT(button[i]), "clicked", G_CALLBACK(CallBack), button_type[i]); } gtk_box_pack_start(GTK_BOX(vbbox), button[i], TRUE, TRUE, 0); } widgets->BuyButton = button[0]; widgets->SellButton = button[1]; widgets->DropButton = button[2]; gtk_box_pack_start(GTK_BOX(hbox), vbbox, FALSE, FALSE, 0); } else { widgets->vbbox = NULL; } gtk_box_pack_start(GTK_BOX(hbox), frame[1], TRUE, TRUE, 0); g_string_free(text, TRUE); } void SetShowing(GtkWidget *window, gboolean *showing) { g_assert(showing); *showing = TRUE; g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(DestroyShowing), (gpointer)showing); } void DestroyShowing(GtkWidget *widget, gpointer data) { gboolean *IsShowing = (gboolean *)data; if (IsShowing) { *IsShowing = FALSE; } } static void NewNameOK(GtkWidget *widget, GtkWidget *window) { GtkWidget *entry; gchar *text; entry = GTK_WIDGET(g_object_get_data(G_OBJECT(window), "entry")); text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); if (text[0]) { StripTerminators(text); SetPlayerName(ClientData.Play, text); SendNullClientMessage(ClientData.Play, C_NONE, C_NAME, NULL, text); gtk_widget_destroy(window); } g_free(text); } void NewNameDialog(void) { GtkWidget *window, *button, *hsep, *vbox, *label, *entry; GtkAccelGroup *accel_group; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of dialog for changing a player's name */ gtk_window_set_title(GTK_WINDOW(window), _("Change Name")); my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(DisallowDelete), NULL); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); /* Informational text to prompt the player to change his/her name */ label = gtk_label_new(_("Unfortunately, somebody else is already " "using \"your\" name. Please change it:-")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); entry = gtk_entry_new(); g_object_set_data(G_OBJECT(window), "entry", entry); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(NewNameOK), window); gtk_entry_set_text(GTK_ENTRY(entry), GetPlayerName(ClientData.Play)); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); button = gtk_button_new_with_mnemonic(_("_OK")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(NewNameOK), window); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_widget_set_can_default(button, TRUE); gtk_widget_grab_default(button); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } gint DisallowDelete(GtkWidget *widget, GdkEvent *event, gpointer data) { return TRUE; } void GunShopDialog(void) { GtkWidget *window, *button, *hsep, *vbox, *hbox, *hbbox; GtkAccelGroup *accel_group; gchar *text; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 600, 190); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(SendDoneMessage), NULL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" by default) */ text = dpg_strdup_printf(_("%/GTK GunShop window title/%Tde"), Names.GunShopName); gtk_window_set_title(GTK_WINDOW(window), text); my_set_dialog_position(GTK_WINDOW(window)); g_free(text); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); SetShowing(window, &IsShowingGunShop); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 7); CreateInventory(hbox, Names.Guns, accel_group, TRUE, TRUE, &ClientData.Gun, G_CALLBACK(DealGuns)); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_Close")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); UpdateInventory(&ClientData.Gun, ClientData.Play->Guns, NumGun, FALSE); gtk_widget_show_all(window); } void UpdatePlayerLists(void) { if (IsShowingPlayerList) { UpdatePlayerList(ClientData.PlayerList, FALSE); } if (IsShowingTalkList) { UpdatePlayerList(ClientData.TalkList, FALSE); } } void GetSpyReports(GtkWidget *Widget, gpointer data) { SendClientMessage(ClientData.Play, C_NONE, C_CONTACTSPY, NULL, NULL); } static void DestroySpyReports(GtkWidget *widget, gpointer data) { SpyReportsDialog = NULL; } static void CreateSpyReports(void) { GtkWidget *window, *button, *vbox, *notebook; GtkAccelGroup *accel_group; SpyReportsDialog = window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); g_object_set_data(G_OBJECT(window), "accel_group", accel_group); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of window to display reports from spies with other players */ gtk_window_set_title(GTK_WINDOW(window), _("Spy reports")); my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(DestroySpyReports), NULL); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); notebook = gtk_notebook_new(); g_object_set_data(G_OBJECT(window), "notebook", notebook); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); button = gtk_button_new_with_mnemonic(_("_Close")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } void DisplaySpyReports(Player *Play) { GtkWidget *dialog, *notebook, *vbox, *hbox, *frame, *label, *grid; GtkAccelGroup *accel_group; struct StatusWidgets Status; struct InventoryWidgets SpyDrugs, SpyGuns; if (!SpyReportsDialog) CreateSpyReports(); dialog = SpyReportsDialog; notebook = GTK_WIDGET(g_object_get_data(G_OBJECT(dialog), "notebook")); accel_group = (GtkAccelGroup *)(g_object_get_data(G_OBJECT(dialog), "accel_group")); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); frame = gtk_frame_new("Stats"); gtk_container_set_border_width(GTK_CONTAINER(frame), 3); grid = CreateStatusWidgets(&Status); gtk_container_add(GTK_CONTAINER(frame), grid); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); CreateInventory(hbox, Names.Drugs, accel_group, FALSE, FALSE, &SpyDrugs, NULL); CreateInventory(hbox, Names.Guns, accel_group, FALSE, FALSE, &SpyGuns, NULL); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); label = gtk_label_new(GetPlayerName(Play)); DisplayStats(Play, &Status); UpdateInventory(&SpyDrugs, Play->Drugs, NumDrug, TRUE); UpdateInventory(&SpyGuns, Play->Guns, NumGun, FALSE); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label); gtk_widget_show_all(notebook); } dopewars-1.6.2/src/gui_client/newgamedia.c000644 000765 000024 00000060754 14256242752 020456 0ustar00benstaff000000 000000 /************************************************************************ * newgamedia.c New game dialog * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include /* For atoi */ #include #include "dopewars.h" #include "network.h" #include "message.h" #include "nls.h" #include "gtkport/gtkport.h" #include "gtk_client.h" #include "newgamedia.h" struct StartGameStruct { GtkWidget *dialog, *name, *hostname, *port, *antique, *status, *metaserv, *notebook; Player *play; #ifdef NETWORKING CurlConnection *MetaConn; GSList *NewMetaList; NBCallBack sockstat; #endif }; static struct StartGameStruct stgam; #ifdef NETWORKING static void SocksAuthDialog(NetworkBuffer *netbuf, gpointer data); static void FillMetaServerList(gboolean UseNewList); /* List of servers on the metaserver */ static GSList *MetaList = NULL; #endif /* NETWORKING */ /* Which notebook page to display in the New Game dialog */ static gint NewGameType = 0; static gboolean GetStartGamePlayerName(gchar **PlayerName) { g_free(*PlayerName); *PlayerName = gtk_editable_get_chars(GTK_EDITABLE(stgam.name), 0, -1); if (*PlayerName && (*PlayerName)[0]) return TRUE; else { GtkMessageBox(stgam.dialog, _("You can't start the game without giving a name first!"), _("New Game"), GTK_MESSAGE_WARNING, MB_OK); return FALSE; } } static void SetStartGameStatus(gchar *msg) { gtk_label_set_text(GTK_LABEL(stgam.status), msg ? msg : _("Status: Waiting for user input")); } #ifdef NETWORKING static void ReportMetaConnectError(GError *err) { char *str = g_strdup_printf(_("Status: ERROR: %s"), err->message); SetStartGameStatus(str); g_free(str); } /* Called by glib when we get action on a multi socket */ static gboolean glib_socket(GIOChannel *ch, GIOCondition condition, gpointer data) { CurlConnection *g = (CurlConnection*) data; int still_running; GError *err = NULL; int fd = g_io_channel_unix_get_fd(ch); int action = ((condition & G_IO_IN) ? CURL_CSELECT_IN : 0) | ((condition & G_IO_OUT) ? CURL_CSELECT_OUT : 0); CurlConnectionSocketAction(g, fd, action, &still_running, &err); if (!err && still_running) { return TRUE; } else { if (g->timer_event) { dp_g_source_remove(g->timer_event); g->timer_event = 0; } if (!err) HandleWaitingMetaServerData(stgam.MetaConn, &stgam.NewMetaList, &err); if (err) { ReportMetaConnectError(err); g_error_free(err); } else { SetStartGameStatus(NULL); } CloseCurlConnection(stgam.MetaConn); FillMetaServerList(TRUE); return FALSE; } } static gboolean glib_timeout(gpointer userp) { CurlConnection *g = userp; GError *err = NULL; int still_running; if (!CurlConnectionSocketAction(g, CURL_SOCKET_TIMEOUT, 0, &still_running, &err)) { ReportMetaConnectError(err); g_error_free(err); } g->timer_event = 0; return G_SOURCE_REMOVE; } static void ConnectError(void) { GString *neterr; gchar *text; LastError *error; error = stgam.play->NetBuf.error; neterr = g_string_new(""); if (error) { g_string_assign_error(neterr, error); } else { g_string_assign(neterr, _("Connection closed by remote host")); } /* Error: GTK+ client could not connect to the given dopewars server */ text = g_strdup_printf(_("Status: Could not connect (%s)"), neterr->str); SetStartGameStatus(text); g_free(text); g_string_free(neterr, TRUE); } void FinishServerConnect(gboolean ConnectOK) { if (ConnectOK) { Client = Network = TRUE; gtk_widget_destroy(stgam.dialog); GuiStartGame(); } else { ConnectError(); } } static void DoConnect(void) { gchar *text; NetworkBuffer *NetBuf; NBStatus oldstatus; NBSocksStatus oldsocks; NetBuf = &stgam.play->NetBuf; /* Message displayed during the attempted connect to a dopewars server */ text = g_strdup_printf(_("Status: Attempting to contact %s..."), ServerName); SetStartGameStatus(text); g_free(text); /* Terminate any existing connection attempts */ ShutdownNetworkBuffer(NetBuf); if (stgam.MetaConn->running) { CloseCurlConnection(stgam.MetaConn); } oldstatus = NetBuf->status; oldsocks = NetBuf->sockstat; if (StartNetworkBufferConnect(NetBuf, NULL, ServerName, Port)) { DisplayConnectStatus(oldstatus, oldsocks); SetNetworkBufferUserPasswdFunc(NetBuf, SocksAuthDialog, NULL); SetNetworkBufferCallBack(NetBuf, stgam.sockstat, NULL); } else { ConnectError(); } } static void ConnectToServer(GtkWidget *widget, gpointer data) { gchar *text; g_free(ServerName); ServerName = gtk_editable_get_chars(GTK_EDITABLE(stgam.hostname), 0, -1); text = gtk_editable_get_chars(GTK_EDITABLE(stgam.port), 0, -1); Port = atoi(text); g_free(text); if (GetStartGamePlayerName(&stgam.play->Name)) { DoConnect(); } } /* Columns in metaserver list */ enum { META_COL_SERVER = 0, META_COL_PORT, META_COL_VERSION, META_COL_PLAYERS, META_COL_COMMENT, META_NUM_COLS }; static void FillMetaServerList(gboolean UseNewList) { GtkWidget *metaserv; GtkListStore *store; ServerData *ThisServer; GtkTreeIter iter; GSList *ListPt; if (UseNewList && !stgam.NewMetaList) return; metaserv = stgam.metaserv; store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(metaserv))); gtk_list_store_clear(store); if (UseNewList) { ClearServerList(&MetaList); MetaList = stgam.NewMetaList; stgam.NewMetaList = NULL; } for (ListPt = MetaList; ListPt; ListPt = g_slist_next(ListPt)) { char *players; ThisServer = (ServerData *)(ListPt->data); if (ThisServer->CurPlayers == -1) { /* Displayed if we don't know how many players are logged on to a server */ players = _("Unknown"); } else { /* e.g. "5 of 20" means 5 players are logged on to a server, out of a maximum of 20 */ players = g_strdup_printf(_("%d of %d"), ThisServer->CurPlayers, ThisServer->MaxPlayers); } gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, META_COL_SERVER, ThisServer->Name, META_COL_PORT, ThisServer->Port, META_COL_VERSION, ThisServer->Version, META_COL_PLAYERS, players, META_COL_COMMENT, ThisServer->Comment, -1); if (ThisServer->CurPlayers != -1) g_free(players); } } void DisplayConnectStatus(NBStatus oldstatus, NBSocksStatus oldsocks) { NBStatus status; NBSocksStatus sockstat; gchar *text; status = stgam.play->NetBuf.status; sockstat = stgam.play->NetBuf.sockstat; if (oldstatus == status && sockstat == oldsocks) return; switch (status) { case NBS_PRECONNECT: break; case NBS_SOCKSCONNECT: switch (sockstat) { case NBSS_METHODS: /* Tell the user that we've successfully connected to a SOCKS server, and are now ready to tell it to initiate the "real" connection */ text = g_strdup_printf(_("Status: Connected to SOCKS server %s..."), Socks.name); SetStartGameStatus(text); g_free(text); break; case NBSS_USERPASSWD: /* Tell the user that the SOCKS server is asking us for a username and password */ SetStartGameStatus(_("Status: Authenticating with SOCKS server")); break; case NBSS_CONNECT: text = /* Tell the user that all necessary SOCKS authentication has been completed, and now we're going to try to have it connect to the final destination */ g_strdup_printf(_("Status: Asking SOCKS for connect to %s..."), ServerName); SetStartGameStatus(text); g_free(text); break; } break; case NBS_CONNECTED: break; } } static void UpdateMetaServerList(GtkWidget *widget) { gchar *text; GError *tmp_error = NULL; /* Terminate any existing connection attempts */ ShutdownNetworkBuffer(&stgam.play->NetBuf); if (stgam.MetaConn->running) { CloseCurlConnection(stgam.MetaConn); } ClearServerList(&stgam.NewMetaList); /* Message displayed during the attempted connect to the metaserver */ text = g_strdup_printf(_("Status: Attempting to contact %s..."), MetaServer.URL); SetStartGameStatus(text); g_free(text); if (!OpenMetaHttpConnection(stgam.MetaConn, &tmp_error)) { text = g_strdup_printf(_("Status: ERROR: %s"), tmp_error->message); g_error_free(tmp_error); SetStartGameStatus(text); g_free(text); } } static void MetaServerConnect(GtkWidget *widget, gpointer data) { GtkTreeSelection *treesel; GtkTreeModel *model; GtkTreeIter iter; treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(stgam.metaserv)); if (gtk_tree_selection_get_selected(treesel, &model, &iter)) { gchar *name; gtk_tree_model_get(model, &iter, META_COL_SERVER, &name, META_COL_PORT, &Port, -1); AssignName(&ServerName, name); g_free(name); if (GetStartGamePlayerName(&stgam.play->Name)) { DoConnect(); } } } #endif /* NETWORKING */ static void StartSinglePlayer(GtkWidget *widget, gpointer data) { WantAntique = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(stgam.antique)); if (!GetStartGamePlayerName(&stgam.play->Name)) return; GuiStartGame(); gtk_widget_destroy(stgam.dialog); } static void CloseNewGameDia(GtkWidget *widget, gpointer data) { #ifdef NETWORKING /* Terminate any existing connection attempts */ if (stgam.play->NetBuf.status != NBS_CONNECTED) { ShutdownNetworkBuffer(&stgam.play->NetBuf); } if (stgam.MetaConn) { CloseCurlConnection(stgam.MetaConn); stgam.MetaConn = NULL; } ClearServerList(&stgam.NewMetaList); #endif /* Remember which tab we chose for the next time we use this dialog */ NewGameType = gtk_notebook_get_current_page(GTK_NOTEBOOK(stgam.notebook)); } #ifdef NETWORKING static void metalist_changed(GtkTreeSelection *sel, GtkWidget *conn_button) { gtk_widget_set_sensitive(conn_button, gtk_tree_selection_count_selected_rows(sel) > 0); } #endif #ifdef NETWORKING static GtkTreeModel *create_metaserver_model(void) { GtkListStore *store; store = gtk_list_store_new(META_NUM_COLS, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); return GTK_TREE_MODEL(store); } static GtkWidget *create_metaserver_view(GtkWidget **pack_widg) { int i; GtkWidget *view; GtkTreeModel *model; GtkCellRenderer *renderer; GtkTreeViewColumn *col; gchar *server_titles[META_NUM_COLS]; gboolean expand[META_NUM_COLS]; /* Column titles of metaserver information */ server_titles[0] = _("Server"); expand[0] = TRUE; server_titles[1] = _("Port"); expand[1] = FALSE; server_titles[2] = _("Version"); expand[2] = FALSE; server_titles[3] = _("Players"); expand[3] = FALSE; server_titles[4] = _("Comment"); expand[4] = TRUE; view = gtk_scrolled_tree_view_new(pack_widg); renderer = gtk_cell_renderer_text_new(); for (i = 0; i < META_NUM_COLS; ++i) { col = gtk_tree_view_column_new_with_attributes( server_titles[i], renderer, "text", i, NULL); gtk_tree_view_column_set_resizable(col, TRUE); gtk_tree_view_column_set_expand(col, expand[i]); gtk_tree_view_insert_column(GTK_TREE_VIEW(view), col, -1); } model = create_metaserver_model(); gtk_tree_view_set_model(GTK_TREE_VIEW(view), model); /* Tree view keeps a reference, so we can drop ours */ g_object_unref(model); return view; } #endif static void set_initial_player_name(GtkEntry *entry, Player *play) { char *name = GetPlayerName(play); if (*name) { gtk_entry_set_text(entry, name); } else { /* If name is blank, use the first word from the user's full login name */ char *firstspace; name = g_strdup(g_get_real_name()); g_strstrip(name); firstspace = strchr(name, ' '); if (firstspace) { *firstspace = '\0'; } /* "Unknown" is returned from g_get_real_name() on error */ gtk_entry_set_text(entry, strcmp(name, "Unknown") == 0 ? "" : name); g_free(name); } } #ifdef NETWORKING void NewGameDialog(Player *play, NBCallBack sockstat, CurlConnection *MetaConn) #else void NewGameDialog(Player *play) #endif { GtkWidget *vbox, *vbox2, *hbox, *label, *entry, *notebook; GtkWidget *button, *dialog; GtkAccelGroup *accel_group; #if GTK_MAJOR_VERSION == 2 guint AccelKey; #endif #ifdef NETWORKING GtkWidget *clist, *scrollwin, *grid, *hbbox, *defbutton; GtkTreeSelection *treesel; gchar *ServerEntry, *text; gboolean UpdateMeta = FALSE; SetCurlCallback(MetaConn, glib_timeout, glib_socket); stgam.MetaConn = MetaConn; stgam.NewMetaList = NULL; stgam.sockstat = sockstat; #endif /* NETWORKING */ stgam.play = play; stgam.dialog = dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT(dialog), "destroy", G_CALLBACK(CloseNewGameDia), NULL); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(MainWindow)); #ifdef NETWORKING gtk_window_set_default_size(GTK_WINDOW(dialog), 500, 300); #endif accel_group = gtk_accel_group_new(); /* Title of 'New Game' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("New Game")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 7); label = gtk_label_new(""); #if GTK_MAJOR_VERSION == 2 AccelKey = gtk_label_parse_uline(GTK_LABEL(label), #else gtk_label_set_text_with_mnemonic(GTK_LABEL(label), #endif /* Prompt for player's name in 'New Game' dialog */ _("Hey dude, what's your _name?")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); entry = stgam.name = gtk_entry_new(); #if GTK_MAJOR_VERSION == 2 gtk_widget_add_accelerator(entry, "grab-focus", accel_group, AccelKey, GDK_MOD1_MASK, GTK_ACCEL_VISIBLE); #else gtk_label_set_mnemonic_widget(GTK_LABEL(label), entry); #endif set_initial_player_name(GTK_ENTRY(entry), stgam.play); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); notebook = stgam.notebook = gtk_notebook_new(); #ifdef NETWORKING vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 8); grid = dp_gtk_grid_new(2, 2, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 4); gtk_grid_set_column_spacing(GTK_GRID(grid), 4); /* Prompt for hostname to connect to in GTK+ new game dialog */ label = gtk_label_new(_("Host name")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1, FALSE); entry = stgam.hostname = gtk_entry_new(); ServerEntry = "localhost"; if (g_ascii_strncasecmp(ServerName, SN_META, strlen(SN_META)) == 0) { NewGameType = 2; UpdateMeta = TRUE; } else if (g_ascii_strncasecmp(ServerName, SN_PROMPT, strlen(SN_PROMPT)) == 0) NewGameType = 0; else if (g_ascii_strncasecmp(ServerName, SN_SINGLE, strlen(SN_SINGLE)) == 0) NewGameType = 1; else ServerEntry = ServerName; gtk_entry_set_text(GTK_ENTRY(entry), ServerEntry); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 0, 1, 1, TRUE); label = gtk_label_new(_("Port")); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1, FALSE); entry = stgam.port = gtk_entry_new(); text = g_strdup_printf("%d", Port); gtk_entry_set_text(GTK_ENTRY(entry), text); g_free(text); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 1, 1, 1, TRUE); gtk_box_pack_start(GTK_BOX(vbox2), grid, FALSE, FALSE, 0); button = gtk_button_new_with_label(""); /* Button to connect to a named dopewars server */ SetAccelerator(button, _("_Connect"), button, "clicked", accel_group, TRUE); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(ConnectToServer), NULL); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_widget_set_can_default(button, TRUE); defbutton = button; label = gtk_label_new(_("Server")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); #endif /* NETWORKING */ vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 8); stgam.antique = gtk_check_button_new_with_label(""); /* Checkbox to activate 'antique mode' in single-player games */ SetAccelerator(stgam.antique, _("_Antique mode"), stgam.antique, "clicked", accel_group, TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stgam.antique), WantAntique); gtk_box_pack_start(GTK_BOX(vbox2), stgam.antique, FALSE, FALSE, 0); button = gtk_button_new_with_label(""); /* Button to start a new single-player (standalone, non-network) game */ SetAccelerator(button, _("_Start single-player game"), button, "clicked", accel_group, TRUE); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(StartSinglePlayer), NULL); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); /* Title of 'New Game' dialog notebook tab for single-player mode */ label = gtk_label_new(_("Single player")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); #ifdef NETWORKING vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 8); clist = stgam.metaserv = create_metaserver_view(&scrollwin); gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(clist), FALSE); gtk_tree_selection_set_mode( gtk_tree_view_get_selection(GTK_TREE_VIEW(clist)), GTK_SELECTION_SINGLE); gtk_box_pack_start(GTK_BOX(vbox2), scrollwin, TRUE, TRUE, 0); hbbox = my_hbbox_new(); /* Button to update metaserver information */ button = gtk_button_new_with_mnemonic(_("_Refresh")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(UpdateMetaServerList), NULL); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_label(""); SetAccelerator(button, _("_Connect"), button, "clicked", accel_group, TRUE); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(MetaServerConnect), NULL); gtk_widget_set_sensitive(button, FALSE); treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(clist)); g_signal_connect(G_OBJECT(treesel), "changed", G_CALLBACK(metalist_changed), button); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox2), hbbox, FALSE, FALSE, 0); /* Title of Metaserver notebook tab in New Game dialog */ label = gtk_label_new(_("Metaserver")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); #endif /* NETWORKING */ gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); /* Caption of status label in New Game dialog before anything has * happened */ label = stgam.status = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(stgam.dialog), vbox); gtk_widget_grab_focus(stgam.name); #ifdef NETWORKING if (UpdateMeta) { UpdateMetaServerList(NULL); } else { FillMetaServerList(FALSE); } #endif SetStartGameStatus(NULL); gtk_widget_show_all(dialog); gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), NewGameType); #ifdef NETWORKING gtk_widget_grab_default(defbutton); #endif } #ifdef NETWORKING static void OKSocksAuth(GtkWidget *widget, GtkWidget *window) { g_object_set_data(G_OBJECT(window), "authok", GINT_TO_POINTER(TRUE)); gtk_widget_destroy(window); } static void DestroySocksAuth(GtkWidget *window, gpointer data) { GtkWidget *userentry, *passwdentry; gchar *username = NULL, *password = NULL; gpointer authok; NetworkBuffer *netbuf; authok = g_object_get_data(G_OBJECT(window), "authok"); userentry = (GtkWidget *)g_object_get_data(G_OBJECT(window), "username"); passwdentry = (GtkWidget *)g_object_get_data(G_OBJECT(window), "password"); netbuf = (NetworkBuffer *)g_object_get_data(G_OBJECT(window), "netbuf"); g_assert(userentry && passwdentry && netbuf); if (authok) { username = gtk_editable_get_chars(GTK_EDITABLE(userentry), 0, -1); password = gtk_editable_get_chars(GTK_EDITABLE(passwdentry), 0, -1); } SendSocks5UserPasswd(netbuf, username, password); g_free(username); g_free(password); } static void SocksAuthDialog(NetworkBuffer *netbuf, gpointer data) { GtkWidget *window, *button, *hsep, *vbox, *label, *entry, *grid, *hbbox; GtkAccelGroup *accel_group; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(DestroySocksAuth), NULL); g_object_set_data(G_OBJECT(window), "netbuf", (gpointer)netbuf); /* Title of dialog for authenticating with a SOCKS server */ gtk_window_set_title(GTK_WINDOW(window), _("SOCKS Authentication Required")); my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(MainWindow)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 7); grid = dp_gtk_grid_new(2, 2, FALSE); gtk_grid_set_row_spacing(GTK_GRID(grid), 10); gtk_grid_set_column_spacing(GTK_GRID(grid), 5); label = gtk_label_new("User name:"); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1, FALSE); entry = gtk_entry_new(); g_object_set_data(G_OBJECT(window), "username", (gpointer)entry); dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 0, 1, 1, TRUE); label = gtk_label_new("Password:"); dp_gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1, FALSE); entry = gtk_entry_new(); g_object_set_data(G_OBJECT(window), "password", (gpointer)entry); #ifdef HAVE_FIXED_GTK /* GTK+ versions earlier than 1.2.10 do bad things with this */ gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); #endif dp_gtk_grid_attach(GTK_GRID(grid), entry, 1, 1, 1, 1, TRUE); gtk_box_pack_start(GTK_BOX(vbox), grid, TRUE, TRUE, 0); hsep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = gtk_button_new_with_mnemonic(_("_OK")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(OKSocksAuth), (gpointer)window); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_mnemonic(_("_Cancel")); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); my_gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } #endif /* NETWORKING */ dopewars-1.6.2/src/gui_client/Makefile.am000644 000765 000024 00000000453 14256242752 020233 0ustar00benstaff000000 000000 noinst_LIBRARIES = libguiclient.a libguiclient_a_SOURCES = gtk_client.c gtk_client.h \ optdialog.c optdialog.h \ newgamedia.c newgamedia.h dopewars-pill.xpm AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GTK_CFLAGS@ @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.6.2/src/gui_client/optdialog.h000644 000765 000024 00000003320 14256242752 020326 0ustar00benstaff000000 000000 /************************************************************************ * optdialog.c Configuration file editing dialog * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __OPT_DIALOG_H__ #define __OPT_DIALOG_H__ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport/gtkport.h" void OptDialog(GtkWidget *widget, gpointer data); #endif dopewars-1.6.2/src/gui_client/gtk_client.h000644 000765 000024 00000004204 14256242752 020471 0ustar00benstaff000000 000000 /************************************************************************ * gtk_client.h dopewars client using the GTK+ toolkit * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __GTK_CLIENT_H__ #define __GTK_CLIENT_H__ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport/gtkport.h" extern GtkWidget *MainWindow; struct CMDLINE; #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail); #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail); #endif void GuiStartGame(void); GtkWidget *my_hbbox_new(void); void my_gtk_box_pack_start_defaults(GtkBox *box, GtkWidget *child); void my_set_dialog_position(GtkWindow *dialog); #endif dopewars-1.6.2/src/gui_client/newgamedia.h000644 000765 000024 00000003707 14256242752 020456 0ustar00benstaff000000 000000 /************************************************************************ * newgamedia.h New game dialog * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __NEWGAME_DIA_H__ #define __NEWGAME_DIA_H__ #ifdef HAVE_CONFIG_H #include #endif #include #include "dopewars.h" #include "network.h" #ifdef NETWORKING void NewGameDialog(Player *play, NBCallBack sockstat, CurlConnection *MetaConn); void DisplayConnectStatus(NBStatus oldstatus, NBSocksStatus oldsocks); void FinishServerConnect(gboolean ConnectOK); #else void NewGameDialog(Player *play); #endif #endif dopewars-1.6.2/src/gui_client/Makefile.in000644 000765 000024 00000050167 14256243572 020254 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = src/gui_client ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libguiclient_a_AR = $(AR) $(ARFLAGS) libguiclient_a_LIBADD = am_libguiclient_a_OBJECTS = gtk_client.$(OBJEXT) optdialog.$(OBJEXT) \ newgamedia.$(OBJEXT) libguiclient_a_OBJECTS = $(am_libguiclient_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/auxbuild/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/gtk_client.Po \ ./$(DEPDIR)/newgamedia.Po ./$(DEPDIR)/optdialog.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libguiclient_a_SOURCES) DIST_SOURCES = $(libguiclient_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/auxbuild/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LIBRARIES = libguiclient.a libguiclient_a_SOURCES = gtk_client.c gtk_client.h \ optdialog.c optdialog.h \ newgamedia.c newgamedia.h dopewars-pill.xpm AM_CPPFLAGS = -I${srcdir} -I$(top_srcdir)/src @GTK_CFLAGS@ @GLIB_CFLAGS@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/gui_client/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/gui_client/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libguiclient.a: $(libguiclient_a_OBJECTS) $(libguiclient_a_DEPENDENCIES) $(EXTRA_libguiclient_a_DEPENDENCIES) $(AM_V_at)-rm -f libguiclient.a $(AM_V_AR)$(libguiclient_a_AR) libguiclient.a $(libguiclient_a_OBJECTS) $(libguiclient_a_LIBADD) $(AM_V_at)$(RANLIB) libguiclient.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtk_client.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newgamedia.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optdialog.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/gtk_client.Po -rm -f ./$(DEPDIR)/newgamedia.Po -rm -f ./$(DEPDIR)/optdialog.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/gtk_client.Po -rm -f ./$(DEPDIR)/newgamedia.Po -rm -f ./$(DEPDIR)/optdialog.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: dopewars-1.6.2/src/plugins/sound_sdl.h000644 000765 000024 00000003406 14256242752 017702 0ustar00benstaff000000 000000 /************************************************************************ * sound_sdl.h Header file for dopewars sound system (SDL driver) * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_SOUND_SDL_H__ #define __DP_SOUND_SDL_H__ #ifdef HAVE_CONFIG_H #include #endif #include "sound.h" #ifdef HAVE_SDL_MIXER SoundDriver *sound_sdl_init(void); #endif /* HAVE_SDL_MIXER */ #endif /* __DP_SOUND_SDL_H__ */ dopewars-1.6.2/src/plugins/sound_esd.c000644 000765 000024 00000005730 14256242752 017670 0ustar00benstaff000000 000000 /************************************************************************ * sound_esd.c dopewars sound system (ESD/esound driver) * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_ESD #include #include #include #include #include "../sound.h" #define MAXCACHE 6 struct SoundCache { int esdid; gchar *name; } cache[MAXCACHE]; static int sock, nextcache; static gboolean SoundOpen_ESD(void) { int i; sock = esd_open_sound(NULL); for (i = 0; i < MAXCACHE; i++) { cache[i].esdid = -1; cache[i].name = NULL; } nextcache = 0; return TRUE; } static void SoundClose_ESD(void) { int i; for (i = 0; i < MAXCACHE; i++) { g_free(cache[i].name); if (cache[i].esdid != -1) { esd_sample_free(sock, cache[i].esdid); } } esd_close(sock); } static void SoundPlay_ESD(const gchar *snd) { int i; for (i = 0; i < MAXCACHE; i++) { if (cache[i].name && strcmp(cache[i].name, snd) == 0) { esd_sample_play(sock, cache[i].esdid); return; } } if (cache[nextcache].esdid != -1) { esd_sample_free(sock, cache[nextcache].esdid); g_free(cache[nextcache].name); } cache[nextcache].esdid = esd_file_cache(sock, PACKAGE, snd); cache[nextcache].name = g_strdup(snd); esd_sample_play(sock, cache[nextcache].esdid); nextcache = (nextcache + 1) % MAXCACHE; } SoundDriver *sound_esd_init(void) { static SoundDriver driver; driver.name = "esd"; driver.open = SoundOpen_ESD; driver.close = SoundClose_ESD; driver.play = SoundPlay_ESD; return &driver; } #endif /* HAVE_ESD */ dopewars-1.6.2/src/plugins/sound_winmm.h000644 000765 000024 00000003406 14256242752 020247 0ustar00benstaff000000 000000 /************************************************************************ * sound_winmm.h Header file for dopewars sound system (WinMM driver) * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_SOUND_WINMM_H__ #define __DP_SOUND_WINMM_H__ #ifdef HAVE_CONFIG_H #include #endif #include "sound.h" #ifdef HAVE_WINMM SoundDriver *sound_winmm_init(void); #endif /* HAVE_WINMM */ #endif /* __DP_SOUND_WINMM_H__ */ dopewars-1.6.2/src/plugins/Makefile.am000644 000765 000024 00000003664 14256000066 017567 0ustar00benstaff000000 000000 noinst_LTLIBRARIES = libsound_winmm.la if ESD noinst_LTLIBRARIES += libsound_esd.la endif if SDL noinst_LTLIBRARIES += libsound_sdl.la endif if COCOA noinst_LTLIBRARIES += libsound_cocoa.la endif libsound_esd_la_SOURCES = sound_esd.c sound_esd.h libsound_esd_la_LDFLAGS = @ESD_LIBS@ libsound_sdl_la_SOURCES = sound_sdl.c sound_sdl.h libsound_sdl_la_LDFLAGS = @SDL_LIBS@ libsound_winmm_la_SOURCES = sound_winmm.c sound_winmm.h libsound_cocoa_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,-framework,Foundation,-framework,AppKit libsound_cocoa_la_SOURCES = sound_cocoa.m LIBS = @GLIB_LIBS@ AM_CPPFLAGS = @SOUND_CFLAGS@ @GLIB_CFLAGS@ LINKNOO = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) if PLUGINS PLUGINDIR = ${DESTDIR}${plugindir} if ESD ESD_SO = .libs/libsound_esd.so endif if SDL SDL_SO = .libs/libsound_sdl.so endif if COCOA COCOA_SO = .libs/libsound_cocoa.so endif PLUGINS = $(ESD_SO) $(SDL_SO) $(COCOA_SO) all-local: ${PLUGINS} .libs/libsound_esd.so: $(libsound_esd_la_OBJECTS) $(LINKNOO) -o libsound_esd.la -rpath $(libdir) $(libsound_esd_la_LDFLAGS) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS) .libs/libsound_sdl.so: $(libsound_sdl_la_OBJECTS) $(LINKNOO) -o libsound_sdl.la -rpath $(libdir) $(libsound_sdl_la_LDFLAGS) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS) .libs/libsound_winmm.so: $(libsound_winmm_la_OBJECTS) $(LINKNOO) -o libsound_winmm.la -rpath $(libdir) $(libsound_winmm_la_LDFLAGS) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS) .libs/libsound_cocoa.so: $(libsound_cocoa_la_OBJECTS) $(LINKNOO) -o libsound_cocoa.la -rpath $(libdir) $(libsound_cocoa_la_LDFLAGS) $(libsound_cocoa_la_OBJECTS) $(libsound_cocoa_la_LIBADD) $(LIBS) install-exec-am: ${mkinstalldirs} ${PLUGINDIR} for plug in ${PLUGINS}; do \ ${INSTALL} $${plug} ${PLUGINDIR}; \ done uninstall-local: for plug in ${PLUGINS}; do \ /bin/rm -f ${PLUGINDIR}/`basename $${plug}`; \ done endif dopewars-1.6.2/src/plugins/sound_sdl.c000644 000765 000024 00000006545 14256242752 017704 0ustar00benstaff000000 000000 /************************************************************************ * sound_sdl.c dopewars sound system (SDL driver) * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_SDL_MIXER #include #include #include #include #include #include "../sound.h" struct ChannelStruct { Mix_Chunk *chunk; gchar *name; } channel[MIX_CHANNELS]; static gboolean SoundOpen_SDL(void) { const int audio_rate = MIX_DEFAULT_FREQUENCY; const int audio_format = MIX_DEFAULT_FORMAT; const int audio_channels = 2; int i; if (SDL_Init(SDL_INIT_AUDIO) < 0) { return FALSE; } if (Mix_OpenAudio(audio_rate, audio_format, audio_channels, 4096) < 0) { SDL_Quit(); return FALSE; } Mix_AllocateChannels(MIX_CHANNELS); for (i = 0; i < MIX_CHANNELS; i++) { channel[i].chunk = NULL; channel[i].name = NULL; } return TRUE; } static void SoundClose_SDL(void) { int i; for (i = 0; i < MIX_CHANNELS; i++) { g_free(channel[i].name); if (channel[i].chunk) { Mix_FreeChunk(channel[i].chunk); } } Mix_CloseAudio(); SDL_Quit(); } static void SoundPlay_SDL(const gchar *snd) { int i, chan_num; Mix_Chunk *chunk; for (i = 0; i < MIX_CHANNELS; i++) { if (channel[i].name && strcmp(channel[i].name, snd) == 0) { Mix_PlayChannel(-1, channel[i].chunk, 0); return; } } chunk = Mix_LoadWAV(snd); if (!chunk) { return; } chan_num = Mix_PlayChannel(-1, chunk, 0); if (chan_num < 0) { Mix_FreeChunk(chunk); return; } if (channel[chan_num].chunk) { Mix_FreeChunk(channel[chan_num].chunk); g_free(channel[chan_num].name); } channel[chan_num].chunk = chunk; channel[chan_num].name = g_strdup(snd); } SoundDriver *sound_sdl_init(void) { static SoundDriver driver; driver.name = "sdl"; driver.open = SoundOpen_SDL; driver.close = SoundClose_SDL; driver.play = SoundPlay_SDL; return &driver; } #endif /* HAVE_SDL_MIXER */ dopewars-1.6.2/src/plugins/sound_cocoa.m000644 000765 000024 00000005130 14256242752 020205 0ustar00benstaff000000 000000 /************************************************************************ * sound_cocoa.m Implementation of dopewars sound system (Cocoa driver)* * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_COCOA #include #include "../sound.h" #import #import /* Cache player by name of sound file */ NSMutableDictionary *play_by_name; static gboolean SoundOpen_Cocoa(void) { play_by_name = [[NSMutableDictionary alloc] init]; return TRUE; } static void SoundClose_Cocoa(void) { [play_by_name release]; } static void SoundPlay_Cocoa(const gchar *snd) { NSString *sound = [[NSString alloc] initWithUTF8String:snd]; NSSound *p; p = [play_by_name objectForKey:sound]; if (!p) { p = [[NSSound alloc] initWithContentsOfFile:sound byReference:YES]; /* If the sound file doesn't exist, do nothing */ if (!p) return; [play_by_name setObject:p forKey:sound]; } /* First, stop any currently playing sound */ [p stop]; [p play]; } SoundDriver *sound_cocoa_init(void) { static SoundDriver driver; driver.name = "cocoa"; driver.open = SoundOpen_Cocoa; driver.close = SoundClose_Cocoa; driver.play = SoundPlay_Cocoa; return &driver; } #endif dopewars-1.6.2/src/plugins/sound_esd.h000644 000765 000024 00000003372 14256242752 017675 0ustar00benstaff000000 000000 /************************************************************************ * sound_esd.h Header file for dopewars sound system (ESD driver) * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __DP_SOUND_ESD_H__ #define __DP_SOUND_ESD_H__ #ifdef HAVE_CONFIG_H #include #endif #include "sound.h" #ifdef HAVE_ESD SoundDriver *sound_esd_init(void); #endif /* HAVE_ESD */ #endif /* __DP_SOUND_ESD_H__ */ dopewars-1.6.2/src/plugins/Makefile.in000644 000765 000024 00000064637 14256243572 017622 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ @ESD_TRUE@am__append_1 = libsound_esd.la @SDL_TRUE@am__append_2 = libsound_sdl.la @COCOA_TRUE@am__append_3 = libsound_cocoa.la subdir = src/plugins ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libsound_cocoa_la_LIBADD = am_libsound_cocoa_la_OBJECTS = sound_cocoa.lo libsound_cocoa_la_OBJECTS = $(am_libsound_cocoa_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libsound_cocoa_la_LINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(OBJCLD) $(AM_OBJCFLAGS) \ $(OBJCFLAGS) $(libsound_cocoa_la_LDFLAGS) $(LDFLAGS) -o $@ @COCOA_TRUE@am_libsound_cocoa_la_rpath = libsound_esd_la_LIBADD = am_libsound_esd_la_OBJECTS = sound_esd.lo libsound_esd_la_OBJECTS = $(am_libsound_esd_la_OBJECTS) libsound_esd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) $(libsound_esd_la_LDFLAGS) $(LDFLAGS) \ -o $@ @ESD_TRUE@am_libsound_esd_la_rpath = libsound_sdl_la_LIBADD = am_libsound_sdl_la_OBJECTS = sound_sdl.lo libsound_sdl_la_OBJECTS = $(am_libsound_sdl_la_OBJECTS) libsound_sdl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) $(libsound_sdl_la_LDFLAGS) $(LDFLAGS) \ -o $@ @SDL_TRUE@am_libsound_sdl_la_rpath = libsound_winmm_la_LIBADD = am_libsound_winmm_la_OBJECTS = sound_winmm.lo libsound_winmm_la_OBJECTS = $(am_libsound_winmm_la_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/auxbuild/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/sound_cocoa.Plo \ ./$(DEPDIR)/sound_esd.Plo ./$(DEPDIR)/sound_sdl.Plo \ ./$(DEPDIR)/sound_winmm.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = OBJCCOMPILE = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) LTOBJCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_OBJCFLAGS) $(OBJCFLAGS) AM_V_OBJC = $(am__v_OBJC_@AM_V@) am__v_OBJC_ = $(am__v_OBJC_@AM_DEFAULT_V@) am__v_OBJC_0 = @echo " OBJC " $@; am__v_OBJC_1 = OBJCLD = $(OBJC) OBJCLINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(OBJCLD) $(AM_OBJCFLAGS) $(OBJCFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_OBJCLD = $(am__v_OBJCLD_@AM_V@) am__v_OBJCLD_ = $(am__v_OBJCLD_@AM_DEFAULT_V@) am__v_OBJCLD_0 = @echo " OBJCLD " $@; am__v_OBJCLD_1 = SOURCES = $(libsound_cocoa_la_SOURCES) $(libsound_esd_la_SOURCES) \ $(libsound_sdl_la_SOURCES) $(libsound_winmm_la_SOURCES) DIST_SOURCES = $(libsound_cocoa_la_SOURCES) $(libsound_esd_la_SOURCES) \ $(libsound_sdl_la_SOURCES) $(libsound_winmm_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/auxbuild/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @GLIB_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libsound_winmm.la $(am__append_1) $(am__append_2) \ $(am__append_3) libsound_esd_la_SOURCES = sound_esd.c sound_esd.h libsound_esd_la_LDFLAGS = @ESD_LIBS@ libsound_sdl_la_SOURCES = sound_sdl.c sound_sdl.h libsound_sdl_la_LDFLAGS = @SDL_LIBS@ libsound_winmm_la_SOURCES = sound_winmm.c sound_winmm.h libsound_cocoa_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,-framework,Foundation,-framework,AppKit libsound_cocoa_la_SOURCES = sound_cocoa.m AM_CPPFLAGS = @SOUND_CFLAGS@ @GLIB_CFLAGS@ LINKNOO = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) @PLUGINS_TRUE@PLUGINDIR = ${DESTDIR}${plugindir} @ESD_TRUE@@PLUGINS_TRUE@ESD_SO = .libs/libsound_esd.so @PLUGINS_TRUE@@SDL_TRUE@SDL_SO = .libs/libsound_sdl.so @COCOA_TRUE@@PLUGINS_TRUE@COCOA_SO = .libs/libsound_cocoa.so @PLUGINS_TRUE@PLUGINS = $(ESD_SO) $(SDL_SO) $(COCOA_SO) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .m .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/plugins/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/plugins/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libsound_cocoa.la: $(libsound_cocoa_la_OBJECTS) $(libsound_cocoa_la_DEPENDENCIES) $(EXTRA_libsound_cocoa_la_DEPENDENCIES) $(AM_V_OBJCLD)$(libsound_cocoa_la_LINK) $(am_libsound_cocoa_la_rpath) $(libsound_cocoa_la_OBJECTS) $(libsound_cocoa_la_LIBADD) $(LIBS) libsound_esd.la: $(libsound_esd_la_OBJECTS) $(libsound_esd_la_DEPENDENCIES) $(EXTRA_libsound_esd_la_DEPENDENCIES) $(AM_V_CCLD)$(libsound_esd_la_LINK) $(am_libsound_esd_la_rpath) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS) libsound_sdl.la: $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_DEPENDENCIES) $(EXTRA_libsound_sdl_la_DEPENDENCIES) $(AM_V_CCLD)$(libsound_sdl_la_LINK) $(am_libsound_sdl_la_rpath) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS) libsound_winmm.la: $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_DEPENDENCIES) $(EXTRA_libsound_winmm_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_cocoa.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_esd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_sdl.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_winmm.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< .m.o: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ $< .m.obj: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(OBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .m.lo: @am__fastdepOBJC_TRUE@ $(AM_V_OBJC)$(LTOBJCCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepOBJC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(LTOBJCCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am @PLUGINS_FALSE@all-local: all-am: Makefile $(LTLIBRARIES) all-local installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @PLUGINS_FALSE@uninstall-local: clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/sound_cocoa.Plo -rm -f ./$(DEPDIR)/sound_esd.Plo -rm -f ./$(DEPDIR)/sound_sdl.Plo -rm -f ./$(DEPDIR)/sound_winmm.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: @PLUGINS_FALSE@install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/sound_cocoa.Plo -rm -f ./$(DEPDIR)/sound_esd.Plo -rm -f ./$(DEPDIR)/sound_sdl.Plo -rm -f ./$(DEPDIR)/sound_winmm.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am all-local am--depfiles check \ check-am clean clean-generic clean-libtool \ clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-local .PRECIOUS: Makefile @PLUGINS_TRUE@all-local: ${PLUGINS} @PLUGINS_TRUE@.libs/libsound_esd.so: $(libsound_esd_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_esd.la -rpath $(libdir) $(libsound_esd_la_LDFLAGS) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS) @PLUGINS_TRUE@.libs/libsound_sdl.so: $(libsound_sdl_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_sdl.la -rpath $(libdir) $(libsound_sdl_la_LDFLAGS) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS) @PLUGINS_TRUE@.libs/libsound_winmm.so: $(libsound_winmm_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_winmm.la -rpath $(libdir) $(libsound_winmm_la_LDFLAGS) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS) @PLUGINS_TRUE@.libs/libsound_cocoa.so: $(libsound_cocoa_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_cocoa.la -rpath $(libdir) $(libsound_cocoa_la_LDFLAGS) $(libsound_cocoa_la_OBJECTS) $(libsound_cocoa_la_LIBADD) $(LIBS) @PLUGINS_TRUE@install-exec-am: @PLUGINS_TRUE@ ${mkinstalldirs} ${PLUGINDIR} @PLUGINS_TRUE@ for plug in ${PLUGINS}; do \ @PLUGINS_TRUE@ ${INSTALL} $${plug} ${PLUGINDIR}; \ @PLUGINS_TRUE@ done @PLUGINS_TRUE@uninstall-local: @PLUGINS_TRUE@ for plug in ${PLUGINS}; do \ @PLUGINS_TRUE@ /bin/rm -f ${PLUGINDIR}/`basename $${plug}`; \ @PLUGINS_TRUE@ done # 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: dopewars-1.6.2/src/plugins/sound_winmm.c000644 000765 000024 00000004150 14256242752 020237 0ustar00benstaff000000 000000 /************************************************************************ * sound_winmm.c dopewars sound system (Windows MM driver) * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_WINMM #include #include #include #include "../sound.h" static gboolean SoundOpen_WinMM(void) { return TRUE; } static void SoundClose_WinMM(void) { sndPlaySound(NULL, 0); } static void SoundPlay_WinMM(const gchar *snd) { sndPlaySound(snd, SND_ASYNC); } SoundDriver *sound_winmm_init(void) { static SoundDriver driver; driver.name = "winmm"; driver.open = SoundOpen_WinMM; driver.close = SoundClose_WinMM; driver.play = SoundPlay_WinMM; return &driver; } #endif /* HAVE_WINMM */ dopewars-1.6.2/src/curses_client/curses_client.h000644 000765 000024 00000003301 14256242752 021725 0ustar00benstaff000000 000000 /************************************************************************ * curses_client.h dopewars client using the (n)curses console library * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifndef __CURSES_CLIENT_H__ #define __CURSES_CLIENT_H__ #ifdef HAVE_CONFIG_H #include #endif struct CMDLINE; void CursesLoop(struct CMDLINE *cmdline); #endif dopewars-1.6.2/src/curses_client/Makefile.am000644 000765 000024 00000000260 14256242752 020747 0ustar00benstaff000000 000000 noinst_LIBRARIES = libcursesclient.a libcursesclient_a_SOURCES = curses_client.c curses_client.h AM_CPPFLAGS= -I${srcdir} -I$(top_srcdir)/src @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.6.2/src/curses_client/curses_client.c000644 000765 000024 00000240752 14256242752 021735 0ustar00benstaff000000 000000 /************************************************************************ * curses_client.c dopewars client using the (n)curses console library * * Copyright (C) 1998-2022 Ben Webb * * Email: benwebb@users.sf.net * * WWW: https://dopewars.sourceforge.io/ * * * * 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. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #ifdef HAVE_UNISTD_H #include #endif #include #include #include #include #include #include "configfile.h" #include "curses_client.h" #include "cursesport/cursesport.h" #include "dopewars.h" #include "message.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" static int ResizedFlag; static SCREEN *cur_screen; #define PromptAttr (COLOR_PAIR(1)) #define TextAttr (COLOR_PAIR(2)) #define LocationAttr (COLOR_PAIR(3)|A_BOLD) #define TitleAttr (COLOR_PAIR(4)) #define StatsAttr (COLOR_PAIR(5)) #define DebtAttr (COLOR_PAIR(6)) /* Current size of the screen */ static int Width, Depth; /* Maximum number of messages to store (for scrollback etc.) */ const static int MaxMessages = 1000; #ifdef NETWORKING /* Data waiting to be sent to/read from the metaserver */ static CurlConnection MetaConn; static enum { CM_SERVER, CM_PROMPT, CM_META, CM_SINGLE } ConnectMethod = CM_SERVER; #endif static gboolean CanFire = FALSE, RunHere = FALSE; static FightPoint fp; /* Function definitions; make them static so as not to clash with * functions of the same name in different clients */ static void display_intro(void); static void ResizeHandle(int sig); static void CheckForResize(Player *Play); static int GetKey(const char *orig_allowed, gboolean AllowOther, gboolean PrintAllowed, gboolean ExpandOut); static void clear_bottom(void), clear_screen(void); static void clear_line(int line), clear_exceptfor(int skip); static void nice_wait(void); static void DisplayFightMessage(Player *Play, char *text); static void DisplaySpyReports(char *Data, Player *From, Player *To); static void display_message(const char *buf); static void print_location(char *text); static void print_status(Player *Play, gboolean DispDrug); static char *nice_input(char *prompt, int sy, int sx, gboolean digitsonly, char *displaystr, char passwdchar); static Player *ListPlayers(Player *Play, gboolean Select, char *Prompt); static void HandleClientMessage(char *buf, Player *Play); static void PrintMessage(const gchar *text); static void GunShop(Player *Play); static void LoanShark(Player *Play); static void Bank(Player *Play); static void PrepareHighScoreScreen(void); static void PrintHighScore(char *Data); static void scroll_msg_area_up(void); static void scroll_msg_area_down(void); #ifdef NETWORKING static void SocksAuthFunc(NetworkBuffer *netbuf, gpointer data); #endif static DispMode DisplayMode; static gboolean QuitRequest, WantColor = TRUE, WantNetwork = TRUE; /* * Initializes the curses library for accessing the screen. */ static void start_curses(void) { cur_screen = newterm(NULL, stdout, stdin); if (WantColor) { start_color(); init_pair(1, COLOR_MAGENTA, COLOR_WHITE); init_pair(2, COLOR_BLACK, COLOR_WHITE); init_pair(3, COLOR_BLACK, COLOR_WHITE); init_pair(4, COLOR_BLUE, COLOR_WHITE); init_pair(5, COLOR_WHITE, COLOR_BLUE); init_pair(6, COLOR_RED, COLOR_WHITE); } cbreak(); noecho(); nodelay(stdscr, FALSE); keypad(stdscr, TRUE); curs_set(0); } /* * Shuts down the curses screen library. */ static void end_curses(void) { keypad(stdscr, FALSE); curs_set(1); erase(); refresh(); endwin(); } /* * Handles a SIGWINCH signal, which is sent to indicate that the * size of the curses screen has changed. */ void ResizeHandle(int sig) { ResizedFlag = 1; } /* * Returns the topmost row of the message area */ static int get_msg_area_top(void) { return 10; } static int get_separator_line(void) { if (!Network) { return 14; } else if (Depth <= 20) { return 11; } else if (Depth <= 24) { return Depth - 9; } else { return 11 + (Depth - 20) * 2 / 3; } } /* * Returns the bottommost row of the message area */ static int get_msg_area_bottom(void) { return get_separator_line() - 1; } static int get_ui_area_top(void) { return get_separator_line() + (Network ? 1 : 2); } static int get_ui_area_bottom(void) { return Depth - 1; } static int get_prompt_line(void) { return Depth - 2; } /* * Checks to see if the curses window needs to be resized - i.e. if a * SIGWINCH signal has been received. */ void CheckForResize(Player *Play) { #ifdef CYGWIN int sigset; #else sigset_t sigset; #endif sigemptyset(&sigset); sigaddset(&sigset, SIGWINCH); sigprocmask(SIG_BLOCK, &sigset, NULL); if (ResizedFlag) { ResizedFlag = 0; end_curses(); start_curses(); Width = COLS; Depth = LINES; attrset(TextAttr); clear_screen(); display_message(""); DisplayFightMessage(Play, ""); print_status(Play, TRUE); } sigprocmask(SIG_UNBLOCK, &sigset, NULL); } static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { attrset(TextAttr); clear_bottom(); PrintMessage(message); nice_wait(); attrset(TextAttr); clear_bottom(); } /* Return length of string in characters (not bytes, like strlen) */ static int strcharlen(const char *str) { return LocaleIsUTF8 ? g_utf8_strlen(str, -1) : strlen(str); } /* Displays a string right-aligned at the given position (the last character in the string will be at the given row and column) */ static void mvaddrightstr(int row, int col, const gchar *str) { int len = strcharlen(str); mvaddstr(row, MAX(col - len + 1, 0), str); } /* Append len spaces to the end of text */ static void g_string_pad(GString *text, int len) { int curlen = text->len; g_string_set_size(text, curlen + len); memset(text->str + curlen, ' ', len); } /* Make the string the given number of characters, either by adding spaces to the end, or by truncating it */ static void g_string_pad_or_truncate_to_charlen(GString *text, int len) { int curlen = strcharlen(text->str); if (len < 0) { return; } if (curlen < len) { g_string_pad(text, len - curlen); } else if (curlen > len) { if (LocaleIsUTF8) { /* Convert from number of characters to bytes */ len = g_utf8_offset_to_pointer(text->str, len) - text->str; } g_string_truncate(text, len); } } /* * Displays a string, horizontally centred on the given row */ static void mvaddcentstr(const int row, const gchar *str) { guint col, len; len = strcharlen(str); col = (len > (guint)Width ? 0 : ((guint)Width - len) / 2); mvaddstr(row, col, str); } /* * Displays a string at the given coordinates and with the given * attributes. If the string is longer than "wid" characters, it is truncated, * and if shorter, it is padded with spaces. */ static void mvaddfixwidstr(const int row, const int col, const int wid, const gchar *str, const int attrs) { int strwidch = str ? strcharlen(str) : 0; int i, strwidbyte; strwidch = MIN(strwidch, wid); if (LocaleIsUTF8) { strwidbyte = g_utf8_offset_to_pointer(str, strwidch) - str; } else { strwidbyte = strwidch; } move(row, col); for (i = 0; i < strwidbyte; ++i) { addch((guchar)str[i] | attrs); } for (i = strwidch; i < wid; ++i) { addch((guchar)' ' | attrs); } } /* * Displays a dopewars introduction screen. */ void display_intro(void) { const gchar *translation = N_("English Translation Ben Webb"); GString *text; attrset(TextAttr); clear_screen(); attrset(TitleAttr); /* Curses client introduction screen */ text = g_string_new(_("D O P E W A R S")); mvaddcentstr(0, text->str); attrset(TextAttr); mvaddcentstr(2, _("Based on John E. Dell's old Drug Wars game, dopewars " "is a simulation of an")); mvaddcentstr(3, _("imaginary drug market. dopewars is an All-American " "game which features")); mvaddcentstr(4, _("buying, selling, and trying to get past the cops!")); mvaddcentstr(6, _("The first thing you need to do is pay off your " "debt to the Loan Shark. After")); mvaddcentstr(7, _("that, your goal is to make as much money as " "possible (and stay alive)!")); mvaddcentstr(8, _("You have one month of game time to make your fortune.")); g_string_printf(text, _("Version %-8s Copyright (C) 1998-2022 Ben Webb " "benwebb@users.sf.net"), VERSION); mvaddcentstr(10, text->str); g_string_assign(text, _("dopewars is released under the GNU " "General Public License")); mvaddcentstr(11, text->str); g_string_assign(text, _(translation)); if (strcmp(text->str, translation) != 0) { mvaddstr(12, 7, text->str); } mvaddstr(13, 7, _("Icons and Graphics Ocelot Mantis")); mvaddstr(14, 7, _("Sounds Robin Kohli, 19.5degs.com")); mvaddstr(15, 7, _("Drug Dealing and Research Dan Wolf")); mvaddstr(16, 7, _("Play Testing Phil Davis " "Owen Walsh")); mvaddstr(17, 7, _("Extensive Play Testing Katherine Holt " "Caroline Moore")); mvaddstr(18, 7, _("Constructive Criticism Andrea Elliot-Smith " "Pete Winn")); mvaddstr(19, 7, _("Unconstructive Criticism James Matthews")); mvaddcentstr(21, _("For information on the command line options, type " "dopewars -h at your")); mvaddcentstr(22, _("Unix prompt. This will display a help screen, listing " "the available options.")); g_string_free(text, TRUE); nice_wait(); attrset(TextAttr); clear_screen(); refresh(); } #ifdef NETWORKING /* * Prompts the user to enter a server name and port to connect to. */ static void SelectServerManually(void) { gchar *text, *PortText; int top = get_ui_area_top(); if (ServerName[0] == '(') AssignName(&ServerName, "localhost"); attrset(TextAttr); clear_bottom(); mvaddstr(top + 1, 1, /* Prompts for hostname and port when selecting a server manually */ _("Please enter the hostname and port of a dopewars server:-")); text = nice_input(_("Hostname: "), top + 2, 1, FALSE, ServerName, '\0'); AssignName(&ServerName, text); g_free(text); PortText = g_strdup_printf("%d", Port); text = nice_input(_("Port: "), top + 3, 1, TRUE, PortText, '\0'); Port = atoi(text); g_free(text); g_free(PortText); } /* * Contacts the dopewars metaserver, and obtains a list of valid * server/port pairs, one of which the user should select. * Returns TRUE on success; on failure FALSE is returned, and * errstr is assigned an error message. */ static gboolean SelectServerFromMetaServer(Player *Play, GString *errstr) { int c; GError *tmp_error = NULL; GSList *ListPt; ServerData *ThisServer; GString *text; gint index; fd_set readfds, writefds, errorfds; int maxsock; int top = get_ui_area_top(); attrset(TextAttr); clear_bottom(); mvaddstr(top + 1, 1, _("Please wait... attempting to contact metaserver...")); refresh(); if (!OpenMetaHttpConnection(&MetaConn, &tmp_error)) { g_string_assign(errstr, tmp_error->message); g_error_free(tmp_error); return FALSE; } ClearServerList(&ServerList); while(TRUE) { long mintime; struct timeval timeout; int still_running; FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&errorfds); FD_SET(0, &readfds); curl_multi_fdset(MetaConn.multi, &readfds, &writefds, &errorfds, &maxsock); curl_multi_timeout(MetaConn.multi, &mintime); timeout.tv_sec = mintime < 0 ? 5 : mintime; timeout.tv_usec = 0; maxsock = MAX(maxsock+1, 1); if (bselect(maxsock, &readfds, &writefds, &errorfds, &timeout) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(EXIT_FAILURE); } if (FD_ISSET(0, &readfds)) { /* So that Ctrl-L works */ c = getch(); if (c == '\f') wrefresh(curscr); } if (!CurlConnectionPerform(&MetaConn, &still_running, &tmp_error)) { g_string_assign(errstr, tmp_error->message); g_error_free(tmp_error); return FALSE; } else if (still_running == 0) { if (!HandleWaitingMetaServerData(&MetaConn, &ServerList, &tmp_error)) { CloseCurlConnection(&MetaConn); g_string_assign(errstr, tmp_error->message); g_error_free(tmp_error); return FALSE; } CloseCurlConnection(&MetaConn); break; } } text = g_string_new(""); ListPt = ServerList; while (ListPt) { ThisServer = (ServerData *)(ListPt->data); attrset(TextAttr); clear_bottom(); /* Printout of metaserver information in curses client */ g_string_printf(text, _("Server : %s"), ThisServer->Name); mvaddstr(top + 1, 1, text->str); g_string_printf(text, _("Port : %d"), ThisServer->Port); mvaddstr(top + 2, 1, text->str); g_string_printf(text, _("Version : %s"), ThisServer->Version); mvaddstr(top + 2, 40, text->str); if (ThisServer->CurPlayers == -1) { g_string_printf(text, _("Players: -unknown- (maximum %d)"), ThisServer->MaxPlayers); } else { g_string_printf(text, _("Players: %d (maximum %d)"), ThisServer->CurPlayers, ThisServer->MaxPlayers); } mvaddstr(top + 3, 1, text->str); g_string_printf(text, _("Up since : %s"), ThisServer->UpSince); mvaddstr(top + 3, 40, text->str); g_string_printf(text, _("Comment: %s"), ThisServer->Comment); mvaddstr(top + 4, 1, text->str); attrset(PromptAttr); mvaddstr(top + 5, 1, _("N>ext server; P>revious server; S>elect this server... ")); /* The three keys that are valid responses to the previous question - if you translate them, keep the keys in the same order (N>ext, P>revious, S>elect) as they are here, otherwise they'll do the wrong things. */ c = GetKey(N_("NPS"), FALSE, FALSE, FALSE); switch (c) { case 'S': AssignName(&ServerName, ThisServer->Name); Port = ThisServer->Port; ListPt = NULL; break; case 'N': ListPt = g_slist_next(ListPt); if (!ListPt) ListPt = ServerList; break; case 'P': index = g_slist_position(ServerList, ListPt) - 1; if (index >= 0) ListPt = g_slist_nth(ServerList, (guint)index); else ListPt = g_slist_last(ListPt); break; } } clear_line(top + 1); refresh(); g_string_free(text, TRUE); return TRUE; } static void DisplayConnectStatus(NetworkBuffer *netbuf, NBStatus oldstatus, NBSocksStatus oldsocks) { NBStatus status; NBSocksStatus sockstat; GString *text; status = netbuf->status; sockstat = netbuf->sockstat; if (oldstatus == status && oldsocks == sockstat) return; text = g_string_new(""); switch (status) { case NBS_PRECONNECT: break; case NBS_SOCKSCONNECT: switch (sockstat) { case NBSS_METHODS: g_string_printf(text, _("Connected to SOCKS server %s..."), Socks.name); break; case NBSS_USERPASSWD: g_string_assign(text, _("Authenticating with SOCKS server")); break; case NBSS_CONNECT: g_string_printf(text, _("Asking SOCKS for connect to %s..."), ServerName); break; } break; case NBS_CONNECTED: break; } if (text->str[0]) { mvaddstr(17, 1, text->str); refresh(); } g_string_free(text, TRUE); } void SocksAuthFunc(NetworkBuffer *netbuf, gpointer data) { gchar *user, *password = NULL; attrset(TextAttr); clear_bottom(); mvaddstr(17, 1, _("SOCKS authentication required (enter a blank " "username to cancel)")); user = nice_input(_("User name: "), 18, 1, FALSE, NULL, '\0'); if (user && user[0]) { password = nice_input(_("Password: "), 19, 1, FALSE, NULL, '*'); } SendSocks5UserPasswd(netbuf, user, password); g_free(user); g_free(password); } static gboolean DoConnect(Player *Play, GString *errstr) { NetworkBuffer *netbuf; fd_set readfds, writefds, errorfds; int maxsock, c; gboolean doneOK = TRUE; NBStatus oldstatus; NBSocksStatus oldsocks; netbuf = &Play->NetBuf; oldstatus = netbuf->status; oldsocks = netbuf->sockstat; if (!StartNetworkBufferConnect(netbuf, NULL, ServerName, Port)) { doneOK = FALSE; } else { SetNetworkBufferUserPasswdFunc(netbuf, SocksAuthFunc, NULL); doneOK = TRUE; while (netbuf->status != NBS_CONNECTED && doneOK) { DisplayConnectStatus(netbuf, oldstatus, oldsocks); oldstatus = netbuf->status; oldsocks = netbuf->sockstat; FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&errorfds); FD_SET(0, &readfds); maxsock = 1; SetSelectForNetworkBuffer(netbuf, &readfds, &writefds, &errorfds, &maxsock); if (bselect(maxsock, &readfds, &writefds, &errorfds, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(EXIT_FAILURE); } if (FD_ISSET(0, &readfds)) { /* So that Ctrl-L works */ c = getch(); #ifndef CYGWIN if (c == '\f') wrefresh(curscr); #endif } RespondToSelect(netbuf, &readfds, &writefds, &errorfds, &doneOK); } } if (!doneOK) g_string_assign_error(errstr, netbuf->error); return doneOK; } /* * Connects to a dopewars server. Prompts the user to select a server * if necessary. Returns TRUE, unless the user elected to quit the * program rather than choose a valid server. */ static gboolean ConnectToServer(Player *Play) { gboolean MetaOK = TRUE, NetOK = TRUE, firstrun = FALSE; GString *errstr; gchar *text; int c, top = get_ui_area_top(); errstr = g_string_new(""); if (g_ascii_strncasecmp(ServerName, SN_META, strlen(SN_META)) == 0 || ConnectMethod == CM_META) { ConnectMethod = CM_META; MetaOK = SelectServerFromMetaServer(Play, errstr); } else if (g_ascii_strncasecmp(ServerName, SN_PROMPT, strlen(SN_PROMPT)) == 0 || ConnectMethod == CM_PROMPT) { ConnectMethod = CM_PROMPT; SelectServerManually(); } else if (g_ascii_strncasecmp(ServerName, SN_SINGLE, strlen(SN_SINGLE)) == 0 || ConnectMethod == CM_SINGLE) { ConnectMethod = CM_SINGLE; g_string_free(errstr, TRUE); return TRUE; } else firstrun = TRUE; while (1) { attrset(TextAttr); clear_bottom(); if (MetaOK && !firstrun) { mvaddstr(top + 1, 1, _("Please wait... attempting to contact " "dopewars server...")); refresh(); NetOK = DoConnect(Play, errstr); } if (!NetOK || !MetaOK || firstrun) { firstrun = FALSE; clear_line(top); clear_line(top + 1); if (!MetaOK) { /* Display of an error while contacting the metaserver */ mvaddstr(top, 1, _("Cannot get metaserver details")); text = g_strdup_printf(" (%s)", errstr->str); mvaddstr(top + 1, 1, text); g_free(text); } else if (!NetOK) { /* Display of an error message while trying to contact a dopewars server (the error message itself is displayed on the next screen line) */ mvaddstr(top, 1, _("Could not start multiplayer dopewars")); text = g_strdup_printf(" (%s)", errstr->str[0] ? errstr->str : _("connection to server failed")); mvaddstr(top + 1, 1, text); g_free(text); } MetaOK = NetOK = TRUE; attrset(PromptAttr); mvaddstr(top + 2, 1, _("Will you... C>onnect to a named dopewars server")); mvaddstr(top + 3, 1, _(" L>ist the servers on the metaserver, and " "select one")); mvaddstr(top + 4, 1, _(" Q>uit (where you can start a server " "by typing \"dopewars -s\")")); mvaddstr(top + 5, 1, _(" or P>lay single-player ? ")); attrset(TextAttr); /* Translate these 4 keys in line with the above options, keeping the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) */ c = GetKey(N_("CLQP"), FALSE, FALSE, FALSE); switch (c) { case 'Q': g_string_free(errstr, TRUE); return FALSE; case 'P': g_string_free(errstr, TRUE); return TRUE; case 'L': MetaOK = SelectServerFromMetaServer(Play, errstr); break; case 'C': SelectServerManually(); break; } } else break; } g_string_free(errstr, TRUE); Client = Network = TRUE; return TRUE; } #endif /* NETWORKING */ /* * Displays the list of null-terminated names given by the "names" * parameter in the bottom part of the screen. The names are spaced * in columns so as to attempt to make best use of the available space. * After displaying the names, the list is freed. */ void display_select_list(GSList *names) { int top = get_ui_area_top() + 1, maxrows; guint maxlen = 0; int numcols, numrows, xoff, count, numlist; GSList *listpt; maxrows = get_prompt_line() - top; for (listpt = names, numlist = 0; listpt; listpt = g_slist_next(listpt), numlist++) { maxlen = MAX(maxlen, strcharlen(listpt->data)); } maxlen += 3; numcols = Width / maxlen; numcols = MAX(numcols, 1); /* Try and make the list reasonably "square" */ while(numcols > 1) { numrows = (numlist + numcols - 2) / (numcols - 1); if (numrows <= maxrows && numrows <= numcols && numcols > 1) { numcols--; } else { break; } } xoff = (Width - numcols * maxlen + 3) / 2; xoff = MAX(xoff, 0); count = 0; for (listpt = names; listpt; listpt = g_slist_next(listpt), count++) { mvaddstr(top + count / numcols, xoff + maxlen * (count % numcols), listpt->data); g_free(listpt->data); } g_slist_free(names); } /* * Displays the list of locations and prompts the user to select one. * If "AllowReturn" is TRUE, then if the current location is selected * simply drop back to the main game loop, otherwise send a request * to the server to move to the new location. If FALSE, the user MUST * choose a new location to move to. The active client player is * passed in "Play". * N.B. May set the global variable DisplayMode. * Returns: TRUE if the user chose to jet to a new location, * FALSE if the action was canceled instead. */ static gboolean jet(Player *Play, gboolean AllowReturn) { int i, c; GSList *names = NULL; GString *str; str = g_string_new(""); attrset(TextAttr); clear_bottom(); for (i = 0; i < NumLocation; i++) { gchar *text; /* Display of shortcut keys and locations to jet to */ text = dpg_strdup_printf(_("%d. %tde"), i + 1, Location[i].Name); names = g_slist_append(names, text); } display_select_list(names); attrset(PromptAttr); /* Prompt when the player chooses to "jet" to a new location */ mvaddstr(get_prompt_line(), 22, _("Where to, dude ? ")); attrset(TextAttr); curs_set(1); do { c = bgetch(); if (c >= '1' && c < '1' + NumLocation) { dpg_string_printf(str, _("%/Location display/%tde"), Location[c - '1'].Name); addstr(str->str); if (Play->IsAt != c - '1') { g_string_printf(str, "%d", c - '1'); DisplayMode = DM_NONE; SendClientMessage(Play, C_NONE, C_REQUESTJET, NULL, str->str); } else { c = 0; } } else { c = 0; } } while (c == 0 && !AllowReturn); curs_set(0); g_string_free(str, TRUE); return (c != 0); } /* * Prompts the user "Play" to drop some of the currently carried drugs. */ static void DropDrugs(Player *Play) { int i, c, num, NumDrugs, top = get_ui_area_top(); GString *text; gchar *buf; attrset(TextAttr); clear_bottom(); text = g_string_new(""); dpg_string_printf(text, /* List of drugs that you can drop (%tde = "drugs" by default) */ _("You can\'t get any cash for the following " "carried %tde :"), Names.Drugs); mvaddstr(top, 1, text->str); NumDrugs = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) { g_string_printf(text, "%c. %-10s %-8d", NumDrugs + 'A', Drug[i].Name, Play->Drugs[i].Carried); mvaddstr(top + NumDrugs / 3, (NumDrugs % 3) * 25 + 4, text->str); NumDrugs++; } } attrset(PromptAttr); mvaddstr(get_prompt_line(), 20, _("What do you want to drop? ")); curs_set(1); attrset(TextAttr); c = bgetch(); c = toupper(c); for (i = 0; c >= 'A' && c < 'A' + NumDrugs && i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) { c--; if (c < 'A') { addstr(Drug[i].Name); buf = nice_input(_("How many do you drop? "), get_prompt_line() + 1, 8, TRUE, NULL, '\0'); num = atoi(buf); g_free(buf); if (num > 0) { g_string_printf(text, "drug^%d^%d", i, -num); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text->str); } } } } g_string_free(text, TRUE); } /* * Prompts the user (i.e. the owner of client "Play") to buy drugs if * "Buy" is TRUE, or to sell drugs otherwise. A list of available drugs * is displayed, and on receiving the selection, the user is prompted * for the number of drugs desired. Finally a message is sent to the * server to buy or sell the required quantity. */ static void DealDrugs(Player *Play, gboolean Buy) { int i, c, NumDrugsHere; gchar *text, *input; int DrugNum, CanCarry, CanAfford; NumDrugsHere = 0; for (c = 0; c < NumDrug; c++) if (Play->Drugs[c].Price > 0) NumDrugsHere++; clear_line(get_prompt_line()); attrset(PromptAttr); if (Buy) { /* Buy and sell prompts for dealing drugs or guns */ mvaddstr(get_prompt_line(), 20, _("What do you wish to buy? ")); } else { mvaddstr(get_prompt_line(), 20, _("What do you wish to sell? ")); } curs_set(1); attrset(TextAttr); c = bgetch(); c = toupper(c); if (c >= 'A' && c < 'A' + NumDrugsHere) { DrugNum = -1; c -= 'A'; for (i = 0; i <= c; i++) DrugNum = GetNextDrugIndex(DrugNum, Play); addstr(Drug[DrugNum].Name); CanCarry = Play->CoatSize; CanAfford = Play->Cash / Play->Drugs[DrugNum].Price; if (Buy) { /* Display of number of drugs you could buy and/or carry, when buying drugs */ text = g_strdup_printf(_("You can afford %d, and can carry %d. "), CanAfford, CanCarry); mvaddstr(get_prompt_line() + 1, 2, text); input = nice_input(_("How many do you buy? "), get_prompt_line() + 1, 2 + strcharlen(text), TRUE, NULL, '\0'); c = atoi(input); g_free(input); g_free(text); if (c >= 0) { text = g_strdup_printf("drug^%d^%d", DrugNum, c); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } else { /* Display of number of drugs you have, when selling drugs */ text = g_strdup_printf(_("You have %d. "), Play->Drugs[DrugNum].Carried); mvaddstr(get_prompt_line() + 1, 2, text); input = nice_input(_("How many do you sell? "), get_prompt_line() + 1, 2 + strcharlen(text), TRUE, NULL, '\0'); c = atoi(input); g_free(input); g_free(text); if (c >= 0) { text = g_strdup_printf("drug^%d^%d", DrugNum, -c); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } } curs_set(0); } /* * Prompts the user (player "Play") to give an errand to one of his/her * bitches. The decision is relayed to the server for implementation. */ static void GiveErrand(Player *Play) { int c, y; GString *text; Player *To; text = g_string_new(""); attrset(TextAttr); clear_bottom(); y = get_ui_area_top() + 1; /* Prompt for sending your bitches out to spy etc. (%tde = "bitches" by * default) */ dpg_string_printf(text, _("Choose an errand to give one of your %tde..."), Names.Bitches); mvaddstr(y++, 1, text->str); attrset(PromptAttr); if (Play->Bitches.Carried > 0) { dpg_string_printf(text, _(" S>py on another dealer " "(cost: %P)"), Prices.Spy); mvaddstr(y++, 2, text->str); dpg_string_printf(text, _(" T>ip off the cops to another dealer " "(cost: %P)"), Prices.Tipoff); mvaddstr(y++, 2, text->str); mvaddstr(y++, 2, _(" G>et stuffed")); } if (Play->Flags & SPYINGON) { mvaddstr(y++, 2, _("or C>ontact your spies and receive reports")); } mvaddstr(y++, 2, _("or N>o errand ? ")); curs_set(1); attrset(TextAttr); /* Translate these 5 keys to match the above options, keeping the original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, N>o errand) */ c = GetKey(N_("STGCN"), TRUE, FALSE, FALSE); if (Play->Bitches.Carried > 0 || c == 'C') switch (c) { case 'S': To = ListPlayers(Play, TRUE, _("Whom do you want to spy on? ")); if (To) SendClientMessage(Play, C_NONE, C_SPYON, To, NULL); break; case 'T': To = ListPlayers(Play, TRUE, _("Whom do you want to tip the cops off to? ")); if (To) SendClientMessage(Play, C_NONE, C_TIPOFF, To, NULL); break; case 'G': attrset(PromptAttr); /* Prompt for confirmation of sacking a bitch */ addstr(_(" Are you sure? ")); /* The two keys that are valid for answering Yes/No - if you translate them, keep them in the same order - i.e. "Yes" before "No" */ c = GetKey(N_("YN"), FALSE, TRUE, FALSE); if (c == 'Y') SendClientMessage(Play, C_NONE, C_SACKBITCH, NULL, NULL); break; case 'C': if (Play->Flags & SPYINGON) { SendClientMessage(Play, C_NONE, C_CONTACTSPY, NULL, NULL); } break; } } /* * Asks the user if he/she _really_ wants to quit dopewars. */ static int want_to_quit(void) { attrset(TextAttr); clear_line(get_prompt_line()); attrset(PromptAttr); mvaddstr(get_prompt_line(), 1, _("Are you sure you want to quit? ")); attrset(TextAttr); return (GetKey(N_("YN"), FALSE, TRUE, FALSE) != 'N'); } /* * Prompts the user to change his or her name, and notifies the server. */ static void change_name(Player *Play, gboolean nullname) { gchar *NewName; /* Prompt for player to change his/her name */ NewName = nice_input(_("New name: "), get_prompt_line() + 1, 0, FALSE, NULL, '\0'); if (NewName[0]) { StripTerminators(NewName); if (nullname) { SendNullClientMessage(Play, C_NONE, C_NAME, NULL, NewName); } else { SendClientMessage(Play, C_NONE, C_NAME, NULL, NewName); } SetPlayerName(Play, NewName); } g_free(NewName); } /* * Given a message "Message" coming in for player "Play", performs * processing and reacts properly; if a message indicates the end of the * game, the global variable QuitRequest is set. The global variable * DisplayMode may also be changed by this routine as a result of network * traffic. */ void HandleClientMessage(char *Message, Player *Play) { char *pt, *Data, *wrd; AICode AI; MsgCode Code; Player *From, *tmp; GSList *list; gchar *text; int i; gboolean Handled; /* Ignore To: field - all messages will be for Player "Play" */ if (ProcessMessage(Message, Play, &From, &AI, &Code, &Data, FirstClient) == -1) { return; } Handled = HandleGenericClientMessage(From, AI, Code, Play, Data, &DisplayMode); switch (Code) { case C_ENDLIST: if (FirstClient && g_slist_next(FirstClient)) { ListPlayers(Play, FALSE, NULL); } break; case C_STARTHISCORE: PrepareHighScoreScreen(); break; case C_HISCORE: PrintHighScore(Data); break; case C_ENDHISCORE: if (strcmp(Data, "end") == 0) { QuitRequest = TRUE; } else { nice_wait(); clear_screen(); display_message(""); print_status(Play, TRUE); refresh(); } break; case C_PUSH: attrset(TextAttr); clear_line(get_prompt_line()); mvaddstr(get_prompt_line(), 0, _("You have been pushed from the server. " "Reverting to single player mode.")); nice_wait(); SwitchToSinglePlayer(Play); print_status(Play, TRUE); break; case C_QUIT: attrset(TextAttr); clear_line(get_prompt_line()); mvaddstr(get_prompt_line(), 0, _("The server has terminated. Reverting to " "single player mode.")); nice_wait(); SwitchToSinglePlayer(Play); print_status(Play, TRUE); break; case C_MSG: text = g_strdup_printf("%s: %s", GetPlayerName(From), Data); display_message(text); g_free(text); SoundPlay(Sounds.TalkToAll); break; case C_MSGTO: text = g_strdup_printf("%s->%s: %s", GetPlayerName(From), GetPlayerName(Play), Data); display_message(text); g_free(text); SoundPlay(Sounds.TalkPrivate); break; case C_JOIN: text = g_strdup_printf(_("%s joins the game!"), Data); display_message(text); g_free(text); SoundPlay(Sounds.JoinGame); break; case C_LEAVE: if (From != &Noone) { text = g_strdup_printf(_("%s has left the game."), Data); display_message(text); g_free(text); SoundPlay(Sounds.LeaveGame); } break; case C_RENAME: /* Displayed when a player changes his/her name */ text = g_strdup_printf(_("%s will now be known as %s."), GetPlayerName(From), Data); SetPlayerName(From, Data); mvaddstr(get_prompt_line(), 0, text); g_free(text); nice_wait(); break; case C_PRINTMESSAGE: PrintMessage(Data); nice_wait(); break; case C_FIGHTPRINT: DisplayFightMessage(Play, Data); break; case C_SUBWAYFLASH: DisplayFightMessage(Play, NULL); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; tmp->Flags &= ~FIGHTING; } SoundPlay(Sounds.Jet); for (i = 0; i < 4; i++) { print_location(_("S U B W A Y")); refresh(); MicroSleep(100000); print_location(""); refresh(); MicroSleep(100000); } text = dpg_strdup_printf(_("%/Current location/%tde"), Location[Play->IsAt].Name); print_location(text); g_free(text); break; case C_QUESTION: pt = Data; wrd = GetNextWord(&pt, ""); PrintMessage(pt); addch(' '); i = GetKey(wrd, FALSE, TRUE, TRUE); wrd = g_strdup_printf("%c", i); SendClientMessage(Play, C_NONE, C_ANSWER, From == &Noone ? NULL : From, wrd); g_free(wrd); break; case C_LOANSHARK: LoanShark(Play); SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); break; case C_BANK: Bank(Play); SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); break; case C_GUNSHOP: GunShop(Play); SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); break; case C_UPDATE: if (From == &Noone) { ReceivePlayerData(Play, Data, Play); print_status(Play, TRUE); refresh(); } else { DisplaySpyReports(Data, From, Play); } break; case C_NEWNAME: clear_line(get_prompt_line()); clear_line(get_prompt_line() + 1); attrset(TextAttr); mvaddstr(get_prompt_line(), 0, _("Unfortunately, somebody else is already " "using \"your\" name. Please change it.")); change_name(Play, TRUE); break; default: if (!Handled) { text = g_strdup_printf("%s^%c^%s^%s", GetPlayerName(From), Code, GetPlayerName(Play), Data); mvaddstr(get_prompt_line(), 0, text); g_free(text); nice_wait(); } break; } } /* * Responds to a "starthiscore" message by clearing the screen and * displaying the title for the high scores screen. */ void PrepareHighScoreScreen(void) { char *text; attrset(TextAttr); clear_screen(); attrset(TitleAttr); text = _("H I G H S C O R E S"); mvaddstr(0, (Width - strcharlen(text)) / 2, text); attrset(TextAttr); } /* * Prints a high score coded in "Data"; first word is the index of the * score (i.e. y screen coordinate), second word is the text, the first * letter of which identifies whether it's to be printed bold or not. */ void PrintHighScore(char *Data) { char *cp; int index; cp = Data; index = GetNextInt(&cp, 0); if (!cp || strlen(cp) < 2) return; move(index + 2, 0); attrset(TextAttr); if (cp[0] == 'B') standout(); addstr(&cp[1]); if (cp[0] == 'B') standend(); } /* * Prints a message "text" received via. a "printmessage" message in the * bottom part of the screen. */ void PrintMessage(const gchar *text) { guint i, line; attrset(TextAttr); clear_line(get_ui_area_top()); line = 1; for (i = 0; i < strlen(text) && (text[i] == '^' || text[i] == '\n'); i++) line++; clear_exceptfor(line); line = get_ui_area_top() + 1; move(line, 1); for (i = 0; i < strlen(text); i++) { if (text[i] == '^' || text[i] == '\n') { line++; move(line, 1); } else if (text[i] != '\r') addch((guchar)text[i]); } } static void SellGun(Player *Play) { gchar *text; gint gunind; clear_line(get_prompt_line()); if (TotalGunsCarried(Play) == 0) { /* Error - player tried to sell guns that he/she doesn't have (%tde="guns" by default) */ text = dpg_strdup_printf(_("You don't have any %tde to sell!"), Names.Guns); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else { attrset(PromptAttr); mvaddstr(get_prompt_line(), 20, _("What do you wish to sell? ")); curs_set(1); attrset(TextAttr); gunind = bgetch(); gunind = toupper(gunind); if (gunind >= 'A' && gunind < 'A' + NumGun) { gunind -= 'A'; addstr(Gun[gunind].Name); if (Play->Guns[gunind].Carried == 0) { clear_line(get_prompt_line()); /* Error - player tried to sell some guns that he/she doesn't have */ mvaddstr(get_prompt_line(), 10, _("You don't have any to sell!")); nice_wait(); clear_line(get_prompt_line() + 1); } else { Play->Cash += Gun[gunind].Price; Play->CoatSize += Gun[gunind].Space; Play->Guns[gunind].Carried--; text = g_strdup_printf("gun^%d^-1", gunind); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); print_status(Play, FALSE); } } } } static void BuyGun(Player *Play) { gchar *text; gint gunind; clear_line(get_prompt_line()); if (TotalGunsCarried(Play) >= Play->Bitches.Carried + 2) { text = dpg_strdup_printf( /* Error - player tried to buy more guns than his/her bitches can carry (1st %tde="bitches", 2nd %tde="guns" by default) */ _("You'll need more %tde to carry " "any more %tde!"), Names.Bitches, Names.Guns); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else { attrset(PromptAttr); mvaddstr(get_prompt_line(), 20, _("What do you wish to buy? ")); curs_set(1); attrset(TextAttr); gunind = bgetch(); gunind = toupper(gunind); if (gunind >= 'A' && gunind < 'A' + NumGun) { gunind -= 'A'; addstr(Gun[gunind].Name); if (Gun[gunind].Space > Play->CoatSize) { clear_line(get_prompt_line()); /* Error - player tried to buy a gun that he/she doesn't have space for (%tde="gun" by default) */ text = dpg_strdup_printf(_("You don't have enough space to " "carry that %tde!"), Names.Gun); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else if (Gun[gunind].Price > Play->Cash) { clear_line(get_prompt_line()); /* Error - player tried to buy a gun that he/she can't afford (%tde="gun" by default) */ text = dpg_strdup_printf(_("You don't have enough cash to buy " "that %tde!"), Names.Gun); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else { Play->Cash -= Gun[gunind].Price; Play->CoatSize -= Gun[gunind].Space; Play->Guns[gunind].Carried++; text = g_strdup_printf("gun^%d^1", gunind); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); print_status(Play, FALSE); } } } } /* * Allows player "Play" to buy and sell guns interactively. Passes the * decisions on to the server for sanity checking and implementation. */ void GunShop(Player *Play) { int i, action; GSList *names = NULL; gchar *text; print_status(Play, FALSE); attrset(TextAttr); clear_bottom(); for (i = 0; i < NumGun; i++) { text = dpg_strdup_printf("%c. %-22tde %12P", 'A' + i, Gun[i].Name, Gun[i].Price); names = g_slist_append(names, text); } display_select_list(names); do { /* Prompt for actions in the gun shop */ text = _("Will you B>uy, S>ell, or L>eave? "); attrset(PromptAttr); clear_line(get_prompt_line()); mvaddcentstr(get_prompt_line(), text); attrset(TextAttr); /* Translate these three keys in line with the above options, keeping the order (B>uy, S>ell, L>eave) the same - you can change the wording of the prompt, but if you change the order in this key list, the keys will do the wrong things! */ action = GetKey(N_("BSL"), FALSE, FALSE, FALSE); if (action == 'S') SellGun(Play); else if (action == 'B') BuyGun(Play); } while (action != 'L'); print_status(Play, TRUE); } /* * Allows player "Play" to pay off loans interactively. */ void LoanShark(Player *Play) { gchar *text, *prstr; price_t money; do { clear_bottom(); attrset(PromptAttr); /* Prompt for paying back loans from the loan shark */ text = nice_input(_("How much money do you pay back? "), 19, 1, TRUE, NULL, '\0'); attrset(TextAttr); money = strtoprice(text); g_free(text); if (money < 0) money = 0; if (money > Play->Debt) money = Play->Debt; if (money > Play->Cash) { /* Error - player doesn't have enough money to pay back the loan */ mvaddstr(20, 1, _("You don't have that much money!")); nice_wait(); } else { SendClientMessage(Play, C_NONE, C_PAYLOAN, NULL, (prstr = pricetostr(money))); g_free(prstr); money = 0; } } while (money != 0); } /* * Allows player "Play" to pay in or withdraw money from the bank * interactively. */ void Bank(Player *Play) { gchar *text, *prstr; price_t money = 0; int action; do { clear_bottom(); attrset(PromptAttr); /* Prompt for dealing with the bank in the curses client */ mvaddstr(18, 1, _("Do you want to D>eposit money, W>ithdraw money, " "or L>eave ? ")); attrset(TextAttr); /* Make sure you keep the order the same if you translate these keys! (D>eposit, W>ithdraw, L>eave) */ action = GetKey(N_("DWL"), FALSE, FALSE, FALSE); if (action == 'D' || action == 'W') { /* Prompt for putting money in or taking money out of the bank */ text = nice_input(_("How much money? "), 19, 1, TRUE, NULL, '\0'); money = strtoprice(text); g_free(text); if (money < 0) money = 0; if (action == 'W') money = -money; if (money > Play->Cash) { /* Error - player has tried to put more money into the bank than he/she has */ mvaddstr(20, 1, _("You don't have that much money!")); nice_wait(); } else if (-money > Play->Bank) { /* Error - player has tried to withdraw more money from the bank than there is in the account */ mvaddstr(20, 1, _("There isn't that much money in the bank...")); nice_wait(); } else if (money != 0) { SendClientMessage(Play, C_NONE, C_DEPOSIT, NULL, (prstr = pricetostr(money))); g_free(prstr); money = 0; } } } while (action != 'L' && money != 0); } /* Output a single Unicode character */ static void addunich(gunichar ch, int attr) { if (LocaleIsUTF8) { char utf8buf[20]; gint utf8len = g_unichar_to_utf8(ch, utf8buf); utf8buf[utf8len] = '\0'; attrset(attr); addstr(utf8buf); } else { addch((guchar)ch | attr); } } #define MAX_GET_KEY 30 /* * Waits for keyboard input; will only accept a key listed in the * translated form of the "orig_allowed" string. * Returns the untranslated key corresponding to the key pressed * (e.g. if translated(orig_allowed[2]) is pressed, orig_allowed[2] is returned) * Case insensitive. If "AllowOther" is TRUE, keys other than the * given selection are allowed, and cause a zero return value. * If "PrintAllowed" is TRUE, the allowed keys are printed after * the prompt. If "ExpandOut" is also TRUE, the full words for * the commands, rather than just their first letters, are displayed. */ int GetKey(const char *orig_allowed, gboolean AllowOther, gboolean PrintAllowed, gboolean ExpandOut) { int ch, i, num_allowed; guint AllowInd, WordInd; gunichar allowed[MAX_GET_KEY]; /* Expansions of the single-letter keypresses for the benefit of the user. i.e. "Yes" is printed for the key "Y" etc. You should indicate to the user which letter in the word corresponds to the keypress, by capitalising it or similar. */ gchar *Words[] = { N_("Y:Yes"), N_("N:No"), N_("R:Run"), N_("F:Fight"), N_("A:Attack"), N_("E:Evade") }; guint numWords = sizeof(Words) / sizeof(Words[0]); gchar *trWord; /* Translate allowed keys * Note that allowed is in the locale encoding, usually UTF-8, while * orig_allowed is plain ASCII */ char *allowed_str = _(orig_allowed); num_allowed = strlen(orig_allowed); assert(num_allowed <= MAX_GET_KEY); assert(strcharlen(allowed_str) == num_allowed); if (num_allowed == 0) return 0; /* Get Unicode allowed keys */ if (LocaleIsUTF8) { const char *pt; for (pt = allowed_str, i = 0; pt && *pt; pt = g_utf8_next_char(pt), ++i) { allowed[i] = g_utf8_get_char(pt); } } else { for (i = 0; i < num_allowed; ++i) { allowed[i] = (guchar)allowed_str[i]; } } curs_set(1); ch = '\0'; if (PrintAllowed) { addch('[' | TextAttr); for (AllowInd = 0; AllowInd < num_allowed; AllowInd++) { if (AllowInd > 0) addch('/' | TextAttr); WordInd = 0; while (WordInd < numWords && orig_allowed[AllowInd] != Words[WordInd][0]) WordInd++; if (ExpandOut && WordInd < numWords) { trWord = strchr(_(Words[WordInd]), ':'); /* Print everything after the colon */ if (*trWord) trWord++; attrset(TextAttr); addstr(trWord); } else { addunich(allowed[AllowInd], TextAttr); } } addch(']' | TextAttr); addch(' ' | TextAttr); } do { ch = bgetch(); ch = LocaleIsUTF8 ? g_unichar_toupper(ch) : toupper(ch); /* Handle scrolling of message window */ if (ch == '-') { scroll_msg_area_up(); continue; } else if (ch == '+') { scroll_msg_area_down(); continue; } for (AllowInd = 0; AllowInd < num_allowed; AllowInd++) { if (allowed[AllowInd] == ch) { addunich(allowed[AllowInd], TextAttr); curs_set(0); return orig_allowed[AllowInd]; } } } while (!AllowOther); curs_set(0); return 0; } /* * Clears one whole line on the curses screen. */ void clear_line(int line) { int i; move(line, 0); for (i = 0; i < Width; i++) addch(' '); } /* * Clears the bottom of the screen (the user interface) * except for the top "skip" lines. */ void clear_exceptfor(int skip) { int i, from = get_ui_area_top() + skip, to = get_ui_area_bottom(); for (i = from; i <= to; i++) { clear_line(i); } } /* * Clears the bottom part of the screen (the user interface) */ void clear_bottom(void) { int i, from = get_ui_area_top(), to = get_ui_area_bottom(); for (i = from; i <= to; i++) { clear_line(i); } } /* * Clears the entire screen */ void clear_screen(void) { int i; for (i = 0; i < Depth; i++) { clear_line(i); } } /* * Displays a prompt on the bottom screen line and waits for the user * to press a key. */ void nice_wait() { attrset(PromptAttr); mvaddcentstr(get_prompt_line() + 1, _("Press any key...")); bgetch(); attrset(TextAttr); } /* * Handles the display of messages pertaining to player-player fights * in the lower part of screen (fighting sub-screen). Adds the new line * of text in "text" and scrolls up previous messages if necessary * If "text" is NULL, initializes the area * If "text" is a blank string, redisplays the message area * Messages are displayed from lines 16 to 20; line 22 is used for * the prompt for the user. */ void DisplayFightMessage(Player *Play, char *text) { static GList *msgs = NULL; static int num_msgs = 0; gchar *textpt; gchar *AttackName, *DefendName, *BitchName; gint y, DefendHealth, DefendBitches, BitchesKilled, ArmPercent; gboolean Loot; int top = get_ui_area_top(), bottom = get_ui_area_bottom() - 4; if (text == NULL) { GList *pt; for (pt = msgs; pt; pt = g_list_next(pt)) { g_free(pt->data); } g_list_free(msgs); msgs = NULL; num_msgs = 0; } else { GList *pt; if (text[0]) { if (HaveAbility(Play, A_NEWFIGHT)) { ReceiveFightMessage(text, &AttackName, &DefendName, &DefendHealth, &DefendBitches, &BitchName, &BitchesKilled, &ArmPercent, &fp, &RunHere, &Loot, &CanFire, &textpt); } else { textpt = text; if (Play->Flags & FIGHTING) fp = F_MSG; else fp = F_LASTLEAVE; CanFire = (Play->Flags & CANSHOOT); RunHere = FALSE; } msgs = g_list_append(msgs, g_strdup(textpt)); num_msgs++; } attrset(TextAttr); clear_bottom(); pt = g_list_last(msgs); y = bottom; while (pt && g_list_previous(pt) && y > top) { y--; pt = g_list_previous(pt); } y = top; while (pt) { mvaddstr(y++, 1, pt->data); pt = g_list_next(pt); } } } /* Number of lines that the message window is scrolled back by */ static int scrollpos = 0; /* * Scrolls the message area up a page */ static void scroll_msg_area_up(void) { scrollpos += (get_msg_area_bottom() - get_msg_area_top() + 1); display_message(""); } /* * Scrolls the message area down a page */ static void scroll_msg_area_down(void) { scrollpos -= (get_msg_area_bottom() - get_msg_area_top() + 1); display_message(""); } /* * Displays a network message "buf" in the message area * scrolling previous messages up. * If "buf" is NULL, clears the message area * If "buf" is a blank string, redisplays the message area */ void display_message(const char *buf) { guint y, top, depth; guint wid; static GList *msgs = NULL; static int num_msgs = 0; top = get_msg_area_top(); depth = get_msg_area_bottom() - top + 1; wid = Width - 4; if (wid < 0 || depth < 0 || !Network) { return; } if (!buf) { GList *pt; for (pt = msgs; pt; pt = g_list_next(pt)) { g_free(pt->data); } g_list_free(msgs); msgs = NULL; num_msgs = 0; scrollpos = 0; /* Display a blank message area */ if (Network) { for (y = 0; y < depth; y++) { mvaddfixwidstr(y + top, 2, wid, NULL, StatsAttr); } } } else if (Network) { GList *pt, *nextpt; gchar *data; if (buf[0]) { /* Remove the first message if we've got to the limit */ if (num_msgs == MaxMessages && msgs) { g_free(msgs->data); msgs = g_list_remove(msgs, msgs->data); --num_msgs; } msgs = g_list_append(msgs, g_strdup(buf)); ++num_msgs; } nextpt = g_list_last(msgs); pt = NULL; data = NULL; if (nextpt) { int lines = 0, displines, total_lines = 0; /* Correct for having scrolled down too far */ if (scrollpos < 0) { scrollpos = 0; } displines = depth + scrollpos; /* Find the message to display at the top of the message area */ do { displines -= lines; pt = nextpt; nextpt = g_list_previous(pt); data = pt->data; lines = (strlen(data) + wid - 1) / wid; total_lines += lines; } while (displines > lines && nextpt); /* Correct for having scrolled up too far */ if ((depth + scrollpos) > total_lines && total_lines > depth) { scrollpos = total_lines - depth; } /* Correct for the first line starting partway through a message */ if (displines < lines) { data += wid * (lines - displines); } } /* Display the relevant messages, line by line */ y = 0; while (y < depth && pt) { mvaddfixwidstr(y + top, 2, wid, data, StatsAttr); ++y; if (strlen(data) > wid) { data += wid; } else { pt = g_list_next(pt); if (pt) { data = pt->data; } } } /* Blank out any remaining lines in the message area */ for (; y < depth; ++y) { mvaddfixwidstr(y + top, 2, wid, NULL, StatsAttr); } refresh(); } } /* * Displays the string "text" at the top of the screen. Usually used for * displaying the current location or the "Subway" flash. */ void print_location(char *text) { int i; if (!text) return; attrset(LocationAttr); move(0, Width / 2 - 9); for (i = 0; i < 18; i++) addch(' '); mvaddcentstr(0, text); attrset(TextAttr); } /* * Displays the status of player "Play" - i.e. the current turn, the * location, bitches, available space, cash, guns, health and bank * details. If "DispDrugs" is TRUE, displays the carried drugs on the * right hand side of the screen; if FALSE, displays the carried guns. */ void print_status(Player *Play, gboolean DispDrug) { int i, c; char *p; GString *text; text = g_string_new(NULL); attrset(TitleAttr); clear_line(0); GetDateString(text, Play); mvaddstr(0, 3, text->str); attrset(StatsAttr); for (i = get_separator_line() - 1; i >= 2; i--) { mvaddch(i, 1, ACS_VLINE); mvaddch(i, Width - 2, ACS_VLINE); } mvaddch(1, 1, ACS_ULCORNER); for (i = 0; i < Width - 4; i++) addch(ACS_HLINE); addch(ACS_URCORNER); mvaddch(1, Width / 2, ACS_TTEE); for (i = 2; i <= (Network ? 8 : 13); i++) { move(i, 2); for (c = 2; c < Width / 2; c++) addch(' '); addch(ACS_VLINE); for (c = Width / 2 + 1; c < Width - 2; c++) addch(' '); } if (!Network) { mvaddch(get_separator_line(), 1, ACS_LLCORNER); for (i = 0; i < Width - 4; i++) addch(ACS_HLINE); addch(ACS_LRCORNER); mvaddch(get_separator_line(), Width / 2, ACS_BTEE); } else { mvaddch(9, 1, ACS_LTEE); for (i = 0; i < Width - 4; i++) addch(ACS_HLINE); addch(ACS_RTEE); mvaddch(9, Width / 2, ACS_BTEE); /* Title of the "Messages" window in the curses client */ mvaddstr(9, 9, _("Messages (-/+ scrolls up/down)")); mvaddch(get_separator_line(), 1, ACS_LLCORNER); for (i = 0; i < Width - 4; i++) { addch(ACS_HLINE); } addch(ACS_LRCORNER); } /* Title of the "Stats" window in the curses client */ mvaddstr(1, Width / 4 - 2, _("Stats")); attrset(StatsAttr); /* Display of the player's cash in the stats window */ mvaddstr(3, 9, _("Cash")); p = FormatPrice(Play->Cash); mvaddrightstr(3, 30, p); g_free(p); /* Display of the total number of guns carried (%Tde="Guns" by default) */ dpg_string_printf(text, _("%/Stats: Guns/%Tde"), Names.Guns); mvaddstr(Network ? 4 : 5, 9, text->str); dpg_string_printf(text, "%d", TotalGunsCarried(Play)); mvaddrightstr(Network ? 4 : 5, 30, text->str); /* Display of the player's health */ mvaddstr(Network ? 5 : 7, 9, _("Health")); dpg_string_printf(text, "%d", Play->Health); mvaddrightstr(Network ? 5 : 7, 30, text->str); /* Display of the player's bank balance */ mvaddstr(Network ? 6 : 9, 9, _("Bank")); p = FormatPrice(Play->Bank); mvaddrightstr(Network ? 6 : 9, 30, p); g_free(p); if (Play->Debt > 0) attrset(DebtAttr); /* Display of the player's debt */ g_string_assign(text, _("Debt")); p = FormatPrice(Play->Debt); /* Put in one big string otherwise the DebtAttr won't be applied to the space between "Debt" and the price */ g_string_pad(text, 22 - strcharlen(text->str) - strcharlen(p)); g_string_append(text, p); g_free(p); mvaddstr(Network ? 7 : 11, 9, text->str); attrset(TitleAttr); /* Display of the player's trenchcoat size (antique mode only) */ if (WantAntique) g_string_printf(text, _("Space %6d"), Play->CoatSize); else { /* Display of the player's number of bitches, and available space (%Tde="Bitches" by default) */ dpg_string_printf(text, _("%Tde %3d Space %6d"), Names.Bitches, Play->Bitches.Carried, Play->CoatSize); } mvaddrightstr(0, Width - 3, text->str); dpg_string_printf(text, _("%/Current location/%tde"), Location[Play->IsAt].Name); print_location(text->str); attrset(StatsAttr); c = 0; if (DispDrug) { /* Title of the "trenchcoat" window (antique mode only) */ if (WantAntique) mvaddstr(1, Width * 3 / 4 - 5, _("Trenchcoat")); else { /* Title of the "drugs" window (the only important bit in this string is the "%Tde" which is "Drugs" by default; the %/.../ part is ignored, so you don't need to translate it; see doc/i18n.html) */ dpg_string_printf(text, _("%/Stats: Drugs/%Tde"), Names.Drugs); mvaddstr(1, Width * 3 / 4 - strcharlen(text->str) / 2, text->str); } for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0) { /* Display of carried drugs with price (%tde="Opium", etc. by default) */ if (HaveAbility(Play, A_DRUGVALUE)) { dpg_string_printf(text, _("%-7tde %3d @ %P"), Drug[i].Name, Play->Drugs[i].Carried, Play->Drugs[i].TotalValue / Play->Drugs[i].Carried); mvaddstr(3 + c, Width / 2 + 3, text->str); } else { /* Display of carried drugs (%tde="Opium", etc. by default) */ dpg_string_printf(text, _("%-7tde %3d"), Drug[i].Name, Play->Drugs[i].Carried); mvaddstr(3 + c / 2, Width / 2 + 3 + (c % 2) * 17, text->str); } c++; } } } else { /* Title of the "guns" window (the only important bit in this string is the "%Tde" which is "Guns" by default) */ dpg_string_printf(text, _("%/Stats: Guns/%Tde"), Names.Guns); mvaddstr(1, Width * 3 / 4 - strcharlen(text->str) / 2, text->str); for (i = 0; i < NumGun; i++) { if (Play->Guns[i].Carried > 0) { /* Display of carried guns (%tde="Baretta", etc. by default) */ dpg_string_printf(text, _("%-22tde %3d"), Gun[i].Name, Play->Guns[i].Carried); mvaddstr(3 + c, Width / 2 + 3, text->str); c++; } } } attrset(TextAttr); if (!Network) clear_line(get_separator_line() + 1); refresh(); g_string_free(text, TRUE); } /* * Parses details about player "From" from string "Data" and then * displays the lot, drugs and guns. */ void DisplaySpyReports(char *Data, Player *From, Player *To) { gchar *text; ReceivePlayerData(To, Data, From); clear_bottom(); text = g_strdup_printf(_("Spy reports for %s"), GetPlayerName(From)); mvaddstr(17, 1, text); g_free(text); /* Message displayed with a spy's list of drugs (%Tde="Drugs" by default) */ text = dpg_strdup_printf(_("%/Spy: Drugs/%Tde..."), Names.Drugs); mvaddstr(19, 20, text); g_free(text); print_status(From, TRUE); nice_wait(); clear_line(19); /* Message displayed with a spy's list of guns (%Tde="Guns" by default) */ text = dpg_strdup_printf(_("%/Spy: Guns/%Tde..."), Names.Guns); mvaddstr(19, 20, text); g_free(text); print_status(From, FALSE); nice_wait(); print_status(To, TRUE); refresh(); } /* * Displays the "Prompt" if non-NULL, and then lists all clients * currently playing dopewars, other than the current player "Play". * If "Select" is TRUE, gives each player a letter and asks the user * to select one, which is returned by the function. */ Player *ListPlayers(Player *Play, gboolean Select, char *Prompt) { Player *tmp = NULL; GSList *list; int i, c, top = get_ui_area_top(), bottom = get_ui_area_bottom(); gchar *text; GSList *names = NULL; attrset(TextAttr); clear_bottom(); if (!FirstClient || (!g_slist_next(FirstClient) && FirstClient->data == Play)) { text = _("No other players are currently logged on!"); mvaddcentstr((top + bottom) / 2, text); nice_wait(); return 0; } mvaddstr(top, 1, _("Players currently logged on:-")); i = 0; for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (strcmp(GetPlayerName(tmp), GetPlayerName(Play)) == 0) continue; if (Select) { text = g_strdup_printf("%c. %s", 'A' + i, GetPlayerName(tmp)); } else { text = g_strdup(GetPlayerName(tmp)); } names = g_slist_append(names, text); i++; } display_select_list(names); if (Prompt) { attrset(PromptAttr); mvaddstr(get_prompt_line(), 10, Prompt); attrset(TextAttr); } if (Select) { curs_set(1); attrset(TextAttr); c = 0; while (c < 'A' || c >= 'A' + i) { c = bgetch(); c = toupper(c); } if (Prompt) addch((guint)c); list = FirstClient; while (c >= 'A') { if (list != FirstClient) list = g_slist_next(list); tmp = (Player *)list->data; while (strcmp(GetPlayerName(tmp), GetPlayerName(Play)) == 0) { list = g_slist_next(list); tmp = (Player *)list->data; } c--; } return tmp; } else { nice_wait(); } return NULL; } /* * Displays the given "prompt" (if non-NULL) at coordinates sx,sy and * allows the user to input a string, which is returned. This is a * dynamically allocated string, and so must be freed by the calling * routine. If "digitsonly" is TRUE, the user will be permitted only to * input numbers, although the suffixes m and k are allowed (the * strtoprice routine understands this notation for a 1000000 or 1000 * multiplier) as well as a decimal point (. or ,) * If "displaystr" is non-NULL, it is taken as a default response. * If "passwdchar" is non-zero, it is displayed instead of the user's * keypresses (e.g. for entering passwords) */ char *nice_input(char *prompt, int sy, int sx, gboolean digitsonly, char *displaystr, char passwdchar) { int ibyte, ichar, x; gunichar c; gboolean DecimalPoint, Suffix; GString *text; gchar *ReturnString; DecimalPoint = Suffix = FALSE; x = sx; move(sy, x); if (prompt) { attrset(PromptAttr); addstr(prompt); x += strcharlen(prompt); } attrset(TextAttr); if (displaystr) { if (passwdchar) { int i; for (i = strcharlen(displaystr); i; i--) addch((guint)passwdchar); } else { addstr(displaystr); } ibyte = strlen(displaystr); ichar = strcharlen(displaystr); text = g_string_new(displaystr); } else { ibyte = ichar = 0; text = g_string_new(""); } curs_set(1); do { move(sy + (x + ichar) / Width, (x + ichar) % Width); c = bgetch(); if ((c == 8 || c == KEY_BACKSPACE || c == 127) && ichar > 0) { move(sy + (x + ichar - 1) / Width, (x + ichar - 1) % Width); addch(' '); ichar--; if (LocaleIsUTF8) { char *p = g_utf8_find_prev_char(text->str, text->str+ibyte); assert(p); ibyte = p - text->str; } else { ibyte--; } if (DecimalPoint && text->str[ibyte] == '.') DecimalPoint = FALSE; if (Suffix) Suffix = FALSE; g_string_truncate(text, ibyte); } else if (!Suffix) { if ((digitsonly && c >= '0' && c <= '9') || (!digitsonly && c >= 32 && c != '^' && c != 127)) { if (LocaleIsUTF8) { char utf8buf[20]; gint utf8len = g_unichar_to_utf8(c, utf8buf); utf8buf[utf8len] = '\0'; ibyte += utf8len; g_string_append(text, utf8buf); if (passwdchar) { addch((guint)passwdchar); } else { addstr(utf8buf); } } else { g_string_append_c(text, c); ibyte++; addch((guint)passwdchar ? passwdchar : c); } ichar++; } else if (digitsonly && (c == '.' || c == ',') && !DecimalPoint) { g_string_append_c(text, '.'); ibyte++; ichar++; addch((guint)passwdchar ? passwdchar : c); DecimalPoint = TRUE; } else if (digitsonly && (c == 'M' || c == 'm' || c == 'k' || c == 'K') && !Suffix) { g_string_append_c(text, c); ibyte++; ichar++; addch((guint)passwdchar ? passwdchar : c); Suffix = TRUE; } } } while (c != '\n' && c != KEY_ENTER); curs_set(0); move(sy, x); ReturnString = text->str; g_string_free(text, FALSE); /* Leave the buffer to return */ return ReturnString; } static void DisplayDrugsHere(Player *Play) { int NumDrugsHere, i, c; gchar *text; GSList *names = NULL; attrset(TextAttr); NumDrugsHere = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Price > 0) { NumDrugsHere++; } } clear_bottom(); /* Display of drug prices (%tde="drugs" by default) */ text = dpg_strdup_printf(_("Hey dude, the prices of %tde here are:"), Names.Drugs); mvaddstr(get_ui_area_top(), 1, text); g_free(text); for (c = 0, i = GetNextDrugIndex(-1, Play); c < NumDrugsHere && i != -1; c++, i = GetNextDrugIndex(i, Play)) { char *price = FormatPrice(Play->Drugs[i].Price); GString *str = g_string_new(NULL); /* List of individual drug names for selection (%tde="Opium" etc. by default) */ dpg_string_printf(str, _("%/Drug Select/%c. %tde"), 'A' + c, Drug[i].Name); g_string_pad_or_truncate_to_charlen(str, 22 - strcharlen(price)); g_string_append(str, price); g_free(price); names = g_slist_append(names, g_string_free(str, FALSE)); } display_select_list(names); attrset(PromptAttr); } /* * Loop which handles the user playing an interactive game (i.e. "Play" * is a client connected to a server, either locally or remotely) * dopewars is essentially server-driven, so this loop simply has to * make the screen look pretty, respond to user keypresses, and react * to messages from the server. */ static void Curses_DoGame(Player *Play) { gchar *buf, *OldName, *TalkMsg; GString *text; int i, c; char IsCarrying; #if defined(NETWORKING) || defined(HAVE_SELECT) fd_set readfs; #endif #ifdef NETWORKING fd_set writefs; gboolean DoneOK; gchar *pt; gboolean justconnected = FALSE; #endif int MaxSock; char HaveWorthless; Player *tmp; struct sigaction sact; DisplayMode = DM_NONE; QuitRequest = FALSE; ResizedFlag = 0; sact.sa_handler = ResizeHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGWINCH, &sact, NULL) == -1) { g_warning(_("Cannot install SIGWINCH interrupt handler!")); } OldName = g_strdup(GetPlayerName(Play)); attrset(TextAttr); clear_screen(); display_message(NULL); DisplayFightMessage(Play, NULL); print_status(Play, TRUE); attrset(TextAttr); clear_bottom(); buf = NULL; if (PlayerName && PlayerName[0]) { buf = g_strdup(PlayerName); } else { do { g_free(buf); buf = nice_input(_("Hey dude, what's your name? "), get_ui_area_top() + 1, 1, FALSE, OldName, '\0'); } while (buf[0] == 0); } #ifdef NETWORKING if (WantNetwork) { if (!ConnectToServer(Play)) { end_curses(); exit(1); } justconnected = TRUE; } #endif /* NETWORKING */ print_status(Play, TRUE); display_message(""); InitAbilities(Play); SendAbilities(Play); StripTerminators(buf); SetPlayerName(Play, buf); SendNullClientMessage(Play, C_NONE, C_NAME, NULL, buf); g_free(buf); g_free(OldName); SoundPlay(Sounds.StartGame); text = g_string_new(""); while (1) { if (Play->Health == 0) DisplayMode = DM_NONE; HaveWorthless = 0; IsCarrying = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0) { IsCarrying = 1; if (Play->Drugs[i].Price == 0) { HaveWorthless = 1; } } } switch (DisplayMode) { case DM_STREET: DisplayDrugsHere(Play); /* Prompts for "normal" actions in curses client */ g_string_assign(text, _("Will you B>uy")); if (IsCarrying) g_string_append(text, _(", S>ell")); if (HaveWorthless && !WantAntique) g_string_append(text, _(", D>rop")); if (Network) g_string_append(text, _(", T>alk, P>age")); g_string_append(text, _(", L>ist")); if (!WantAntique && (Play->Bitches.Carried > 0 || Play->Flags & SPYINGON)) { g_string_append(text, _(", G>ive")); } if (Play->Flags & FIGHTING) { g_string_append(text, _(", F>ight")); } else { g_string_append(text, _(", J>et")); } g_string_append(text, _(", or Q>uit? ")); mvaddcentstr(get_prompt_line(), text->str); attrset(TextAttr); curs_set(1); break; case DM_FIGHT: DisplayFightMessage(Play, ""); attrset(PromptAttr); /* Prompts for actions during fights in curses client */ g_string_assign(text, _("Do you ")); if (CanFire) { if (TotalGunsCarried(Play) > 0) { g_string_append(text, _("F>ight, ")); } else { g_string_append(text, _("S>tand, ")); } } if (fp != F_LASTLEAVE) g_string_append(text, _("R>un, ")); if (!RunHere || fp == F_LASTLEAVE) /* (%tde = "drugs" by default here) */ dpg_string_append_printf(text, _("D>eal %tde, "), Names.Drugs); g_string_append(text, _("or Q>uit? ")); mvaddcentstr(get_prompt_line(), text->str); attrset(TextAttr); curs_set(1); break; case DM_DEAL: attrset(TextAttr); clear_bottom(); mvaddstr(16, 1, "Your trade:-"); mvaddstr(19, 1, "His trade:-"); g_string_assign(text, "Do you A>dd, R>emove, O>K, D>eal "); g_string_append(text, Names.Drugs); g_string_append(text, ", or Q>uit? "); attrset(PromptAttr); mvaddcentstr(get_prompt_line(), text->str); attrset(TextAttr); curs_set(1); break; case DM_NONE: break; } refresh(); if (QuitRequest) return; #ifdef NETWORKING FD_ZERO(&readfs); FD_ZERO(&writefs); FD_SET(0, &readfs); MaxSock = 1; if (Client) { if (justconnected) { /* Deal with any messages that came in while we were connect()ing */ justconnected = FALSE; while ((pt = GetWaitingPlayerMessage(Play)) != NULL) { HandleClientMessage(pt, Play); g_free(pt); } if (QuitRequest) return; } SetSelectForNetworkBuffer(&Play->NetBuf, &readfs, &writefs, NULL, &MaxSock); } if (bselect(MaxSock, &readfs, &writefs, NULL, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(1); } if (Client) { if (RespondToSelect(&Play->NetBuf, &readfs, &writefs, NULL, &DoneOK)) { while ((pt = GetWaitingPlayerMessage(Play)) != NULL) { HandleClientMessage(pt, Play); g_free(pt); } if (QuitRequest) return; } if (!DoneOK) { attrset(TextAttr); clear_line(get_prompt_line()); mvaddstr(get_prompt_line(), 0, _("Connection to server lost! " "Reverting to single player mode")); nice_wait(); SwitchToSinglePlayer(Play); print_status(Play, TRUE); } } if (FD_ISSET(0, &readfs)) { #elif defined(HAVE_SELECT) FD_ZERO(&readfs); FD_SET(0, &readfs); MaxSock = 1; if (bselect(MaxSock, &readfs, NULL, NULL, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(1); } #endif /* NETWORKING */ if (DisplayMode == DM_STREET) { /* N.B. You must keep the order of these keys the same as the original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, L>ist, G>ive errand, F>ight, J>et, Q>uit) */ c = GetKey(N_("BSDTPLGFJQ"), TRUE, FALSE, FALSE); } else if (DisplayMode == DM_FIGHT) { /* N.B. You must keep the order of these keys the same as the original when you translate (D>eal drugs, R>un, F>ight, S>tand, Q>uit) */ c = GetKey(N_("DRFSQ"), TRUE, FALSE, FALSE); } else c = 0; #if ! (defined(NETWORKING) || defined(HAVE_SELECT)) CheckForResize(Play); #endif if (DisplayMode == DM_STREET) { if (c == 'J' && !(Play->Flags & FIGHTING)) { jet(Play, TRUE); } else if (c == 'F' && Play->Flags & FIGHTING) { DisplayMode = DM_FIGHT; } else if (c == 'T' && Play->Flags & TRADING) { DisplayMode = DM_DEAL; } else if (c == 'B') { DealDrugs(Play, TRUE); } else if (c == 'S' && IsCarrying) { DealDrugs(Play, FALSE); } else if (c == 'D' && HaveWorthless && !WantAntique) { DropDrugs(Play); } else if (c == 'G' && !WantAntique && Play->Bitches.Carried > 0) { GiveErrand(Play); } else if (c == 'Q') { if (want_to_quit() == 1) { DisplayMode = DM_NONE; clear_bottom(); SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL); } } else if (c == 'L') { if (Network) { attrset(PromptAttr); mvaddstr(get_prompt_line() + 1, 20, _("List what? P>layers or S>cores? ")); /* P>layers, S>cores */ i = GetKey(N_("PS"), TRUE, FALSE, FALSE); if (i == 'P') { ListPlayers(Play, FALSE, NULL); } else if (i == 'S') { DisplayMode = DM_NONE; SendClientMessage(Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } } else { DisplayMode = DM_NONE; SendClientMessage(Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } } else if (c == 'P' && Network) { tmp = ListPlayers(Play, TRUE, _("Whom do you want to page " "(talk privately to) ? ")); if (tmp) { attrset(TextAttr); clear_line(get_prompt_line()); /* Prompt for sending player-player messages */ TalkMsg = nice_input(_("Talk: "), get_prompt_line(), 0, FALSE, NULL, '\0'); if (TalkMsg[0]) { SendClientMessage(Play, C_NONE, C_MSGTO, tmp, TalkMsg); buf = g_strdup_printf("%s->%s: %s", GetPlayerName(Play), GetPlayerName(tmp), TalkMsg); display_message(buf); g_free(buf); } g_free(TalkMsg); } } else if (c == 'T' && Client) { attrset(TextAttr); clear_line(get_prompt_line()); TalkMsg = nice_input(_("Talk: "), get_prompt_line(), 0, FALSE, NULL, '\0'); if (TalkMsg[0]) { SendClientMessage(Play, C_NONE, C_MSG, NULL, TalkMsg); buf = g_strdup_printf("%s: %s", GetPlayerName(Play), TalkMsg); display_message(buf); g_free(buf); } g_free(TalkMsg); } } else if (DisplayMode == DM_FIGHT) { switch (c) { case 'D': if (!RunHere || fp == F_LASTLEAVE) { DisplayMode = DM_STREET; if (!(Play->Flags & FIGHTING) && HaveAbility(Play, A_DONEFIGHT)) { SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); } } break; case 'R': if (RunHere) { SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, "R"); } else { jet(Play, TRUE); } break; case 'F': if (TotalGunsCarried(Play) > 0 && CanFire) { buf = g_strdup_printf("%c", c); Play->Flags &= ~CANSHOOT; SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, buf); g_free(buf); } break; case 'S': if (TotalGunsCarried(Play) == 0 && CanFire) { buf = g_strdup_printf("%c", c); Play->Flags &= ~CANSHOOT; SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, buf); g_free(buf); } break; case 'Q': if (want_to_quit() == 1) { DisplayMode = DM_NONE; clear_bottom(); SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL); } break; } } else if (DisplayMode == DM_DEAL) { switch (c) { case 'D': DisplayMode = DM_STREET; break; case 'Q': if (want_to_quit() == 1) { DisplayMode = DM_NONE; clear_bottom(); SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL); } break; } } #ifdef NETWORKING } #endif curs_set(0); } g_string_free(text, TRUE); } void CursesLoop(struct CMDLINE *cmdline) { char c; Player *Play; #ifdef CYGWIN /* On Windows, force UTF-8 rather than the non-Unicode codepage */ bind_textdomain_codeset(PACKAGE, "UTF-8"); Conv_SetInternalCodeset("UTF-8"); LocaleIsUTF8 = TRUE; WantUTF8Errors(TRUE); #endif InitConfiguration(cmdline); if (!CheckHighScoreFileConfig()) return; WantColor = cmdline->color; WantNetwork = cmdline->network; /* Save the configuration, so we can restore those elements that get * overwritten when we connect to a dopewars server */ BackupConfig(); start_curses(); #ifdef NETWORKING CurlInit(&MetaConn); #endif Width = COLS; Depth = LINES; /* Set up message handlers */ ClientMessageHandlerPt = HandleClientMessage; /* Make the GLib log messages display nicely */ g_log_set_handler(NULL, G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, LogMessage, NULL); SoundOpen(cmdline->plugin); SoundEnable(UseSounds); display_intro(); Play = g_new(Player, 1); FirstClient = AddPlayer(0, Play, FirstClient); do { Curses_DoGame(Play); SoundPlay(Sounds.EndGame); ShutdownNetwork(Play); CleanUpServer(); RestoreConfig(); attrset(TextAttr); mvaddstr(get_prompt_line() + 1, 20, _("Play again? ")); c = GetKey(N_("YN"), TRUE, TRUE, FALSE); } while (c == 'Y'); FirstClient = RemovePlayer(Play, FirstClient); end_curses(); #ifdef NETWORKING CurlCleanup(&MetaConn); #endif } dopewars-1.6.2/src/curses_client/Makefile.in000644 000765 000024 00000047241 14256243572 020773 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = src/curses_client ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libcursesclient_a_AR = $(AR) $(ARFLAGS) libcursesclient_a_LIBADD = am_libcursesclient_a_OBJECTS = curses_client.$(OBJEXT) libcursesclient_a_OBJECTS = $(am_libcursesclient_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/auxbuild/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/curses_client.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcursesclient_a_SOURCES) DIST_SOURCES = $(libcursesclient_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/auxbuild/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LIBRARIES = libcursesclient.a libcursesclient_a_SOURCES = curses_client.c curses_client.h AM_CPPFLAGS = -I${srcdir} -I$(top_srcdir)/src @GLIB_CFLAGS@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/curses_client/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/curses_client/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcursesclient.a: $(libcursesclient_a_OBJECTS) $(libcursesclient_a_DEPENDENCIES) $(EXTRA_libcursesclient_a_DEPENDENCIES) $(AM_V_at)-rm -f libcursesclient.a $(AM_V_AR)$(libcursesclient_a_AR) libcursesclient.a $(libcursesclient_a_OBJECTS) $(libcursesclient_a_LIBADD) $(AM_V_at)$(RANLIB) libcursesclient.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/curses_client.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/curses_client.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/curses_client.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: dopewars-1.6.2/auxbuild/install-sh000755 000765 000024 00000033255 14256000066 017103 0ustar00benstaff000000 000000 #!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: dopewars-1.6.2/auxbuild/config.rpath000755 000765 000024 00000044216 14256000066 017406 0ustar00benstaff000000 000000 #! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2020 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # 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. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; nagfor*) wl='-Wl,-Wl,,' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; xl* | bgxl* | bgf* | mpixl*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) wl= ;; *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; newsos6) ;; *nto* | *qnx*) ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) wl='-Qoption ld ' ;; *) wl='-Wl,' ;; esac ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; haiku*) ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then : else ld_shlibs=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd2.[01]*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) case "$host_cpu" in powerpc*) library_names_spec='$libname$shrext' ;; m68k) library_names_spec='$libname.a' ;; esac ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd[23].*) library_names_spec='$libname$shrext$versuffix' ;; freebsd* | dragonfly*) library_names_spec='$libname$shrext' ;; gnu*) library_names_spec='$libname$shrext' ;; haiku*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; *nto* | *qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; tpf*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 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. # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION=2.4.2 TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 dopewars-1.6.2/auxbuild/config.guess000755 000765 000024 00000130361 14256000066 017413 0ustar00benstaff000000 000000 #! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # 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 3 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, see . # # 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. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. 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 1992-2013 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 "$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 ; set_cc_for_build= ;' # 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 case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # 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 tuples: *-*-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 ;; sh5el) machine=sh5le-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 -q __ELF__ 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 ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # 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 Pn.n version is a patched version. # 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/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; 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 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; 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 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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 ;; 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 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; 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 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # 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 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; 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 && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; 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 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????: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 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; 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 ;; *: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 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi 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 ;; *:AIX:*:[4567]) 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 ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 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 eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 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 && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; 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 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *: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/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; 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 -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #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-${LIBC}"; exit; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; 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-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; 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 ;; 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 ;; 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 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; 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 ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. 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 ;; 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 ;; 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 i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; 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 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 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 | S7501*:*: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; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' 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; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *: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 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; 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 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *: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 ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *: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 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac 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\n"); 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 && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # 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 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; 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: dopewars-1.6.2/auxbuild/depcomp000755 000765 000024 00000056020 14256000066 016447 0ustar00benstaff000000 000000 #! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2020 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, see . # 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 . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} 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 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # 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 cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc 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. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## 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). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - 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 -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # 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. ## 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. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -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 -ne 0; then 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 ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # 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 ;; 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. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then 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" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; 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. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # 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 ;; #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 "X$1" != 'X--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|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | 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 "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi 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. -arch) eat=yes ;; -*|$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" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | 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 "X$1" != 'X--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 -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [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. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # 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 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: dopewars-1.6.2/auxbuild/missing000755 000765 000024 00000015331 14256000066 016471 0ustar00benstaff000000 000000 #! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2012-06-26.16; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # 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, see . # 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. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'automa4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: dopewars-1.6.2/auxbuild/config.sub000755 000765 000024 00000105315 14256000066 017057 0ustar00benstaff000000 000000 #! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-04-24' # 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 3 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, see . # # 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. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # 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. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # 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 1992-2013 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 ;; * ) 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-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) 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 | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -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 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -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/'` ;; -sco5v6*) # 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*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -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 \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # 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-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # 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 ;; abacus) basic_machine=abacus-unknown ;; 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 ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; 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 ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; 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 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; 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*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 ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; 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 ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; 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 ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; 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 ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) 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-* | ppc64p7-*) 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 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; 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 ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; 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 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; 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 ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-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 ;; mmix) basic_machine=mmix-knuth ;; 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 ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 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. -auroraux) os=-auroraux ;; -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* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -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* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # 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* | -haiku* \ | -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 ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -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 ;; -tpf*) os=-tpf ;; -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 ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -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 score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) 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 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or1k-*) 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 ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-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 ;; -cnk*|-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 ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -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 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: dopewars-1.6.2/auxbuild/compile000755 000765 000024 00000016350 14256000066 016452 0ustar00benstaff000000 000000 #! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2020 Free Software Foundation, Inc. # Written by Tom Tromey . # # 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, see . # 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. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN* | MSYS*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: dopewars-1.6.2/rpm/dopewars.spec.in000644 000765 000024 00000007143 14256000066 017162 0ustar00benstaff000000 000000 Summary: Drug dealing game Name: @PACKAGE@ Version: @VERSION@ Release: 1%{?dist} Vendor: Ben Webb URL: https://dopewars.sourceforge.io/ License: GPL Group: Amusements/Games Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) BuildRequires: SDL2_mixer-devel SDL2-devel glib2-devel gcc libcurl-devel BuildRequires: gtk3-devel ncurses-devel gettext-devel %description Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. dopewars supports multiple players via. TCP/IP. Chatting to and fighting with other players (computer or human) is supported; check the command line switches (via dopewars -h) for further information. %package sdl Summary: dopewars SDL_mixer sound plugin Group: Amusements/Games Requires: %{name} %description sdl This package adds a plugin to dopewars to allow sound to be output via. the Simple DirectMedia Layer mixer (SDL2 and SDL_mixer). %prep %setup %build %define _localstatedir /var/lib/games %configure --with-sdl make %install make install DESTDIR=${RPM_BUILD_ROOT} %find_lang %{name} %clean test "$RPM_BUILD_ROOT" != "/" && rm -rf ${RPM_BUILD_ROOT} %post %{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco %files -f %{name}.lang %defattr(-,root,root) %doc ChangeLog.md LICENCE README.md %doc %{_docdir}/%{name} %attr(2755,root,games) %{_bindir}/dopewars %attr(0660,root,games) %config %{_localstatedir}/dopewars.sco %{_mandir}/man6/dopewars.6.gz %{_datadir}/gnome/apps/Games/dopewars.desktop %{_datadir}/pixmaps/dopewars-pill.png %{_datadir}/pixmaps/dopewars-weed.png %{_datadir}/pixmaps/dopewars-shot.png %dir %{_datadir}/dopewars/ %{_datadir}/dopewars/bye.wav %{_datadir}/dopewars/colt.wav %{_datadir}/dopewars/die.wav %{_datadir}/dopewars/gun.wav %{_datadir}/dopewars/jet.wav %{_datadir}/dopewars/losebitch.wav %{_datadir}/dopewars/message.wav %{_datadir}/dopewars/murmur.wav %{_datadir}/dopewars/punch.wav %{_datadir}/dopewars/run.wav %{_datadir}/dopewars/shotdown.wav %{_datadir}/dopewars/train.wav %files sdl %defattr(-,root,root) %{_libdir}/dopewars/libsound_sdl.so %changelog * Wed Dec 02 2020 Ben Webb - Build with SDL2 rather than SDL 1. * Mon Jul 28 2003 Ben Webb - High score file moved to /var/lib/games for consistency with other packages * Mon Oct 21 2002 Ben Webb - Dependency on SDL-devel added to properly build SDL plugin * Fri Oct 18 2002 Ben Webb - ESD plugin incorporated into main package - Sound files added to distribution * Fri Jun 21 2002 Ben Webb - Description typos corrected - A lot of hardcoded texts replaced with %{name} etc. - Redundant make arguments removed * Mon May 13 2002 Ben Webb - SDL and ESD plugin subpackages added * Sun Feb 03 2002 Ben Webb - Use of %attr tidied up - Rebuild with new version * Wed Oct 17 2001 Ben Webb - Added in %attrs to allow building by non-root users * Wed Sep 26 2001 Ben Webb - Added support for a buildroot dopewars-1.6.2/win32/mingw/000755 000765 000024 00000000000 14256243621 015343 5ustar00benstaff000000 000000 dopewars-1.6.2/win32/README.md000644 000765 000024 00000001570 14256000066 015476 0ustar00benstaff000000 000000 ## Building dopewars on Windows dopewars is built for Windows via cross-compilation on Linux using the MinGW tools. See the `mingw` subdirectory for a suitable `Dockerfile` to set up a [Docker](https://www.docker.com/) or [Podman](https://podman.io/) compilation environment. Once in the environment, build dopewars for 64-bit Windows with ./configure --host=x86_64-w64-mingw32 --enable-nativewin32 && make For 32-bit Windows, use ./configure --host=i686-w64-mingw32 --enable-nativewin32 && make In order for curl connections to the metaserver to work, copy `/etc/pki/tls/certs/ca-bundle.crt` from the Docker/Podman environment to the same directory as `dopewars.exe`. ## Windows installer The top-level `configure` script will also generate `install.nsi` in this directory. This can be used as input to [NSIS](https://nsis.sourceforge.io/) to build a Windows installer. dopewars-1.6.2/win32/install.nsi.in000755 000765 000024 00000020202 14256000066 017001 0ustar00benstaff000000 000000 ; NSIS (http://nsis.sf.net/) install script !include "MUI2.nsh" !include "FileFunc.nsh" !include "WinVer.nsh" !include "LogicLib.nsh" ; Use solid LZMA compression SetCompressor /SOLID lzma Var STARTMENU_FOLDER Var MUI_TEMP Unicode true !define PRODUCT "dopewars" !define VERSION "@PACKAGE_VERSION@" !define PRODVER "${PRODUCT}-${VERSION}" !if "@host@" == "i686-w64-mingw32" ; 32-bit build; no special setup !else if "@host@" == "x86_64-w64-mingw32" ; 64-bit build !define DOPEWARS_64BIT !else !error "Supported only for 32-bit and 64-bit Windows" !endif Name ${PRODVER} !ifdef DOPEWARS_64BIT Caption "${PRODUCT} ${VERSION} (64 bit) Setup" OutFile "dopewars-${VERSION}-64bit.exe" InstallDir "$PROGRAMFILES64\${PRODVER}" # Note that we don't use InstallDirRegKey on x64 since it ignores SetRegView !define FULL_PRODVER "${PRODUCT} ${VERSION} (64 bit)" !else Caption "${PRODUCT} ${VERSION} (32 bit) Setup" OutFile "dopewars-${VERSION}-32bit.exe" InstallDir "$PROGRAMFILES\${PRODVER}" InstallDirRegKey HKLM "Software\${PRODVER}" "" !define FULL_PRODVER "${PRODUCT} ${VERSION} (32 bit)" !endif !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${PRODVER}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" !define MUI_TEMP $R0 !define MUI_ABORTWARNING !define MUI_WELCOMEPAGE_TITLE "Welcome to the ${FULL_PRODVER} Setup Wizard" !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of ${FULL_PRODVER}, a game simulating the life of a drug dealer in New York." !define MUI_FINISHPAGE_LINK "https://dopewars.sourceforge.io/" !define MUI_FINISHPAGE_LINK_LOCATION "https://dopewars.sourceforge.io/" !define UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODVER}" ;Pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_STARTMENU ${PRODVER} $STARTMENU_FOLDER !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES !insertmacro MUI_LANGUAGE "English" Section "" SetOutPath "$INSTDIR" File "..\LICENCE" File "..\src\dopewars.exe" File "/etc/pki/tls/certs/ca-bundle.crt" !ifdef DOPEWARS_64BIT File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/iconv.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libcrypto-1_1-x64.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libcurl-4.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libidn2-0.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libintl-8.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libpcre-1.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssh2-1.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssl-1_1-x64.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssp-0.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll" File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/zlib1.dll" !else File "/usr/i686-w64-mingw32/sys-root/mingw/bin/iconv.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcrypto-1_1.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcurl-4.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_dw2-1.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libidn2-0.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libintl-8.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpcre-1.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libssh2-1.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libssl-1_1.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll" File "/usr/i686-w64-mingw32/sys-root/mingw/bin/zlib1.dll" !endif SetOutPath "$INSTDIR\doc" File "..\doc\*.html" SetOutPath "$INSTDIR\doc\help" File "..\doc\help\*.html" SetOutPath "$INSTDIR\locale\de\LC_MESSAGES" File /oname=dopewars.mo "..\po\de.gmo" SetOutPath "$INSTDIR\locale\es\LC_MESSAGES" File /oname=dopewars.mo "..\po\es.gmo" SetOutPath "$INSTDIR\locale\en_GB\LC_MESSAGES" File /oname=dopewars.mo "..\po\en_GB.gmo" SetOutPath "$INSTDIR\locale\es_ES\LC_MESSAGES" File /oname=dopewars.mo "..\po\es_ES.gmo" SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES" File /oname=dopewars.mo "..\po\fr.gmo" SetOutPath "$INSTDIR\locale\fr_CA\LC_MESSAGES" File /oname=dopewars.mo "..\po\fr_CA.gmo" SetOutPath "$INSTDIR\locale\nn\LC_MESSAGES" File /oname=dopewars.mo "..\po\nn.gmo" SetOutPath "$INSTDIR\locale\pl\LC_MESSAGES" File /oname=dopewars.mo "..\po\pl.gmo" SetOutPath "$INSTDIR\locale\pt_BR\LC_MESSAGES" File /oname=dopewars.mo "..\po\pt_BR.gmo" SetOutPath "$INSTDIR\sounds\19.5degs" File "..\sounds\19.5degs\*.wav" WriteRegStr HKLM "Software\${PRODVER}" "" $INSTDIR WriteUninstaller "$INSTDIR\Uninstall.exe" WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "${FULL_PRODVER}" WriteRegStr HKLM "${UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe" WriteRegStr HKLM "${UNINST_KEY}" "DisplayVersion" "${VERSION}" WriteRegStr HKLM "${UNINST_KEY}" "Publisher" "Ben Webb" WriteRegStr HKLM "${UNINST_KEY}" "URLInfoAbout" "https://dopewars.sourceforge.io/" WriteRegDWORD HKLM "${UNINST_KEY}" "NoModify" 1 WriteRegDWORD HKLM "${UNINST_KEY}" "NoRepair" 1 !insertmacro MUI_STARTMENU_WRITE_BEGIN ${PRODVER} CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\dopewars.lnk" "$INSTDIR\dopewars.exe" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\dopewars public server.lnk" "$INSTDIR\dopewars.exe" "-s" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\dopewars private server.lnk" "$INSTDIR\dopewars.exe" "-S" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\text-mode dopewars.lnk" "$INSTDIR\dopewars.exe" "-t" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\dopewars AI player.lnk" "$INSTDIR\dopewars.exe" "-c" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\dopewars command line options.lnk" "$INSTDIR\dopewars.exe" "-h" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\dopewars help.lnk" "$INSTDIR\doc\index.html" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe" !insertmacro MUI_STARTMENU_WRITE_END SectionEnd Section "Uninstall" !ifdef DOPEWARS_64BIT SetRegView 64 !endif Delete "$INSTDIR\Uninstall.exe" Delete "$INSTDIR\dopewars.exe" Delete "$INSTDIR\*.dll" Delete "$INSTDIR\LICENCE" Delete "$INSTDIR\ca-bundle.crt" RMDir /r "$INSTDIR\doc" RMDir /r "$INSTDIR\locale" RMDir /r "$INSTDIR\sounds" RMDir "$INSTDIR" ReadRegStr $MUI_TEMP HKLM "Software\${PRODVER}" "Start Menu Folder" StrCmp $MUI_TEMP "" noshortcuts ReadRegStr $0 HKLM "Software\${PRODVER}" "ShellVarContext" StrCmp $0 "all" 0 +2 SetShellVarContext all Delete "$SMPROGRAMS\$MUI_TEMP\dopewars.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\dopewars public server.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\dopewars private server.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\text-mode dopewars.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\dopewars AI player.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\dopewars command line options.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\dopewars help.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk" RMDir "$SMPROGRAMS\$MUI_TEMP" ;Only if empty, so it won't delete other shortcuts noshortcuts: DeleteRegKey /ifempty HKLM "Software\${PRODVER}" DeleteRegKey HKLM "${UNINST_KEY}" SectionEnd Function .onInit !ifdef DOPEWARS_64BIT SetRegView 64 !endif ClearErrors UserInfo::GetAccountType IfErrors add_reg_keys Pop $0 StrCmp $0 "Admin" add_reg_keys IfSilent silent_not_admin MessageBox MB_YESNO|MB_ICONEXCLAMATION \ "You do not appear to be a computer administrator; \ this installer may not function correctly. \ Do you want to continue anyway?" /SD IDYES IDYES acccheck_done Quit silent_not_admin: Abort "This installer must be run by the administrator" add_reg_keys: SetShellVarContext all ; install for all users WriteRegStr HKLM "Software\${PRODVER}" "ShellVarContext" "all" acccheck_done: FunctionEnd dopewars-1.6.2/win32/mingw/Dockerfile000644 000765 000024 00000000421 14256000066 017324 0ustar00benstaff000000 000000 FROM fedora:33 MAINTAINER Ben Webb RUN echo "zchunk=0" >> /etc/dnf/dnf.conf && dnf -y install mingw64-curl mingw64-glib2 mingw64-pkg-config mingw32-curl mingw32-glib2 mingw32-pkg-config automake autoconf which git make gettext diffutils mingw32-nsis dopewars-1.6.2/doc/dopewars.6.in000644 000765 000024 00000004576 14256000065 016352 0ustar00benstaff000000 000000 .TH DOPEWARS 6 .SH NAME dopewars \- drug dealing game .SH SYNOPSIS .B dopewars .I "[OPTIONS] ..." .SH "DESCRIPTION" .B dopewars is a ncurses- and GTK- based drug dealing game based in New York, with you as the drug dealer striving to become filthy rich. It supports network play and single-player games. .SH OPTIONS Valid commandline options: .TP \fB\-b\fR, \fB\-\-no\-color\fR, \fB\-\-no\-colour\fR "black and white", i.e. do not use pretty colours .TP \fB\-n\fR, \fB\-\-single\-player\fR Do not connect to any available dopewars servers .TP \fB\-a\fR, \fB\-\-antique\fR Antique dopewars; stick as close as possible to the functionality of the original version. .TP \fB\-f\fR, \fB\-\-scorefile\fR=\fIFILE\fR Specify a file to use as high score table (defaults to @DPDATADIR@/dopewars.sco) .TP \fB\-o\fR, \fB\-\-hostname\fR=\fIADDR\fR Specify a multiplayer hostname .TP \fB\-s\fR, \fB\-\-public\-server\fR Run in server mode. (Note: see the \fB\-A\fR option for configuring a server once it's running.) .TP \fB\-S\fR, \fB\-\-private\-server\fR Run as a "private" server (do not report to the metaserver) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR Specify the network port to use .TP \fB\-g\fR, \fB\-\-config\-file\fR=\fIFILE\fR Specify the pathname of a dopewars configuration file .TP \fB\-r\fR, \fB\-\-pidfile\fR=\fIFILE\fR Specify the pathname of a PID file to maintain while running as a server .TP \fB\-l\fR, \fB\-\-logfile\fR=\fIFILE\fR Write log messages to the given file (rather than standard output) .TP \fB\-A\fR, \fB\-\-admin\fR Connect to a server running on localhost, for administration .TP \fB\-c\fR, \fB\-\-ai\-player\fR Create and run a computer player .TP \fB\-w\fR, \fB\-\-windowed\-client\fR Force the use of a graphical client (GTK+ or Win32) .TP \fB\-t\fR, \fB\-\-text\-client\fR Force the use of a text-mode (curses) client (by default, a windowed client is used when possible) .TP \fB\-P\fR, \fB\-\-player\fR=\fINAME\fR Sets the default player name .TP \fB\-C\fR, \fB\-\-convert\fR=\fIFILE\fR Convert a high score file used by dopewars-1.5.1 or earlier to the format used by more recent versions .TP \fB\-h\fR, \fB\-\-help\fR Display a help screen .TP \fB\-v\fR, \fB\-\-version\fR Output version information and exit. .SH AUTHOR This manual page was written by Leon Breedt , for the Debian GNU/Linux system (but may be used by others). Additional updates by Ben Webb . dopewars-1.6.2/doc/example-cfg000644 000765 000024 00000002424 14256000065 016133 0ustar00benstaff000000 000000 # Anything after a '#' symbol on the same line is treated as a comment # and is ignored /* Multi-line comments are also possible, if this C-style syntax is used to denote their starting and finishing points N.B. Whitespace (tabs, space characters) is ignored, as are line breaks (except for the purpose of terminating '#'-style comments) */ # An example of setting a numerical value MaxClients= 6 /* An example of setting a string (text) value (all strings should be quoted - double-quotes can also be used, but these interpret C-style escape sequences (like \t for a tab character) and so should be avoided, e.g, for Windows path names) */ HiScoreFile= '/var/lib/games/dopewars.sco' # An example of setting a string list value StoppedTo = { 'drink a beer', 'visit a friend', 'smoke a cigar' } StartCash=2000000 # Start each player with $2million StartDebt=0 Port=7904 NumLocation=6 Location[1].Name='Oxford' Location[2].Name='London' Location[3].Name='Birmingham' Location[4].Name='Manchester' Location[5].Name='Edinburgh' Location[6].Name='Milton Keynes' Drug[1].Name='Smarties' Drug[1].Cheap=0 Drug[1].Expensive=1 Drug[1].MinPrice=5000 Drug[1].MaxPrice=50000 Gun[2].Name='Uzi 9mm' Gun[2].Price=500000 Gun[2].Space=20 Gun[2].Damage=50 DrugSortMethod=3 dopewars-1.6.2/doc/index.html000644 000765 000024 00000005070 14256242752 016030 0ustar00benstaff000000 000000 dopewars 1.6.2: Main Index

dopewars 1.6.2: Main Index

dopewars is a game simulating the life of a drug dealer in 1984 New York, based upon the MS-DOS game of the same name, in turn derived from "Drug Wars" by John E. Dell. The aim of the game is to make lots and lots of money, but unfortunately you start the game with a hefty debt to the loan shark (who charges equally hefty interest) and the cops take a rather dim view of drug dealing...

dopewars expands upon the MS-DOS version by introducing multiplayer functions. With the aid of dopewars servers, several players (computer or human) can roam New York (or some other city, chosen by the operator of the server) and attempt to shoot other players and steal their lucrative drugs.

dopewars is written on the RedHat Linux platform, and should run on most varieties of Unix, as well as under Microsoft Windows. The source code is freely available under the GNU General Public License.

For more information on the current state of dopewars, check out the webpage.


Last update: 02-06-2003
Valid XHTML 1.1 and CSS

dopewars-1.6.2/doc/servercommands.html000644 000765 000024 00000005224 14256242752 017752 0ustar00benstaff000000 000000 Interactive server commands

Interactive server commands

Available commands are listed below. Please note also that any valid line from a configuration file can be entered at the interactive server's prompt. Note, however, that game options cannot be changed while players are connected. In addition, the current value of any option from the configuration files can be displayed by typing the name of the variable by itself. For example, entering MetaServer.Comment at the prompt will display the comment that the server sends to the metaserver.

help
Displays a help screen, listing valid server commands and the variables which can be set in configuration files.
list
Lists the given names of all the players currently logged on to the server.
push Bert
Politely asks the player with the given name Bert to leave the server - i.e. sends a message to the client, which should then finish off and break the connection at the far end.
kill Bert
Abruptly breaks the connection to the player with given name Bert. This is necessary if, for example, the client refuses to acknowledge a "push" message.
msg:Hi all!
Broadcasts the message Hi all! to all players currently connected to this server.
save my-conf
Saves the current configuration (names of drugs, locations, etc.) to the file my-conf. If no file name is given, the configuration is written to the local configuration file - usually ~/.dopewars on Unix systems and dopewars-config.txt on Windows.
quit
Politely quit, by asking all clients to leave, and then terminating once they have done so. An "impolite" quit, which is necessary if the clients fail to respond to this message, is performed on receipt of a SIGINT or SIGTERM signal (i.e. pressing Ctrl-C or killing the process with the "kill" command).

Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.6.2/doc/protocol.html000644 000765 000024 00000062673 14256242752 016576 0ustar00benstaff000000 000000 The dopewars network protocol

The dopewars network protocol

Syntax used in this document

(runhere)
A single character field (equivalent to C's %c format).
<ID>
A numeric field - an integer printed in text form, without spaces, commas or other punctuation. Note that the number is not stored directly as its binary representation, but as a string - i.e. "100" takes 3 characters (bytes), not one. Equivalent to C's %d format.
"text"
Freeform text, equivalent to C's %s format.

Anything else should be taken as literal characters, which should appear in the message exactly as printed here.

General message format

dopewars clients communicate with the dopewars server by means of a TCP/IP connection. Messages are sent in plain text, are of variable length, and are always terminated by a linefeed character ('\n', ASCII code 10)

Messages themselves are typically split into 'words', delimited by the caret (^) character. The underline character (_) is also used to break up translatable strings (tstrings), if the A_TSTRING ability is active, and thus these two characters, together with the \n character, should normally be avoided in message data.

Messages are usually of the format:-

<ID>^(A)(C)"data"
ID = player ID (may also be blank if this is not applicable)
A = one-letter message subtype code (used by AI players)
C = one-letter message type code
data = message-dependent information

e.g. "1^AFHello player"

If ID is not specified, it should be left blank when sending to the server, and should be ignored in reading messages from the server.

The "data" field often contains multiple items, separated by ^ characters. Note that the last field in such a message should not be assumed to be terminated by the message terminator, \n - although it always will be, it should also be first terminated by the field separator, the ^ character. This allows the client to ignore extra fields, if later versions of the protocol should add them. (N.B. This does not apply to free-form text fields, as in the C_QUESTION, C_PRINTMESSAGE, C_MSG, C_MSGTO, and C_FIGHTPRINT messages, which _do_ extend to the end of the message; for these messages, the caret is generally interpreted as a line break.) Note also that older servers may not send all the fields, so if fewer fields than expected are received, the client should substitute default values.

Message codes are shown below, together with the symbolic constants used in the dopewars code for clarity (e.g. the 'A' code is represented by C_PRINTMESSAGE)

For the AI codes, see the AICode type in src/message.h

N.B. Older versions of dopewars used a less sophisticated protocol:-

"From"^"To"^(A)(C)"data"
A, C, and data are the same; however "From" and "To" are the player names (not IDs) of the players that the message is coming from and going to. Again, these can often be left blank. This old protocol is used if the A_PLAYERID ability is not present.

e.g. "Fred^Bert^AFHello player"

Starting a game from the client

To start a game, the client must first notify the server of the protocol it can support (with the C_ABILITIES message) and then provide a suitable player name (with the C_NAME message). Note that both of these messages must be sent using the old protocol, as before protocol negotiation is complete (both server and client have sent a C_ABILITIES message) the server will default to using this protocol, for backwards compatibility. After sending these two messages, the game is run mainly by the server; the client should listen for incoming messages, and respond appropriately.

Server to client message reference

The messages listed below may be sent from a dopewars server to the client. Most of these messages require some kind of processing to be done, and may require a response. The client cannot safely ignore such messages, as the server will not "retry" if the client does not respond.

C_PRINTMESSAGE ('A')
Sent when the server wishes the client to display some text
data = The text that the client should display; any ^ delimiters in this text should be taken to mean a new line.
e.g. "^AAGame over^You made the high score list"
Answer required: no

C_LIST ('B')
Used by the server to tell the client about other logged on players
data = "name"^<ID>
name = the name of the player
ID = the numeric ID that should be used to communicate with this player
e.g. "^ABFred^1"
Answer required: no

C_ENDLIST ('C')
Signals that all players have been listed (no more C_LIST messages to come)
e.g. "^AC"
Answer required: no

C_NEWNAME ('D')
Signals that the name provided by the client is unsuitable (usually, this is because it's already been taken by another player)
N.B. This is always sent at the start of the game, before protocol negotiation, so uses the old format, e.g. "^^AD"
Answer required: yes - must send a suitable C_NAME message to proceed

C_MSG ('E')
Contains a message from one player (or the server admin) broadcast to all connected players.
data = the message to display
ID = the ID of the player that sent the message
e.g. "1^AEHello world"
Answer required: no

C_MSGTO ('F')
Contains a private message from one player to another
data = the message to display
ID = the ID of the player that sent the message
e.g. "1^AFHello player"
Answer required: no

C_JOIN ('G')
Sent by the server to all players when a new player joins the game (See C_LIST for format)
Answer required: no

C_LEAVE ('H')
Sent by the server to all players when a player leaves the game
data = the name of the player that's leaving
ID = the ID of the player
e.g. "1^AHFred"
Answer required: no

C_SUBWAYFLASH ('I')
Used by the server to tell a client that it has just moved to a new location. (The client is not told where this location is, since this information is contained in a C_UPDATE message.) Clients usually reset any location-dependent state (e.g. fights) on receiving this message, and flash a "subway" indicator or similar
e.g. "^AI"
Answer required: no

C_UPDATE ('J')
Used by the server to update client state. This is also used to tell the player about the state of another player (a report from a spy)
data = <cash>^<debt>^<bank>^<health>^<coatsize>^<locn>^<turn>^<flags>^<GUNS>^<DRUGS>^<DRUGVALUE>^<bitches>
cash, debt, bank = money available, owed to the loan shark, in the bank
coatsize = amount of space available for drugs/guns
locn = zero-based game location
turn = turn number
flags = player status flags - see PlayerFlags in src/dopewars.h for the individual binary bits. The only one currently used is SPYINGON (16) which is set if the player is currently spying on one or more other players
GUNS = the numbers of each gun carried, separated by ^ characters (there should be NumGun numbers in this list - see the C_INIT message)
DRUGS = similar, for carried drugs
DRUGVALUE = similar, but contains the total cash value of each drug; N.B. this field is only sent if the ability A_DRUGVALUE is present
bitches = number of accompanying bitches
ID = blank for a status update, otherwise the ID of the player that you're spying on
Answer required: no

C_DRUGHERE ('K')
Tells the client which drugs are available to buy at the current location
data = drug prices, separated by ^ characters. If a price is zero, that drug is not available here
Answer required: no

C_GUNSHOP ('L')
Tells the client to start up the "gun shop", for buying/selling guns
e.g. "^AL"
Answer required: yes - zero or more C_BUYOBJECT messages, followed by a C_DONE message

C_LOANSHARK ('M')
Tells the client that the player has a chance to pay back the loan
e.g. "^AM"
Answer required: yes - an optional C_PAYLOAN message, followed by a C_DONE message

C_BANK ('N')
Tells the client that the player has a chance to visit the bank
e.g. "^AN"
Answer required: yes - an optional C_DEPOSIT message, followed by a C_DONE message

C_QUESTION ('O')
Used to display a message from the server that requires a response
data = "keys"^"message"
keys = a list of the valid single-character responses - e.g. "YN" for a yes/no question; the client may use these keys directly, or expand them to complete words (e.g. YN -> Yes/No)
message = the message to display
e.g. "^AOYN^Would you like to visit the bank?"
Answer required: yes - a C_ANSWER message, containing one of the valid response keys

C_HISCORE ('Q')
Used for the server to tell the client about a high score; C_HISCORE messages should only ever be sent after a C_STARTHISCORE message and before a C_ENDHISCORE message
data = <index>^(B)"score"
index = the zero-based index of the high score (0 is the top score)
B = the single character 'B' if this score should be displayed in bold (usually to indicate that it's "your" score) or 'N' otherwise
score = the text containing the score, date, and player name
Answer required: no

C_STARTHISCORE ('R')
Tells the client that the server is about to send it a list of high scores; usually used by the client to display the title of a high score screen
e.g. "^AR"
Answer required: no

C_ENDHISCORE ('S')
Tells the client that the server has sent all of the high scores; usually used by the client to display a prompt to end the game (if data="end") or to return to the game (if data is not "end")
data = "end" if the game has finished, blank otherwise
e.g. "^ASend"
Answer required: no, but the client should disconnect if data="end"

C_PUSH ('Z')
Requests that the client leave the server
e.g. "^AZ"
Answer required: no, but the client should disconnect

C_QUIT ('a')
Notifies the client that the server is about to terminate
e.g. "^Aa"
Answer required: no, but the client should disconnect

C_RENAME ('b')
Instructs the client that another player has changed his/her name
data = the new player name
ID = the player's ID
e.g. "1^AbFred"
Answer required: no

C_INIT ('k')
Tells the client about various global game settings
data = "version"^<numloc>^<numgun>^<numdrug>^"bitch"^"bitches"^"gun"^"guns"^"drug"^"drugs"^"date"^<ID>^"loanshark"^"bank"^"gunshop"^"pub"^(prefix)"currency"
version = dopewars version of the server - e.g. "1.5.2"
numloc = the number of locations in the game
numgun = the number of guns in the game
numdrug = the number of drugs in the game
bitch, bitches, gun, guns, drug, drugs, date, loanshark, bank, gunshop, pub = various names used in the game
ID = the ID that the client should use to refer to itself
prefix = '1' if the currency symbol (e.g. $) should be printed before prices in the game, '0' otherwise
currency = the currency symbol to use
e.g. "^Ak1.5.2^8^4^12^bitch^bitches^gun^guns^drug^drugs^12-^-1984^0^the Loan Shark^the Bank^Dan's House of Guns^the pub"^1$
Answer required: no

C_DATA ('l')
Tells the client about various game settings - 4 variants on this message are possible:-
Information about locations in the game
data = <index>^A"name"
index = zero-based index of the location
name = name of the location
e.g. "^Al0^ABronx"

Information about drugs
data = <index>^B"name"^<min>^<max> index = zero-based index of the drug
name = name of the drug
min = the minimum price of the drug
max = the maximum price of the drug
e.g. "^Al1^BCocaine^15000^29000"

Information about guns
data = <index>^C"name"^<price>^<space>^<damage>
index = zero-based index of the gun
name = name of the gun
price = the normal cost of the gun
damage = the maximum damage that the gun can do
e.g. "^Al2^CRuger^2900^4^4"

Miscellaneous information
data = 0^D<spy>^<tipoff>
spy = the price to spy on another player
tipoff = the price to tip off the cops to another player
e.g. "^Al0^D20000^10000"
Answer required: no

C_FIGHTPRINT ('m')
data = "attack"^"defend"^<health>^<bitches>^"bitchname"^<killed>^<armpct>^(fightpoint)(runhere)(loot)(canfire)^"text"
attack = name of the attacker player/cop if applicable (if blank, it's you)
defend = name of the defending player/cop if applicable (if blank, it's you)
health = defender's health, if applicable
bitches = number of bitches/deputies accompanying the defending player
bitchname = usually "bitch", "bitches", "deputy" or "deputies"
killed = number of bitches killed in this attack
armpct = a number between 0 and 100 showing how heavily armed the attacker is
fightpoint =
'A' (F_ARRIVED)
The "defending" player has just arrived on the scene
'S' (F_STAND)
The "attacking" player chose not to shoot
'H' (F_HIT)
The "attacking" player fired on the defender, and hit
'M' (F_MISS)
The "attacking" player fired on the defender, and missed
'R' (F_RELOAD)
The "attacking" player is ready to fire again
'L' (F_LEAVE)
The "attacking" player has fled the fight, but other opponents remain
'D' (F_LASTLEAVE)
The "attacking" player has fled, and nobody else is present, so the fight is over
'F' (F_FAILFLEE)
The "attacking" player tried to get away, but failed
'G' (F_MSG)
Nothing exciting has happened, but "text" should still be displayed
runhere = '1' if running should take you to the current location (if '0', you should jet to another location)
loot = '1' if the attack resulted in a kill and a loot of the body
canfire = '1' if you are allowed to shoot at other players right now
text = explanatory text from the server, to be printed
Answer required: yes, depending on the message contents: usually a C_REQUESTJET or C_FIGHTACT message

C_ABILITIES ('r')
Negotiates protocol extensions between client and server
data = (playerid)(drugvalue)(newfight)(tstring)(donefight)(utf8)(date)

playerid = '1' if we use player IDs rather than player names to identify players in network messages ('0' otherwise). It is strongly recommended that this new protocol be used, as the old protocol is difficult to properly support, and is deprecated. However, the new protocol is only supported by servers of version 1.5.0 or above. (N.B. Since the old protocol does not support the C_ABILITIES message either, before the client and server have exchanged C_ABILITIES messages the server will "talk" using the old protocol. Thus, the C_ABILITIES message itself from the client, and any succeeding messages sent before the server sends C_ABILITIES back, must be sent using the old protocol. "Old" servers will ignore the C_ABILITIES message.) Ability name in dopewars code: A_PLAYERID

drugvalue = '1' if the server should keep track of how much players paid for their drugs, so that they can see whether they're getting a good deal when they come to sell them ('0' otherwise). Ability name in dopewars code: A_DRUGVALUE

newfight = '1' if we use the "new" fighting interface (documented here). Highly recommended. Ability name in dopewars code: A_NEWFIGHT

tstring = '1' if names of drugs etc. should be sent in the translated string (tstring) notation; only necessary if you are supporting non-English languages. Ability name in dopewars code: A_TSTRING

donefight = '1' if, when a fight finishes, the client is expected to send a C_DONE message to instruct the server to move on. (This is to allow the user to close the fight dialog before any new dialogs pop up.) Ability name in dopewars code: A_DONEFIGHT

utf8 = '1' if all strings are sent over the network in UTF-8 (Unicode) encoding, rather than an encoding specific to the locale of the server or client. Ability name in dopewars code: A_UTF8

date = '1' if the C_INIT message sends/receives the Names.Date variable, rather than Names.Month and Names.Year as older versions used to. Ability name in dopewars code: A_DATE

N.B. Only seven abilities are listed here. Older servers or clients may not only not support some of these abilities, they may not even know of their existence (conversely, newer versions may add new abilities). Thus all servers and clients, if passed an unexpectedly short abilities string, should pad it out with zeroes. If passed a long string, it should be truncated. This will cause these extra (or unspecified) abilities to be unsupported. (The order of the abilities string should never change.)

e.g. "^^Ar1010000" (N.B. the double ^ is a feature of the "old" protocol)

Client to server message reference

The messages are below are typically sent from the client to the server. Note that players do not communicate directly between each other, but always via the server. Note also that some of these messages are also valid when sent from the server to the client.

C_MSG ('E')
Contains a message from one player to be broadcast to all connected players
data = the message to display
e.g. "^AEHello world"

C_MSGTO ('F')
Contains a private message from one player to another
data = the message to display
ID = the ID of the player to send the message to
e.g. "1^AFHello player"

C_BUYOBJECT ('T')
Requests the server to buy or sell an object
data = "type"^<index>^<amount>
type = "bitch", "gun" or "drug"
index = the zero-based index of the gun/drug that you want to buy/sell, or zero if type="bitch"
amount = the number of objects to buy (or, if negative, to sell)
e.g. "^ATbitch^0^1"

C_DONE ('U')
Sent by the client when it's finished with the loan shark, bank, or gun shop
e.g. "^AU"

C_REQUESTJET ('V')
Asks the server to jet to a new location (or to run from a fight)
data = the numeric, zero-based, location to jet to
e.g. "^AV2"

C_PAYLOAN ('W')
Asks to pay back a loan to the loan shark
data = the amount of money to pay back
e.g. "^AW5000"

C_ANSWER ('X')
Sends the reply to a previous question from the server
data = the single character response
e.g. "^AXY"

C_DEPOSIT ('Y')
Asks to deposit money into (or withdraw money from) the bank
data = the amount of money to deposit, or (if negative) the amount to withdraw
e.g. "^AY10000"

C_NAME ('c')
Sent by the client to register the player name with the server
data = the player's name
N.B. this is always sent at the start of the game, in which case the old format should be used, e.g. "^^AcFred"

C_SACKBITCH ('d')
Requests that a bitch should be sacked
e.g. "^Ad"

C_TIPOFF ('e')
Asks the server to tip off the cops to another player
ID = the player ID to tip off the cops to
e.g. "1^Ae"

C_SPYON ('f')
Asks the server to spy on another player
ID = the player ID to spy on
e.g. "1^Af"

C_WANTQUIT ('g')
Tells the server that the client wishes to leave the game early
e.g. "^Ag"

C_CONTACTSPY ('h')
Asks the server to send back reports about all the players that we are currently spying on
e.g. "^Ah"

C_REQUESTSCORE ('j')
Asks the server to send back the high score list
e.g. "^Aj"

C_FIGHTACT ('n')
Responds to a previous C_FIGHTPRINT message
data = "F", "S", or "R"
F = return fire
S = stand and take it (do not return fire)
R = try to run away
N.B. If "runhere" is not set in the C_FIGHTPRINT message, the "R" response should not be sent - a C_REQUESTJET message should be sent instead.
e.g. "^AnF"

C_ABILITIES ('r')
Notifies the server of supported protocol features. See the explanation for the corresponding server message.

The client will receive this message in response to a previous C_ABILITIES message that it sent to the server. This reply message contains the abilities that the server is willing to support. The client should compare these to those that it previously offered, and then use only those abilities that both client and server support. (If the server does not support the new protocol, no C_ABILITIES reply message will be sent, and the client should assume that no abilities are supported.) The server will expect all client messages after the C_ABILITIES message to be compliant with these abilities.

e.g.
- client sends "1110111" (supports everything except A_TSTRING)
- server responds with "1011011" (supports everything except A_DRUGVALUE and A_DONEFIGHT)
- client should adopt the abilities "1010011" (A_PLAYERID and A_NEWFIGHT)

Last update: 02-09-2002
Valid XHTML 1.1

dopewars-1.6.2/doc/windows.html000644 000765 000024 00000004671 14256242752 016421 0ustar00benstaff000000 000000 dopewars and Microsoft Windows

dopewars and Microsoft Windows

dopewars runs natively on Win32 systems (Windows 7 or later). It runs by default as a dopewars client, using the familiar Windows interface, but the traditional text-mode client is also available on Windows, as well as the dopewars server and AI players.

Binaries can be obtained from the main download site, or dopewars can be built from source code.

In virtually all respects, the Unix and Win32 versions of dopewars should be identical. Both will accept the same command line parameters and configuration options. However, since the standard Unix paths for the high score file and configuration files do not translate well to Windows, by default the program will look for the high score file dopewars.sco in the current user's application data directory (e.g. C:\Users\foo\AppData\Local\dopewars\), and will read a global configuration file dopewars-config.txt from the directory in which the dopewars binary was installed, followed by a per-user configuration file of the same name in the AppData directory.

The dopewars server can function as a Windows service when run with the -N flag. One way to set this up is to use the sc create utility from a command prompt, e.g.

sc create dopewars binpath= "C:\Program Files\dopewars-1.6.2\dopewars.exe -N"

Note that this will run dopewars as the Local System user, so will look for high score/config files (and create a log file) in the corresponding AppData directory, e.g. C:\Windows\System32\config\systemprofile\AppData\Local.


Last update: 05-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/commandline.html000644 000765 000024 00000021240 14256242752 017204 0ustar00benstaff000000 000000 dopewars command line options

dopewars command line options

Once you have installed dopewars, you should be able to run the binary just by typing
dopewars
(unless you have installed the binary in a directory which is not in your path, in which case precede it with the path). Run without any options, the dopewars binary runs as a dopewars client.

Command line options can be used to configure common aspects of dopewars. More exhaustive configuration is possible by editing the dopewars configuration files; note, however, that command line options can be used to override some of these settings (also see the -g option below).

For a brief description of the command line options, specify the option -h with the command
dopewars -h
A list of all command line options is presented below. Please note that most options have a "short" format (e.g. -p) and a "long" format (e.g. --port). The "long" form is only available on systems that have GNU getopt; this excludes the Windows version.

-b, --no-color, --no-colour
"Black and white". This tells the dopewars client (if that is what you're running) not to use coloured text (by default, colour is used if the terminal and curses support it).
-n, --single-player
If running the client, run in single-player mode. Don't try to connect to any available dopewars servers.
-a, --antique
Puts the client into "antique" mode; dopewars is derived from the earlier game for MS-DOS of the same name, which in turn was based on "Drug Wars" by John E. Dell. "Antique" mode aims to follow the behaviour of the MS-DOS dopewars closely, and consequently this entails single-player mode also.
-f file, --scorefile=file
Specifies the path and name of the file used to store the dopewars high scores in; this can alternatively be specified in the configuration file with the HiScoreFile=file option. (N.B. This option cannot be used to get dopewars to open a high score file with privilege when running setuid/setgid; all privileges are dropped by this point for security.)
-o addr, --hostname=addr
Gives the name of the machine running a dopewars server, in human readable (e.g. "nowhere.com") or dotted quad (e.g. 127.0.0.1) form. When the client is started, if not in single-player mode, it automatically attempts to connect to this server for a multiplayer game. This can also be specified with the Server=addr configuration file option.
-p port, --port=port
Specifies the numeric port number which the server uses. This is usually 7902, but some servers may use other port numbers to avoid conflicts with other services running on the machine. If you are running the dopewars client, it will search for a server on this port; if you are running the server, it will bind to this port and wait for connections from clients (the clients must also be instructed to use this port, of course). This is equivalent to setting the port number with the Port=port configuration file option.
-s, --public-server
Runs the dopewars server. This mediates multiplayer games of dopewars, and keeps track of high scores. Any player wishing to join the game hosted by this server must connect to your machine using the dopewars client and the port number which you have chosen, and can then interact with other players who have done the same thing. By default, a dopewars server will report its status to the metaserver, unless it is set otherwise in the configuration file.
-S, --private-server
Also runs a dopewars server, but in this case does not report its status to the metaserver. This does not stop clients from connecting to your server, of course (unless it is behind a firewall, or the maximum number of clients is exceeded), but it makes it harder to find. The connection to the metaserver can also be disabled by adding MetaServer.Active=FALSE to the configuration files.
-A, --admin
Connects to a dopewars server running on this machine, and allows server commands to be issued. Only the user that originally started the server (or the superuser) is permitted to do this. Only supported for the text-mode server on Unix systems.
-g file, --config-file=file
Instructs dopewars to read setup information from the configuration file named by file. This file is read immediately - i.e. at the point at which the -g option is encountered - and so these settings will override any set in the default configuration files or by previous command line options. Command line options occurring after the -g option, or for that matter further -g options, that change these same settings, will then override them.
-r file, --pidfile=file
Maintains a pid file with the specified name while the server is running. The file is a one-line text file, containing the process ID of the dopewars server process, and is deleted when the server quits.
-c, --ai-player
Runs a computerised player. This will connect to the specifed dopewars server and join in the multiplayer game going on there. When the player finishes the game (or is eliminated by the other players or the server) the program finishes.
-w, --windowed-client
If running a dopewars client, then this forces the use of a graphical user interface. Under Microsoft Windows, this is an "ordinary" window, while under Unix, this uses GTK+. If a suitable environment is not present (e.g. the binary was compiled without graphical support, or - in the case of GTK+ - you are not running X) then dopewars will quit with an error. By default, if neither -w or -t are specified, then a graphical user interface will be used where available, falling back to a text-mode client in case of error.
-t, --text-client
When running a dopewars client, forces the use of a text-mode (curses or console mode) interface, even if graphics are available.
-P name, --player=name
Sets the default player name.
-C file, --convert=file
Converts a high score file from an older version of dopewars to the format used by the current version. The old high score file is replaced with a new file, and a backup copy of the old file is made. This conversion process is necessary since older versions of dopewars did not identify the high score files properly, so they cannot be automatically converted. (Such automatic conversion would also pose a security risk if the dopewars binary is running setgid.)
-u name, --plugin=name
Uses the named plugin for sound output. Valid options are "none" (for no sound) plus any name registered by plugins found on your system. (These are currently "winmm" for the Windows multimedia system plugin, and "esd" and "sdl" for Unix plugins using the ESound and SDL libraries.) If no such option is given, the first valid sound plugin to be found is used.
-h, --help
Displays a brief description of the available command line options, and contact details.
-v, --version
Displays the current dopewars version number, and then exits.

Last update: 02-06-2003
Valid XHTML 1.1

dopewars-1.6.2/doc/metaserver.html000644 000765 000024 00000014643 14256242752 017104 0ustar00benstaff000000 000000 The dopewars metaserver

The dopewars metaserver

Every dopewars server is different, due to their differing locations and configurations. Thus some centralised system for listing the currently available servers and displaying some sort of comment about the games running on them is necessary, to enable client players to pick the game that most suits them. This is the function of the dopewars metaserver.

Metaserver location

The metaserver is a PHP script which lives at SourceForge. It is accessed by both dopewars servers and clients via TCP connection to port 80, by standard HTTP.

The "old" metaserver

Versions of dopewars prior to 1.5.1 used a different metaserver system, which is now deprecated. Although the old system will continue to run for some time, it will eventually be discontinued, so it is recommended that dopewars servers and clients are upgraded to the latest version.

Using the metaserver from the client

Players who want to use the metaserver to list the currently available servers should go to this link, or just follow the "Active servers" link from the main dopewars web page. It cannot be guaranteed that all the listed servers are functional - they may, for example, have been registered in error, or a server may have crashed since being added to the list - but the list is checked daily for service, and so there is at least a good chance that the servers listed there will be working.

The metaserver, being an ordinary web page, should work happily on most machines which have web access. If you require a proxy to connect to the Web, set the https_proxy environment variable.

Using the metaserver from the server

People running servers who do not want their details listed by the metaserver should disable the metaserver comunication of the server with the MetaServer.Active=0 configuration file setting, or the -S command line option. Servers which do register their details can have their accompanying comment set with the MetaServer.Comment configuration file setting.

Each dopewars server notifies the metaserver of its current status, and sends this data on startup and shutdown, and when players leave or join the game. See the server page for more details.

The server, just like the client, may have trouble connecting to the metaserver if you are using a web proxy; see the information above for fixing this problem.

But it's displaying the wrong name!

Once connected to the metaserver, you may find that it displays the IP address of your server and not its domain name, or that it gets the domain name wrong. This is usually because your DNS is not set up to translate your IP into a domain name, or because you have multiple domain names for the one IP, and can be remedied by specifying the hostname with the MetaServer.LocalName variable in your dopewars configuration file. For security reasons, the metaserver will only accept this given name if it in turn maps to your IP address.

On other occasions, the metaserver will mistakenly display the name of your web proxy. In this case, you will need to override the hostname that the metaserver guesses for your machine with one you choose yourself. This is again done by specifying the hostname with the MetaServer.LocalName variable. In order to prevent abuse of this facility, you must obtain a password from the metaserver maintainer to authenticate your chosen hostname. Email the maintainer, giving the exact hostname you want to use (be aware that this is case-sensitive) and you will be given a password. Specify this password with the MetaServer.Password variable in the dopewars configuration file.

For example, if you wish your server to be known as dope-serv.com and you have emailed the maintainer, receiving the password Dope-Auth, then add the following to the dopewars configuration file:-
MetaServer.LocalName="dope-serv.com"
MetaServer.Password="Dope-Auth"

Restart your dopewars server, or send it a SIGUSR1 signal, for changes to these variables to take effect.

But my server has a dynamic IP...

Finally, your server's IP may be resolved happily, but you may have a connection to the internet which assigns you a dynamic IP. Consider what happens if your connection is broken before the dopewars server exits; the metaserver will list the IP of the "old" server, and you will now have no way of removing that entry when your connection comes back up, as your IP will be different. In this case, you can email the metaserver maintainer, and specify a blank MetaServer.LocalName variable. You will again receive a MetaServer.Password variable (see above), which the metaserver will use to identify "your" server; now, when your internet connection is restored, the server registration with the "new" IP will automatically replace the "old" one.


Last update: 02-11-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/Makefile.am000644 000765 000024 00000001404 14256000065 016051 0ustar00benstaff000000 000000 DOCPATH = ${DESTDIR}${docdir} DOCS = aiplayer.html configfile.html index.html i18n.html \ server.html clientplay.html credits.html example-cfg \ installation.html servercommands.html commandline.html \ contribute.html developer.html metaserver.html \ protocol.html windows.html ../LICENCE example-igneous man_MANS = dopewars.6 SUBDIRS = help EXTRA_DIST = dopewars.6.in ${DOCS} DISTCLEANFILES = dopewars.6 install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done /bin/rm -f ${DOCPATH}/LICENCE dopewars-1.6.2/doc/example-igneous000644 000765 000024 00000037773 14256000065 017064 0ustar00benstaff000000 000000 ServerMOTD = "Welcome All, Play for as long as you like. !- MAKE SURE TO PAY OFF YOUR DEBT NOW -!" Port = 7902 MetaServer.Comment = "Igneous\'s MOD" NumTurns = 0 NumLocation = 87 NumCop = 4 NumGun = 17 NumDrug = 25 StartCash = 100001 StartDebt = 1 Location[1].Name = "Albany" Location[2].Name = "Albion" Location[3].Name = "Auburn" Location[4].Name = "Avon" Location[5].Name = "Babylon" Location[6].Name = "Bayport" Location[7].Name = "Brooklyn" Location[8].Name = "Bronx" Location[9].Name = "Buffalo" Location[10].Name = "Cato" Location[11].Name = "Central Park" Location[12].Name = "Coney Island" Location[13].Name = "Corning" Location[14].Name = "Davenport" Location[15].Name = "Dobbs Ferry" Location[16].Name = "Dryden" Location[17].Name = "Durham" Location[18].Name = "Eden" Location[19].Name = "Elmont" Location[20].Name = "Endicott" Location[21].Name = "Essex" Location[22].Name = "Fonda" Location[23].Name = "Franklin" Location[24].Name = "Freeport" Location[25].Name = "Fulton" Location[26].Name = "Geneva" Location[27].Name = "Genoa" Location[28].Name = "Glendale" Location[29].Name = "Grand Island" Location[30].Name = "Hempstead" Location[31].Name = "Henrietta" Location[32].Name = "Hunter" Location[33].Name = "Hyde Park" Location[34].Name = "Inwood" Location[35].Name = "Irvington" Location[36].Name = "Island Park" Location[37].Name = "Ithaca" Location[38].Name = "Jackson Heights" Location[39].Name = "Jeffersonville" Location[40].Name = "Johnstown" Location[41].Name = "Kings Park" Location[42].Name = "Knox" Location[43].Name = "Lake Placid" Location[44].Name = "Little York" Location[45].Name = "Long Island" Location[46].Name = "Long Beach" Location[47].Name = "Manhattan" Location[48].Name = "Middletown" Location[49].Name = "Mumford" Location[50].Name = "Murray Isle" Location[51].Name = "Nassau" Location[52].Name = "New York" Location[53].Name = "Northport" Location[54].Name = "Ocean Beach" Location[55].Name = "Olive" Location[56].Name = "Ozone Park" Location[57].Name = "Oxford" Location[58].Name = "Paradox" Location[59].Name = "Penn Yan" Location[60].Name = "Putnam Valley" Location[61].Name = "Queens" Location[62].Name = "Ridgemont" Location[63].Name = "Roscoe" Location[64].Name = "Rye" Location[65].Name = "Seneca Falls" Location[66].Name = "Staten Island" Location[67].Name = "Suffern" Location[68].Name = "Syracuse" Location[69].Name = "Ticonderoga" Location[70].Name = "Troy" Location[71].Name = "Tuxedo" Location[72].Name = "Ulysses" Location[73].Name = "Union Springs" Location[74].Name = "Upton" Location[75].Name = "Utica" Location[76].Name = "Valhalla" Location[77].Name = "Verona" Location[78].Name = "Victory Mills" Location[79].Name = "Vista" Location[80].Name = "Webster" Location[81].Name = "Westport" Location[82].Name = "Woodmere" Location[83].Name = "Wyandanch" Location[84].Name = "York" Location[85].Name = "Yorktown Heights" Location[86].Name = "Youngstown" Location[87].Name = "Yulan" Location[1].PolicePresence = 86 Location[2].PolicePresence = 9 Location[3].PolicePresence = 85 Location[4].PolicePresence = 100 Location[5].PolicePresence = 45 Location[6].PolicePresence = 14 Location[7].PolicePresence = 15 Location[8].PolicePresence = 10 Location[9].PolicePresence = 60 Location[10].PolicePresence = 6 Location[11].PolicePresence = 15 Location[12].PolicePresence = 20 Location[13].PolicePresence = 23 Location[14].PolicePresence = 88 Location[15].PolicePresence = 4 Location[16].PolicePresence = 19 Location[17].PolicePresence = 93 Location[18].PolicePresence = 10 Location[19].PolicePresence = 2 Location[20].PolicePresence = 45 Location[21].PolicePresence = 100 Location[22].PolicePresence = 2 Location[23].PolicePresence = 32 Location[24].PolicePresence = 7 Location[25].PolicePresence = 40 Location[26].PolicePresence = 45 Location[27].PolicePresence = 12 Location[28].PolicePresence = 1 Location[29].PolicePresence = 22 Location[30].PolicePresence = 9 Location[31].PolicePresence = 14 Location[32].PolicePresence = 50 Location[33].PolicePresence = 17 Location[34].PolicePresence = 4 Location[35].PolicePresence = 2 Location[36].PolicePresence = 15 Location[37].PolicePresence = 8 Location[38].PolicePresence = 25 Location[39].PolicePresence = 10 Location[40].PolicePresence = 14 Location[41].PolicePresence = 13 Location[42].PolicePresence = 100 Location[43].PolicePresence = 4 Location[44].PolicePresence = 2 Location[45].PolicePresence = 60 Location[46].PolicePresence = 80 Location[47].PolicePresence = 60 Location[48].PolicePresence = 30 Location[49].PolicePresence = 3 Location[50].PolicePresence = 50 Location[51].PolicePresence = 4 Location[52].PolicePresence = 100 Location[53].PolicePresence = 30 Location[54].PolicePresence = 20 Location[55].PolicePresence = 10 Location[56].PolicePresence = 100 Location[57].PolicePresence = 30 Location[58].PolicePresence = 14 Location[59].PolicePresence = 50 Location[60].PolicePresence = 30 Location[61].PolicePresence = 70 Location[62].PolicePresence = 7 Location[63].PolicePresence = 20 Location[64].PolicePresence = 40 Location[65].PolicePresence = 5 Location[66].PolicePresence = 100 Location[67].PolicePresence = 40 Location[68].PolicePresence = 30 Location[69].PolicePresence = 1 Location[70].PolicePresence = 4 Location[71].PolicePresence = 14 Location[72].PolicePresence = 5 Location[73].PolicePresence = 5 Location[74].PolicePresence = 20 Location[75].PolicePresence = 14 Location[76].PolicePresence = 10 Location[77].PolicePresence = 20 Location[78].PolicePresence = 10 Location[79].PolicePresence = 1 Location[80].PolicePresence = 5 Location[81].PolicePresence = 10 Location[82].PolicePresence = 50 Location[83].PolicePresence = 22 Location[84].PolicePresence = 1 Location[85].PolicePresence = 1 Location[86].PolicePresence = 20 Location[87].PolicePresence = 55 Location[1].MinDrug = 7 Location[2].MinDrug = 3 Location[3].MinDrug = 9 Location[4].MinDrug = 19 Location[5].MinDrug = 9 Location[6].MinDrug = 18 Location[7].MinDrug = 10 Location[8].MinDrug = 7 Location[9].MinDrug = 3 Location[10].MinDrug = 12 Location[11].MinDrug = 6 Location[12].MinDrug = 6 Location[13].MinDrug = 3 Location[14].MinDrug = 14 Location[15].MinDrug = 8 Location[16].MinDrug = 13 Location[17].MinDrug = 20 Location[18].MinDrug = 10 Location[19].MinDrug = 2 Location[20].MinDrug = 12 Location[21].MinDrug = 20 Location[22].MinDrug = 2 Location[23].MinDrug = 5 Location[24].MinDrug = 8 Location[25].MinDrug = 9 Location[26].MinDrug = 12 Location[27].MinDrug = 4 Location[28].MinDrug = 1 Location[29].MinDrug = 4 Location[30].MinDrug = 19 Location[31].MinDrug = 4 Location[32].MinDrug = 5 Location[33].MinDrug = 12 Location[34].MinDrug = 2 Location[35].MinDrug = 10 Location[36].MinDrug = 3 Location[37].MinDrug = 2 Location[38].MinDrug = 10 Location[39].MinDrug = 4 Location[40].MinDrug = 12 Location[41].MinDrug = 4 Location[42].MinDrug = 24 Location[43].MinDrug = 8 Location[44].MinDrug = 1 Location[45].MinDrug = 19 Location[46].MinDrug = 10 Location[47].MinDrug = 20 Location[48].MinDrug = 10 Location[49].MinDrug = 1 Location[50].MinDrug = 18 Location[51].MinDrug = 12 Location[52].MinDrug = 25 Location[53].MinDrug = 12 Location[54].MinDrug = 20 Location[55].MinDrug = 1 Location[56].MinDrug = 10 Location[57].MinDrug = 20 Location[58].MinDrug = 12 Location[59].MinDrug = 20 Location[60].MinDrug = 10 Location[61].MinDrug = 13 Location[62].MinDrug = 3 Location[63].MinDrug = 20 Location[64].MinDrug = 2 Location[65].MinDrug = 10 Location[66].MinDrug = 25 Location[67].MinDrug = 4 Location[68].MinDrug = 10 Location[69].MinDrug = 10 Location[70].MinDrug = 10 Location[71].MinDrug = 20 Location[72].MinDrug = 10 Location[73].MinDrug = 10 Location[74].MinDrug = 5 Location[75].MinDrug = 20 Location[76].MinDrug = 20 Location[77].MinDrug = 14 Location[78].MinDrug = 10 Location[79].MinDrug = 5 Location[80].MinDrug = 10 Location[81].MinDrug = 15 Location[82].MinDrug = 14 Location[83].MinDrug = 21 Location[84].MinDrug = 10 Location[85].MinDrug = 10 Location[86].MinDrug = 15 Location[87].MinDrug = 20 Location[1].MaxDrug = 13 Location[2].MaxDrug = 8 Location[3].MaxDrug = 18 Location[4].MaxDrug = 24 Location[5].MaxDrug = 18 Location[6].MaxDrug = 18 Location[7].MaxDrug = 20 Location[8].MaxDrug = 12 Location[9].MaxDrug = 7 Location[10].MaxDrug = 12 Location[11].MaxDrug = 12 Location[12].MaxDrug = 12 Location[13].MaxDrug = 8 Location[14].MaxDrug = 17 Location[15].MaxDrug = 10 Location[16].MaxDrug = 13 Location[17].MaxDrug = 24 Location[18].MaxDrug = 10 Location[19].MaxDrug = 4 Location[20].MaxDrug = 24 Location[21].MaxDrug = 25 Location[22].MaxDrug = 2 Location[23].MaxDrug = 10 Location[24].MaxDrug = 10 Location[25].MaxDrug = 14 Location[26].MaxDrug = 20 Location[27].MaxDrug = 6 Location[28].MaxDrug = 3 Location[29].MaxDrug = 12 Location[30].MaxDrug = 22 Location[31].MaxDrug = 4 Location[32].MaxDrug = 10 Location[33].MaxDrug = 12 Location[34].MaxDrug = 3 Location[35].MaxDrug = 15 Location[36].MaxDrug = 5 Location[37].MaxDrug = 9 Location[38].MaxDrug = 20 Location[39].MaxDrug = 6 Location[40].MaxDrug = 13 Location[41].MaxDrug = 10 Location[42].MaxDrug = 25 Location[43].MaxDrug = 15 Location[44].MaxDrug = 10 Location[45].MaxDrug = 20 Location[46].MaxDrug = 24 Location[47].MaxDrug = 20 Location[48].MaxDrug = 11 Location[49].MaxDrug = 5 Location[50].MaxDrug = 19 Location[51].MaxDrug = 12 Location[52].MaxDrug = 25 Location[53].MaxDrug = 20 Location[54].MaxDrug = 20 Location[55].MaxDrug = 19 Location[56].MaxDrug = 12 Location[57].MaxDrug = 25 Location[58].MaxDrug = 12 Location[59].MaxDrug = 20 Location[60].MaxDrug = 12 Location[61].MaxDrug = 25 Location[62].MaxDrug = 9 Location[63].MaxDrug = 24 Location[64].MaxDrug = 25 Location[65].MaxDrug = 25 Location[66].MaxDrug = 25 Location[67].MaxDrug = 10 Location[68].MaxDrug = 14 Location[69].MaxDrug = 12 Location[70].MaxDrug = 10 Location[71].MaxDrug = 22 Location[72].MaxDrug = 19 Location[73].MaxDrug = 17 Location[74].MaxDrug = 9 Location[75].MaxDrug = 24 Location[76].MaxDrug = 20 Location[77].MaxDrug = 20 Location[78].MaxDrug = 10 Location[79].MaxDrug = 25 Location[80].MaxDrug = 22 Location[81].MaxDrug = 22 Location[82].MaxDrug = 21 Location[83].MaxDrug = 23 Location[84].MaxDrug = 20 Location[85].MaxDrug = 22 Location[86].MaxDrug = 23 Location[87].MaxDrug = 24 Cop[1].Name = "Officer Hardass" Cop[2].Name = "Officer Bob" Cop[3].Name = "Agent Smith" Cop[4].Name = "Jack Willson" Cop[1].DeputyName = "deputy" Cop[2].DeputyName = "deputy" Cop[3].DeputyName = "cop" Cop[4].DeputyName = "Thug" Cop[1].DeputiesName = "deputies" Cop[2].DeputiesName = "deputies" Cop[3].DeputiesName = "cops" Cop[4].DeputiesName = "Thugs" Cop[1].Armor = 4 Cop[2].Armor = 15 Cop[3].Armor = 50 Cop[4].Armor = 36 Cop[1].DeputyArmor = 3 Cop[2].DeputyArmor = 4 Cop[3].DeputyArmor = 6 Cop[4].DeputyArmor = 12 Cop[1].MinDeputies = 2 Cop[2].MinDeputies = 4 Cop[3].MinDeputies = 6 Cop[4].MinDeputies = 14 Cop[1].MaxDeputies = 8 Cop[2].MaxDeputies = 10 Cop[3].MaxDeputies = 18 Cop[4].MaxDeputies = 20 Drug[1].Name = "Alchahol" Drug[2].Name = "MDA" Drug[3].Name = "Meth" Drug[4].Name = "E-drine" Drug[5].Name = "P-drine" Drug[6].Name = "B-pine" Drug[7].Name = "Weed" Drug[8].Name = "Cocaine" Drug[9].Name = "Pallies" Drug[10].Name = "LSD" Drug[11].Name = "Morphine" Drug[12].Name = "Nubian" Drug[13].Name = "Peyote" Drug[14].Name = "Heroin" Drug[15].Name = "Codeine" Drug[16].Name = "PCP" Drug[17].Name = "Poppers" Drug[18].Name = "Benzos" Drug[19].Name = "Ecstay" Drug[20].Name = "Blue Nitro (GHB,GBH)" Drug[21].Name = "Special K" Drug[22].Name = "Shrooms" Drug[23].Name = "Red Mitsubishi" Drug[24].Name = "Rohypnol" Drug[25].Name = "Yaba" Drug[1].MinPrice = 10 Drug[2].MinPrice = 100 Drug[3].MinPrice = 1200 Drug[4].MinPrice = 100 Drug[5].MinPrice = 1000 Drug[6].MinPrice = 100 Drug[7].MinPrice = 133 Drug[8].MinPrice = 15000 Drug[9].MinPrice = 200 Drug[10].MinPrice = 1000 Drug[11].MinPrice = 20000 Drug[12].MinPrice = 300 Drug[13].MinPrice = 300 Drug[14].MinPrice = 1400 Drug[15].MinPrice = 200 Drug[16].MinPrice = 1500 Drug[17].MinPrice = 10 Drug[18].MinPrice = 30 Drug[19].MinPrice = 400 Drug[20].MinPrice = 15 Drug[21].MinPrice = 300 Drug[22].MinPrice = 200 Drug[23].MinPrice = 30000 Drug[24].MinPrice = 200 Drug[25].MinPrice = 20000 Drug[1].MaxPrice = 90 Drug[2].MaxPrice = 1000 Drug[3].MaxPrice = 3400 Drug[4].MaxPrice = 1200 Drug[5].MaxPrice = 6250 Drug[6].MaxPrice = 900 Drug[7].MaxPrice = 1200 Drug[8].MaxPrice = 76000 Drug[9].MaxPrice = 800 Drug[10].MaxPrice = 4000 Drug[11].MaxPrice = 50000 Drug[12].MaxPrice = 1300 Drug[13].MaxPrice = 1300 Drug[14].MaxPrice = 9000 Drug[15].MaxPrice = 1800 Drug[16].MaxPrice = 8000 Drug[17].MaxPrice = 90 Drug[18].MaxPrice = 300 Drug[19].MaxPrice = 3000 Drug[20].MaxPrice = 100 Drug[21].MaxPrice = 1200 Drug[22].MaxPrice = 1200 Drug[23].MaxPrice = 80000 Drug[24].MaxPrice = 2000 Drug[25].MaxPrice = 40000 Drug[1].Cheap = FALSE Drug[2].Cheap = TRUE Drug[3].Cheap = TRUE Drug[4].Cheap = FALSE Drug[5].Cheap = TRUE Drug[6].Cheap = FALSE Drug[7].Cheap = TRUE Drug[8].Cheap = FALSE Drug[9].Cheap = FALSE Drug[10].Cheap = TRUE Drug[11].Cheap = TRUE Drug[12].Cheap = FALSE Drug[13].Cheap = TRUE Drug[14].Cheap = FALSE Drug[15].Cheap = TRUE Drug[16].Cheap = FALSE Drug[17].Cheap = FALSE Drug[18].Cheap = FALSE Drug[19].Cheap = FALSE Drug[20].Cheap = FALSE Drug[21].Cheap = FALSE Drug[22].Cheap = TRUE Drug[23].Cheap = FALSE Drug[24].Cheap = FALSE Drug[25].Cheap = FALSE Drug[1].Expensive = FALSE Drug[2].Expensive = TRUE Drug[3].Expensive = TRUE Drug[4].Expensive = TRUE Drug[5].Expensive = TRUE Drug[6].Expensive = TRUE Drug[7].Expensive = TRUE Drug[8].Expensive = TRUE Drug[9].Expensive = TRUE Drug[10].Expensive = TRUE Drug[11].Expensive = TRUE Drug[12].Expensive = TRUE Drug[13].Expensive = TRUE Drug[14].Expensive = TRUE Drug[15].Expensive = TRUE Drug[16].Expensive = TRUE Drug[17].Expensive = TRUE Drug[18].Expensive = TRUE Drug[19].Expensive = TRUE Drug[20].Expensive = TRUE Drug[21].Expensive = TRUE Drug[22].Expensive = TRUE Drug[23].Expensive = TRUE Drug[24].Expensive = TRUE Drug[25].Expensive = TRUE Drug[1].CheapStr = "" Drug[2].CheapStr = "Home made %tde is here by the packful!" Drug[3].CheapStr = "Fresh from the %tde Labs!" Drug[4].CheapStr = "" Drug[5].CheapStr = "%tde stolen from pharmacy. Thier loss, your gain!" Drug[6].CheapStr = "" Drug[7].CheapStr = "Weed prices bottomed out." Drug[8].CheapStr = "" Drug[9].CheapStr = "" Drug[10].CheapStr = "Stolen %tde from rival dealers warehouse!!!" Drug[11].CheapStr = "%tde stolen from hospital! GET IT NOW!!" Drug[12].CheapStr = "" Drug[13].CheapStr = "Homade %tde has just arrived." Drug[14].CheapStr = "" Drug[15].CheapStr = "Stolen %tde from pharmacy!!" Drug[16].CheapStr = "" Drug[17].CheapStr = "" Drug[18].CheapStr = "" Drug[19].CheapStr = "" Drug[20].CheapStr = "" Drug[21].CheapStr = "" Drug[22].CheapStr = "Dude!! We found a shroom patch!!" Drug[23].CheapStr = "" Drug[24].CheapStr = "" Drug[25].CheapStr = "" Gun[1].Name = "Desert Eagle" Gun[2].Name = "Baretta" Gun[3].Name = ".38 Special" Gun[4].Name = "Ruger" Gun[5].Name = "Saturday Night Special" Gun[6].Name = "Ol\' Shotgun" Gun[7].Name = "SPAS12" Gun[8].Name = "Remmington SP10" Gun[9].Name = "The \'Royal\' Double Shotgun" Gun[10].Name = "AK-47" Gun[11].Name = "TMP" Gun[12].Name = "UMP" Gun[13].Name = "Uzi 9mm" Gun[14].Name = "P90" Gun[15].Name = "Spetsnaz" Gun[16].Name = "MP5" Gun[17].Name = "Bazooka" Gun[1].Price = 19000 Gun[2].Price = 3000 Gun[3].Price = 3500 Gun[4].Price = 2900 Gun[5].Price = 3100 Gun[6].Price = 18000 Gun[7].Price = 22000 Gun[8].Price = 23000 Gun[9].Price = 143000 Gun[10].Price = 12000 Gun[11].Price = 14000 Gun[12].Price = 24000 Gun[13].Price = 50000 Gun[14].Price = 100000 Gun[15].Price = 80000 Gun[16].Price = 120000 Gun[17].Price = 10000000 Gun[1].Space = 8 Gun[2].Space = 4 Gun[3].Space = 4 Gun[4].Space = 4 Gun[5].Space = 4 Gun[6].Space = 10 Gun[7].Space = 12 Gun[8].Space = 11 Gun[9].Space = 20 Gun[10].Space = 20 Gun[11].Space = 4 Gun[12].Space = 10 Gun[13].Space = 8 Gun[14].Space = 16 Gun[15].Space = 20 Gun[16].Space = 28 Gun[17].Space = 40 Gun[1].Damage = 60 Gun[2].Damage = 5 Gun[3].Damage = 9 Gun[4].Damage = 4 Gun[5].Damage = 7 Gun[6].Damage = 13 Gun[7].Damage = 18 Gun[8].Damage = 18 Gun[9].Damage = 140 Gun[10].Damage = 23 Gun[11].Damage = 12 Gun[12].Damage = 18 Gun[13].Damage = 29 Gun[14].Damage = 50 Gun[15].Damage = 50 Gun[16].Damage = 100 Gun[17].Damage = 4000 Names.Bitch = "Biznatch" Names.Bitches = "Biznatches" dopewars-1.6.2/doc/i18n.html000644 000765 000024 00000025364 14256242752 015510 0ustar00benstaff000000 000000 Internationalization

Internationalization

dopewars uses the GNU gettext utilities for internationalization (i18n) support. This allows the software to be translated into the local language at runtime - run dopewars in the UK and it'll talk to you in English, but run it in Germany and it'll talk to you in German. This relies on translators to translate the program's output into each language beforehand, of course, and so native language speakers to carry out this task are always needed!

Running dopewars with i18n support

i18n is only included in versions of dopewars later than 1.4.8. By default, "Native Language Support" is compiled in; binary installations should be already set up for i18n. When compiling dopewars from source code, the configure script should detect whether your system can support GNU gettext. To disable i18n, pass the --disable-nls option to the configure script.

When you run your installed copy of dopewars, it should detect your "locale" automatically and talk to you in your native language. If this does not happen, the following are some possible explanations:-

  • dopewars cannot find the locale-specific language file - by default, stored under /usr/local/share/locale/
  • Your language is not yet supported - why not add it yourself?
  • Your system does not have locale support.
  • On a Windows system, you need to select the language from the relevant section of Control Panel (or set the LANG environment variable, below). i18n under Windows is only supported by version 1.5.3 and later.
  • You haven't set an environment variable to specify your locale (usually this is done automatically). For example, if you're using the bash shell and want a German translation, the command "export LANG=de_DE" should ensure that dopewars (and all other i18n-aware programs launched from this shell) will use the German language.

Adding a new translation

Translation files are kept in the subdirectory po/ of the dopewars source code distribution. They are named by 2-letter language codes followed by the .po extension - for example, the German translation is stored in the file po/de.po. They are simple text files, consisting of lists of the original English string (labelled by "msgid") followed by the translated string (labelled by "msgstr").

To add a new translation, first install dopewars from source code. This will generate the reference file dopewars.pot in the po subdirectory. Then, copy dopewars.pot to your language-specific .po file in the po/ directory, and fill in the "msgstr" entries. Once this is done, edit the configure.ac file in the top dopewars directory to add your language code to the ALL_LINGUAS variable. Then run autoconf to rebuild the configure script, before making and installing dopewars as usual. The new translation should now be available. Once this is complete, please open a pull request to have the translation included in the next dopewars version.

Please note that some strings are format strings containing the % character. These are used in the program code for substituting numbers and other pieces of text into the string - these substitutions are are performed using variables which are specified in the same order as the % characters in the format string. For example, the following format string substitutes in a string (%s) and an integer number (%d):-
"String '%s' has %d characters"
The string and number are specified in order in the code. This is problematic if your translation changes the order - for example, a valid German translation of the string would be
"%d Zeichen lang ist die Zeichenkette '%s'"
Now the number and string are specified in the wrong order, and this will probably crash the program on running! To fix this, use the special notation
"%2$d Zeichen lang ist die Zeichenkette '%1$s'"
(i.e. replace %x with %n$x where n is the index that the format specifier "should" have, starting from 1.)

dopewars specifics

  • When questions are asked in the curses (text mode) client, the keys that you are allowed to press in reply are stored in a string. This should be translated to suitable keys in your language, in the same order as the original - e.g. "YN" (for Yes/No) could be translated in German to "JN" (for Ja/Nein).

  • When a dopewars server asks a client a question, the valid replies are sent at the start of the message, followed by a "^" character. These replies define the dopewars protocol, and so should not be translated - they will prevent clients and servers from talking to each other properly. So for example, the string "YN^Would you like to visit %s?" should be translated as you wish, but with the "YN^" at the start left unchanged.

  • The %txx notation is used for "translated strings". This notation is exactly equivalent to the standard C "%s" notation for a string, and does essentially the same thing, except that the two-letter code which follows the %t is used to select an "alternative form" of the word - for example, your language may have different words for "bitch" depending on whether the word is the subject or the object of the sentence. You are free to translate %txx to use the most appropriate form of the word. If you wish to capitalise the first letter of the word (as used in English for titles, etc.) then use "%T" rather than "%t".

    Obviously dopewars cannot guess what your "alternative forms" are; you must specify them yourself. Essentially, when setting a string in a dopewars configuration file (or the defaults, which are set in dopewars.c) alternative forms can be added by alternating two-letter codes and alternative forms after the original word, separating them by _ (underline) symbols. For example,
    Names.Bitch = "bitch_no_bitcho_ac_bitche"
    specifies two alternative forms for "bitch", identified by the "no" and "ac" codes. You can then use "bitcho" anywhere that "bitch" is normally used by translating the relevant string as "%tno" (and to get "bitche" use "%tac"). If you specify a two letter code in the translation that you haven't given an alternative form for, the default word ("bitch") will be used. In the original English, "%tde" is used for this purpose, but there is nothing special about the "de" code - you can use it yourself if you like, and you can use as many different two-letter codes as you want to.

    For a good working example of the "%tde" notation, see the Norwegian Nynorsk translation (nn.po).

    Additionally, prices in dopewars are automatically formatted into strings by means of the %P notation, and comments can be introduced into format strings by means of the %/.../ notation. Everything between the two / characters is not printed. This is used to "qualify" some strings for translation, and the %/.../ can be left out of the translated string if desired (the comment does not need to be translated).

Updating a translation for a new dopewars version

New versions of dopewars will often change what is printed to the user, and so may may require changes to the translation. To update an existing translation, change into the po subdirectory of the dopewars source code, and do a "make dopewars.pot". This creates the dopewars.pot file, which lists the strings that need translating. Next, create a new translation file from your "old" translation file (we'll assume it's called de.po) and dopewars.pot with the msgmerge command:-
msgmerge -o newfile de.po dopewars.pot
Examine this new file newfile for translations that need updating (a search for "fuzzy" should find most of them) and then overwrite your old translation with the new one:
mv newfile de.po
Rebuild and reinstall dopewars, and the new translations should become available. Again, it is deeply appreciated if such updated files are contributed to the main dopewars distribution!

Currently available translations

  • French (fr.po)
    • Maintained by: leonard
    • Version required: 1.5.2 or later
  • French (Canada) (fr_CA.po)
    • Maintained by: François Marier
    • Version required: 1.5.11 or later
  • German (de.po)
    • Maintained by: Benjamin Karaca, Eric Steiner, Tobias Mathes
    • Version required: 1.5.0 or later
  • English (Britain) (en_GB.po)
    • Maintained by: Ben Webb
    • Version required: 1.6.1 or later
  • Polish (pl.po)
    • Maintained by: Slawomir Molenda
    • Version required: 1.5.0 or later
  • Portuguese (Brazil) (pt_BR.po)
    • Maintained by: Hugo Cisneiros, Bruno Lopes, Jeronimo Pellegrini
    • Version required: 1.5.0 or later
  • Norwegian Nynorsk (nn.po)
    • Maintained by: Åsmund Skjæveland
    • Version required: 1.5.7 or later
  • Spanish (es.po or es_ES.po)
    • Maintained by: Quique
    • Version required: 1.5.8 or later

Last update: 25-06-2022
Valid XHTML 1.1

dopewars-1.6.2/doc/aiplayer.html000644 000765 000024 00000005450 14256242752 016531 0ustar00benstaff000000 000000 Adding computer-controlled players

Adding computer-controlled players

Multiplayer games of dopewars can be made a little more interesting by introducing computer-controlled, or AI, players. These players will join a dopewars server, and to all intents and purposes will behave like normal human players - they will deal in drugs in an attempt to make a fortune, they will encounter the cops, you can spy on them, and they will shoot at you if you give them the chance!

To start a computer-controlled player, all you need is the standard dopewars binary. Run it as
dopewars -c
and it will attempt to connect to the server and port specified in the configuration files (or the local host, if none is specified). Alternatively, you can specify server and port with suitable command line options. Since an AI player takes its game settings from the server it connects to, no other options in the configuration files will take effect, with the exception of the AITurnPause option, which sets the pause in seconds between turns.

Once started and connected to the server, the AI player will choose a suitable name for itself and start playing. It will continue to play until its game finishes - i.e. it is killed or runs out of time - at which point the program will finish and drop you back to the command prompt. The program will display information to let you know what the AI player is doing within the game as it goes. Note that the program will pause for five seconds (or whatever you have set AITurnPause to be) before jetting to a new location - this is to simulate the time it takes a human player to choose which drugs to buy and to press all the requisite keys; it also gives other players a fighting chance of spotting the computer sitting still in any one location for a few seconds!

If a computer player is attacked by the cops or another player, it will defend itself if it can, and attempt to run if necessary. During normal play it will also attempt to "blend in" with the other players by hurling rather pathetic insults at them... you are free to edit the code of the AI player to give these insults a little more "punch".


Last update: 05-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/configfile.html000644 000765 000024 00000072067 14256242752 017040 0ustar00benstaff000000 000000 dopewars configuration files

dopewars configuration files

A dopewars server, or a client (in single-player mode) can be heavily configured by the means of dopewars configuration files. Clients used to connect to multiplayer servers can also be configured by the same means, but almost all of these settings will be overridden on connecting to the server (although the server location settings Port and Server are still useful).

Example configuration files:

The order of making dopewars settings is as follows:-

  1. The global configuration file (if present) /etc/dopewars
  2. The user-specific file (if present) ~/.dopewars
  3. (Windows only) The file dopewars-config.txt in the current user's application data directory (e.g. C:\Users\foo\AppData\Local\dopewars\)
  4. Options specified on the command line

Settings in a configuration file can set numbers, booleans, strings or "string lists". A numerical value is set with a command such as Port=7902 (which sets the TCP port for mulitplayer connections to 7902). Booleans are "on/off" or "true/false" variables, set with commands such as Sanitized=TRUE (which removes drug references from random events in the game).

String (text) values are set with commands such as BankName='the bank' (which sets the name of the bank). Notice that string values must be enclosed in quotes. Strings in double quotes understand escapes such as "\t"; strings in single quotes do not treat backslash characters specially, and so should be used for Windows pathnames.

A string list is used for setting an array of strings; for example SubwaySaying = { "Saying 1", "Saying 2", "Saying 3" } sets up three "subway sayings". A string list consists of a list of strings, separated by commas and wrapped with braces - { and } characters. Single strings in a string list can be replaced individually - for example SubwaySaying[3]="Third Saying" replaces the third string (which was previously "Saying 3"). The number of strings in the list "List" can be set with the variable NumList - for example, NumSubwaySaying=4 dimensions the SubwaySaying list to contain four strings.

Whitespace and line breaks are ignored in the configuration files; comments can be used, and extend from a '#' character to the end of the current line, or are enclosed by C-style /* and */ symbols. See the example configuration file for a demonstration. Valid configuration file settings are listed below. The examples given generally reproduce the default behaviour; obviously you are free to replace the parts in italics to customise your own server and client.

General configuration: file and server locations

Port=7902
Tells the dopewars client to look for a server on port 7902, and tells the dopewars server to bind to port 7902 and wait for connections. This can be overridden with the -p command line option.
Server="localhost"
Tells the dopewars client to look for a server at the address localhost. Dotted quad (e.g. 127.0.0.1) addresses may also be used here. If this variable is set to one of the three "special" names (MetaServer), (Prompt), or (Single) (including the brackets) then the client will not connect to a server but instead list the servers available at the metaserver, prompt the user to enter a server name and port, or play in single player mode, respectively. This option can be overridden with the -o command line option (but be sure to protect the brackets from the shell if you use one of the "special" names). Note that this only changes the name of the server that the client connects to - if you're running your own server it does not change the address that it binds to. For that, see the BindAddress variable.
ServerMOTD="Welcome to my dopewars server"
When running a server, any client that connects displays the welcome "message of the day" "Welcome to my dopewars server". This can be used, for example, to inform users of any special features that the server has.
BindAddress="localhost"
Forces your dopewars server (if you run one) to accept network connections only on the localhost network interface. (This can be a host name, or an IP address.) If this is left blank (the default) then the server will accept connections coming in on any valid network interface.
Socks.Active=FALSE
Instructs the dopewars client to connect directly to the given server, without using an intermediate SOCKS server. If this is set to TRUE, all connections go via the SOCKS server. By default, SOCKS is not used for metaserver communications - see the MetaServer.UseSocks variable. N.B. You cannot run a dopewars server behind a SOCKS server, due to limitations in the SOCKS protocol.
Socks.NumUID=FALSE
When connecting to a SOCKS version 4 server, the protocol demands that the name of the current user be sent for simple authentication; the SOCKS server then queries identd on your machine to check if you are who you say you are. dopewars complies with this requirement if this variable is set to FALSE. However, some Unix implementations of identd send numeric user IDs rather than user names; dopewars will do the same if you set this variable to TRUE. (N.B. Not supported on Windows systems.)
Socks.User="fred"
Overrides the username detection (discussed above) completely, and instead sends the user name "fred" to a SOCKS4 server. If this is set to the blank string ("") - the default - this does not happen.
Socks.Name="socks"
If using SOCKS, sets the hostname of the SOCKS server to connect to to be "socks".
Socks.Port=1080
Connects to the SOCKS server on TCP port 1080.
Socks.Version=4
Uses SOCKS version 4. Version 5 is also supported; SOCKS5 servers support username/password authentication, unlike SOCKS4.
Socks.Auth.User=""
If using SOCKS5 with user/password authentication, with the server or AI player (which can both run unattended) then setting this variable to something other than "" will enable them to authenticate themselves with the SOCKS server, provided Socks.Auth.Password is also set. (The game clients prompt the user for a username and password on each connect instead.)
Socks.Auth.Password=""
The corresponding password for Socks.Auth.User, above.
HiScoreFile="/var/lib/dopewars.sco"
Tells the dopewars server (or the client, if running in single-player mode, not connected to a server) to use the file /var/lib/dopewars.sco to store high scores. This can be overridden with the -f command line option. (N.B. This option cannot be used to get dopewars to open a high score file with privilege when running setuid/setgid; all privileges are dropped by this point for security.)
MinToSysTray=TRUE
Rather than behaving as a normal window, the dopewars server window adds an icon to the Windows System Tray, and, when the window is minimized, it vanishes completely. Clicking on the System Tray icon will restore the window to its normal state. If FALSE, the System Tray is not used. Only supported on Windows systems.
Daemonize=TRUE
When the Unix server is successfully started, it immediately uses the fork() function to become a daemon, running in the background. Since this can cause problems with debugging, or with other programs that need to keep track of the process, setting Daemonize to FALSE will run the program in the foreground. Only supported on Unix systems.
WebBrowser=/usr/bin/firefox
Sets the program used to display website URLs. This is used only by the Unix version, as under Windows the standard mechanism for associating file types with applications is used, and on MacOS the system-configured default web browser is used.
ConfigVerbose=FALSE
Prints extra feedback information when processing the config. file if set to TRUE; this only takes effect, of course, after the ConfigVerbose variable is set, and then remains in force until it is reset again.

Metaserver configuration

MetaServer.Active=TRUE
Tells the dopewars server to report its status to the metaserver. If TRUE is replaced by FALSE the server will not report to the metaserver. This setting, if set to TRUE, can be overridden by the -S command line option.
MetaServer.URL="https://dopewars.sourceforge.io/metaserver.php"
Tells dopewars that the metaserver PHP script is located at https://dopewars.sourceforge.io/metaserver.php. This is used for server registration (server mode) or listing the available servers (client mode); see the metaserver page. If a proxy is needed to connect to the web server, set the https_proxy environment variable.
MetaServer.Comment="dopewars server"
Sets the comment for your server, which appears on the list of servers maintained by the metaserver, to dopewars server.
MetaServer.LocalName="dope-serv.com"
Tells the metaserver that the preferred hostname of your dopewars server machine is dope-serv.com. By default, the metaserver tries to ascertain your domain name from the connection, and this can fail if you connect via a proxy server, or if DNS does not properly translate your IP address to your domain name. You must also set MetaServer.Password to the password given to you by the metaserver maintainer for this to work. A blank LocalName can also be used with a suitable password to identify "your" server, even if its IP changes. See the metaserver page for more details.
MetaServer.Password="auth"
Uses the password auth to authenticate your dopewars server's hostname (see MetaServer.LocalName above) with the metaserver.

Basic configuration: places in the game

NumLocation=8
Sets the number of locations in the game to 8. Note that if too many locations are specified, the client may not be able to display them all!
Location[4].Name="Manhattan"
Sets the name of the 4th location in the game to Manhattan. The index within the square brackets can range from 1 to whatever NumLocation is set to above, or an error will be reported.
Location[4].PolicePresence=90
Sets the police presence in the 4th location to 90%. This affects how likely it is for the police to attack players at each location when arriving, dropping drugs, or attacking other players.
Location[4].MinDrug=4
Sets the minimum possible number of different drugs that will be on sale to players in location number 4 to 4.
Location[4].MaxDrug=10
Sets the maximum possible number of different drugs that will be on sale to players in location number 4 to 10.
LoanShark=1
Makes the loan shark pop up when players visit location number 1. To stop the loan shark from appearing at all (making it rather difficult to pay off debts) set this number to something which is not a valid location, such as 0 (zero).
Bank=1
Makes the bank appear when a player visits location 1 (the Bronx).
GunShop=2
Players can visit the gun shop in location number 2 (the Ghetto).
RoughPub=2
Players can visit the rough pub to hire bitches in location number 2.
LoanSharkName="the Loan Shark"
The loan shark is known by the name "the Loan Shark" during the game.
BankName="the bank"
The bank is known by the name "the bank" during the game.
GunShopName="Dan's House of Guns"
The gun shop is known by the name "Dan's House of Guns" during the game.
RoughPubName="the pub"
The pub is known by the name "the pub" during the game.

Basic configuration: drug prices

NumDrug=12
Sets there to be 12 different types of drug in the game.
Drug[6].Name="MDA"
Sets the name of the 6th drug to be MDA.
Drug[6].MinPrice=1500
Sets the usual minimum price of the 6th drug (in the absence of "special events" such as drug busts) to be $1,500.
Drug[6].MaxPrice=4400
Sets the usual maximum price of drug number 6 to be $4,400.
Drug[1].Cheap=TRUE
Tells dopewars that drug 1 (by default, Acid) can occasionally be especially cheap (if this is set to FALSE, this does not happen).
Drug[1].CheapStr="The market is flooded with cheap home-made acid!"
Sets the message to display to alert players that drug number 1 is especially cheap.
Drugs.CheapDivide=4
Tells dopewars that whenever a drug is "specially" cheap, divide the normal price distribution (between Drug[x].MinPrice and Drug[x].MaxPrice) by 4.
Drug[4].Expensive=TRUE
Tells dopewars that drug 4 (normally Heroin) can occasionally be particuarly expensive (FALSE cancels this).
Drugs.ExpensiveStr1="Cops made a big %tde bust! Prices are outrageous!"
Sets the string that is displayed when any drug is particularly expensive. This is similar to a standard C-style format string - i.e. the %tde is replaced by the name of the drug which is expensive. (See the Internationalization page for further information on this notation.) This string is displayed 50% of the time for expensive drugs.
Drugs.ExpensiveStr2="Addicts are buying %tde at ridiculous prices!"
Sets the string which is used for expensive drugs the other 50% of the time.
Drugs.ExpensiveMultiply=4
Tells dopewars that whenever a drug is "specially" expensive, multiply the normal price distribution (between Drug[x].MinPrice and Drug[x].MaxPrice) by 4.

Basic configuration: guns and fighting

NumGun=4
Configures the game to have 4 guns available to players at the gun shop. (If you set this to zero, you will be unable to buy guns, you will never be attacked by the cops, and you will be unable to shoot at other players.)
Gun[3].Name="Ruger"
Sets the name of the 3rd gun to Ruger.
Gun[3].Price=2900
Sets the price in the gun shop of the 3rd gun to $2,900. Guns offered "on the street" (i.e. by random events) will be priced at 10% of the value set here.
Gun[3].Space=4
Tells dopewars that gun number 3 uses 4 spaces in the inventory - i.e. carrying one of these guns uses the same spaces as 4 drugs.
Gun[3].Damage=4
Defines gun number 3 to do up to 4 points of damage.
PlayerArmor=100 or PlayerArmour=100
Sets the percentage armor rating of each player to 100 - this defines the amount of health that you lose when you are successfully hit. If 100, you lose the same number of health points as the gun's damage. If more than 100, you lose fewer health points, and if less than 100, you lose more health points than the gun's damage. This rating applies only when you have no bitches.
BitchArmor=50 or BitchArmour=50
Sets the percentage armor rating of each bitch to 50.
NumCop=3
Configures the game to have 3 cops. If you kill the first one, you will later be attacked by the second one, and so on. (The last cop is 'undead' and will return even if you kill him.) If you set this to zero, then you will never be attacked by the cops.
Cop[1].Name=Officer Hardass
Names the first cop to attack you "Officer Hardass".
Cop[1].DeputyName=deputy
Names a solitary deputy accompanying the first cop "deputy".
Cop[1].DeputiesName=deputies
Names more than one deputy accompanying the first cop "deputies".
Cop[1].Armor=4 or Cop[1].Armour=4
Sets the armor rating of the first cop to 4%.
Cop[1].DeputyArmor=3 or Cop[1].DeputyArmour=3
Sets the armor rating of the first cop's deputies to 3%.
Cop[1].AttackPenalty=30
When attacking another player, whether you successfully hit them depends on whether your attack rating is greater than their defence rating, which are generally numbers between 0 and 100 (think of them as percentages). This penalises the first cop (and his deputies) by 30% when attacking you.
Cop[1].DefendPenalty=30
Penalises the first cop (and his deputies) by 30% when defending against a player.
Cop[1].MinDeputies=2
The first cop will be accompanied by a minimum of 2 deputies.
Cop[1].MaxDeputies=8
The first cop will be accompanied by a maximum of 8 deputies.
Cop[1].GunIndex=0
The first cop, and his deputies, will carry gun number 0 (zero-based).
Cop[1].CopGun=1
The first cop will carry 1 gun.
Cop[1].DeputyGun=1
The first cop's deputies will each carry 1 gun.

Advanced configuration

DebtInterest=10
Increases your debt to the loan shark by 10% every turn. Negative numbers can also be used here, to have the debt shrink every day.
BankInterest=5
Adds interest at a rate of 5% per turn to your bank balance.
Currrency.Symbol=$
Uses the dollar ($) symbol to display all prices of drugs, guns, etc.
Currrency.Prefix=TRUE
Prints Currency.Symbol in front of any price - e.g. "$1,000"; if FALSE, prints it after the price - e.g. "1,000 $".
Log.File=dopewars.log
By default, server log messages are printed to the screen (standard output). By setting this variable, they will instead be written to the file dopewars.log.
Log.Level=2
Most server log messages are given a priority level, from 0 (most urgent) to 5 (most verbose). This setting instructs the server only to log messages from level 0 up to 2, inclusive.
Log.Timestamp="[%H:%M:%S] "
Prefixes all log messages with a timestamp of the form (e.g.) [16:34:49]. This is a string which is passed as input to the strftime(3) function. If this is set to a blank string, then no timestamp is added to log messages.
NumTurns=31
Defines the game to end after 31 "days" or turns. If this is set to 0 (zero) the game never ends for a player, unless they quit or are killed.
Sanitized=FALSE
If set to TRUE, this "sanitizes" the game by removing all drug references from the random events. To completely remove drug references, of course, you must also alter the drug names above.
DrugSortMethod=1
Tells the dopewars client how to sort the names of available drugs at each location for display. The default, 1, sorts them in alphabetical order by their names. The choices are as follows:-
  • 1. Sort in forward alphabetical order by name
  • 2. Sort in reverse alphabetical order by name
  • 3. Sort in order of current price, cheapest first
  • 4. Sort in order of current price, most expensive first
FightTimeout=5
If a player in a firefight with another player fails to fire back within 5 seconds, lets his/her enemy have another shot. If this is set to 0 (zero) timeouts are disabled, and players may take as long as they like to fire back.
IdleTimeout=14400
If a connected player in a game does nothing to interact with the server for 14400 seconds, he/she will be automatically disconnected.
ConnectTimeout=300
If a player takes more than 300 seconds to complete the process of connecting or disconnecting to the server, the server will sever the connection.
MaxClients=20
Prevents more than 20 clients from connecting to the server at any one time.
AITurnPause=5
Makes computer-controlled client players run from this machine (not necessarily AI players that connect to a server run on this machine) wait 5 seconds between moving from location to location - i.e. a turn takes at least 5 seconds.
StartCash=2000
Each player will start the game with $2,000 in cash.
StartDebt=5000
Each player will start the game with a debt to the loan shark of $5,000.
Names.Bitch="bitch"
Sets the word used to describe a single "bitch" in the game. Bitch, gun and drug names are automatically capitalised where necessary by the dopewars code.
Names.Bitches="bitches"
Sets the word used to describe two or more "bitches".
Names.Gun="gun"
Sets the word used to describe a single "gun" (for example, it could be replaced by "knife").
Names.Guns="guns"
Sets the word used to describe two or more "guns".
Names.Drug="drug"
Sets the word used to describe a single "drug" (for example, it could be replaced by "candy bar" or something similarly innocuous).
Names.Drugs="drugs"
Sets the word used to describe two or more "drugs".
Names.Date="%m-%d-%Y"
Sets the format string (which is passed to the strftime() function) for displaying the current game date. This example (the default) displays the date in MM-DD-YYYY format, as is commonplace in the US. Only date (not time) formats can be used, and the special format %T is used to display the current game turn.
StartDate.Day="1"
Sets the day of the month on which the game starts to 1.
StartDate.Month="12"
Sets the month in which the game starts to 12 (i.e. December).
StartDate.Year="1984"
Sets the year in which the game starts to 1984.
Prices.Spy=20000
Sets the price to pay a bitch to spy on another player to be $20,000.
Prices.Tipoff=10000
Sets the price to pay a bitch to tip off the cops to another player to be $10,000.
Bitch.MinPrice=50000
Sets the minimum price for a bitch at the Rough Pub to be $50,000. Note that prices for bitches "on the street" (i.e. those that are offered by random events) are produced by dividing the normal bitch price distribution by 10.
Bitch.MaxPrice=150000
Sets the maximum price for a bitch to $150,000.
SubwaySaying= { "First saying", "Second saying", "Third saying" }
Sets the list of things which the lady you sometimes meet on the subway says to you; one of "First saying", "Second saying" and "Third saying" will be displayed each time. Any previous sayings will be erased. Note that individual sayings can be overwritten by appending an array suffix to the variable name - for example, to replace "Third saying" with "3rd saying" the following command would suffice:-
SubwaySaying[3]="3rd saying"
NumSubwaySaying=5
Sets there to be 5 distinct things that the lady on the subway says to you. If this number is greater than the old number of sayings, the newly added sayings will be blank; if it is smaller, the sayings that are now beyond the end of the list will be deleted. If set to zero, the lady will be mercifully silent.
Playing= { "Song 1", "Song 2", "Song 3" }
Sets the list of things which you can sometimes hear playing while jetting; one of "Song 1", "Song 2" or "Song 3" will be displayed. See the help for SubwaySaying for more details.
NumPlaying=4
Sets there to be 4 distinct things which you can sometimes hear playing. (Set this to zero to disable this feature.)
StoppedTo= { "have a beer", "smoke a joint", "smoke a cigar", "smoke a Djarum", "smoke a cigarette" }
Sets the list of things which you sometimes stop to do while jetting; see SubwaySaying for more details. (Set this to zero to disable this feature.)
NumStoppedTo=5
Sets there to be 5 distinct things which you can stop to do.
DrugValue=TRUE
If TRUE, then the server will keep track of the price you paid for any drugs, and clients will display this information if available.
Sounds.FightHit="hit.wav"
Plays the sound file "hit.wav" when you fire a gun and hit your target. The sound must be installed on your system, and you must be using a functioning sound system, in order to hear anything. Other sounds that can be configured in the same way are: FightMiss, FightReload, Jet, TalkToAll, TalkPrivate, JoinGame, and LeaveGame.

Special configuration file commands

include "foo"
Reads in the additional configuration file, "foo".
encoding "UTF-8"
Specifies that any text following this directive (in this configuration file only) is in "UTF-8" encoding. This directive is only supported if dopewars is built on a Unix system and linked against GLib version 2. If unspecifed, then it will be assumed that your configuration files are in the locale's default encoding - e.g. ISO-8859-1 for C or POSIX locales, ISO-8859-2 for pl_PL, ISO-8859-15 for es_ES@euro, or UTF-8 for en_GB.UTF-8.

Last update: 11-08-2002
Valid XHTML 1.1

dopewars-1.6.2/doc/server.html000644 000765 000024 00000012227 14256242752 016231 0ustar00benstaff000000 000000 Setting up and running a dopewars server

Setting up and running a dopewars server

Multiplayer games of dopewars require a running dopewars server; this mediates the interactions between each player (each player runs a client which connects to this server). The server runs the game, generating drug prices and the like, and instructs the clients accordingly. The server can be run on any machine that can be reached over the network by clients (so you don't have to run it on the same machine that you run your client on, for example, unless your firewall blocks the dopewars port).

Single player games do not require a server (although you can still connect to one if you like) as a "virtual server" is run by the dopewars client.

The dopewars server can be heavily customised by means of the configuration files. For example, you can change the names of all the game locations so that the game is set in your home city rather than New York. Any players that then connect to your customised server will play this customised game.

Running a server

All the code for the dopewars server is included in the same binary as the standard client. To run the binary in server mode, specify the -s or -S command line option. The type of server that runs depends on how you configured the binary; by default, on Windows systems a simple graphical window containing the server output and a line for entering server commands is used (an "interactive" server) while on Unix systems a text-mode server that accepts no input ("noninteractive") is used.

Interacting with the text-mode server

Once started, the text-mode server does not accept commands directly. This is problematic if you want to adjust settings, eject players, etc. To send commands to a running server, run dopewars with the -A command line option. (This should only work from the machine running the dopewars server, not over the network, and only for the user that started the server, as it uses a Unix-domain socket for the communication.) Also, by default the text-mode server sends its log output to standard output; you may wish to instead log to a file with the -l option.

Running as a Windows service

On Windows systems, the graphical server has one major drawback; it can only run while you are logged on. As soon as you log out, the server is killed. To get around this limitation, dopewars supports being run as a "Windows Service". The disadvantage of the server in this configuration is that server commands cannot be issued once the server is running. This limitation should be fixed in a future release of dopewars.

Private and public: the dopewars metaserver

By default, a server reports its status to the dopewars metaserver. It does this on startup and shutdown, and whenever players join or leave the game. In addition, you can force a report (under Unix systems) by sending the dopewars server process a SIGUSR1 signal. The server will "remind" the metaserver that it exists by ensuring that a report is sent at least once every 3 hours or so, regardless. A "status report" comprises contact details for the server, a count of the number of active players, and current high scores.

The metaserver also has a web interface, which is used by dopewars clients to obtain the list of servers, and can also be viewed with a web browser here.

Whether your server connects to the metaserver can be configured with the MetaServer.Active configuration file setting, or the -s and -S command line options.

N.B. Your machine may have trouble connecting with the metaserver in some circumstances, most notably if you are using an enforced proxy server or your DNS does not correctly resolve your IP address to your domain name. In such cases, you may be unable to connect to the metaserver, or it may register your server with an incorrect name. For information on getting round these difficulties, see the metaserver page.


Last update: 05-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/credits.html000644 000765 000024 00000005130 14256242752 016353 0ustar00benstaff000000 000000 Credits and acknowledgements

Credits and acknowledgements

dopewars is derived from the MS-DOS game of the same name (author unknown).

This is turn was based upon the MS-DOS game "Drug Wars", by John E. Dell.

dopewars is written by and is copyright of Ben Webb.

Pivotal to the development of dopewars were and are the following:-

Dan Wolf for uncountable numbers of useful suggestions for the structure of the multiplayer game, drawing upon a disturbing knowledge of the drugs world. He also undertook scary amounts of research (i.e. playing the game) to assist with the re-engineering of the MS-DOS version, and plays the game to an unhealthy extent (as is witnessed by his high scores on many dopewars servers).

Phil Davis, Caroline Moore, Katherine Holt and Andrea Elliot-Smith for extensive play testing of early versions of dopewars, despite the large amounts of "real" work which they were supposed to be doing, and despite the many dodgy bugs, as well as for providing suggestions, even if they were often rude. You know who you are.

Owen Walsh and Pete Winn for yet more play testing, and for consequently doing very little research in vastly more important fields...

James Matthews for providing absolutely no useful suggestions, but providing vital assistance with the Officer Bob code.

Mike Meyer for providing several modifications to version 1.4.3, as well as spotting many of his own and my bugs...

Matt Higgins for a couple of patches to version 1.4.4.

Tony Brown for assistance with using dopewars via enforced web proxies.

Leon Breedt for writing a manpage, and creating a Debian package.

Ocelot Mantis for graphics and ideas for improvements.

Tobias Mathes, Slawomir Molenda, Leonard, Quique, Åsmund Skjæveland, Hugo Cisneiros, Eric Steiner, François Marier, Benjamin Karaca, and Bruno Lopes for translating dopewars into other languages.


Last update: 05-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/installation.html000644 000765 000024 00000014352 14256242752 017425 0ustar00benstaff000000 000000 Obtaining and installing dopewars

Obtaining and installing dopewars

The dopewars source code and precompiled binaries (in RPM format) are available from the main dopewars web page, at https://dopewars.sourceforge.io/. Just follow the link from there to the download section. "rpm" is the RedHat Package Manager, a program for simplifying installation and upgrade of programs, and is part of the RedHat Linux distribution. If you are using a different distribution, it may be still be included, however. If you do not want to use "rpm", or the installation fails, then you can obtain the source code tarball and recompile the code from scratch.

Prerequisites: dopewars relies on the GLib library for all builds; this library is used for parsing the configuration files, network and string handling, and many other purposes. On a Windows system, this is the only prequisite; the standard Windows libraries are used for everything else. On a Unix/Linux system, you will also need the screen library curses (or the equivalent, such as ncurses or cur_colr) for the text-mode client, and the GTK+ libraries for the graphical client.

Windows installation

The easiest way to install the Windows version is to download the Windows installer program from the download page, and run it (either instruct your web browser to "run from the current location", or save it to somewhere obvious like the Desktop and then double-click on its icon later). This should install all relevant files, and set up Start Menu icons, etc. If, however, you wish to build the program from the source code, see the tarball installation section below, and also see the Windows page.

RPM binary installation

The binary RPMs are built for Intel systems running RedHat or Fedora Linux. On other systems, these binary RPMs may refuse to install, or may run but then crash with mysterious segmentation faults due to library conflicts.

  1. Download the x86_64 (64-bit Intel for RedHat Enterprise 7) RPM with your web browser.
  2. Become root on your Unix box (if you cannot become root, then you will probably not be able to use RPM installation, depending on how "rpm" is set up).
  3. Change to the directory containing the dopewars rpm, and install it with the command
    rpm -Uvh dopewars-1.6.2-1.el7.x86_64.rpm
    This will replace any already-installed earlier version.

RPM source installation

This route is open to you if your system has "rpm", but the binary RPMs do not work on your system, or your machine is not an Intel (an Alpha or PowerMac, for example). It involves obtaining the RPM of the source code, and then building the binaries from it on your system.

  1. Download the source code RPM.
  2. Become root and change to the directory containing the new rpm.
  3. Build a binary rpm with the command
    rpmbuild --rebuild dopewars-1.6.2-1.el7.src.rpm
  4. Change to the directory which the binary rpm has been written to (check the output of the above - usually /usr/src/redhat/RPMS/xxx, where xxx is your machine type - for example, "i386" on Intel machines, "alpha" on Alphas, "x86_64" on AMD64 or EM64T machines)
  5. Install the binary rpm with the command
    rpm -Uvh dopewars-1.6.2-1.el7.xxx.rpm

Tarball installation

If you don't have, or don't want to use, RPM, you can obtain the source code in gzipped, tarred ("tarball") format and recompile and install it yourself. This is also usually a necessity if you cannot become root (the superuser) on your Unix box, or if you wish to build the Windows version from source code.

Before beginning, you should ensure that you have all the necessary prequisites (see above). To compile on a Windows system, you will need the MinGW compiler and libraries; see the Windows-specific build page for more information.

  1. Download the source code tarball.
  2. Change to the directory containing the tarball and extract the contents with the command
    tar -xvzf dopewars-1.6.2.tar.gz
    (or similar).
  3. Change into the dopewars-1.6.2 directory, and read all the important documentation in there ;) Most notably, the INSTALL file gives more details on setup and installation.
  4. Build the binary with the commands
    ./configure
    make
  5. Become root and install the dopewars files with
    make install

    The configure script will test your system and set up dopewars so that it should compile cleanly. The configure script supports a number of configurable options; for more details, read the INSTALL file in the dopewars-1.6.2 directory.

    If you cannot become root, run the configure script specifying directories for which you have write access for the dopewars files, with a command such as
    ./configure --prefix=/home/user/dopewars


Last update: 06-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/developer.html000644 000765 000024 00000003632 14256242752 016710 0ustar00benstaff000000 000000 Notes for developers

Notes for developers

You are free to make whatever changes to the code you wish, as long as you abide by the terms set out in the GNU General Public License. Obviously, I only have a limited amount of time to devote to dopewars development, and so encourage discussion of the dopewars code, documentation and concept, and particularly welcome suggested improvements.

You are free to distribute modified versions of the code, again subject to the license, but I also welcome additions to the code via pull requests. If I choose to include this code in a new dopewars version, you will of course be credited in the changelog (unless, of course, you don't want to be).

If you wish to write your own client to connect to a dopewars server, then you need to understand the protocol that dopewars uses, which is documented here.

The definitive source on the internal workings of the dopewars game code is the source code itself. It is not exactly "self-documenting", but I have endeavoured to add sufficient documentation to the source where necessary; any discussion here of the internal workings, however, may be incomplete, out of date, and possibly misleading. Feel free to open an issue with questions on this; I might possibly even know the answers!


Last update: 05-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/Makefile.in000644 000765 000024 00000060135 14256243572 016104 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = dopewars.6 CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man6dir = $(mandir)/man6 am__installdirs = "$(DESTDIR)$(man6dir)" NROFF = nroff MANS = $(man_MANS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/dopewars.6.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DOCPATH = ${DESTDIR}${docdir} DOCS = aiplayer.html configfile.html index.html i18n.html \ server.html clientplay.html credits.html example-cfg \ installation.html servercommands.html commandline.html \ contribute.html developer.html metaserver.html \ protocol.html windows.html ../LICENCE example-igneous man_MANS = dopewars.6 SUBDIRS = help EXTRA_DIST = dopewars.6.in ${DOCS} DISTCLEANFILES = dopewars.6 all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign doc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): dopewars.6: $(top_builddir)/config.status $(srcdir)/dopewars.6.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man6: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man6dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man6dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man6dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.6[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^6][0-9a-z]*$$,6,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man6dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man6dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man6dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man6dir)" || exit $$?; }; \ done; } uninstall-man6: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man6dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.6[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^6][0-9a-z]*$$,6,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man6dir)'; $(am__uninstall_files_from_dir) # 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. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ 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; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(MANS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man6dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) 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 clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-data-local install-man install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man6 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-local uninstall-man uninstall-man: uninstall-man6 .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-man6 install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-local \ uninstall-man uninstall-man6 .PRECIOUS: Makefile install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done /bin/rm -f ${DOCPATH}/LICENCE # 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: dopewars-1.6.2/doc/contribute.html000644 000765 000024 00000006224 14256242752 017101 0ustar00benstaff000000 000000 How to contribute

How to contribute

dopewars is open-source software, meaning that it is free for anybody to use. However, this also means that the quality of the software is dependent in part on you the user. You don't have to be a programmer to help out - in fact, dopewars currently needs people to produce sounds and graphics rather than to write code.

  • Sounds are needed. dopewars-1.5.7 and later support sounds, but don't contain sounds for every game event. If you can provide copyright-free sounds, then short files are needed for various effects in the game. For example, gunshots, bullet hits, ricochets and subway trains are obvious candidates for sound effects, although pretty much any event in the game that you can think of can conceivably have a sound (e.g. when players join or leave the game). These sounds should be in WAV format, and should probably be no more than a second or two in length. Later versions of dopewars may also be able to play longer repeating sounds (i.e. music) if you're interested in contributing this. Please open a pull request to add sound files to dopewars.

  • Suggestions for future improvements are always welcomed at the issue tracker. These can be anything from "the game interface is confusing" through "more game locations are needed" to "what about a hospital". (I can't guarantee that such suggestions will ever make it into dopewars, but it's a lot easier if I know they exist! Also, it's far more likely to happen if you write the code - see the tips for developers page.)

  • Bug reports are always useful. Register them with the issue tracker. If I don't know the problem exists, I can't fix it... The more information you can give here, the better. In particular, I need to know your operating system - e.g. Linux or Windows. For Linux, gdb stack traces of the core file are most useful.

  • Configuration files can be included in future distributions. If you run a customised game, and think others might want to play with your configuration, or at least use it as an example, then post it in the issue tracker.

  • Translation of dopewars into your language will enable you to play the game in your native tongue, and will also help others that speak the same language. It's pretty easy, too - all you have to do is edit a simple text file! See the i18n pages.


Last update: 05-12-2020
Valid XHTML 1.1

dopewars-1.6.2/doc/help/000755 000765 000024 00000000000 14256243622 014756 5ustar00benstaff000000 000000 dopewars-1.6.2/doc/clientplay.html000644 000765 000024 00000032772 14256242752 017076 0ustar00benstaff000000 000000 Playing the game: the dopewars client

Playing the game: the dopewars client

The dopewars client is the part of dopewars which most users will encounter most frequently. If the dopewars binary is run without the -s (server) or -c (computer player) options (see command line options) it defaults to running in client mode. The dopewars client handles the interaction between a human player and the dopewars server (but if a dopewars server is not available, a "virtual" server will be run by the client to enable a single-player game to be played).

A brief description of using the client and playing dopewars is given here. These instructions apply to the old-style text-mode client, but the basic game play is similar for the newer graphical client. Bear in mind that both the client and the server you are connecting to can be configured by means of the dopewars configuration files, and so the game may differ radically from what is described here. It is suggested that you familiarise yourself with the game using the default settings before getting too adventurous!

Starting the dopewars client

  • From the command prompt, run the dopewars client with the command
    dopewars
    or to run an "antique" mode game,
    dopewars -a
  • An introduction screen will appear, giving a brief description of the game and version and licensing information. Press any key to clear this.

The main game screen

The game screen is your interface with the dopewars world. At the top of the screen, from left to right, is displayed the game date, the game location (you start in the Bronx), the number of bitches working for you, and the space you have available for drugs. Note that each drug uses up one "space", but some guns may take up more. Your "bitches" are your subordinates - each bitch increases your "space" by 10 (you yourself start with a space of 20) and can carry one gun (you can carry two). Your bitches also take damage for you when in firefights, so it is advantageous to acquire extra bitches during the game.

Below the top line of the screen are three large windows. The one in the top left lists your statistics - your finances, the health of yourself or your bitches, and the number of guns you are carrying. Notice that you start the game with a debt - this will increase, turn by turn, until you pay it off to the Loan Shark. The top right window lists the drugs that you are currently carrying (you start off with none). Below this is a window in which messages from other players (if any) will appear.

Please note that if you are playing in "antique" mode, you do not have "bitches" but instead have a large trenchcoat which can carry 100 drugs. Antique mode also disables the messages window.

Connecting to a dopewars server (or not)

On starting a game of dopewars, the first thing you must do is give yourself a name. This identifies you to the server and to other players. If you are running in single-player or antique mode, the client will then start an internal "virtual" server and immediately start the game.

In other cases, the client will attempt to connect to a dopewars server specified in the configuration file or on the command line (if none is specified, it defaults to the local host). If this connection is successful, the game will then start. Otherwise, you will be given the option to manually choose a different server, obtain the server list from the metaserver and choose one, play a single-player game, or quit, by pressing the C, L, P, or Q keys respectively. If you don't want the client to attempt to connect to a server, this can be set - full details are given in the section on configuration files.

Dealing drugs and moving around

The New York of dopewars is divided into 8 (6 in "antique" mode) locations. At each of these locations, a variety of drugs, with fluctuating prices, are on sale. Not all of the drugs are necessarily on sale at each location all of the time, and the normally gentle fluctuations may be affected by such events as other dealers flooding the market with drugs, or the cops making a big drugs bust (which will drive the price up). On arriving at a new location, you will be told if any of these "special" events have occurred.

The main way to make money in dopewars is to buy and sell drugs, buying cheaply at one location, and then moving ("jetting") to a new location (a process which uses up one "day" or turn), and then selling for a profit at this new location. When you have arrived at a location, you will be told which drugs are being dealt in. You may buy one of these drugs by pressing the "B" key, then pressing the letter for the drug you wish to buy, and then entering the number of this drug you require. Bear in mind that you may not be able to afford or carry these drugs! Selling drugs is similar, on pressing the "S" key. When you are done and wish to "jet" to a new location, press the "J" key and then choose the location number.

If you are at a location where you cannot sell your drugs, you can drop them to free up space in your inventory (with the "D" key). Of course, this does not get you any money, and there is a chance that the cops may catch you in the act and attack you (see below).

Your finances: loans and banks

Buying and selling drugs may make money, but unfortunately you start the game with a debt to the loan shark of $5,000. Every turn this accumulates interest, and counts against your total amount of money at the end of the game (which is used as your high score, so it's quite possible to end with a negative score). To pay off the loan, you must visit the loan shark by jetting to the Bronx. You will be asked if you wish to visit the loan shark - respond by pressing the "Y" key - and then asked how much money you want to give him. Respond by entering the amount of money, without the $ sign or commas, and ended with "k" or "m" as shorthand for "thousand" or "million" if you like (i.e. entering "2.5k" is the same as "2000", which is $2,000).

You can also deposit or withdraw money from the bank, which is also located in the Bronx. This is done in a similar way to paying the loan shark. Putting your money in the bank lets you accumulate interest on it, and prevents it from being stolen if you are mugged (which does occasionally happen). Money in the bank also contributes to your high score at the end of the game.

Law enforcement and why it's a bad thing

When you jet to a new location, one or more "random events" may occur. Usually this is just something such as a drug bust which affects drug prices, but there are a number of other beneficial, useless, or just plain annoying random events. Perhaps the most annoying of these is an encounter with the cops, in the form of Officer Hardass or Bob and their deputies.

When you meet Officer Hardass, you must decide what to do. If you don't have any guns, you must answer Y (yes) or N (no) to the question "Do you run?" If you are lucky, you'll get away - otherwise, the cops may shoot you. The more deputies are accompanying Hardass, the worse the damage is likely to be. If you take enough damage for your health to drop to zero, you will lose a bitch (and, possibly, some drugs and a gun, if the bitch was carrying them). If you have no bitches, you will die, and the game will end! The more successful your drug dealing is (i.e. the more money you have made) the more aggressive the cops will be.

If, on the other hand, you have acquired one or more guns, you can either run ("R" key) or fight ("F"). Guns may be offered to you at bargain prices randomly, or you can visit the gun shop in the Ghetto and buy or sell them. To beat the cops by fighting them, you must kill all the deputies, one by one, and then finally Officer Hardass. Bear in mind that the more guns you have, the more damage you will do to the cops! If you kill Officer Hardass, you can take whatever money you find on his corpse, and if you are lucky a doctor will offer to "sew you up" (i.e. restore your health to 100) for a price.

If, after killing Officer Hardass, you are unlucky enough to meet the cops again later on, they will be lead by his replacement, Officer Bob, who is tougher. If you then kill him too, you'll meet tougher opposition in future - so it's often wise to run from the cops!

If you lose bitches, or simply want to acquire more, you can visit the pub in the Ghetto to hire them, or they may offer their services to you at bargain rates randomly.

Some locations are more heavily policed than others. In addition to being attacked on your travels, you also run a high risk of being shot at by the cops if you drop drugs (dispose of drugs that you can't get any cash for) or if you attack other players.

Multiplayer: interacting with other players

If you log on to a dopewars server, there is the possibility of meeting other players, either human or computer-controlled. When joining a game which already contains other players, they will be listed to you. Other players which join or leave the game once you are playing will announce their presence to you automatically via the "Messages" window.

When in multiplayer mode, you can send a message to all current players by pressing the "T" key from the main drug prices screen, and then typing in your message. To send a private message, use the "P" key and select the player instead. These messages will appear in the Messages window also.

Another new command in multiplayer mode is the list command ("L" key). This will either list the other players in the game, or the list of high scores maintained by the server which you're connected to.

The "G" key activates the "give errand" command. With this you can sack one of your bitches (with the "G" key again), pay one to tip off the cops to one of the other players, or pay one to leave your employment and to join another player and spy on them for you. In any case, if you lose a bitch you may also lose any drugs or guns which they were carrying (remember that each bitch can carry one gun, and increases your inventory - your available space - by 10).

A tip-off means that Officer Hardass or Bob will attack your chosen enemy when they jet to their next location (and then you will get to hear the result of the encounter). A spy, on the other hand, will present himself to the enemy as a bargain bitch (in the same way as normal "bargain bitches" appear). If your enemy accepts the bitch, you will then be able to see everything about the enemy whenever you like, by pressing the "C" key from the main drug prices screen. Unfortunately, there is a chance that your spy may be discovered by your opponent later on...

If, in the course of normal play, you are carrying one or more guns, and you jet to the a location where another player already is, you will be informed of their presence. You can either ignore them completely (with the "E" key) in which case they will never know you were there, or you can attack them with the "A" key. When you attack another player, or another player attacks you, the main screen which normally lists drug prices at the current location is replaced by the fighting screen. You can switch back from this screen to the drug price screen with the "D" key, but note that the "Jet" command is now missing from the drug price screen - you must instead use the "F" key to return to the fight, and conclude it before continuing on your way.

When in a fight with another player, you can choose not to fire back with the "S" key, you can shoot back with the "F" key, or you can run from the fight with the "R" key. Be aware that if you fail to shoot back at your enemy within five seconds, they can fire at you again (otherwise, shots alternate between you and your enemy). If you kill an enemy bitch, you are awarded a bounty from the cops for killing such a dangerous criminal; if you kill an enemy player (after you've killed all of their bitches) you receive their total assets - their cash and bank balance minus any debt. In either case you can loot the body and pick up any guns or drugs which the bitch or player was carrying.


Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.6.2/doc/help/guns.html000644 000765 000024 00000002404 14256000065 016610 0ustar00benstaff000000 000000 dopewars: Guns Options

dopewars: Guns Options

  • Gun: A list of all guns in the game. Use the "New" button to create a new gun, or the "Delete", "Up" and "Down" buttons to delete the currently selected gun or to change its position in the list. (If you delete all of the guns, then the cops will never attack you, and you cannot attack other players or buy guns in the Gun Shop.) Selecting a gun from this list allows the other sections in this window to be filled in.

  • Name: The name of the gun.

  • Price: The cost of the gun, if you buy it from the Gun Shop. (If you are offered it during the course of the game on the street, then it is offered at 10% of this price).

  • Inventory space: The amount of space that this gun takes up in your inventory.

  • Damage: The maximum damage done by this gun, if you hit an enemy. (The actual amount of health that they lose is also dependent on their armor rating.)

dopewars-1.6.2/doc/help/sounds.html000644 000765 000024 00000001371 14256000065 017151 0ustar00benstaff000000 000000 dopewars: Sounds Options

dopewars: Sounds Options

This tab allows you to configure the sounds played by dopewars during the game. To change a sound, first select it from the list. Then type the full path and name of a .WAV file into the "Sound file" box, or use the Browse button to find it on your computer. You can use the Play button to hear the sound that you have selected.

Bear in mind that all sounds can be turned on or off using the "Enable Sound" option on the Game menu.

dopewars-1.6.2/doc/help/Makefile.am000644 000765 000024 00000000615 14256000065 017004 0ustar00benstaff000000 000000 DOCPATH = ${DESTDIR}${docdir}/help DOCS = cops.html general.html locations.html sounds.html \ drugs.html guns.html server.html EXTRA_DIST = ${DOCS} install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done dopewars-1.6.2/doc/help/cops.html000644 000765 000024 00000003317 14256000065 016604 0ustar00benstaff000000 000000 dopewars: Cops Options

dopewars: Cops Options

  • Cop: A list of all cops in the game. Use the "New" button to create a new cop, or the "Delete", "Up" and "Down" buttons to delete the currently selected cop or to change its position in the list. (If you delete all of the cops, then the cops will never attack you.) Selecting a cop from this list allows the other sections in this window to be filled in.

  • Name: The name of the cop.

  • Name of one deputy: The name of one of the deputies or other assistants that can accompany this cop.

  • Name of several deputies: The name of two or more of the deputies or other assistants that can accompany this cop.

  • Minimum no. of deputies: The lowest number of deputies that can accompany this cop. The more deputies, the harder it is to run away from or to shoot the cop, and the more damage they do to you when they shoot.

  • Maximum no. of deputies: The highest number of deputies that can accompany this cop.

  • Cop armor: A percentage value to determine how much damage the cop takes when he is shot. A value of 100 means that if you do 10 damage, the cop loses 10 health. A value of 200 means that he only loses 5 health, and a value of 50 results in a loss of 20.

  • Deputy armor: A percentage value to determine how much damage each deputy takes when he is shot.

dopewars-1.6.2/doc/help/server.html000644 000765 000024 00000003042 14256000065 017141 0ustar00benstaff000000 000000 dopewars: Server Options

dopewars: Server Options

  • Server reports to metaserver: If checked, then when running the dopewars server, it will report to the metaserver so that players can find your server from the dopewars website or from the New Game dialog's Metaserver tab. (If not checked, its existence will not be advertised, but people can still connect to your server if they know the hostname and port number.)

  • Minimize to System Tray: (Windows only) When running the graphical server, and it is minimized, do not show the window in the normal window list, but in the System Tray (the collection of small icons in the bottom right of the screen). Clicking on the dopewars icon in the Tray will restore the window to its normal state.

  • Metaserver URL: The full URL for the metaserver script, used by both the server and client. You should not normally need to alter this.

  • Comment: A description of your dopewars server, which is sent to the metaserver and can be used to tell potential clients the rough rules of your game.

  • MOTD (welcome message): The message of the day, sent to clients when they connect to the server (can be used to tell them more about the setup of the game).

dopewars-1.6.2/doc/help/drugs.html000644 000765 000024 00000003717 14256000065 016770 0ustar00benstaff000000 000000 dopewars: Drugs Options

dopewars: Drugs Options

  • Drug: A list of all drugs in the game. Use the "New" button to create a new drug, or the "Delete", "Up" and "Down" buttons to delete the currently selected drug or to change its position in the list. (You cannot delete all of the drugs, as this would make the game unplayable.) Selecting a drug from this list allows the other sections in this window to be filled in.

  • Name: The name of the drug.

  • Minimum normal price: Sets the lowest price that this drug can be offered at, under normal circumstances (i.e. there have been no drug busts or other special events on this day).

  • Maximum normal price: Sets the highest price that this drug can be offered at, under normal circumstances.

  • Can be specially cheap: If checked, then occasionally this drug can be offered at a quarter of its usual price, due to some special event.

  • Cheap string: If the previous checkbox is selected, then this is the message that is displayed when this drug is offered cheaply - e.g. "The market is flooded with cheap home-made acid!".

  • Can be specially expensive: If checked, then occasionally this drug can be offered at four times its usual price, due to some special event.

  • Expensive string 1/2: These two strings are used whenever any drug is offered at the expensive price (one of the two messages is picked at random). The name of the drug is substituted into the string for "%tde" - e.g. "Addicts are buying %tde at ridiculous prices!" could be displayed as "Addicts are buying Cocaine at ridiculous prices!".

dopewars-1.6.2/doc/help/Makefile.in000644 000765 000024 00000034456 14256243572 017043 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = doc/help ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DOCPATH = ${DESTDIR}${docdir}/help DOCS = cops.html general.html locations.html sounds.html \ drugs.html guns.html server.html EXTRA_DIST = ${DOCS} all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/help/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign doc/help/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-local .PRECIOUS: Makefile install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done # 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: dopewars-1.6.2/doc/help/general.html000644 000765 000024 00000004442 14256000065 017255 0ustar00benstaff000000 000000 dopewars: General Options

dopewars: General Options

  • Remove drug references: Do not popup random events during the game that might mention drugs. This also disables the cops and the gun shop. Obviously, if you really want to remove drug references completely, you also need to change all the drug names in the Drugs tab.

  • Unicode config file: Write out the configuration file in UTF-8 (Unicode) encoding, rather than the default locale encoding. You should turn this option on if you are using unusual characters (e.g. Hebrew or Cyrillic in the English version) as these will be otherwise lost when you save the file. Note that this is the default under Unix when running in UTF-8 locales. Note also that versions of dopewars prior to 1.5.8, or Unix versions linked against GTK+1.x, will not be able to read UTF-8 configuration files.

  • Game length (turns): The number of days over which the game runs. If this is set to 0 (zero) then the game will only end if you are killed.

  • Starting cash: The amount of money that each player in the game gets at the start.

  • Starting debt: The amount of money that each player in the game starts out in debt to the Loan Shark.

  • Currency symbol: The symbol (e.g. $, £, €, GBP) used to denote all prices in the game.

  • Symbol prefixes prices: If checked, then the currency symbol is always printed before prices (e.g. $100). If unchecked, it follows the prices (e.g. 100 EUR).

  • Name of one bitch: The word used to refer to a single one of your companions. For example, you may prefer "henchman" to "bitch".

  • Name of several bitches: The word used to refer to several of your companions. For example, you may prefer "henchmen" to "bitches".

  • Web browser: (Unix only) The full pathname of the program that you use for displaying webpages. For example, /usr/bin/mozilla.

dopewars-1.6.2/doc/help/locations.html000644 000765 000024 00000002575 14256000065 017640 0ustar00benstaff000000 000000 dopewars: Location Options

dopewars: Location Options

  • Location: A list of all locations in the game. Use the "New" button to create a new location, or the "Delete", "Up" and "Down" buttons to delete the currently selected location or to change its position in the list. (You cannot delete all of the locations, as this would make the game unplayable.) Selecting a location from this list allows the other sections in this window to be filled in.

  • Name: The name of the region or city that the location represents.

  • Police presence: The percentage chance that the police in this location will catch you fighting with other drug dealers or dropping drugs.

  • Minimum no. of drugs: Every time you visit this location, a random number of drugs will be available for buying or selling. This allows you to set the minimum number of different types of drug that will be available in this location.

  • Maximum no. of drugs: This allows you to set the maximum number of different types of drug that will be available in this location.

dopewars-1.6.2/m4/ltversion.m4000644 000765 000024 00000001262 14256000065 016061 0ustar00benstaff000000 000000 # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # 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. # @configure_input@ # serial 3337 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.2]) m4_define([LT_PACKAGE_REVISION], [1.3337]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' macro_revision='1.3337' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) dopewars-1.6.2/m4/po.m4000644 000765 000024 00000044617 14256000065 014465 0ustar00benstaff000000 000000 # po.m4 serial 31 (gettext-0.20.2) dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Lesser General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.60]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_REQUIRE([AC_PROG_SED])dnl AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.20]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Test whether it is GNU msgmerge >= 0.20. if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' else dnl Test whether it is GNU msgmerge >= 0.12. if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' else dnl With these old versions, $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) is dnl slow. But this is not a big problem, as such old gettext versions are dnl hardly in use any more. MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' fi fi AC_SUBST([MSGMERGE_FOR_MSGFMT_OPTION]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" tab=`printf '\t'` if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <= $min_esd_version) no_esd="" if test "$ESD_CONFIG" = "no" ; then no_esd=yes else AC_LANG_SAVE AC_LANG_C ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` esd_major_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` esd_minor_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_esdtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" dnl dnl Now check if the installed ESD is sufficiently new. (Also sanity dnl checks the results of esd-config to some extent dnl rm -f conf.esdtest AC_TRY_RUN([ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.esdtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_esd_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_esd_version"); exit(1); } if (($esd_major_version > major) || (($esd_major_version == major) && ($esd_minor_version > minor)) || (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) { return 0; } else { printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); printf("*** to point to the correct copy of esd-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } ],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" AC_LANG_RESTORE fi fi if test "x$no_esd" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$ESD_CONFIG" = "no" ; then echo "*** The esd-config script installed by ESD could not be found" echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the ESD_CONFIG environment variable to the" echo "*** full path to esd-config." else if test -f conf.esdtest ; then : else echo "*** Could not run ESD test program, checking why..." CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" AC_LANG_SAVE AC_LANG_C AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding ESD or finding the wrong" echo "*** version of ESD. If it is not finding ESD, 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 ESD was incorrectly installed" echo "*** or that you have moved ESD since it was installed. In the latter case, you" echo "*** may want to edit the esd-config script: $ESD_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" AC_LANG_RESTORE fi fi ESD_CFLAGS="" ESD_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(ESD_CFLAGS) AC_SUBST(ESD_LIBS) rm -f conf.esdtest ]) dnl AM_ESD_SUPPORTS_MULTIPLE_RECORD([ACTION-IF-SUPPORTS [, ACTION-IF-NOT-SUPPORTS]]) dnl Test, whether esd supports multiple recording clients (version >=0.2.21) dnl AC_DEFUN([AM_ESD_SUPPORTS_MULTIPLE_RECORD], [dnl AC_MSG_NOTICE([whether installed esd version supports multiple recording clients]) ac_save_ESD_CFLAGS="$ESD_CFLAGS" ac_save_ESD_LIBS="$ESD_LIBS" AM_PATH_ESD(0.2.21, ifelse([$1], , [ AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, true) AC_DEFINE(ESD_SUPPORTS_MULTIPLE_RECORD, 1, [Define if you have esound with support of multiple recording clients.])], [$1]), ifelse([$2], , [AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, false)], [$2]) if test "x$ac_save_ESD_CFLAGS" != x ; then ESD_CFLAGS="$ac_save_ESD_CFLAGS" fi if test "x$ac_save_ESD_LIBS" != x ; then ESD_LIBS="$ac_save_ESD_LIBS" fi ) ]) dopewars-1.6.2/m4/pkg.m4000644 000765 000024 00000030576 14256000065 014627 0ustar00benstaff000000 000000 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 11 (pkg-config-0.29.1) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES dopewars-1.6.2/m4/libtool.m4000644 000765 000024 00001057432 14256000065 015513 0ustar00benstaff000000 000000 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # 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. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS dopewars-1.6.2/m4/ltoptions.m4000644 000765 000024 00000030073 14256000065 016071 0ustar00benstaff000000 000000 # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # 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. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) dopewars-1.6.2/m4/ltsugar.m4000644 000765 000024 00000010424 14256000065 015515 0ustar00benstaff000000 000000 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # 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. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) dopewars-1.6.2/m4/dp_expand_dir.m4000644 000765 000024 00000002070 14256000065 016632 0ustar00benstaff000000 000000 dnl DP_EXPAND_DIR(VARNAME, DIR) dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR, dnl and assigns the resulting string to VARNAME dnl example: DP_EXPAND_DIR(LOCALEDIR, "$datadir/locale") dnl eg, then: AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR") dnl by Alexandre Oliva dnl from http://www.cygnus.com/ml/automake/1998-Aug/0040.html dnl Modified by Ben Webb, 2013, to perform three expansions; this dnl handles the case where DIR is something like ${datadir} dnl (first expansion -> ${prefix}/share, dnl second expansion -> /usr/local/share) AC_DEFUN([DP_EXPAND_DIR], [ $1=$2 $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""[$]$1"\" )` $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""[$]$1"\" )` $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""[$]$1"\" )` ]) dopewars-1.6.2/m4/lib-link.m4000644 000765 000024 00000103762 14256000065 015545 0ustar00benstaff000000 000000 # lib-link.m4 serial 31 dnl Copyright (C) 2001-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.61]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_LINK_IFELSE( [AC_LANG_PROGRAM([[$3]], [[$4]])], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_libname_spec, dnl acl_library_names_spec, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Complain if config.rpath is missing. AC_REQUIRE_AUX_FILE([config.rpath]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) AC_ARG_WITH(PACK[-prefix], [[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi ]) if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then dnl Really add $dependency_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then dnl Really add $dependency_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2" \ && test "X$dir" != "X/usr/$acl_libdirstem3"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2" \ && test "X$dir" != "X/usr/$acl_libdirstem3"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) dopewars-1.6.2/m4/sdl.m4000644 000765 000024 00000014407 14256000065 014623 0ustar00benstaff000000 000000 # 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_TARGET]) 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_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $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" CXXFLAGS="$ac_save_CXXFLAGS" 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" CXXFLAGS="$CXXFLAGS $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" CXXFLAGS="$ac_save_CXXFLAGS" 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 ]) dopewars-1.6.2/m4/gettext.m4000644 000765 000024 00000034230 14256000065 015521 0ustar00benstaff000000 000000 # gettext.m4 serial 71 (gettext-0.20.2) dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Lesser General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL must be one of 'external', 'use-libtool'. dnl INTLSYMBOL should be 'external' for packages other than GNU gettext, and dnl 'use-libtool' for the packages 'gettext-runtime' and 'gettext-tools'. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value '$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [errprint([ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported. ])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], [no], [yes])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is not documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl In GNU gettext we have to set BUILD_INCLUDED_LIBINTL to 'yes' dnl because some of the testsuite requires it. BUILD_INCLUDED_LIBINTL=yes dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) dopewars-1.6.2/m4/progtest.m4000644 000765 000024 00000006022 14256000065 015702 0ustar00benstaff000000 000000 # progtest.m4 serial 8 (gettext-0.20.2) dnl Copyright (C) 1996-2003, 2005, 2008-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Lesser General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) dopewars-1.6.2/m4/glib-2.0.m4000644 000765 000024 00000020174 14256000065 015251 0ustar00benstaff000000 000000 # Configure paths for GLIB # Owen Taylor 1997-2001 # Increment this whenever this file is changed. #serial 3 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject, dnl gthread, or gio is specified in MODULES, pass to pkg-config dnl AC_DEFUN([AM_PATH_GLIB_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl dnl We can't use PKG_PREREQ because that needs 0.29. m4_ifndef([PKG_PROG_PKG_CONFIG], [pkg.m4 version 0.28 or later is required]) AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], , enable_glibtest=yes) min_glib_version=ifelse([$1], [], [2.0.0], [$1]) pkg_config_args="glib-2.0 >= $min_glib_version" for module in . $4 do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done PKG_PROG_PKG_CONFIG([0.16]) no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi dnl For GLIB_CFLAGS and GLIB_LIBS PKG_CHECK_MODULES([GLIB], [$pkg_config_args], [:], [:]) dnl For the tools PKG_CHECK_VAR([GLIB_GENMARSHAL], [glib-2.0], [glib_genmarshal]) PKG_CHECK_VAR([GOBJECT_QUERY], [glib-2.0], [gobject_query]) PKG_CHECK_VAR([GLIB_MKENUMS], [glib-2.0], [glib_mkenums]) PKG_CHECK_VAR([GLIB_COMPILE_RESOURCES], [gio-2.0], [glib_compile_resources]) AC_MSG_CHECKING(for GLIB - version >= $min_glib_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 GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main (void) { unsigned int major, minor, micro; fclose (fopen ("conf.glibtest", "w")); if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. 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 ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB 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 GLIB, 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_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_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://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, 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 GLIB is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" ifelse([$3], , :, [$3]) fi rm -f conf.glibtest ]) dopewars-1.6.2/m4/iconv.m4000644 000765 000024 00000023003 14256000065 015147 0ustar00benstaff000000 000000 # iconv.m4 serial 21 dnl Copyright (C) 2000-2002, 2007-2014, 2016-2020 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, dnl Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[ #include #include #ifndef ICONV_CONST # define ICONV_CONST $ac_iconv_const #endif ]], [[int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\263"; char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; ICONV_CONST char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ { /* Try standardized names. */ iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); /* Try IRIX, OSF/1 names. */ iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); /* Try AIX names. */ iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); /* Try HP-UX names. */ iconv_t cd4 = iconv_open ("utf8", "eucJP"); if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) result |= 16; if (cd1 != (iconv_t)(-1)) iconv_close (cd1); if (cd2 != (iconv_t)(-1)) iconv_close (cd2); if (cd3 != (iconv_t)(-1)) iconv_close (cd3); if (cd4 != (iconv_t)(-1)) iconv_close (cd4); } return result; ]])], [am_cv_func_iconv_works=yes], , [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) test "$am_cv_func_iconv_works" = no || break done LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [m4_ifdef([gl_00GNULIB], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ]], [[]])], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) else dnl When compiling GNU libiconv on a system that does not have iconv yet, dnl pick the POSIX compliant declaration without 'const'. am_cv_proto_iconv_arg1="" fi AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) dnl Also substitute ICONV_CONST in the gnulib generated . m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test -n "$am_cv_proto_iconv_arg1"; then ICONV_CONST="const" fi ]) ]) dopewars-1.6.2/m4/nls.m4000644 000765 000024 00000002322 14256000065 014626 0ustar00benstaff000000 000000 # nls.m4 serial 6 (gettext-0.20.2) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free dnl Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Lesser General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) dopewars-1.6.2/m4/lib-prefix.m4000644 000765 000024 00000027250 14256000065 016102 0ustar00benstaff000000 000000 # lib-prefix.m4 serial 17 dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH([lib-prefix], [[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a function acl_is_expected_elfclass, that tests whether standard input dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI, dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing dnl the basename of the libdir to try in turn, either "lib" or "lib64" or dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar. AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib, lib32, and lib64. dnl On most glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib. dnl We determine the compiler's default mode by looking at the compiler's dnl library search path. If at least one of its elements ends in /lib64 or dnl points to a directory whose absolute pathname ends in /lib64, we use that dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default, dnl namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT]) AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], [AC_EGREP_CPP([Extensible Linking Format], [#ifdef __ELF__ Extensible Linking Format #endif ], [gl_cv_elf=yes], [gl_cv_elf=no]) ]) if test $gl_cv_elf; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then # Use POSIX od. func_elfclass () { od -A n -t d1 -j 4 -N 1 } else # Use BSD hexdump. func_elfclass () { dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' echo } fi changequote(,)dnl case $HOST_CPU_C_ABI_32BIT in yes) # 32-bit ABI. acl_is_expected_elfclass () { test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 } ;; no) # 64-bit ABI. acl_is_expected_elfclass () { test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 } ;; *) # Unknown. acl_is_expected_elfclass () { : } ;; esac changequote([,])dnl else acl_is_expected_elfclass () { : } fi dnl Allow the user to override the result by setting acl_cv_libdirstems. AC_CACHE_CHECK([for the common suffixes of directories in the library search path], [acl_cv_libdirstems], [dnl Try 'lib' first, because that's the default for libdir in GNU, see dnl . acl_libdirstem=lib acl_libdirstem2= acl_libdirstem3= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. if test $HOST_CPU_C_ABI_32BIT = no; then acl_libdirstem2=lib/64 case "$host_cpu" in sparc*) acl_libdirstem3=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; esac fi ;; *) dnl If $CC generates code for a 32-bit ABI, the libraries are dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64. dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32. dnl Find the compiler's search path. However, non-system compilers dnl sometimes have odd library search paths. But we can't simply invoke dnl '/usr/bin/gcc -print-search-dirs' because that would not take into dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS. searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test $HOST_CPU_C_ABI_32BIT != no; then # 32-bit or unknown ABI. if test -d /usr/lib32; then acl_libdirstem2=lib32 fi fi if test $HOST_CPU_C_ABI_32BIT != yes; then # 64-bit or unknown ABI. if test -d /usr/lib64; then acl_libdirstem3=lib64 fi fi if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib32 ) acl_libdirstem2=lib32 ;; */lib64 ) acl_libdirstem3=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" if test $HOST_CPU_C_ABI_32BIT = yes; then # 32-bit ABI. acl_libdirstem3= fi if test $HOST_CPU_C_ABI_32BIT = no; then # 64-bit ABI. acl_libdirstem2= fi fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" ]) dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and dnl acl_libdirstem3. changequote(,)dnl acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` changequote([,])dnl ]) dopewars-1.6.2/m4/gtk-2.0.m4000644 000765 000024 00000016554 14256000065 015130 0ustar00benstaff000000 000000 # 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 ]) dopewars-1.6.2/m4/libcurl.m4000644 000765 000024 00000025646 14256000065 015504 0ustar00benstaff000000 000000 #*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # # Copyright (C) 2006 - 2020, David Shaw # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://curl.haxx.se/docs/copyright.html. # # You may opt to use, copy, modify, merge, publish, distribute and/or sell # copies of the Software, and permit persons to whom the Software is # furnished to do so, under the terms of the COPYING file. # # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY # KIND, either express or implied. # ########################################################################### # LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION], # [ACTION-IF-YES], [ACTION-IF-NO]) # ---------------------------------------------------------- # David Shaw May-09-2006 # # Checks for libcurl. DEFAULT-ACTION is the string yes or no to # specify whether to default to --with-libcurl or --without-libcurl. # If not supplied, DEFAULT-ACTION is yes. MINIMUM-VERSION is the # minimum version of libcurl to accept. Pass the version as a regular # version number like 7.10.1. If not supplied, any version is # accepted. ACTION-IF-YES is a list of shell commands to run if # libcurl was successfully found and passed the various tests. # ACTION-IF-NO is a list of shell commands that are run otherwise. # Note that using --without-libcurl does run ACTION-IF-NO. # # This macro #defines HAVE_LIBCURL if a working libcurl setup is # found, and sets @LIBCURL@ and @LIBCURL_CPPFLAGS@ to the necessary # values. Other useful defines are LIBCURL_FEATURE_xxx where xxx are # the various features supported by libcurl, and LIBCURL_PROTOCOL_yyy # where yyy are the various protocols supported by libcurl. Both xxx # and yyy are capitalized. See the list of AH_TEMPLATEs at the top of # the macro for the complete list of possible defines. Shell # variables $libcurl_feature_xxx and $libcurl_protocol_yyy are also # defined to 'yes' for those features and protocols that were found. # Note that xxx and yyy keep the same capitalization as in the # curl-config list (e.g. it's "HTTP" and not "http"). # # Users may override the detected values by doing something like: # LIBCURL="-lcurl" LIBCURL_CPPFLAGS="-I/usr/myinclude" ./configure # # For the sake of sanity, this macro assumes that any libcurl that is # found is after version 7.7.2, the first version that included the # curl-config script. Note that it is very important for people # packaging binary versions of libcurl to include this script! # Without curl-config, we can only guess what protocols are available, # or use curl_version_info to figure it out at runtime. AC_DEFUN([LIBCURL_CHECK_CONFIG], [ AH_TEMPLATE([LIBCURL_FEATURE_SSL],[Defined if libcurl supports SSL]) AH_TEMPLATE([LIBCURL_FEATURE_KRB4],[Defined if libcurl supports KRB4]) AH_TEMPLATE([LIBCURL_FEATURE_IPV6],[Defined if libcurl supports IPv6]) AH_TEMPLATE([LIBCURL_FEATURE_LIBZ],[Defined if libcurl supports libz]) AH_TEMPLATE([LIBCURL_FEATURE_ASYNCHDNS],[Defined if libcurl supports AsynchDNS]) AH_TEMPLATE([LIBCURL_FEATURE_IDN],[Defined if libcurl supports IDN]) AH_TEMPLATE([LIBCURL_FEATURE_SSPI],[Defined if libcurl supports SSPI]) AH_TEMPLATE([LIBCURL_FEATURE_NTLM],[Defined if libcurl supports NTLM]) AH_TEMPLATE([LIBCURL_PROTOCOL_HTTP],[Defined if libcurl supports HTTP]) AH_TEMPLATE([LIBCURL_PROTOCOL_HTTPS],[Defined if libcurl supports HTTPS]) AH_TEMPLATE([LIBCURL_PROTOCOL_FTP],[Defined if libcurl supports FTP]) AH_TEMPLATE([LIBCURL_PROTOCOL_FTPS],[Defined if libcurl supports FTPS]) AH_TEMPLATE([LIBCURL_PROTOCOL_FILE],[Defined if libcurl supports FILE]) AH_TEMPLATE([LIBCURL_PROTOCOL_TELNET],[Defined if libcurl supports TELNET]) AH_TEMPLATE([LIBCURL_PROTOCOL_LDAP],[Defined if libcurl supports LDAP]) AH_TEMPLATE([LIBCURL_PROTOCOL_DICT],[Defined if libcurl supports DICT]) AH_TEMPLATE([LIBCURL_PROTOCOL_TFTP],[Defined if libcurl supports TFTP]) AH_TEMPLATE([LIBCURL_PROTOCOL_RTSP],[Defined if libcurl supports RTSP]) AH_TEMPLATE([LIBCURL_PROTOCOL_POP3],[Defined if libcurl supports POP3]) AH_TEMPLATE([LIBCURL_PROTOCOL_IMAP],[Defined if libcurl supports IMAP]) AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP]) AC_ARG_WITH(libcurl, AS_HELP_STRING([--with-libcurl=PREFIX],[look for the curl library in PREFIX/lib and headers in PREFIX/include]), [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])]) if test "$_libcurl_with" != "no" ; then AC_PROG_AWK _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'" _libcurl_try_link=yes if test -d "$_libcurl_with" ; then LIBCURL_CPPFLAGS="-I$withval/include" _libcurl_ldflags="-L$withval/lib" AC_PATH_PROG([_libcurl_config],[curl-config],[], ["$withval/bin"]) else AC_PATH_PROG([_libcurl_config],[curl-config],[],[$PATH]) fi if test x$_libcurl_config != "x" ; then AC_CACHE_CHECK([for the version of libcurl], [libcurl_cv_lib_curl_version], [libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $[]2}'`]) _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse` if test $_libcurl_wanted -gt 0 ; then AC_CACHE_CHECK([for libcurl >= version $2], [libcurl_cv_lib_version_ok], [ if test $_libcurl_version -ge $_libcurl_wanted ; then libcurl_cv_lib_version_ok=yes else libcurl_cv_lib_version_ok=no fi ]) fi if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then if test x"$LIBCURL_CPPFLAGS" = "x" ; then LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` fi if test x"$LIBCURL" = "x" ; then LIBCURL=`$_libcurl_config --libs` # This is so silly, but Apple actually has a bug in their # curl-config script. Fixed in Tiger, but there are still # lots of Panther installs around. case "${host}" in powerpc-apple-darwin7*) LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` ;; esac fi # All curl-config scripts support --feature _libcurl_features=`$_libcurl_config --feature` # Is it modern enough to have --protocols? (7.12.4) if test $_libcurl_version -ge 461828 ; then _libcurl_protocols=`$_libcurl_config --protocols` fi else _libcurl_try_link=no fi unset _libcurl_wanted fi if test $_libcurl_try_link = yes ; then # we didn't find curl-config, so let's see if the user-supplied # link line (or failing that, "-lcurl") is enough. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} AC_CACHE_CHECK([whether libcurl is usable], [libcurl_cv_lib_curl_usable], [ _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBCURL $LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]],[[ /* Try and use a few common options to force a failure if we are missing symbols or can't link. */ int x; curl_easy_setopt(NULL,CURLOPT_URL,NULL); x=CURL_ERROR_SIZE; x=CURLOPT_WRITEFUNCTION; x=CURLOPT_WRITEDATA; x=CURLOPT_ERRORBUFFER; x=CURLOPT_STDERR; x=CURLOPT_VERBOSE; if (x) {;} ]])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no) CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs ]) if test $libcurl_cv_lib_curl_usable = yes ; then # Does curl_free() exist in this version of libcurl? # If not, fake it with free() _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBS $LIBCURL" AC_CHECK_FUNC(curl_free,, AC_DEFINE(curl_free,free, [Define curl_free() as free() if our version of curl lacks curl_free.])) CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs AC_DEFINE(HAVE_LIBCURL,1, [Define to 1 if you have a functional curl library.]) AC_SUBST(LIBCURL_CPPFLAGS) AC_SUBST(LIBCURL) for _libcurl_feature in $_libcurl_features ; do AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1]) eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes done if test "x$_libcurl_protocols" = "x" ; then # We don't have --protocols, so just assume that all # protocols are available _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" if test x$libcurl_feature_SSL = xyes ; then _libcurl_protocols="$_libcurl_protocols HTTPS" # FTPS wasn't standards-compliant until version # 7.11.0 (0x070b00 == 461568) if test $_libcurl_version -ge 461568; then _libcurl_protocols="$_libcurl_protocols FTPS" fi fi # RTSP, IMAP, POP3 and SMTP were added in # 7.20.0 (0x071400 == 463872) if test $_libcurl_version -ge 463872; then _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" fi fi for _libcurl_protocol in $_libcurl_protocols ; do AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1]) eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes done else unset LIBCURL unset LIBCURL_CPPFLAGS fi fi unset _libcurl_try_link unset _libcurl_version_parse unset _libcurl_config unset _libcurl_feature unset _libcurl_features unset _libcurl_protocol unset _libcurl_protocols unset _libcurl_version unset _libcurl_ldflags fi if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then # This is the IF-NO path ifelse([$4],,:,[$4]) else # This is the IF-YES path ifelse([$3],,:,[$3]) fi unset _libcurl_with ])dnl dopewars-1.6.2/m4/lt~obsolete.m4000644 000765 000024 00000013756 14256000065 016421 0ustar00benstaff000000 000000 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # 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. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) dopewars-1.6.2/m4/lib-ld.m4000644 000765 000024 00000012372 14256000065 015203 0ustar00benstaff000000 000000 # lib-ld.m4 serial 9 dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid dnl collision with libtool.m4. dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 /dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi if test -n "$LD"; then AC_MSG_CHECKING([for ld]) elif test "$GCC" = yes; then AC_MSG_CHECKING([for ld used by $CC]) elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi if test -n "$LD"; then # Let the user override the test with a path. : else AC_CACHE_VAL([acl_cv_path_LD], [ acl_cv_path_LD= # Final result of this test ac_prog=ld # Program to search in $PATH if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) acl_output=`($CC -print-prog-name=ld) 2>&5` ;; esac case $acl_output in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` done # Got the pathname. No search in PATH is needed. acl_cv_path_LD="$acl_output" ac_prog= ;; "") # If it fails, then pretend we aren't using GCC. ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac fi if test -n "$ac_prog"; then # Search for $ac_prog in $PATH. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 = $min_sdl_version], [sdl_pc=yes], [sdl_pc=no]) else sdl_pc=no if test x$sdl_exec_prefix != x ; then sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" if test x${SDL2_CONFIG+set} != xset ; then SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config fi fi if test x$sdl_prefix != x ; then sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" if test x${SDL2_CONFIG+set} != xset ; then SDL2_CONFIG=$sdl_prefix/bin/sdl2-config fi fi fi if test "x$sdl_pc" = xyes ; then no_sdl="" SDL2_CONFIG="pkg-config sdl2" else as_save_PATH="$PATH" if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then PATH="$prefix/bin:$prefix/usr/bin:$PATH" fi AC_PATH_PROG(SDL2_CONFIG, sdl2-config, no, [$PATH]) PATH="$as_save_PATH" AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) no_sdl="" if test "$SDL2_CONFIG" = "no" ; then no_sdl=yes else SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags` SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs` sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_sdltest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" dnl dnl Now check if the installed SDL is sufficiently new. (Also sanity dnl checks the results of sdl2-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*** 'sdl2-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 sdl2-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); printf("*** to point to the correct copy of sdl2-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" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_sdl" = x ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi fi if test "x$no_sdl" = x ; then ifelse([$2], , :, [$2]) else if test "$SDL2_CONFIG" = "no" ; then echo "*** The sdl2-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 SDL2_CONFIG environment variable to the" echo "*** full path to sdl2-config." else if test -f conf.sdltest ; then : else echo "*** Could not run SDL test program, checking why..." CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" 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 sdl2-config script: $SDL2_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" 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 ]) dopewars-1.6.2/m4/host-cpu-c-abi.m4000644 000765 000024 00000053640 14256000065 016556 0ustar00benstaff000000 000000 # host-cpu-c-abi.m4 serial 13 dnl Copyright (C) 2002-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible and Sam Steingold. dnl Sets the HOST_CPU variable to the canonical name of the CPU. dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its dnl C language ABI (application binary interface). dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in dnl config.h. dnl dnl This canonical name can be used to select a particular assembly language dnl source file that will interoperate with C code on the given host. dnl dnl For example: dnl * 'i386' and 'sparc' are different canonical names, because code for i386 dnl will not run on SPARC CPUs and vice versa. They have different dnl instruction sets. dnl * 'sparc' and 'sparc64' are different canonical names, because code for dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit dnl mode, but not both. dnl * 'mips' and 'mipsn32' are different canonical names, because they use dnl different argument passing and return conventions for C functions, and dnl although the instruction set of 'mips' is a large subset of the dnl instruction set of 'mipsn32'. dnl * 'mipsn32' and 'mips64' are different canonical names, because they use dnl different sizes for the C types like 'int' and 'void *', and although dnl the instruction sets of 'mipsn32' and 'mips64' are the same. dnl * The same canonical name is used for different endiannesses. You can dnl determine the endianness through preprocessor symbols: dnl - 'arm': test __ARMEL__. dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL. dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN. dnl * The same name 'i386' is used for CPUs of type i386, i486, i586 dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because dnl - Instructions that do not exist on all of these CPUs (cmpxchg, dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your dnl assembly language source files use such instructions, you will dnl need to make the distinction. dnl - Speed of execution of the common instruction set is reasonable across dnl the entire family of CPUs. If you have assembly language source files dnl that are optimized for particular CPU types (like GNU gmp has), you dnl will need to make the distinction. dnl See . AC_DEFUN([gl_HOST_CPU_C_ABI], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_C_ASM]) AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi], [case "$host_cpu" in changequote(,)dnl i[34567]86 ) changequote([,])dnl gl_cv_host_cpu_c_abi=i386 ;; x86_64 ) # On x86_64 systems, the C compiler may be generating code in one of # these ABIs: # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 # with native Windows (mingw, MSVC). # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if (defined __x86_64__ || defined __amd64__ \ || defined _M_X64 || defined _M_AMD64) int ok; #else error fail #endif ]])], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __ILP32__ || defined _ILP32 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=x86_64-x32], [gl_cv_host_cpu_c_abi=x86_64])], [gl_cv_host_cpu_c_abi=i386]) ;; changequote(,)dnl alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) changequote([,])dnl gl_cv_host_cpu_c_abi=alpha ;; arm* | aarch64 ) # Assume arm with EABI. # On arm64 systems, the C compiler may be generating code in one of # these ABIs: # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef __aarch64__ int ok; #else error fail #endif ]])], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __ILP32__ || defined _ILP32 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=arm64-ilp32], [gl_cv_host_cpu_c_abi=arm64])], [# Don't distinguish little-endian and big-endian arm, since they # don't require different machine code for simple operations and # since the user can distinguish them through the preprocessor # defines __ARMEL__ vs. __ARMEB__. # But distinguish arm which passes floating-point arguments and # return values in integer registers (r0, r1, ...) - this is # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which # passes them in float registers (s0, s1, ...) and double registers # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer # sets the preprocessor defines __ARM_PCS (for the first case) and # __ARM_PCS_VFP (for the second case), but older GCC does not. echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c # Look for a reference to the register d0 in the .s file. AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then gl_cv_host_cpu_c_abi=armhf else gl_cv_host_cpu_c_abi=arm fi rm -f conftest* ]) ;; hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) # On hppa, the C compiler may be generating 32-bit code or 64-bit # code. In the latter case, it defines _LP64 and __LP64__. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef __LP64__ int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=hppa64], [gl_cv_host_cpu_c_abi=hppa]) ;; ia64* ) # On ia64 on HP-UX, the C compiler may be generating 64-bit code or # 32-bit code. In the latter case, it defines _ILP32. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef _ILP32 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=ia64-ilp32], [gl_cv_host_cpu_c_abi=ia64]) ;; mips* ) # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this # at 32. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=mips64], [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but # may later get defined by ), and _MIPS_SIM == _ABIN32. # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but # may later get defined by ), and _MIPS_SIM == _ABIO32. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if (_MIPS_SIM == _ABIN32) int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=mipsn32], [gl_cv_host_cpu_c_abi=mips])]) ;; powerpc* ) # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. # No need to distinguish them here; the caller may distinguish # them based on the OS. # On powerpc64 systems, the C compiler may still be generating # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may # be generating 64-bit code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __powerpc64__ || defined _ARCH_PPC64 int ok; #else error fail #endif ]])], [# On powerpc64, there are two ABIs on Linux: The AIX compatible # one and the ELFv2 one. The latter defines _CALL_ELF=2. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined _CALL_ELF && _CALL_ELF == 2 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=powerpc64-elfv2], [gl_cv_host_cpu_c_abi=powerpc64]) ], [gl_cv_host_cpu_c_abi=powerpc]) ;; rs6000 ) gl_cv_host_cpu_c_abi=powerpc ;; riscv32 | riscv64 ) # There are 2 architectures (with variants): rv32* and rv64*. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if __riscv_xlen == 64 int ok; #else error fail #endif ]])], [cpu=riscv64], [cpu=riscv32]) # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. # Size of 'long' and 'void *': AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __LP64__ int ok; #else error fail #endif ]])], [main_abi=lp64], [main_abi=ilp32]) # Float ABIs: # __riscv_float_abi_double: # 'float' and 'double' are passed in floating-point registers. # __riscv_float_abi_single: # 'float' are passed in floating-point registers. # __riscv_float_abi_soft: # No values are passed in floating-point registers. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __riscv_float_abi_double int ok; #else error fail #endif ]])], [float_abi=d], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __riscv_float_abi_single int ok; #else error fail #endif ]])], [float_abi=f], [float_abi='']) ]) gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}" ;; s390* ) # On s390x, the C compiler may be generating 64-bit (= s390x) code # or 31-bit (= s390) code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __LP64__ || defined __s390x__ int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=s390x], [gl_cv_host_cpu_c_abi=s390]) ;; sparc | sparc64 ) # UltraSPARCs running Linux have `uname -m` = "sparc64", but the # C compiler still generates 32-bit code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __sparcv9 || defined __arch64__ int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=sparc64], [gl_cv_host_cpu_c_abi=sparc]) ;; *) gl_cv_host_cpu_c_abi="$host_cpu" ;; esac ]) dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same. HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'` HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi" AC_SUBST([HOST_CPU]) AC_SUBST([HOST_CPU_C_ABI]) # This was # AC_DEFINE_UNQUOTED([__${HOST_CPU}__]) # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__]) # earlier, but KAI C++ 3.2d doesn't like this. sed -e 's/-/_/g' >> confdefs.h <]], [[CFPreferencesCopyAppValue(NULL, NULL)]])], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Don't check for the API introduced in Mac OS X 10.5, CFLocaleCopyCurrent, dnl because in macOS 10.13.4 it has the following behaviour: dnl When two or more languages are specified in the dnl "System Preferences > Language & Region > Preferred Languages" panel, dnl it returns en_CC where CC is the territory (even when English is not among dnl the preferred languages!). What we want instead is what dnl CFLocaleCopyCurrent returned in earlier macOS releases and what dnl CFPreferencesCopyAppValue still returns, namely ll_CC where ll is the dnl first among the preferred languages and CC is the territory. AC_CACHE_CHECK([for CFLocaleCopyPreferredLanguages], [gt_cv_func_CFLocaleCopyPreferredLanguages], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFLocaleCopyPreferredLanguages();]])], [gt_cv_func_CFLocaleCopyPreferredLanguages=yes], [gt_cv_func_CFLocaleCopyPreferredLanguages=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1], [Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) dopewars-1.6.2/po/es_ES.gmo000644 000765 000024 00000246416 14256243623 015417 0ustar00benstaff000000 000000 2C<3HDID?DHE"gEE5E5EFF.GNHTHdH~HHI&I$DI'iI'I I IIIIJ1JHJhJJJJ#J$JK0KDKXKkK K KKKKK+KK(LBL=M]MvMMMMM M M M N NN'N ;NFN\NpN!NNN%NNO0OGObO O OOOO P#P6PTP rP/PPP$PPPPQ QQQ$Q,Q ;Q HQTQqQQQQ QQQQQR!R2RCR WRaRhRoRvR}R R#RRR(R"S;#S_SyS SSS-SSST$T x&hxxxx$x'xy:yRy)ky"y yyy/y$z3/r4& 3 F>GG? U,v!> DN,V "=#X|).?O(3xP))'.Q<,290.j@2 %)MO 2 ,<,0i!(#4 >Vt %PA*#$*9'd$< *+ <"Il,#*'$Ch1C $! Fg|+'Sf%u(. (+TZ c"qu8-f"<* 1'N3v!)*$?d x9'$(MVY)y  = 3DF, '0D&`%& 7,Ed@fR$e   -BK[ d!n.!/Rd l v-L:  W 7x &    + =G 3 '    " 71 i      6 0 8  A 6N # "   6  $1 V  [{019?*6j=?EFe=TP?K5;2N7K7W _k$  22=*p.-)'"J?d:3#871p.F]B},'&4K[#C;gL.?5[=.''&NKe`D P#d !C891k-AE$8P] -)6 &I 4p     '0/00K1P18e111C1122 22*3B314 J4T4[4r444'44)5-5-@5;n5.5 5+5&6+,6*X6)6.6-6, 7<77t77747C7^8$o8688*8919594:R:8p:9:7:@;$\;;4;4; <>$<c<}< =;$=;`=8====>N/>,~>->>8>)?G?^?4x?&?&?D?B@@H@2@5@ 5A ?AMA UA aAkA {AA AAAAAAA AA AAAB.B(3B%\BBB&BBB-C1MCC%C&CC$D()D"RD$uDDDDDMDEE!E *E4E=EFE;fEEEELIyIFJ\JbJ iJ8tJJJJJ JGJ :KGK7OKK KKK KKK<L9=LEwLLLLL MR(P #vIM:G2&~&P);h*"x_Vhg8AO  P.[(jO'4bd5jt0b< lY!7EgD`Ui)\+As. %?UMx $y_n)TjaJ0ts6Sra9|:=>H2B*iH"QfdTF2w<tv*{F~D74Enc3k ]u=D$3m9a0rHXGX/!qc+1`%r --oZ( =JU0SWg$m@'qB e"L@z2~bfTc  -,,1qio_}YGK^,>#AI".&?V$;Jdl  X3z8w :Cv]LwO?Q^uyf*%1@.e#\R;kKYmxW\Z {})&'}/ VpyWC 8N+6Qo+|<1ERuBKs`kC#NF%Z[!-S nI,9>7/lphL!]z6e(|^M5N 4[/{p 5 ' For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%d. %tde%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAuthenticating with SOCKS serverAuthenticating with SOCKS server Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBad metaserver reply "%s"BankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialize WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armorCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armorDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaServer: %sMetaserverMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for SOCKS5 authenticationPassword: Pay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication canceled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colors (by default colors are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colors --no-colour (by default colors are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for SOCKS5 authenticationUsers currently logged on:- Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License Waiting for connect to metaserver at %s...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, https://dopewars.sourceforge.io/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initializedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, https://dopewars.sourceforge.io/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: es_ES Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2003-12-10 09:48+0100 Last-Translator: Quique Language-Team: Castilian aka Spanish Language: es_ES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 Para obtener información sobre las opciones en la línea de órdenes, escribe dopewars -h en tu terminal Unix. Esto mostrará una pantalla de ayuda con las opciones disponibles. L>istar los servidores que hay en el metaservidor, y elegir uno S>alir (puedes iniciar un servidor tecleando «dopewars -s») o J>ugar en modo 1 jugador? I>rse a tomar por culo E>spiar a otro camello (precio: %P) S>oplarse a la bofia de otro camello (precio: %P) -h mostrar esta información de ayuda -v mostrar información sobre la versión y salir dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU GPL Informa de fallos al autor escribiendo a benwebb@users.sf.net -h, --help mostrar esta información de ayuda -v, --version mostrar información sobre la versión y salir dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU GPL Informa de fallos al autor escribiendo a benwebb@users.sf.net -u fichero usar módulo de sonido "fichero" -u, --plugin=FICHERO usar módulo de sonido "FICHERO" ¿Estás seguro? ¡Te encuentras %P en el cuerpo! ¡Le robas al cadaver!Éste es el registro de arranque de dopewars, que contiene todos los mensajes de información resultantes de procesar el fichero de configuración, etc. €% de resistencia a disparos de cada puta% de resistencia a disparos de cada poli% de resistencia a disparos de cada ayudante% de resistencia a disparos de cada jugador%-22tde %3d%-7tde %3d%-7tde %3d a %P%/Título de la ventana del banco/%Tde%/Enfrentamiento: Putas/%d %tde%/Ubicación actual/%tde%c. %tde%/GTK Ventana de la armería/%Tde%/GTK Stats: Putas/%Tde%/Título de la ventana del usurero/%Tde%/Location display/%tde%/Lugar al que pirarse/%tde%/Título del diálogo Echar a una puta/Echar a una %Tde%/Elemento de menú echar a una puta/E_char a una %Tde...%/Espía: Drogas/%Tde...%/Espía: Armas/%Tde...%/Situación: Drogas/%Tde%Tde%Tde %5d Espacio %4d%Tde que tienes%Tde aquí%d de %d%d. %tde%d-%m-%Y¡%s - %s - te está dando caza, colega!¡%s y %d %tde - %s - te están persiguiendo, colega!¡%s llega con %d %tde, %s!%s no puede ser menor de %d - se ignora%s no parece ser un fichero de puntuaciones válido - por favor, compruébalo. Si es un fichero de puntuaciones de una versión antigua de dopewars, conviértela al nuevo formato ejecutando la orden «dopewars -C %s» en la línea de órdenes.¡%s ha aceptado tu %tde!^Usa la tecla G para contactar con tu espía.¡%s ha conseguido escapar %tal!¡%s ha conseguido escapar!%s ha dejado el juego.%s ha dejado el juego. ¡%s ha rechazado tu %tde!¡%s te ha dado, co!%s es "%s" %s es %P %s es %d %s es %s %s es { ¡%s se une al juego!%s se une a la partida. %s asesinado ¡%s deja el servidor!%s espía ahora a %s%s mata a %s.%s dispara a %s ¡y mata a una %tde!%s dispara a %s.%s dispara a %s... ¡y falla!%s te dispara... ¡y se carga a una %tde!%s te dispara... ¡y falla!espionaje de %s a %s: DENEGADO%s se levanta y lo cogeChivatazo de %s sobre %s: DENEGADO%s se chivó a la poli de %s%s intenta huir, pero no lo consigue.¡%s se te ha picado, tío! Descansa en paz...%s es ahora conocido como %s%s es ahora conocido como %s.%s: DENEGADO largarse a %s%s: Oferta de espionaje de %s%s: Chivatazo de %s%s: la oferta era en nombre de %s%s: el chivatazo de %s acabó bien.%s[%d] es %s %s^¡%s ya está aquí!^¿Quieres Atacar o Huir?(%s disponible) (Muertas)(No se puede mostrar el error en UTF-8)(Quedan)(R.I.P.), T>irar, E>nfrentarte, M>andar recado, D>arte el piro, L>istar, P>ulir, H>ablar a todos, hablar a un J>ugador, o S>alir? Kalashnikov/Recados/_Obtener información de las espías.../Recados/_Espiar.../Recados/_Chivarse a la policía.../Juego/Habilitar _sonido/Juego/_Abandonar partida.../Juego/_Nueva partida.../Juego/_Opciones.../Juego/_Salir.../Ayuda/_Acerca de.../Listar/_Inventario.../Listar/_Jugadores.../Listar/_Puntuaciones.../Hablar/_Hablar a todos.../Hablar/Hablar al _Jugador.../_Recados/_Juego/_Ayuda/_Listar/_Hablar<- _Pulir¿Te imaginas como sería la vida si no hubiera drogas?Un mono amaestrado lo haría mejor...A:AtacarAHJugador automático asesinado. Cerrando de manera normal. El jugador automático ha sido expulsado del servidor. Iniciado el jugador automático; intentando conectarse al servidor en %s:%d.Jugador automático suicidado con éxito. ¿Abandonar esta partida?Abandonar esta partidaAcerca de DopewarsTripis¡Los yonquis están comprando %tde a precios absurdos!La dirección ya está en usoFamilia de direcciones no soportadaOrden de administración: %sConexión de administración cerradaJefe BiggumCantidad de dinero con la que empieza cada jugadorImporte de la deuda con la que empieza cada jugador¿Te has metido algo?¿Estás seguro de que quieres salir? ¿Estás seguro? (Perderás todas las %tde y %tde que te esté guardando esta %tde!)Pidiendo SOCKS para conectarse a %s...Pidiendo SOCKS para conectarse a %s... Penalización de ataque relativa a un jugadorIntentos para conectarse al metaservidor demasiado frecuentes - esperando al siguiente turnoAutenticando contra el servidor SOCKSAutenticándose con el servidor SOCKS Autenticación del nombre local con el metaservidorEspacio disponible: %dCPTHJLMEDSCPDRespuesta del metaservidor incorrecta «%s»BancoEl banco está en %s Banco: %P.38 SpecialBasado en el juego Drug Wars de John E. Dell, dopewars es una simulaciónBasado en el juego Drug Wars de John E. Dell, dopewars es una simulación de un mercado de la droga imaginario. Dopewars es un juego para toda la familia que consiste en la compraventa de droga y en intentar evitar a la policía. Lo primero que tienes que hacer es saldar la deuda con tu usurero. Después, tu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!) Tienes un mes de tiempo de juego para amasar tu fortuna. Ser prolijo al procesar el fichero de configuraciónQuiqueLa Paz_al_a La PazEl Gancho_al_al GanchoInspeccionar...ComprarComprar %tde¿Cuánto quieres comprar?Comprando %d %tde a %P Comprando un %tde por %P en la armería CLSJ¿Y tú te haces llamar camello?Puede ser especialmente barataPuede ser especialmente caraNo se puede conectar al puerto %u (%s). Cancelando.No se ha podido crear la copia de respaldo(%s) del fichero de máximas puntuaciones %s.No se puede crear el fichero pid %s: %sNo se puede crear el socket (%s) (a la escucha) del servidor. Cancelando.No se pueden obtener los detalles del metaservidor¡No se puede inicializar WinSock (%s)!¡No se puede instalar el gestor de interrupción SIGHUP!¡No se puede instalar el gestor de interrupción SIGINT!¡No se puede instalar el gestor de interrupción SIGTERM!¡No se puede instalar el gestor de interrupción SIGUSR1!¡No se puede instalar el gestor de interrupción SIGWINCH!¡No se puede instalar el gestor de tuberías!No se puede escuchar el socket de red. Cancelando.No se puede abrir el fichero de máximas puntuaciones %s. (%s.) Asegúrate de que tienes permisos para acceder a este fichero o directorio, o bien indica otro fichero de puntuaciones con la opción -f en la línea de órdenes.No se ha podido abrir el fichero de puntuaciones %s: %s.No se puede alcanzar la redNo se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!PastaPasta en efectivo: %PParque Bruil_al_al Parque BruilCambiar nombreFrase barataElige un recado que encargar a una de tus %tde...FarlopaHa llegado la cosecha. ¡El precio de la marihuana está por los suelos!Orden:ComentarioComentario: %sDelicias_al_a las DeliciasLa configuración sólo se puede cambiar interactivamente cuando no hay ningún jugador conectado. Espera a que se desconecten todos los jugadores, o elimínalos con las órdenes echar o matar, e inténtalo otra vez.El fichero de configuración se ha guardado con éxito como %s ¡Enhorabuena! ¡Has conseguido una de las máximas puntuaciones!Conectado al servidor SOCKS %s...Conectado al servidor SOCKS %s... La conexión se ha roto debido a un falloConexión cerrada por el servidor remoto.Conexión rechazada por las reglas de SOCKSSe ha roto la conexión debido a que se ha llenado la memoria intermedia (full buffer).Se ha establecido la conexión Conexión establecida. Usa Ctrl-D para cerrar la sesión. Conexión rechazadaConexión rota por el servidor remotoSe ha perdido la conexión con el servidor - pasando al modo 1 jugador¡Se ha roto la conexión con el servidor! Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador.Críticas constructivasCríticas constructivas Andrea Elliot-Smith Pete WinnControla el número de mensajes de registro producidosBlindaje del maderoMaderos¡Los maderos no pueden atacar a otros maderos!¡La pestañí ha hecho una gran redada de %tde! ¡Los precios son exorbitantes!El fichero de puntuaciones está corrupto :-(Coste de enviar a una puta a espiar al enemigoCoste de enviar a una puta a dar información sobre el enemigo a la poliNo se ha podido conectar al servidor dopewars (%s) El jugador automático se suicida.No se ha podido determinar el fichero de configuración local en que escribirNo se ha podido abrir el fichero %s: %sNo se ha podido establecer el socket de dominio Unix para conexiones de administración - comprueba los permisos en /tmp.No se puede iniciar dopewars en modo multijugadorEl PP es lo más rancio y retrógrado que ha parido madre. ¿O no?Símbolo de dineroCurrency.Prefix=FALSED O P E W A R SP>ulir %tde, PCLESISLTasa de interés diaria de la deuda con el usureroTipo de interés diario de tu saldo en el bancoDañoDaño ocasionado por cada armala armeríaDía del mes en el que empieza el juegoPufoDeuda de %P pagada al usurero Pufo: %PPenalización de defensa relativa a un jugadorBorrarIngresarBlindaje del ayudanteDescripciónDivisor del precio de la droga cuando es especialmente barata¿Quieres ¿Huyes o te enfrentas?¿Echas a correr?¿Quieres I>ngresar dinero, S>acar dinero o L>argarte?¿Tu madre sabe que eres un camello?AbajoTirarTirar %tde¿Cuánto quieres tirar?Compraventa de drogas e investigaciónCompraventa de drogas e investigación Dan Wolf DrogasDe la piel para dentro usted es su único soberano. ¡Y las drogas son sus amigas!H:HuirTraducción al españolTraducción al español QuiqueErrorNo se ha podido leer la tabla de puntuaciones del fichero %sSe han encontrado errores al leer el fichero de configuración. Como resultado, puede que algunas preferencias no funcionen de la manera esperada. Puedes mirar los mensajes en la salida estándar para conocer más detalles.Se han encontrado errores al leer el fichero de configuración. Como resultado, algunas preferencias podrían no funcionar de la manera esperada. Puedes consultar el fichero «dopewars-log.txt» para conocer los detalles.Frase cara 1Frase cara 2Testeo intensivo del juegoTesteo intensivo del juego Katherine Holt Caroline MooreE:EnfrentarseL>uchar, No se ha podido conectar al metaservidor en %s (%s)No se ha podido contactar con el servidor de nombresNo se ha podido enviar el mensaje de notificación de servicioNo se ha podido registrar el gestor de servicioNo se ha podido establecer el estado del Servicio NTNo se ha podido iniciar el Servicio NTEnfrentarseFichero en el que escribir los mensajes de registroSiguiendo tu chivatazo, la pasma va a por %s, que escapa con %d %tde. Siguiendo tu chivatazo, la bofia va a por %s, ¡le disparan y la palma!Para conocer las opciones en la línea de órdenes, escribe dopewars -hLínea utilizada para drogas que sean caras el 50% de las vecesDuración de la partida (turnos)Se ha agotado el tiempo de juego. Saliendo. GeneralBarrio Oliver_al_al Barrio OliverLa armería está en %s ArmasArmas recargadas...P U N T U A C I O N E SCostoTú sales en la tele, ¿verdad?SaludSalud: %dCaballoEh, tío. Los precios de las %tde aquí son:Eh tío, ¿cuál es tu _nombre?Eh tío, ¿cómo te llamas? PuntuacionesNombre del servidorServidor no encontradoNombre del servidor: ¿Cuánto quieres? ¿Cuántas quieres tirar? ¿Cuánto quieres vender? ¿Cuánto dinero quieres devolver? ¿Cuánto dinero? Soy Carlos Jesús, y vengo de Raticulín.Estoy hecha polvo, me voy a la cama. ¿Vienes?No somos más que un montón de átomos moviéndose en la nada.Los anuncios de compresas usan la regla de la reina: la sangre siempre es azul.Pero ¿por qué llevas gafas de sol si es de noche?Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... chocolate.Yo no he sido siempre una mujer, ¿sabes?Te vendo una chupa de cuero por 30 euros.Apuesto a que tienes sueños superinteresantes`Cuestiona la autoridad; piensa por ti mismo` dijo Tim LearyIconos y gráficos Ocelot MantisIconos y gráficosSi TRUE, el símbolo de dinero va antes del precioSi TRUE, el servidor se minimiza a la bandeja del sistemaSi TRUE, el servidor funciona en segundo planoSi no se deja en blanco, el nombre de usuario a usar para SOCKS4El índice en la cadena %s debe estar entre 1 y %dCódigo de error interno %dError interno del metaservidor «%s»Seleccionado módulo «%s» no válido. (%s disponible, ahora usando «%s».)InventarioInventarioEspero que no te importe, pero voy a rezar por ti.Ir al barrio:Yendo %talYendo %tal con %P en efectivo y %P de deuda Si te ofrecen droga, di "no", que somos muchos y queda poca.¡Mi cuerpo es mío y en él meto lo que quiero!Lista de canciones que oyes tocarLista de cosas que puedes dejar de hacerLista de cosas que oyes en el metro¿Qué lista quieres? ¿J>ugadores o P>untuaciones? El usurero está en %s Documentación local en HTML Ubicación del usureroUbicación del bancoUbicación de la armeríaUbicación del barSitiosBarbitúricosPirulosMOTD (mensaje de bienvenida)Manteniendo el fichero pid %sZona pija_al_a la Zona pijaAlcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexiónNúmero máximo de ayudantesNúmero máximo de distintos tipo de drogaMáximo precio normalPrecio máximo normal de cada drogaNúmero máximo de conexiones TCP/IPNúmero máximo de ayudantes acompañantesMáximo número de drogas en cada lugarPrecio máximo de contratar una putaMensajeMensaje a mostrar cuando esta droga sea especialmente barataMensaje:-Mensajes (-/+ desplaza hacia arriba/abajo)Metaservidor: %sMetaservidorMinimizar a la bandeja del sistemaNúmero mínimo de ayudantesNúmero mínimo de distintas clases de drogaMínimo precio normalPrecio mínimo normal de cada drogaNúmero mínimo de ayudantes acompañantesNúmero mínimo de drogas en cada sitioPrecio mínimo de contratar una putaMes en el que empieza el juegoMultiplicador para las drogas especialmente carasN:NoS>iguiente servidor: A>nterior servidor; E>scoger este servidor... SAENombreNombre de cada poliNombre de los ayudantes de cada poliNombre del ayudante de cada poliNombre de cada drogaNombre de cada armaNombre de cada lugarNombre de una putaNombre de un ayudanteNombre de varias putasNombre de varios ayudantesNombre del bancoNombre de la armeríaNombre del fichero de máximas puntuacionesNombre del usureroNombre del barNombre del servidor al que conectarseError del servidor de nombres código %dDirección de red del servidor al que escucharError de red código %dPuerto de red al que conectarseEl subsistema de red no está preparado.NuevoNuevo %sNueva partidaNueva conexión de administraciónNuevo nombre: ¡No hay armas ni maderos!El cliente curses no está disponible - vuelve a construir el binario pasando la opción --enable-curses-client a configure, o usa una versión gráfica (si es posible) es su lugar. El cliente gráfico no está disponible - vuelve a construir el binario pasando la opción --enable-gui-client a configure, o usa el cliente curses (si está disponible) en su lugar. ¡No hay ningún otro jugador conectado en este momento!¡No existe ese usuario! No hay ningún usuario conectado. Número de rondas de juego (si es 0, el juego nunca termina)Número de segundos para devolver disparosNúmeroNúmero de drogas en el juegoNúmero de armas en el juegoNúmero de pistolas que porta cada poliNúmero de pistolas con las que carga cada ayudanteNúmero de sitios en el juegoNúmero de canciones que se tocanNúmero de cosas que se dicen en el metroNúmero de cosas que puedes dejar de hacerNúmero de tipos de poli en el juegoComisario RomeralesAgente MatuteAh, tú debes ser gallegoUna de tus %tde estaba espiando para %s. ^¡La espía %s!Operación no soportadaOpioOpcionesYa no queda memoria intermedia (buffer)Ya no quedan descriptores de ficheroKetaminaJP¡Pánico! ¡No puedes escapar!Contraseña para la autenticación SOCKS5Contraseña: Pagar todoSaldar:PeyoteJugarTesteo del juegoTesteo del juego Phil Davis Owen Walsh¿Jugar otra vez? Lista de jugadoresJugador eliminado debido a que se agotó el tiempo para la conexiónJugador eliminado: demasiado tiempo inactivoJugadores¡Los jugadores ya están en una pelea!¡Los jugadores ya están en sus propias peleas!Los jugadores son desconectados después de este número de segundosJugadores conectados en este momento:-Jugadores en esta partida:- Jugadores: %d (máximo %d)Jugadores: -desconocido- (máximo %d)Por favor, elige al jugador al quieres espiar. Tu %tde ofrecerá sus servicios a ese jugador, y si tiene éxito, podrás ver la situación del jugador con el menú "Obtener informes de las espías" Recuerda que la %tde se va, así que puedes perder todas las %tde o %tde que te esté guardando.Por favor, elige al jugador del que quieres chivarte a la pasma. Tu %tde ayudará a los maderos a atacar a ese jugador, y te informará del resultado cuando os encontreis. Recuerda que la %tde se va a ir temporalmente, así que puedes perder todas las %tde o %tde que te esté guardando.Introduce el nombre y puerto de un servidor doperwars:-Por favor, espera... intentando contactar con el servidor dopewars...Por favor, espera... intentando contactar con el metaservidor...¡Los perros de la bofia te persiguen durante %d manzanas! ¡Pierdes algo de %tde! Vaya mierda, macho.Presencia policialPresencia policial en cada sitio (%)PuertoPuerto : %dPuerto: El nombre de tu servidorPulsa cualquier tecla...PrecioPrecio de cada armaProtocolo no soportadoEl bar está en %s Echando a %s Torrero_al_a TorreroPreguntaSalir del juegoC:CorrerC>orrer, Se limpian los eventos aleatoriosVoy a tener que dispararte por tu propio bien.Eliminar las referencias a drogasEstructura lista redimensionada a %d elementos ¡Alguien ha dado un palo en una farmacia y está vendiendo barbitúricos baratos!Colt 45M E T R OE>sperar, Se precisa autenticación SOCKSAutenticación SOCKS cancelada por el usuarioError de autenticación SOCKSSe requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)Código de error de SOCKS %dError general del servidor SOCKSEl servidor SOCKS rechazó todos los métodos ofrecidosSOCKS: Tipo de dirección no soportadoSOCKS: Orden no soportadaSOCKS: Conexión rechazadaSOCKS: No se llega al servidorSOCKS: No se llega a la redSOCKS: Rechazada - identd informa de diferentes ID de usuarioSOCKS: Rechazada - no se ha podido contactar identdSOCKS: Solicitud rechazada o sin éxitoSOCKS: se agotó el tiempoESICNPasando de una oferta aleatoriaSmith & WessonSegundos entre los turnos de los jugadores automáticosSeleccionar fichero de sonidoPulirPulir %tde¿Cuánto quieres pulir?Vendiendo %d %tde a %P EnviarEnviando actualizaciones pendientes al metaservidor...Enviando mensaje recordatorio al metaservidor...ServidorServidor: %sDescripción del servidor, que se pasa al metaservidorEl servidor informa al metaservidorMensaje de bienvenida del servidorMonguis1 jugadorEste verano no sé si bajar al moro o irme a AmsterdamTipo de socket no soportadoTío, tienes que hacerte una cresta.Lo siento, pero este servidor tiene un límite de %d jugadores, que ya ha sido alcanzado. ^Prueba a conectarte de nuevo más tarde.Lo siento, pero este servidor tiene un límite de 1 jugador, que ya ha sido alcanzado. ^Prueba más tarde a conectarte de nuevo.Orden de las drogas disponiblesFichero de sonidoFichero de sonido reproducido al acabar el juegoFichero de sonido reproducido al empezar el juegoFichero de sonido que suena cuando un disparo hace blancoFichero de sonido que suena cuando un disparo yerra su objetivoFichero de sonido que suena al llegar a un nuevo sitioFichero de sonido que suena cuando se une un jugador al juegoFichero de sonido que suena cuando un jugador abandona el juegoSonido que se oye cuando un jugador envía un mensaje privado al chatSonido que se oye cuando un jugador envía un mensaje público al chatFichero de sonido reproducido cuando un jugador logra escaparFichero de sonido reproducido cuando un jugador intenta escapar, pero no lo consigueFichero de sonido a reproducir cuando se mata a un ayudante o a una puta enemigaFichero de sonido reproducido cuando se mata a otro jugador o a un policíaFichero de sonido que suena cuando se recarga un armaFichero de sonido reproducido cuando muere una de tus putasFichero de sonido reproducido cuando te matan a tiFichero de sonido reproducido cuando tú logras escaparFichero de sonido reproducido cuando intentas escapar, pero no lo consiguesNombre del sonidoSonidosSonidos Robin Kohli, 19.5degs.comEspacioEspacio %4dEspacio que ocupa cada armaSpeedEspiar al jugadorInformación de las espíasInformación sobre %s de las espíasEmpezar nueva partidaCapital inicialDeuda inicialCasco viejo_al_al Casco ViejoSituaciónSituación: Pidiendo SOCKS para conectarse a %s...Situación: Intentando contactar con %s...Situación: Autenticando contra servidor SOCKSSituación: Conectado al servidor SOCKS %s...Situación: No se ha podido conectar (%s)Situación: Esperando input del usuarioSímbolo antes del precioTRUE si se debe usar un servidor SOCKS para la conexión de redTRUE si se deben usar ID de usuario numéricos para SOCKS4TRUE si el servidor debe informar a un metaservidorTRUE si se debe habilitar el sonidoTRUE si se debe guardar el valor de las drogas compradasTRUE si esta droga puede ser especialmente barataTRUE si esta droga puede ser especiamente caraHablar a todos los jugadoresHablar al jugador (o jugadores)Decir: Error temporal con el nombre del servidor - prueba de nuevo más tarde¡Alguien se ha bajado al moro!De todo lo que he perdido, lo que más echo de menos es la cabeza.La orden usada para iniciar tu navegador webLa conexión excedió el tiempo límite¡La bofia te ve tirando %tde!El símbolo de dinero (por ejemplo, $)Lo primero que tienes que hacer es saldar la deuda con tu usurero. DespuésEl fichero %s de la tabla de puntuaciones se ha convertido al nuevo formato. Se ha creado una copia de respaldo del fichero antiguo, que se ha llamado %s. El nombre del servidor SOCKS a usarLa chavala que está junto a ti en el metro dice:^ «%s»%s¡El mercado está inundado de tripis baratos recién llegados de Amsterdam!El subsistema de red ha falladoEl número de puerto del servidor SOCKS a usarEl servidor se ha apagado. El servidor se ha apagado. Pasando al modo 1 jugador.El servidor se ha desconectado. Pasando al módulo 1 jugador.La versión del protocolo SOCKS a usar (4 o 5)No tienes tantos dineros en el banco...No tienes tantos dineros en el banco...Con dinero, chufletes.¿Crees que eres lo suficientemente duro como para manejar a tipos como yo?Este binario se ha compilado sin soporte de red, y por tanto no puede actuar como un jugador automático. Recompila pasando la opción --enable-networking al script configureEste binario se ha compilado sin soporte de red, y por tanto no se puede ejecutar en modo servidor. Recompila pasando la opción --enable-networking al script configure. Tiempo en segundos para que las conexiones sean establecidas o rotasChivarse a la pasmaDemasiado tarde. %s se acaba de ir.GabardinaNo es posible abrir el fichero %sNo se ha podido procesar el fichero de configuración %s, línea %dNo se puede leer el fichero de máximas puntuaciones %s.No se ha podido escribir en el fichero de puntuaciones %sCríticas destructivasCríticas destructivas James MatthewsDesgraciadamente ya hay alguien usando «tu» nombre. Elige otro.Desgraciadamente ya hay otro jugador usando «tu» nombre. Elije otroFichero de configuración de Unicodeen tu terminal. Se mostrará una pantalla de ayuda con las opciones disponibles.DesconocidoDevuelto tipo de dirección SOCKS desconocidoCódigo de respuesta de SOCKS desconocidaCódigo de respuesta de versión de SOCKS desconocida.Versión de servidor SOCKS desconocidaOrden desconocida - usa «help» para obtener ayuda Mensaje desconocido: %s:%c:%s:%sArribaEn funcionamiento desde: %sSintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b "black and white" - o sea, en blanco y negro (por omisión se usan colores, si se puede) -n ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (no hay red) -f FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s ejecutar en modo servidor (nota: lea la opción -A para configurar un servidor que ya está en funcionamiento) -S ejecutar un servidor "privado" (no avisar al metaservidor) -p PUERTO indicar el puerto de red a usar (por omisión: 7902) -g FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l FICHERO escribir la información del registro en "FICHERO" -c crear y ejecutar un jugador automático -w obligar al uso de un cliente gráfico (GTK+ o Win32) -t obligar al uso de un cliente en modo texto (curses) (por omisión se usa un cliente gráfico si es posible) -P nombre establecer el nombre del jugador a "nombre" -C FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato -A conectarse a un servidor ejecutándose localmente para administración Sintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b, --no-color, "black and white" - o sea, en blanco y negro --no-colour (por omisión se usan colores, si se puede) -n, --single-player ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a, --antique dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (sin red) -f, --scorefile=FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o, --hostname=DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s, --public-server ejecutar en modo servidor (nota: lee la opción -A para configurar un servidor ya en funcionamiento) -S, --private-server ejecutar un servidor "privado" (no avisar al metaservidor) -p, --port=PUERTO indicar el puerto de red a usar (por omisión: 7902) -g, --config-file=FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r, --pidfile=FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l, --logfile=FICHERO escribir la información del registro en "FICHERO" -A, --admin conectarse a un servidor ejecutándose localmente para administración -c, --ai-player crear y ejecutar un jugador automático -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o Win32) -t, --text-client obligar al uso de un cliente en modo texto (curses) (por omisión se intenta usar un cliente gráfico -P, --player=NOMBRE establecer el nombre del jugador como "NOMBRE" -C, --convert=FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato Nombre de usuario: Nombre de usuario para la autenticación SOCKS5Usuarios conectados:- Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5 Usando el nombre %s Nombre válido, pero ahora no tiene ningún registro DNSVersiónVersión : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersión %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars está publicado bajo la GNU General Public License Esperando para conectarse al metaservidor en %s...AdvertenciaAdvertencia: tu cliente es demasiado viejo para soportar todas las^ funcionalidades de este servidor. Para «vivir la experiencia» completa,^ obtén la última versión de dopewars del servidor web,^ http://dopewars.sourceforge.net/.¿No te encanta la música del telediario?En las hamburgueserías usan carne de rata. Por eso la dan picada.¿Sabe que tiene los ojos muy enrojecidos, joven?NavegadorMaría¿Qué quieres tirar? ¿Qué quieres pillar? ¿Qué quieres pulir? ¿Dónde quieres ir, colega? ¿Con quién quieres hablar en privado?¿A quién quieres espiar? ¿De quién quieres chivarte a la pasma? ¿Quieres C>omprar¿Quieres C>omprar, P>ulir o D>arte el piro? ¿Quieres... C>onectarte a un servidor dopewars determinadoWinSock no ha sido inicializado correctamente.Versión de WinSock no soportadaLos triunfadores no usan drogas... salvo...SacarPalabra usada para designar una sola "puta"Palabra usada para designar una sola drogaPalabra usada para designar una sola armaPalabra usada para designar dos o más "putas"Palabra usada para designar dos o más drogasPalabra usada para designar dos o más armasLa telepatía existe. ¿No sientes la energía del universo?¡Vivamos al límite, co!S:SíSNYN^¿Quieres pagar %P a un médico para que te cure?YN^¡Eh, tío! Te ayudo a llevar tus %tde por sólo %P. ¿Sí o no?YN^¡Aquí hay algo de maría que huele a herbicida!^¡Tiene buena pinta! ^¿Quieres fumarla? YN^¿Quieres comprar un %tde por %P?YN^¿Quieres comprar una gabardina más grande por %P?YN^¿Quieres visitar %tal?YN^^¿Quieres contratar a una %tde por %P?Año en el que empieza el juegoTúParece que estás usando un cliente tremendamente viejo (versión 1.4.x)^ Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no estarán soportadas. Obtén la última versión del sitio web de dopewars,^ https://dopewars.sourceforge.io/.Ahora llevas %d dosis de %tdeTienes dinero para comprar %dTienes pasta para comprar %d, y espacio para llevar %d. No puedes conseguir ni un pavo por estas %tde que llevas:¡No puedes empezar la partida sin dar un nombre antes!Ni siquiera has conseguido entrar en la tabla de puntuaciones...¡No tienes ningún %tde que vender!¡No tienes ninguna que vender!¡No tienes suficientes pelas para comprar ese %tde!¡No tienes suficiente espacio para llevar ese %tde!¡No tienes tanta pasta!Encuentras %d %tde en el cuerpo de un tío tirado en el metro!¡Has conseguido escapar!¡Estuviste flipando durante tres días en el cuelgue más salvaje que hayas imaginado nunca!^Y entonces la palmaste debido a que tu cerebro se derritió.Tienes %d. Has sido expulsado del servidor. Pasando al modo 1 jugador.Has sido expulsado del servidor. Pasando al modo 1 jugador.Tienes un mes de tiempo de juego para amasar tu fortuna.Oyes a alguien poner %s¡Le das a %s!Le das a %s, y matas a un %tde!¡Has matado a %s!Sólo usamos el 10% de nuestro cerebro. ¡Destruye con drogas el 90% sobrante!¡Te encuentras con un amigo! Te da %d %tde.¡Te encuentras con un amigo! Le das %d %tde.¡No le has dado a %s!¡Tienes que introducir una cantidad positiva de dinero!Te quedas ahí como un tonto.Te has parado para %s.¡Te atracan en el metro!¡Necesitas más %tde para que te guarden más %tde!Estás criando malvas. Sayonara, baby.Se acabó tu tiempo para trapichear...¡Tu mami ha hecho galletas con algo de tu %tde! ¡Estaban geniales!¡Tu espía trabajando con %s ha sido descubierta!^¡La espía %s!Índice basado en cero de la pistola con la que están armados los polisZzzzz... ¿estás traficando con caramelos o qué?^ (al menos, eso es lo que *piensas* que ha dicho)_%c. %tde_Modo antiguo_Atacar_Comprar ->_CancelarCerrar _Ventana_Conectarse¡A _Trapichear!_Tirar <-_Huir_Luchar_Ayuda¡_Darse el piro!_No_Aceptar_Refrescar_Correr_Espiar (%P)_Esperar_Empezar partida para 1 jugador_Chivarse (%P)_Sí`Julie's In The Drug Squad` de The Clash`Are you Experienced` de Jimi Hendrix`Cheeba Cheeba` de Tone Loc`Polipuestón` de King Putreak`Alternativa platino` de Habeas Corpus`Drug Me` de Dead Kennedys`Street Lobotomy` de Body Count`Tengo un spiz amarillo` de Manolo Kabezabolo`Mineros locos (Armas pal pueblo)` de Def Con Dos`Legalización` de Ska-P`I Love You Mary Jane` de Sonic Youth`Todo por la napia` de Siniestro Total`Mexico` de Jefferson Airplane`I want to get high` de Cypress Hill`Needle And The Spoon` de Lynyrd Skynyrd`White Punks on Dope` de the Tubes`White Rabbit` de Jefferson Airplanearmados hasta los dientesa %Pputaputasfamilia que consiste en ganar dinero con la compraventa (y eludir a la poli).maderomaderosdesertóayudantesayudantedopewarsJugador automático de dopewarsdopewars está publicado bajo la GNU General Public Licenseservidor dopewarscerrando el servidor dopewars.ordenes y preferencias del servidor dopewars versión %s help Muestra esta pantalla de ayuda list Lista todos los jugadores conectados push Le pide educadamente al jugador nombrado que se vaya kill Rompe repentinamente la conexión con el jugador nombrado msg: Envía un mensaje a todos los jugadores save Guardar la configuración actual en el fichero nombrado quit Salir elegantemente, tras avisar a todos los jugadores = Establece la variable nombrada al valor dado Muestra el valor de la variable nombrada [x].= Establece la variable nombrada en la lista dada, index x, al valor proporcionado [x]. Muestra el valor de la variable de la lista nombrada Las variables válidas son:- servidor dopewars versión %s listo y esperando conexiones por el puerto %d.el servidor de dopewars versión %s está listo para recibir órdenes de administración; usa «help» para obtener ayudadopewars versión %s drogadrogasse escapóSe esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)recibida una conexión de %sarmaarmastomar un cervezamuy armadosde un mercado de la droga imaginario. Dopewars es un juego para toda lapoco armadosarmadoso C>ontactar con tus espias y recibir las informacioneso N>o mandar ningún encargo o S>alir? armados de penafumar un chinofumar un purofumar un cigarrillofumar un porrocadena de formato strftime() para mostrar el turno del juegoformato de la cadena strftime() para las marcas de tiempotu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)el bancoel usurero_al_al usurerolas grabaciones del CESIDel barfue disparadadopewars-1.6.2/po/fr.po000644 000765 000024 00000343505 14256242752 014663 0ustar00benstaff000000 000000 # MINABLE TRADUCTION EN FRANCAIS DE DOPEWARS POUR UNIX # leonard , en l'An de Grace 2001 # Copyright (C) 2001 Free Software Foundation, Inc. # msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2001-10-16 20:50+0100\n" "Last-Translator: leonard \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "chienne" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "chiennes" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "flingue" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "flingues" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "camme" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "drogues" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "Le Preteur a Gages" #: src/dopewars.c:196 msgid "the Bank" msgstr "la banque" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "l'arriere boutique" #: src/dopewars.c:197 msgid "the pub" msgstr "le bar" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Port reseau a se connecter" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nom du fichier des scores" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nom du serveur a se connecter" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "Different de zero si le serveur doit reporter a un metaserveur" #: src/dopewars.c:281 msgid "Metaserver URL to report/get server details to/from" msgstr "" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "Le nom de votre machine serveur" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Authentification du nom local avec le metaserveur " #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "description du serveur, reporte au metaserveur" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Les elements aleatioires sont nettoyes" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "" "Different de zero si la valeur de la camme achetee doit etre sauvegardee" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Soyez verbose en passant le config file a la moulinette" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Nombre de lieux dans le jeu" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Nombre de types de flics dans le jeu" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Nombre de revolvers dans le jeu" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Nombre de drogues dans le jeu" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "L'endroit ou se trouve le Preteur a Gages" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "L'endroit ou se trouve la banque" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "l'endroit ou se trouve l'armurerie" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "l'endroit ou se trouve le bar" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Nom du Preteur a Gages" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Nom de la banque" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Nom de l'armurerie" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Nom du bar" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Touche de tri pour la liste des dopes disponibles" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Nombre de secondes apres lesquelles on peut retourner le feu" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Les joueurs sont deconnectes apres ce nombre de secondes" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Temps en secondes pour que les connections soient etablies ou cassees" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Nombre maximum de connections TCP/IP" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Secondes entre les tours des intelligences artificielles" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Fric donne en debutant la partie" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Montant des dettes en debutant la partie" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Nom de chaque lieu" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Presence policiaire a chaque endroit (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Nombre minimum de potions magiques a chaque endroit" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Nombre maximum de potions magiques a chaque endroit" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "% de resistance aux coups de fusil de chaque joueur" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "% de resistance aux coups de fusil de chaque chienne" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Nom de chaque flics" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Nom de chaque sous-flic" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Nom de chaques sous-flics" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "% de resistance aux coups de fusil de chaque flic" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "% de resistance aux coups de flingue de chaque sous-flic" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Penalite d'attaque relative a un joueur" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Penalite de deffence relative a un joueur" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Nombre minimum de sous-flics accompagnant" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Nombre MAX des adjoints accompagnant" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "Index base sur zero du pistolet avec lequel le flic est arme" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Nombre de flingues que chaque flic porte" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "Nombre de flingues que chaque sous-flic portes" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Nom de chaque potion magique" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Prix minimum normal de chaque camme" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Prix MAX normal de chaque camme" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "Different de zero si cette camme peut devenir vraiement pas chere" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "Different de zero si cette drogue peut devenir particulierement chere" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Message affiche si cette camme est vraiement pas chere" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Ligne utilisee pour des drogues cheres 50% des fois" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "Diviseur sur le prix des cammes devenues vraiement pas cheres" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicateur pour les drogues devenues cheres" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Nom de chaque type de flingue" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Prix de chaque type de flingue" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Espace pris par chaque flingue" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Dommage inflige par chaque flingue" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Mot utilise pour decrire 1 \"chienne\"" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Mot utilise pour decrire 2 \"chiennes\" ou plus" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Mot utilise pour decrire 1 flingue ou equivalent" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Mot utlise pour decrire 2 flingues ou plus" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Mot utlise pour decrire 1 drogue " #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Mot utilise pour decrire deux drogues ou plus" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Cout pour envoyer une chienne espionner le dealer ennemi" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Cout pour envoyer une chienne donner des informations sur l'ennemi aux flics" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Prix minimum pour employer une salope" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Prix MAX pour employer une chienne" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "liste des trucs que vous entendez dans le metro" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "nombre de choses que vous entendez dans le metro" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "liste des morceaux de zic que vous pouvez entendre de loin" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "nombre de morceaux de musique" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "liste des trucs que tu peux arreter de faire" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "nombre de trucs que tu peux arreter de faire" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Mangez-moi Mangez-moi` par Billy Ze Kick :)" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Lost in the K hole` par Chemical Brothers" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Annie aime les sucettes` par Gainsbourg" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`The Spice` par Dune" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Bons baisers d'Amsterdam` par Billy ze Kick" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Light Up` by Styx" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Trip Tonite` par Etnica" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`Le Ciel Est Triste` par Haldolium" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Autopilot` par Vibrasphere" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`Live at Plookland city` par Transorbital Lobotomy" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`La main verte` par Tryo" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`Jesus Chris est un Hippie` par J.Hallyday" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` by the Moody Blues" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`L'etat assassine` par Assassins" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Douanier 007` par Sicemilla" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`l'Apologie` par Matmatah" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "`Mechanical Animals` par Marilyn Manson" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize It` by Mojo Nixon & Skid Roper" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "boire une biere" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "fumer un joint" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "fumer un cigare" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "fumer un blunt" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "fumer une cigarette" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Inspecteur GrosBoeuf" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "adjoint" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "adjoints" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Inspecteur VERGES" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Detective de Dieuleveult" #: src/dopewars.c:703 msgid "cop" msgstr "flic" #: src/dopewars.c:703 msgid "cops" msgstr "flics" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "Colt 45" #: src/dopewars.c:709 msgid ".38 Special" msgstr "P 38" #: src/dopewars.c:710 msgid "Ruger" msgstr "Avtomat Kalashnikov 47" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Smith et Wesson 657" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Acide" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "Le marche est sature de buvards" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Cocaine" #: src/dopewars.c:720 msgid "Hashish" msgstr "Hashish" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "The Marrakesh Express has arrived!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Heroine" #: src/dopewars.c:723 msgid "Ludes" msgstr "Special K" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Tes concurrents ont devalise une pharmacie et vendent de la Keta pas chere" #: src/dopewars.c:725 msgid "MDA" msgstr "Exctasy" #: src/dopewars.c:726 msgid "Opium" msgstr "Opium" #: src/dopewars.c:727 msgid "PCP" msgstr "PCP" #: src/dopewars.c:728 msgid "Peyote" msgstr "Mescaline" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Champis" #: src/dopewars.c:730 msgid "Speed" msgstr "Amphes" #: src/dopewars.c:731 msgid "Weed" msgstr "Skunk" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "de la bonne herbe d'Amsterdam vient d'arriver en masse" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "Le Moulin Rouge" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Gare du Nord" #: src/dopewars.c:742 msgid "Central Park" msgstr "Porte de la Chapelle" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Barbes Rochechouart" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Les Halles" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "Boulogne" #: src/dopewars.c:746 msgid "Queens" msgstr "Place d'Italie" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Argenteuil" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Les flics ont mis la main sur un gros stock de %tde !" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Les junkies achetent %tde hors de prix !" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "`Vivons dans l'extase de l'illimité`" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "Of all the things that I've lost, I miss my mind the most." #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Je parie que vous faites des reves tres interessants" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Je pense que je vais aller a Amsterdam cette annee" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "je suis un cheval, en fait" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Ca vous arrive de conduire la nuit avec des lunettes de soleil ?" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "J'ai pas toujours ete une femme, tu sais" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "Ta mere sait que tu est un dealer ?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "T'est defonce a quoi, la ?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Vous venez de Tunisie ?" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "Ta mere vient de faire des bons gateaux avec un peu de ton Hash." #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "In dust, we trust" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "On utilise 10% de nos cerveaux, alors pourquoi ne pas en crammer 90% ?" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Bon je suis trop defait, je vais me coucher." #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "" "Les vrais leaders de ce monde sont george bush, keanu reeves et sandra " "Bullock" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "C'est vous que j'ai vu a la tele ?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "L'esprit n'est jamais né, l'esprit ne cessera jamais" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "Vous avez les yeux rouges, jeune homme." #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "Un jour sans camme, c'est la nuit." #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "Sauvez des arbres, mangez des castors !" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "`Question authority; think for yourself`. a dit Timothy Leary" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Gnôthi seauton" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Les vainqueurs ne se droguent pas... a moins que..." #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "Bute un flic, bon Dieu!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Je suis un elephant de mer!" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Seulement de nos jours, les chateaux sont des entreprises." #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "We are masses of wavelenghts on the infinite" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Il faut ouvrir ses branchies aux courants" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Just say No... well, maybe... ok, what the hell!" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "La telepathie existe ! Regardez les vibrations." #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "La camme peut etre votre amie !" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La config peut seulement etre changee quand aucun joueur n'est connecte." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "L'index dans %s doit etre entre 1 et %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s est %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s est %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s est %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s est \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] est %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s est { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Structure liste redimentionnee a %d elements\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars version %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue. Base sur \"Drug Wars\" de John E. Dell\n" " -b \"noir et blanc\" - n'utilise pas les jolies couleurs\n" " (par defaut, les couleurs sont utilisees si le term les supporte " "-n ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a \"antique\" dopewars - rester proche de la version " "originale (cette option desactive les possibilites reseau)\n" " -f file specifier un fichier a utiliser pour la table des high scores\n" " (par defaut, s/dopewars.sco est choisi)\n" " -o addr specifier un host ou le serveur multiplayers peut etre trouve\n" " (e.g. nowhere.com)\n" " -s lancer en mode serveur (note: pour un \"non-interactive\" server, " "simplement\n" " lancer: dopewars -s < /dev/null >> logfile & )\n" " -S lancer un \"private\" server (i.e. ne pas contacter le " "metaserver)\n" " -p specifie le port reseau a utiliser (default: 7902)\n" " -g file specifie le chemin d'acces au dopewars configuration file. Ce " "fichier\n" " est lu immediatement quand l'option -g est rencontree\n" " -r file maintenir un pid file \"file\" pendant que le serveur tourne\n" " -c cree et lance une intelligence artificielle (computer player)\n" " -w force le lancement en mode graphik (fenetre) client (GTK+ or " "Win32)\n" " -t force le lancement en mode text\n" " (par defaut, le client en fenetre est lance si possible)\n" " -h affiche cet ecran d'aide\n" " -v affiche la version et quitte\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, et distribue sous GNU GPL\n" "Envoyer les bugs a l'auteur : benwebb@users.sf.net\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue. Base sur \"Drug Wars\" de John E. Dell\n" " -b \"noir et blanc\" - n'utilise pas les jolies couleurs\n" " (par defaut, les couleurs sont utilisees si le term les supporte " "-n ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a \"antique\" dopewars - rester proche de la version " "originale (cette option desactive les possibilites reseau)\n" " -f file specifier un fichier a utiliser pour la table des high scores\n" " (par defaut, s/dopewars.sco est choisi)\n" " -o addr specifier un host ou le serveur multiplayers peut etre trouve\n" " (e.g. nowhere.com)\n" " -s lancer en mode serveur (note: pour un \"non-interactive\" server, " "simplement\n" " lancer: dopewars -s < /dev/null >> logfile & )\n" " -S lancer un \"private\" server (i.e. ne pas contacter le " "metaserver)\n" " -p specifie le port reseau a utiliser (default: 7902)\n" " -g file specifie le chemin d'acces au dopewars configuration file. Ce " "fichier\n" " est lu immediatement quand l'option -g est rencontree\n" " -r file maintenir un pid file \"file\" pendant que le serveur tourne\n" " -c cree et lance une intelligence artificielle (computer player)\n" " -w force le lancement en mode graphik (fenetre) client (GTK+ or " "Win32)\n" " -t force le lancement en mode text\n" " (par defaut, le client en fenetre est lance si possible)\n" " -h affiche cet ecran d'aide\n" " -v affiche la version et quitte\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, et distribue sous GNU GPL\n" "Envoyer les bugs a l'auteur : benwebb@users.sf.net\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Pas de curses client disponible - reconstruire le binaire en utilisant\n" "--enable-curses-client pour configurer, ou utiliser un client\n" "fenetre (si dispo) a la place!\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Pas de curses client disponible - reconstruire le binaire en utilisant\n" "--enable-curses-client pour configurer, ou utiliser un client\n" "fenetre (si dispo) a la place!\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Français Traduction Leonard" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Base sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'un" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "marche de la drogue imaginaire. Dopewars est un jeu qui comprend" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "acheter, vendre et essayer d'eviter les flics!" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "La premiere chose a faire est de rembourser votre dette au preteur. Apres" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "votre but est de faire le plus de fric possible en restant vivant! Tu" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "as un mois de temps de jeu pour faire fortune." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars est distribue sous la license GPL de GNU." #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Vente de camme et recherche Dan Wolf" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeurs Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeurs extensifs Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Critiques constructives Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Critiques deconsctructives James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "" "Pour information sur les options en ligne de commande, taper dopewars -h" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "a votre prompt UNIX. Cela va afficher l'aide sur les options disponibles." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Merci d'entrer le nom du host et le port du server dopewars:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Hostname: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Patientez... tentative de contacter le metaserver..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Serveur: %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Port : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Version :%s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Joueurs: -inconnu- (maximun %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Joueurs: %d (maximum %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "Operationnel depuis : %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Commentaire: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>uivant server; P>recedent server; C>choisir ce serveur..." #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "SPC" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Patientez... tentative de contacter le serveur dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "Ne peux pas demarrer dopewars en multi-joueur" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "Woulez vous... C>connecter a un hote/port different" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>ister les serveurs sur le meta, et en selectionner un" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " Q>uitter (vous pouvez alors demarrer un server" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " ou J>ouer en solo ? " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "CLQJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "Ou ca, mec ? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Tu ne peux pas faire du fric avec ce que tu portes %tde :" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "Que veux tu laisser tomber? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "Combien d'unites tu laisses tomber? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "Que souhaites tu acheter? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "Que souhaites tu vendre? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tu peux acheter %d, et porter %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "Combien tu en achetes ?" #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Tu as %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "Combien tu en vends? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Choisir un boulot a donner a une de tes %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " E>spionner un autre dealer (cout: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " D>onner un autre dealer aux flics (cout: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " A>ller se faire foutre" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "ou C>ontacter vos espions et recevoir des rapports" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "ou P>as de boulot ? " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "EDACP" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "Qui tu veux espionner ?" #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "Qui tu veux donner aux flics ?" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr " Etes vous sur? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "ON" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "Etes vous sur de vouloir quitter? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Nouveau nom: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Vous avez ete vire du serveur. Devient solo." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "Le serveur est mort. Devient solo" #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "%s joint la partie!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s a quitte la partie." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s est maintenant %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "METRO" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Malheureusement, qq d'autre utilise deja ton nom. Merci d'en changer" #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "H I G H S C O R E S" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "Tu n'as aucun %tde a vendre!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "T'en as aucun a vendre!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Tu as besoin de plus de %tde pour porter plus de %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Tu n'as pas assez d'espace pour porter ce %tde" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Tu n'as pas assez de fric pour achter ce %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Souhaitez vous A>cheter, V>endre, ou P>artir?" #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "AVP" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "Combien de fric tu rends ?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "Tu n'as pas assez d'argent!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Tu veux D>eposer de l'argent, R>etirer des biftons, ou P>artir ?" #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "DRP" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "Combien d'argent?" #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "Il n'y a pas autant d'argent dans la banque..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "O:Oui" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:Non" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "C:Courrir" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "S:Se battre" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Attaquer" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "S: S'evader" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Appuyer sur une touche..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Statistiques" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Fric" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tde" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Sante" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Banque" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Dette" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Espace %6d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Espace %6d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Trenchcoat" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%/Stats: Drogues/%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d @ %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Rapport des espions pour %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Esprion: Drogues/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "%/Esprion: Flingues/%Tde..." #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "Aucun autre joueur est en ligne en ce moment!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Joueurs en ligne:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "He man, les prix du %tde sont la:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Ne peux pas installer SIGWINCH interrupt handler!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "He mec, c'est quoi ton nom? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "A>cheter" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", V>endre" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", L>aisser tomber" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", P>arler, R>reveiller" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", L>lister" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", D>onner" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", C>ombattre" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", dEplacer" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", ou Q>uitter " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "Tu " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "C>combat, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "R>este sur place, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "S>e sauver, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "D>eal %tde, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "ou Q>uitter? " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "La connection au serveur est perdue. Change en mode Solo" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "AVLPRLDCEQ" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "DSCRQ" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "Lister quoi? J>oueurs ou S>cores? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "JS" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "A qui tu veux parler en prive ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Parler: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "Rejouer? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Jeu" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Jeu/_Nouveau..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Jeu/_Quitter" #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Parler" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Parler/A _Tous..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Parler/A _joueur..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Liste" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Liste/_Joueurs..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Liste/_Scores..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Liste/_Inventaire..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Taches" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Taches/_Espionner..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Taches/_Balancer..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Taches/_Rapports des espions..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Aide" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Aide/_A propos..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Avertissement" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Message" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "Abandonner cette partie ?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Quitter la partie" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Commencer une nouvelle partie" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Inventaire" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "_Fermer" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Connection au server perdue - Mode solo" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Vous avez ete vire du serveur. Devient solo." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "Le serveur est mort. Devient solo" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Bouger vers %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Espionner (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Balancer (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "High Scores" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "High Score corrompu!" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Se battre" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "_Vendre %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Combattre" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Rester sur place" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Courrir" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Combat: Salopes/%d %tde" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Sante: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "Vous" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Salopes/%Tde" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Se deplacer a un autre endroit" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "at %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Vous portez en ce moment %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Espace disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Vous pouvez acheter %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Acheter" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Vendre" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Laisser tomber" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "Acheter combien ?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "Vendre combien ?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "Laisser tomber combien ?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_OK" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Annuler" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Acheter %tde" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Vendre %tde" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Laisser tomber %tde" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Oui" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_Non" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Attaquer" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_S'evader" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Question" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Espace" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "_Bouger!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Français Traduction" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Leonard" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Vente de camme et Recherche" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Testeur de jeu" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Testeur extensif du jeu" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Critique constructive" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Critique non-constructive" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "A propos de dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Base sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation\n" "d'un marche de la drogue imaginaire. DopeWars est un jeu qui vous permet\n" "d'acheter ou vendre de la camme et essayer d'eviter les flics!\n" "\n" "La premiere chose a faire est de rembourser le preteur a gages.\n" "Ensuite, votre but est de faire le maxium de fric (et de rester en vie!)\n" "Vous avez un mois de temps de jeu pour faire fortune.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars est diffuse sous la GNU General Public License\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Pour infos sur les options en ligne de commande, taper: dopewars -h\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Preteur window title/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/Banque window title/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "Il n'y a pas autant d'argent dans la banque..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Fric: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Dettes: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "banque: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Rembourser:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Deposer" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Retirer" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Tout payer" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Liste des joueurs" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Parler au joueur(s)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Parler a tout les joueurs" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Message:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Envoyer" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Espionner le joueur" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Merci de choisir le joueur a espionner. Votre %tde va\n" "ensuite offrir ses services aux joueur, et si elle a du\n" "succes, vous aurez ensuite acces aux stats du joueur avec\n" "le menu \"Rapport des Espions\". La %tde va partir, donc\n" "toutes les %tde ou %tde qu'elle porte seront peut etre perdus!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Balancer aux flics" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, fuzzy, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Choisir le joueur a balancer aux flics. Votre %tde va aider les flics\n" "a attaquer ce joueur, puis venir vous faire son rapport quand vous la\n" "rencontrez. Rappellez vous que la %tde vous quittera temporairement,\n" "donc tout ce qu'elle porte (tde ou %tde) pourront etre perdus!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Etes vous sur ? (Chaque %tde ou %tde transporte\n" "par cette %tde pourront etre perdus!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Nom" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Prix" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Nombre" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Acheter ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Vendre" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Laisser tomber <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde ici" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde transporte" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Changer Nom" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" "Malheureusement, quelqu'un d'autre utilise deja ton nom. Merci de le changer" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Armurerie window title/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Rapport des espions" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "drogues" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "flingues" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "flics" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "Metaserver" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Commentaire" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Serveur" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Aide" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Nouvelle partie" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Status: Attente de l'utilisateur" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Ne peut pas se connecter (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Essayer de contacter %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Inconnu" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Port" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Version" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Joueurs" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Salut mec, quel est ton _nom?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Nom de l'hote" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Connect" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "_Antique mode" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Commencer un jeu en solo" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "Jouer en solo" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Metaserver" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "# Ceci est le LOG de demarrage de dopewars.\n" "# Contient les messages d'info resultant du parsage\n" "# du fichier de config etc...\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "serveur dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "dopewars AI" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "enfui" #: src/serverside.c:73 msgid "defected" msgstr "passe a l'ennemi" #: src/serverside.c:73 msgid "was shot" msgstr "a ete bute" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AS" #. Help on various general server commands #: src/serverside.c:129 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "dopewars server version %s commandes and config\n" "\n" "help Affiche l'aide\n" "list Lister les joueurs connectes\n" "push Demander poliment a un joueur de partir\n" "kill Casser la connection avec le joueur donne\n" "msg: Envoyer un message a tout les joueurs\n" "quit Quitte apres avoir averti tout le monde.\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "" #: src/serverside.c:168 src/serverside.c:1102 #, fuzzy, c-format msgid "MetaServer: %s" msgstr "MetaServeur: %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "" #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxClients (%d) exceeded - dropping connection" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Desole, ce serveur a une limite atteinte de 1 joueurMerci de re-essayer " "votre connection plus tard." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Desole, ce serveur a une limite atteinte de %d joueursMerci de re-essayer " "votre connection plus tard." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s est maintenant %s" #: src/serverside.c:437 #, fuzzy, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: deplacement vers %s INTERDIT" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Votre temps de deal est termine" #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: deplacement vers %s INTERDIT" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s espionne %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s spy on %s: DENIED" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s a balance %s aux flics" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s tipoff about %s: DENIED" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Maintenance du pid file %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Cannot create pid file %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "dopewars server version %s pret et attendant les connections\n" "sur le port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Cannot install SIGUSR1 interrupt handler!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Cannot install SIGHUP interrupt handler!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "Cannot install SIGINT interrupt handler!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Cannot install SIGTERM interrupt handler!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "Ne peut pas installer le truc qui s'occupe des pipes!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Utilisateurs en ligne:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "Aucun utilisateur en ligne.\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Pousser %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "Cet user n'existe pas.\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s tue\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Commande inconnue - Essaye \"help\" pour l'aide...\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "recu une connection de %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "%s quittes le serveur!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1287 msgid "New admin connection" msgstr "" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1681 msgid "Command:" msgstr "Command:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "Impossible de lire le fichier des high scores %s" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Ne peut pas ouvrir le fichier des high score %s. (%s)\n" "Verifiez que vous avez les permissions pour acceder ce fichier ou " "repertoire\n" "ou specifiez un autre fichier et chemin d'acces avec la commande -f." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "Impossible de lire le fichier des high scores %s" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "Felicitations! Vous etes dans les high scores!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "T'as meme pas reussi a etre dans les Scores!" #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "Impossible d'ecrire le fichier des high scores %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(Repose en Paix)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Balance de %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Espion offert par %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Une de tes %tde etait un espion pour %s.^L'espion %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Votre espion travaillant pour %s a ete decouvert!^L'espion %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La dame a cote de vous dans le metro dit,^ \"%s\"%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (au moins, tu -penses- que c'est ce qu'elle a dit)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Tu entends quelqu'un jouer %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Voulez-vous visiter %tde?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Voulez vous engager une %tde pour %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s est deja la!^Tu Attaque, or t'Evade?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "Les flics ne peuvent pas attaquer d'autres flics!" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "Les joueurs sont deja en train de se battre!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "Les joueurs sont deja dans des bastons separees!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "Ne peut pas commencer la bagarre - pas de flingue a utiliser!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Vous etes mort! GamE OveR" #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: balance par %s finit OK." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Suivant votre balance, les flics ont pecho %s, qui est mort par balle!" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Suivant votre balance, les flics ont pecho %s, qui s'est echappe avec %d " "%tde. " #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^Tu payes le docteur %P pour te recoudre?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "Tu as ete attaque dans le metro!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Tu rencontres un ami! Il te donne %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Tu rencontre un ami! Tu lui donne %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Tu nettoies une offre aleatoire." #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Les chiens des flics te courent apres sur %d blocs! Tu laisses tomber %tde! " #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Tu trouves %d %tde sur un mec mort dans le metro!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" "Ta maman a fait des gateaux avec un peu de ton %tde! Ils sont excellents!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ca a l'air bon! Tu la fume?" #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Tu t'arretes pour %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Tu veux acheter une trenchcoat plus grande pour %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" "YN^He! mec! Je t'aiderais a porter tes %tde pour un petit %P. Oui ou non ?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Tu veux acheter un %tde pour %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: l'offre etait au nom de %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s a accepte votre %tde!^Tape G pour contacter ton espion." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Tu a hallucine pendant trois jours dans le plus trip le plus sauvage " "que^t'aurais jamais imagine! Ensuite tu t'est mis a parler avec tes oreilles!" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Trop tard - %s vient juste de partir!" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "%s a rejete votre %tde!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Joueur enleve a cause d'inactivite trop longue" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Joueur enleve a cause de temps de connection trop long" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:156 msgid "WinSock version not supported" msgstr "" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "" #: src/error.c:158 msgid "Address already in use" msgstr "" #: src/error.c:159 msgid "Cannot reach the network" msgstr "" #: src/error.c:160 msgid "The connection timed out" msgstr "" #: src/error.c:161 msgid "Out of file descriptors" msgstr "" #: src/error.c:162 msgid "Out of buffer space" msgstr "" #: src/error.c:163 msgid "Operation not supported" msgstr "" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "" #: src/error.c:166 msgid "Connection refused" msgstr "" #: src/error.c:167 msgid "Address family not supported" msgstr "" #: src/error.c:168 msgid "Protocol not supported" msgstr "" #: src/error.c:169 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "Tu cours ?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "Tu cours ou combat ?" #: src/message.c:1337 msgid "pitifully armed" msgstr "leur armement fait pitie" #: src/message.c:1338 msgid "lightly armed" msgstr "legerement armes" #: src/message.c:1339 msgid "moderately well armed" msgstr "relativement bien armes" #: src/message.c:1340 msgid "heavily armed" msgstr "lourdement armes" #: src/message.c:1340 msgid "armed to the teeth" msgstr "armes jusqu'aux dents" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - te courent apres, mec!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s and %d %tde - %s - te courent apres, mec!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s est arrive avec %d %tde, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s reste debout et le prend." #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Tu restes la comme un pantin." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s essaye de se barrer, mais echoue." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "Pannique! Tu peux pas te sauver!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "%s s'est barre a %tde!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "%s se sont echappes!" #: src/message.c:1384 msgid "You got away!" msgstr "Tu t'est echappe!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Flingues recharges..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s tire a %s... et manque son coup!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s te tire dessus.. et loupe!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "Tu manques %s!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s tire %s mort" #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s tire a %s et tue une %tde!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s tire a %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s t'as detruit, mec! Ca gonfles..." #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s te tire dessus... et tue une %tde!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "%s te troue, mec!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "Tu as bute %s!" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Tu touches %s, et tue une %tde!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "Tu touches %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr "Tu trouves %P sur le corps!" #: src/message.c:1439 msgid " You loot the body!" msgstr " Tu cherches le corps!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Ne peut pas connecter au server dopewars\n" "(%s)\n" "IA joueur terminating abnormally." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Connection etablie\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Le joueur IA a debute; essaye de contacter le server sur %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Joueur IA terminated OK\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Connection au serveur perdue!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Utiliser nom %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Joueurs dans ce jeu:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s joint le jeu.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s a quitte le jeu.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Deplacement de %tde avec %P en cash et %P en dettes\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "joueur IA tue. Teminating normallement.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Temps de jeu termine. Quitte le jeu.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Joueur IA jette du serveur.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Le serveur has terminated.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendre %d %tde a %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Acheter %d %tde a %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Acheter un %tde pour %P au magazin de flingues\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Dettes de %P payees au preteur a gages\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Le preteur a gages est situe a %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "L'armurerie est situee a %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Le bar est situe a %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "La banque est situee a %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Vous osez vous appeller des dealers?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un singe apprivoise pourrait faire mieux..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" "Tu penses que t'est suffisament dur pour dealer avec des mecs comme moi?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzzz... tu vends des bombons ou quoi?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Je crois que je vais devoir te buter pour ton propre bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Ce fichier binaire a ete compile sans le support rezo, et donc ne peut pas " "se comporter comme un joueur IA.\n" "Recompile en utilisant --enable-networking avec le script de config." #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" #~ msgid "Cash %17P" #~ msgstr "Fric %17P" #~ msgid "%-19Tde%3d" #~ msgstr "%-19Tde%3d" #, c-format #~ msgid "Health %3d" #~ msgstr "Sante %3d" #~ msgid "Bank %17P" #~ msgstr "Banque %15P" #~ msgid "Debt %17P" #~ msgstr "Dettes %15P" #~ msgid "Port for metaserver communication" #~ msgstr "Port du serveur de metacommunication" #~ msgid "Path of the script on the metaserver" #~ msgstr "Chemin d'acces au script CGI sur le metaserveur" dopewars-1.6.2/po/en_GB.gmo000644 000765 000024 00000020041 14256243623 015353 0ustar00benstaff000000 000000  l   %(N`)9:# C N&\<)9  Cannot initialize WinSock (%s)!Cop armorDeputy armorSOCKS authentication canceled by userUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colors (by default colors are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colors --no-colour (by default colors are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License WinSock has not been properly initializeddopewars is released under the GNU General Public LicenseProject-Id-Version: dopewars SVN Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2020-12-09 12:02-0800 Last-Translator: Ben Webb Language-Team: British English Language: en_GB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cannot initialise WinSock (%s)!Cop armourDeputy armourSOCKS authentication cancelled by userUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colours (by default colours are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colours --no-colour (by default colours are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence WinSock has not been properly initialiseddopewars is released under the GNU General Public Licencedopewars-1.6.2/po/pt_BR.po000644 000765 000024 00000355614 14256242752 015266 0ustar00benstaff000000 000000 # Portuguese/Brazil Translation for dopewars # Copyright (C) 2000 Free Software Foundation, Inc. # Created by Hugo Cisneiros , Nov 2000 # Revised by Bruno Lopes , Jan 2003 # msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2022-06-10 23:06-0300\n" "Last-Translator: Bruno Lopes \n" "Language-Team: Portuguese/Brazil \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "puta" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "putas" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "arma" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "armas" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "droga" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "drogas" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "o agiota" #: src/dopewars.c:196 msgid "the Bank" msgstr "o Banco" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "Casa de Armas do Dan" #: src/dopewars.c:197 msgid "the pub" msgstr "o bordel" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Porta de rede para conectar" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nome do arquivo de pontuação" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nome do servidor para conectar" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Mensagem de boas vindas do dia no servidor" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Endereço de rede para em que o servidor aguardará conexões" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE se um servidor SOCKS deve ser usado para conectar à rede" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE se IDs numéricos de usuário devem ser usados para SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Se não em branco, será o nome de usuário a usar para SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "O hostname do servidor SOCKS a ser usado" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "O número da porta do servidor SOCKS a ser usado" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "A versão do protocolo SOCKS a usar (4 ou 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nome de usuário para autenticação SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Senha para autenticação SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "Não-zero se o servidor deve reportar ao servidor meta" #: src/dopewars.c:281 msgid "Metaserver URL to report/get server details to/from" msgstr "Nome do meta-servidor para reportar/obter os detalhes do servidor" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "Nome do host preferido para a sua máquina servidor" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Autentificação para o NomeLocal com o servidor meta" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Descrição do servidor, reportado para o servidor meta" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Se TRUE, o servidor minimiza a Barra do Sistema" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "Se TRUE, o servidor executa em background" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "O comando usado para iniciar seu navegador" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "No. de turnos do jogo (se 0, o jogo nunca acaba)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "Dia do mês em que o jogo inicia" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "Mês em que o jogo inicia" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "Ano em que o jogo inicia" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "Arquivo onde escrever mensagens de log" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "Controla o número de mensagens de log produzidas" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "String de formato strftime() para timestamps de log" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Eventos aleatórios são censurados" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "Não-zero se o valor das drogas compradas devem ser salvos" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Mostrar mensagens processando o arquivo de configuração" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Quantidade de locais no jogo" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Número de tipos de policiais no jogo" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Número de armas no jogo" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Número de drogas no jogo" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Localização do agiota" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Localização do banco" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Localização da loja de armas" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Localização do bordel" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "Juros diários na dívida do agiota" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "Juros diários em sua poupança" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Nome do agiota" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Nome do banco" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Nome da loja de armas" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Nome do bordel" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "TRUE se sons devem ser habilitados" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "Arquivo de som tocado para um tiro que acerta o alvo" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "Arquivo de som tocado quando um tiro erra o alvo" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "Arquivo de som tocado quando armas são recarregadas" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "Arquivo de som tocado quando você é morto" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "Arquivo de som tocado ao chegar em um novo local" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Teclas de ordenação para a listagem de drogas disponíveis" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Número de segundos em para revidar tiro" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Jogadores são desconectados depois destes segundos" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Tempo em segundos para conexões a serem feitas ou quebradas" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Número máximo de conexões TCP/IP" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Segundos entre turnos dos jogadores IA" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Quantidade de dinheiro que cada jogador começa" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Quantidade de débito que cada jogador começa" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Nome de cada local" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Polícia presente em cada local (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Número mínimo de drogas em cada local" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Número máximo de drogas em cada local" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Nome de cada policial" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Nome de cada ajudante do policial" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Nome dos ajudantes do policial" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Valor relativo de ataque para o jogador" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Valor relativo de defesa para o jogador" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Número mínimo de ajudantes acompanhantes" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Número máximo de ajudantes acompanhantes" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "Índice baseado-em-zero da arma que os policiais estão armados" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Número de armas que cada policial carrega" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Nome de cada droga" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Preço mínimo normal de cada droga" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Preço máximo normal de cada droga" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "Não-zero se esta droga pode ser especialmente barata" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "Não-zero se esta droga pode ser especialmente cara" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Mensagem mostrada quando esta droga é especialmente barata" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Formato da string usada para drogas caras em 50% do tempo" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "Divisor para os preços da droga especialmente barata" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicador para para os preços da droga especialmente cara" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Nome de cada arma" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Preço de cada arma" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Espaço tomado por cada arma" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Dano de cada arma" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Palavra usada para denominar uma simples \"puta\"" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Palavra usada para denominar duas ou mais \"putas\"" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Palavra usada para detominar uma simples arma ou equivalente" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Palavra usada para denominar duas ou mais armas" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Palavra usada para denominar uma simples droga ou equivalente" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Palavra usada para denominar duas ou mais drogas" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Custo para as putas espionarem o inimigo" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "Custo para as putas atraírem os policiais ao inimigo" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Preço mínimo para contratar uma puta" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Preço máximo para contratar uma puta" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Lista de coisas ao qual você ouve no metrô" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Número de falas no metrô" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Lista de sons ao qual você ouve tocando" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Número de sons tocando" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Lista de coisas que você pode parar de fazer" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Número de coisas que você pode parar de fazer" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` por Jimi Hendrix" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` por Tome Loc" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Comin` in to Los Angeless` por Arlo Guthrie" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Comemrcial` por Spanky e Nossa Gangue" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Late in the Evening` por Paul Simon" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Light Up` por Styx" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` por Jefferson Airplane" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`One toke over the line` por Brewer & Shipley" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`The Smokeout` por Shell Silverstein" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` por Jefferson Airplane" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Itchycoo Park` por Small Faces" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` por the Tubes" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` por the Moody Blues" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Eight Miles High` por the Byrds" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Acapulco Gold` por Riders of the Purple Sage" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Kicks` por Paul Revere & the Raiders" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "as fitas de Nixon" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize Já` por Planet Hemp" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "tome uma cerveja" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "fumar um baseado" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "fumar um charuto" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "fumar um Djarum" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "fumar um cigarro" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Oficial Hardass" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "ajudante" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "ajudantes" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Oficial Bob" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Agente Smith" #: src/dopewars.c:703 msgid "cop" msgstr "policial" #: src/dopewars.c:703 msgid "cops" msgstr "policiais" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:709 msgid ".38 Special" msgstr ".38 Especial" #: src/dopewars.c:710 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Saturday Night Special" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Ácido" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "O mercado está cheio de ácido caseiro barato!" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Cocaína" #: src/dopewars.c:720 msgid "Hashish" msgstr "Haxixe" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "O Expresso de Marrakesh chegou!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Heroína" #: src/dopewars.c:723 msgid "Ludes" msgstr "Ecstasy" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Comerciantes de drogas rivais roubaram uma farmácia e estão vendendo ecstasy " "barato!" #: src/dopewars.c:725 msgid "MDA" msgstr "MDA" #: src/dopewars.c:726 msgid "Opium" msgstr "Ópio" #: src/dopewars.c:727 msgid "PCP" msgstr "PCP" #: src/dopewars.c:728 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Cogumelos" #: src/dopewars.c:730 msgid "Speed" msgstr "Speed" #: src/dopewars.c:731 msgid "Weed" msgstr "Maconha" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Colombianos enganaram a Guarda Costeira! Preços de maconha abaixaram!" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "Bronx" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Ghetto" #: src/dopewars.c:742 msgid "Central Park" msgstr "Central Park" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Manhattan" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Coney Island" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "Brooklyn" #: src/dopewars.c:746 msgid "Queens" msgstr "Queens" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Staten Island" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Policiais apreenderam %tde! Preços estão super altos!" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Viciados estão comprando %tde a preços ridículos!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Não seria engraçado se todos tivessem de uma vez só?" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "O Papa já foi judeu uma vez, você sabe" #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Eu aposto que você tem sonhos realmente interessantes" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Então eu acho que vou para Amsterdã este ano" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Filho, você precisa de um corte de cabelo amarelo" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Eu acho maravilhoso o que estão fazendo com incenso estes dias" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "I eu não fui sempre uma mulher, você sabe" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "Sua mãe sabe que você é um traficante de drogas?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "Você está doidão ou coisa parecida?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Ah, você deve ser da Califórnia" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "Eu mesmo costumava ser hippe" #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Não há nada como ter muito dinheiro" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "Você tá parecendo um aardvark!" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Eu não acredito no Ronal Reagan" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "Coragem! Bush é um zé!" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "Eu já não te vi na TV?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "Eu acho comerciais de hemorróida realmente doidos!" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "Nós estamos ganhando a guerra das drogas!" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "Um dia sem droga é como a noite" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "Nós usamos apenas 20% de nossos cérebros, então porque não estragar os " "outros 80%" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Eu estou solicitando contribuições para os Zumbis de Cristo" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Eu queria te mandar um poodle" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Vencedores não usam drogas... ao menos que usem" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "Mate um policial por Cristo!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Eu sou o walrus!" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Jesus ama você mais do que você sabe" #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Eu sinto uma vontade incontável de pintar meu cabelo de azul" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Jane Fonda não estava maravilhosa em Barbarella" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Apenas diga Não... bem, talvez... ok, que diabos!" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "Você gostaria de um doce, bebê?" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "Drogas podem ser suas amigas!" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Não foi possível processar o arquivo de configuração %s, linha %d" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "Não foi possível abrir o arquivo %s" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Configuração pode ser somente mudada interativamente quando\n" "nenhum jogador está logado. Espere por todos os jogadores saírem,\n" "ou remove eles com os comandos push ou kill, e tente de novo." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Índice da array %s deve ser entre 1 e %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s é %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s é %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s é %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s é \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] é %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s é { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s não pode ser menor que %d - ignorando!" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s não pode ser maior que %d - ignorando!" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Estrutura de lista redimensionada para %d elementos\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Valor booleano esperado (om dentre 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "$" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=ARQUIVO use plugin de som \"ARQUIVO\"\n" " " #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u arquivo use plugin de som \"arquivo\"\n" "\t " #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "(%s dispnível)\n" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versão %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Uso: dopewars [OPÇÕES]...\n" "Jogo de tráfico de drogas baseado no \"Drug Wars\" por John E. Dell\n" " -b \"preto e branco\" - você não usa cores\n" " (por padrão cores são usadas quando o terminal suporta) -" "n seja chato e não conecta em nenhum servidor dopewars " "disponível (modo para um jogador)\n" " -a dopewars \"antigo\" - se mantém o mais parecido com a versão\n" " original (isto também desabilita todo suporte de rede)\n" " -f arquivo especifica um arquivo para usar para a tabela de pontuação\n" " (por padrão, %s/dopewars.sco é usado)\n" " -o addr especifica o nome do host do server dopewars para jogar em " "modo\n" " multiplayer (legível - ex. nenhumlugar.com - formato)\n" " -s roda em modo servidor (nota: para um servidor \"não interativo" "\", \n" " rode dopewars -s < /dev/null >> logfile & )\n" " -S roda um servidor \"privado\" (não modifica o servidor meta)\n" " -p especifica uma porta de rede para usar (padrão: 7902)\n" " -g arquivo especifica o local do arquivo de configuração do dopewars. " "Este\n" " arquivo é lido imediatamente quando a opção -g é encontrada\n" " -r arquivo mentém o arquivo pid \"arquivo\" enquanto roda-se o servidor\n" " -c cria e roda um jogador controlado pelo computador\n" " -w força o uso do cliente gráfico (GTK+ ou Win32)\n" " -t força o uso do cliente baseado em texto (curses)\n" " (por padrão, o cliente gráfico é usado quando possível)\n" " -h mostra estas informações de ajuda\n" " -v mostra informações de versão e sai\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help mostra esta informação de ajuda\n" " -v, --version mostra informação sobre a versão e sai\n" "\n" "dopewars Copyright (C) Ben Webb 1998-2022, e licenciado sob a GNU GPL\n" "Reporte bugs ao autor em benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Uso: dopewars [OPÇÕES]...\n" "Jogo de tráfico de drogas baseado no \"Drug Wars\" por John E. Dell\n" " -b \"preto e branco\" - você não usa cores\n" " (por padrão cores são usadas quando o terminal suporta) -" "n seja chato e não conecta em nenhum servidor dopewars " "disponível (modo para um jogador)\n" " -a dopewars \"antigo\" - se mantém o mais parecido com a versão\n" " original (isto também desabilita todo suporte de rede)\n" " -f arquivo especifica um arquivo para usar para a tabela de pontuação\n" " (por padrão, %s/dopewars.sco é usado)\n" " -o addr especifica o nome do host do server dopewars para jogar em " "modo\n" " multiplayer (legível - ex. nenhumlugar.com - formato)\n" " -s roda em modo servidor (nota: para um servidor \"não interativo" "\", \n" " rode dopewars -s < /dev/null >> logfile & )\n" " -S roda um servidor \"privado\" (não modifica o servidor meta)\n" " -p especifica uma porta de rede para usar (padrão: 7902)\n" " -g arquivo especifica o local do arquivo de configuração do dopewars. " "Este\n" " arquivo é lido imediatamente quando a opção -g é encontrada\n" " -r arquivo mentém o arquivo pid \"arquivo\" enquanto roda-se o servidor\n" " -c cria e roda um jogador controlado pelo computador\n" " -w força o uso do cliente gráfico (GTK+ ou Win32)\n" " -t força o uso do cliente baseado em texto (curses)\n" " (por padrão, o cliente gráfico é usado quando possível)\n" " -h mostra estas informações de ajuda\n" " -v mostra informações de versão e sai\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Cliente curses não disponível - reconstrua o binário passando a opção\n" "--enable-curses-client para configurar, ou use o cliente gráfico\n" "(se disponível) no lugar!\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Nenhum cliente GTK+ disponível - reconstrua o binário passando\n" "a opção --enable-gui-client para configurar, ou use o cliente\n" "curses (se disponível) no lugar!\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binário foi compilado sem suporte a rede, e portanto não pode executar\n" "em modo admin. Recompile passando --enable-networking para o script de " "configuração.\n" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binário foi compilado sem suporte a rede, e portanto não pode executar\n" "em modo admin. Recompile passando --enable-networking para o script de " "configuração.\n" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Tradução de Portugal Bruno Lopes" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Baseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação de" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" "um mercado de drogas imaginário. dopewars é um jogo americano onde se pode" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "comprar, vender, e tentar se safar dos policiais!" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "A primeira coisa que você irá precisar fazer é pagar seu débito com o agiota." #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "Depois disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficar" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "vivo)! Você tem um mês de tempo de jogo para fazer sua fortuna." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Versão %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars está lançado sob a GNU General Public License" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "Icons and Graphics Ocelot Mantis" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sounds Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Tráfico de Drogas e Pesquisas Dan Wolf" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Teste de Jogo Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testes Extensivos de Jogo Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Crítica Construtiva Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Crítica não construtiva James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "" "Para informações de opções da linha de comando, digite dopewars -h no seu" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "prompt Unix. Isto irá mostrar a tela de ajudam listando as opções " "disponíveis." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Por favor entre com o nome do host e porta do servidor dopewars:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Nome do Host: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Porta" #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Aguarde... tentando contactar o servidor meta..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Servidor : %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Porta : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Versão : %s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Jogadores: -unknown- (máximo de %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Jogadores: %d (máximo de %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "Rodando desde : %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Comentário: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "P>róximo servidor; A>nterior; S>elecionar este servidor... " #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "PAS" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Conectado ao servidor SOCKS %s..." #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "Autenticando com o servidor SOCKS" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Pedindo ao SOCKS para conectar em %s..." #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "Autenticação SOCKS necessária (entre nome de usuário em branco para cancelar)" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "Nome de usuário: " #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "Senha: " #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Aguarde... tentando contactar o servidor dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "Não foi possível obter detalhes do metaservidor" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "Não foi possível iniciar o dopewars em multiplayer" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "a conexão com o servidor falhou" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "Você irá... C>onectar em um diferente host e porta" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>istar os servidor no servidor meta, e selecionar um" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " S>air (onde você pode iniciar um servidor digitando " #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " ou J>ogar com apenas um jogador ? " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "CLSJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "Para onde, cara ? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Você não pode ganhar nenhum dinheiro pelo seguinte %tde :" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "O que você quer largar? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "Que quantidade você quer largar? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "O que você quer comprar? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "O que você quer vender? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Você pode comprar %d, e pode carregar %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "Quantos você vai comprar? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Você tem %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "Quantos você vai vender? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Escolha um trabalho para dar a uma de suas %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " E>spionar um outro traficante (custo: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " A>trair policiais para outro traficante (custo: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " D>espedir" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "ou C>ontactar suas espiãs e receber informações" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "ou N>enhum trabalho ? " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "EADCN" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "Quem você quer espiar? " #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "Para quem você quer que os policiais sejam atraídos? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr " Você tem certeza? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "SN" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "Você tem certeza que quer sair? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Novo nome: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Você foi tirado do servidor. Revertendo para modo de jogador único." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "O servidor foi terminado. Revertendo para modo de jogador único." #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "%s entrou no jogo!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s saiu do jogo." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s agora vai ser conhecido como %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "M E T R Ô" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "%/Local atual/%tde" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Infelizmente, alguém já está usando o \"seu\" nome. Por favor mude-o." #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "M E L H O R E S P O N T U A Ç Õ E S" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "Você não tem nenhum %tde para vender!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "Você não tem nenhum para vender!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Você irá precisar de mais %tde para carregar ainda mais %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Você não tem espaço suficiente para carregar aquele %tde!" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Você não tem dinheiro suficiente para comprar aquele %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Você irá C>omprar, V>ender, ou S>air? " #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "CVS" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "Quanto dinheiro você quer pagar de volta? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "Você não tem todo esse dinheiro!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Você quer D>epositar dinheiro, R>etirar dinheiro, ou S>air ? " #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "DRS" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "Quanto dinheiro? " #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "Não há todo este dinheiro no banco..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "S:Sim" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:Não" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "C:Correr" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "L:Lutar" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Atacar" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "E:Evacuar" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Pressione qualquer tecla..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Estatísticas" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Dinheiro" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tde" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Pontos de vida" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Banco" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Débito" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Espaço %6d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Espaço %6d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Casaco" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%/Estatísticas: Drogas/%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Informações de espionagem de %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "Nenhum outro jogador está atualmente logado!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Jogadores atualmente logados:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Ei carinha, os preços de %tde aqui estão:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGWINCH!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Ei carinha, qual seu nome? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "Você irá C>omprar" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", V>ender" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", L>argar" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", F>alar, P>agear" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", J>ogadores" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", D>ar" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", L>utar" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", I>r" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", ou S>air? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "Você quer " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "L>utar, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "F>icar paradão, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "C>orrer, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "T>raficar %tde, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "ou S>air? " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "Conexão com o servidor perdida! Revertendo para o modo de um jogador" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "CVLFPJDLIS" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "TCLFS" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "Listar o que? J>ogadores ou P>ontuações? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "JP" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "Quem você quer pagear (falar privadamente) ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Fale: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "Jogar novamente? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Jogo" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Jogo/_Novo..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "/Jogo/_Abandonar" #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "/Jogo/_Opções" #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "/Jogo/_Habilitar som" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Jogo/_Sair..." #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Falar" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Falar/Para _Todos..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Falar/Para um _Jogador..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Listar" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Listar/_Jogadores..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Listar/_Pontuações..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Listar/_Inventário..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Trabalhos" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Trabalhos/_Espionar..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Trabalhos/_Atrair..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Trabalhos/_Pegar informações de espionagem..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Ajuda" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Ajuda/_Sobre..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Aviso" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "Erro" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Mensagem" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "Abandonar jogo atual?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Sair do Jogo" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Iniciar um novo jogo" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "Abandonar jogo" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Inventário" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "_Fechar" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Conexão com o servidor perdida - mudando para modo de um jogador" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Você foi tirado do servidor. Revertendo para modo de um jogador." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "O servidor foi terminado. Revertendo para modo de um jogador." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Indo para %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Despedir puta menu item/_Despedir %Tde..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Espionar (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Subornar (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "Melhores Pontuações" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "Highscore corrompido!" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Lutar" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "_Traficar %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Lutar" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Ficar parado" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Correr" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "(Saiu)" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "(Morto)" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "(Pontos de vida: %d)" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "(Você)" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/Estatísticas: Putas/%Tde" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Ir para o local" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "em %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Você está atualmente carregando %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Espaço disponível: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Você pode comprar %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Comprar" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Vender" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Largar" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "Comprar que quantidade?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "Vender que quantidade?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "Largar que quantidade?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_OK" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Cancelar" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Comprar %tde" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Vender %tde" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Largar %tde" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Sim" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_Não" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Atacar" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_Evacuar" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Pergunta" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Espaço" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "_Ir!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Tradução de Portugal" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Bruno Lopes" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "Ícones e gráficos" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "Sons" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Tráfico de Drogas e Pesquisas" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Teste de Jogo" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Extensivo Teste de Jogo" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Crítica Construtiva" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Crítica não construtiva" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "Sobre o dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Baseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação " "de\n" "um mercado de drogas imaginário. dopewars é um jogo americano onde se pode\n" "comprar, vender, e tentar se safar dos policiais!\n" "\n" "A primeira coisa que você irá precisar fazer é pagar seu débito com o " "agiota. Depois\n" "disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficar vivo)! " "Você\n" "tem um mês de tempo de jogo para fazer sua fortuna.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Versão %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars está lançado sob a GNU General Public License\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Para informações sobre opções de linha de comando, digite dopewars -h no " "seu\n" "prompt Unix. Isto irá mostrar a tela de ajuda, listando as opções " "disponíveis.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "Documentação local em HTML" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Título da janela do agiota/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/Título da janela do NomeDoBanco/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "Você precisa entrar uma quantidade positiva de dinheiro!" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "Não há todo este dinheiro no banco..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Dinheiro: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Débito: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Banco: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Pagar de volta:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Depositar" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Retirar" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Pagar tudo" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Lista de jogadores" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Falar com jogador(es)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Falar com todos os jogadores" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Mensagem:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Mandar" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Espionar Jogador" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor escolha o jogador para espionar. Sua %tde irá\n" "então oferecer seus serviços para o jogador, e se conseguido,\n" "você poderá ver as estatísticas do jogador com o menu\n" "\"Obter Informações de Espionagem\". Lembre-se que a %tde irá\n" "deixar você, então qualquer %tde ou %tde que ela está carregandoirá ser " "perdido!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Atrair os Policiais" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor escolha o jogador para os policiais serem atraídos. Sua %tde irá\n" "ajudar os policiais atacar este jogador, e então reportar de volta para\n" "você. Lembre-se que a %tde irá deixar você temporariamente, então\n" "todo %tde ou %tde que ela está carregando será perdido!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Despedir puta dialog title/Despedir %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Você tem certeza? (Qualquer %tde ou %tde carregado\n" "por esta %tde vai ser perdido!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Nome" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Preço" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Número" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Comprar ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Vender" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Largar <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde aqui" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde carregados" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Mudar Nome" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Infelizmente, alguém já está usando o \"seu\" nome. Por favor mude-o:-" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/Título da janela da LojaDeArmas/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Informações de Espionagem" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "Novo %s" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "Selecione arquivo de som" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "Novo" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "Remover" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "Para cima" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "Para baixo" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "Presença da polícia" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "Quantidade mínima de drogas" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "Quantidade máxima de drogas" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "Preço normal mínimo" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "Preço normal máximo" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "Pode ser especialmente barato" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "Dano" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "Opções" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "Grana inicial" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "Dívida inicial" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "Navegador" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "Locais" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "drogas" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "armas" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "policiais" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "Minimizar para a Barra do Sistema" #: src/gui_client/optdialog.c:969 msgid "Metaserver URL" msgstr "URL do metaservidor" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Comentário" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Servidor" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "Descrição" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "Arquivo de som" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Ajudar" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "Você não pode iniciar um jogo antes de dar a ele um nome!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Novo Jogo" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Status: Esperando por algo do usuário" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "Status: ERRO: %s" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Conexão encerrada pelo host remoto" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Não foi possível conectar (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Tentando contacatar %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Desconhecido" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Conectado ao servidor SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "Statis: Autenticando com o servidor SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Status: Pedindo ao SOCKS para conectar a %s.." #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Porta" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Versão" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Jogadores" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Ei carinha, qual o seu _nome?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Nome do host" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Conectar" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "Modo _Antigo" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Iniciar jogo de um jogador" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "Apenas um jogador" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Servidor Meta" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "Autenticação SOCKS Necessária" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "_Selecionar" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "servidor dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "IA dopewars" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "escapou" #: src/serverside.c:73 msgid "defected" msgstr "derrotado" #: src/serverside.c:73 msgid "was shot" msgstr "levou um tiro" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:129 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "servidor dopewars versão %s comandos e configurações\n" "\n" "help Mostra esta tela de ajuda\n" "list Lista todos os jogadores logados\n" "push Educadamente pede para o jogador sair\n" "kill Brutalmente interrompe a conexão do jogador\n" "msg: Manda mensagem para todos os jogadores\n" "quit Sai, depois de notificar todos os jogadores\n" "= Seta uma variável com o valor\n" " Mostra o conteúdo da variável\n" "[x].= Seta uma variável na lista dada,\n" " índice x, com o valor dado\n" "[x]. Mostra o conteúdo da variável de lista\n" "\n" "Variáveis válidas são mostradas abaixo:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "Falha ao conectar com metaservidor em %s (%s)" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "Meta servidor: %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" "Tentativa de conectar ao metaservidor muito frequentemente - aguardando o " "próximo timeout" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "Aguardando para conectar ao metaservidor em %s..." #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxClientes (%d) excedido - cancelando conexão" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Desculpe, mas este servidor tem um limite de 1 jogador, ao qual foi " "alcançado. Por favor tente conectar mais tarde." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Desculpe, mas este servidor tem um limite de %d jogadores, ao qual foi " "alcançado. Por favor tente conectar mais tarde." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s será conhecido como %s" #: src/serverside.c:437 #, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: RECUSADO ir para local inválido %s" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Seu tempo de tráfico acabou..." #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: RECUSADO ir para %s" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s agora espionando %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s espionando %s: RECUSADO" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s atraiu os policiais para %s" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s atração para %s: RECUSADO" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Mensagem desconhecida: %s:%c:%s:%s" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Mantendo o arquivo pid %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Não foi possível criar o arquivo pid %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "servidor dopewars versão %s pronto e esperando conexões\n" "na porta %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGUSR1!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGHUP!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGINT!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGTERM!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "Não foi possível instalar o sinal de pipe!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "Arquivo de configuração gravado OK como %s\n" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Usuários atualmente logados:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "Nenhum usuário atualmente logado!\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Retirando %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "Este usuário não existe!\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s morto\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Comando desconhecido - tente \"help\" para ajuda...\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "conexão de %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "servidor dopewars encerrando." #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "%s saiu do servidor!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "MetaServidor: (fechado)" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "servidor dopewars versão %s pronto para comandos de administração; tente \\" "\"help\\\" para ajuda" #: src/serverside.c:1287 msgid "New admin connection" msgstr "Nova conexão de administrador" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "Comando de administração: %s" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "Conexão de administrador encerrada" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1681 msgid "Command:" msgstr "Comando:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "Não foi possível ler o arquivo de pontuação %s" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Não foi possível criar backup (%s) do\n" "arquivo de recordes: %s." #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Não foi possível abrir o arquivo de recordes %s: %s." #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Não foi possível abrir o arquivo de pontuação %s. (%s)\n" "Veja se você tem permissões para acessar este arquivo e diretório, ou\n" "especifique um arquivo de pontuação alternativo com a opção -f." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "Não foi possível ler o arquivo de pontuação %s" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "Parabéns! Você entrou nas melhores pontuações!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "Você nem conseguiu entrar na tabela de melhores pontuações..." #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "Não foi possível escrever no arquivo de pontuação %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Atrair de %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: espião oferecido por %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Um de suas %tde estava espionando para %s.^O espião %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Seu espião trabalhando com %s foi descobrido!^O espião %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "A moça próxima a você no metrô lhe diz,^ \"%s\"%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (ao menos, você -pensa- que foi o que ela disse)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Você escuta alguém tocando %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Você gostaria de visitar %tde?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Você gostaria de contratar %tde por %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s está aqui!^Você Ataca, ou Evacua?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "Nenhum policial ou armas!" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "Policiais não podem atacar outros policiais" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "Jogadores já estão brigando!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "Jogadores estão em lutas separadas!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "Não é possível começar briga - nenhuma arma para usar!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Você está morto! Jogo acabado." #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: atração de %s terminada OK." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Seguindo suas pistas, os policiais cercaram %s, que foi morto!" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Seguindo suas pistas, os policiais cercara %s, que escapou com %d %tde. " #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "Você foi massacrado no metrô!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Você encontrou um amigo! Ele lhe dá %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Você encontrou um amigo! Você dá a ele %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Sanitized away a RandomOffer" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Cães policiais caçam você por %d blocos! Você largou algum %tde! Que droga, " "cara!" #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Você acha %d %tde em um cara morto no metrô!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Sua mamãe fez comida com algumas de suas %tde! Ela estava ótima!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Tem uma maconha aqui que cheira muito bem!^Parece bom! Você irá fumar? " #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Você parou para %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Você gostaria de comprar um colete por %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" "YN^Ei carinha! Eu posso ajudar você carregar %tde por meros %P. Sim ou não?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Você gostaria de comprar %tde por %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: oferta foi %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s aceitou seu %tde!^Use a tecla G para contactar seu espião." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Você alucionou por três dias na viagem mais louca que você jamais imaginou!" "^Então você morreu porque seu cérebro desintegrou!" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Muito tarde - %s já saiu!" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "%s rejeitou seu %tde!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "Enviando atualizações pendentes ao metaservidor..." #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Jogador removido por ter ficado muito tempo parado" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Jogador removido por expiração da conexão" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "(O erro não pode ser mostrado em UTF-8)" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "Código interno de erro %d" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:156 msgid "WinSock version not supported" msgstr "" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "" #: src/error.c:158 msgid "Address already in use" msgstr "Endereço já em uso" #: src/error.c:159 msgid "Cannot reach the network" msgstr "Não é possível alcançar a rede" #: src/error.c:160 msgid "The connection timed out" msgstr "" #: src/error.c:161 msgid "Out of file descriptors" msgstr "" #: src/error.c:162 msgid "Out of buffer space" msgstr "Sem espaço para buffer" #: src/error.c:163 msgid "Operation not supported" msgstr "Operação não suportada" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "Conexão abortada devido a falha" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "Conexão reiniciada pelo host remoto" #: src/error.c:166 msgid "Connection refused" msgstr "Conexão recusada" #: src/error.c:167 msgid "Address family not supported" msgstr "" #: src/error.c:168 msgid "Protocol not supported" msgstr "Protocolo não suportado" #: src/error.c:169 msgid "Socket type not supported" msgstr "Tipo de socket não suportado" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "Host não encontrado" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "Nome válido, mas não há registro DNS presente" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "Código de erro de rede %d" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "Nenhum servidor listado no metaservidor" #: src/message.c:1135 msgid "Do you run?" msgstr "Você corre?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "Você corre, ou luta?" #: src/message.c:1337 msgid "pitifully armed" msgstr "muito pouco armado" #: src/message.c:1338 msgid "lightly armed" msgstr "pouco armado" #: src/message.c:1339 msgid "moderately well armed" msgstr "moderamente bem armado" #: src/message.c:1340 msgid "heavily armed" msgstr "pesadamente armado" #: src/message.c:1340 msgid "armed to the teeth" msgstr "armado até os dentes" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - está te perseguindo, cara!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s e %d %tde - %s - estão te perseguindo, cara!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s chega com %d %tde, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s fica e pega" #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Você fica parado como um panaca." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s tenta escapar, mas falha." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "Pânico! Você não consegue escapar!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "%s fugiu para %tde!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "%s fugiu!" #: src/message.c:1384 msgid "You got away!" msgstr "Você fugiu!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Armas recarregadas..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s atira em %s... e erra!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s atira em você... e erra!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "Você errou em %s!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s mata %s." #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s atira em %s e mata uma %tde!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s atira em %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s acabou com você, cara! Que merda!" #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s atirou em você... e matou uma %tde!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "%s acertou você, carinha!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "Você matou %s!" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Você acertou %s, e matou uma %tde!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "Você acertou %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr "Você achou %P no corpo!" #: src/message.c:1439 msgid " You loot the body!" msgstr " Você roubou o corpo!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Conexão estabelecida; use Ctrl-D para fechar sua sessão.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Não foi possível abrir o arquivo %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Não foi possível conectar no servidor dopewars\n" "(%s)\n" "Jogador com IA terminado abnormalmente." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Conexão estabelecida\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Conectado ao servidor SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autenticando com o servidor SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Jogador com IA iniciado; tentando contactar servidor em %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Jogador com IA terminado OK\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Conexão com o servidor perdida!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Usando o nome %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Jogadores neste jogo:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s entra no jogo.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s sai do jogo.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Indo para %tde com %P de dinheiro e %P de débito\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Jogador com IA morto. Terminando normalmente.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Tempo de jogo esgotando. Saindo do jogo.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Jogador com IA retirado do servidor.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "O servidor foi acabado.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendendo %d %tde por %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Comprando %d %tde por %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Comprando um %tde por %P na loja de armas\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Débito de %P pago ao agiota\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Agiota localizado em %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Loja de armas localizada em %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Bordel localizado em %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Banco localizado em %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Vocês se acham traficantes de drogas?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Um macaco treinado pode até fazer melhor..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Acham que vocês são duros o bastante para lidar com gente como eu?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... vocês estão traficando doces ou o que?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Droga eu vou ter que simplesmente atirar em você pro seu próprio bem." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Este binário foi compilado sem suporte a rede, e por iss não se pode atuar " "como um jogador com IA.\n" "Recompile passando a opção --enable-networking para o script configure." #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Plugin inválido \"%s\" selecionado.\n" "(%s disponível; agora usando \"%s\".)" #~ msgid "Cash %17P" #~ msgstr "Dinheiro %13P" #, c-format #~ msgid "Health %3d" #~ msgstr "Pontos de vida %3d" #~ msgid "Bank %17P" #~ msgstr "Banco %16P" #~ msgid "Debt %17P" #~ msgstr "Débito %15P" #~ msgid "Port for metaserver communication" #~ msgstr "Porta para a comunicação com o servidor meta" #~ msgid "Path of the script on the metaserver" #~ msgstr "Caminho do script CGI no servidor meta" dopewars-1.6.2/po/es.po000644 000765 000024 00000406727 14256242752 014671 0ustar00benstaff000000 000000 # Translation of Dopewars to Castilian aka Spanish # This file is distributed under the same license as the Dopewars package. # Copyright (C) 2003 Ben Webb # Quique , 2002, 2003. # # # códigos %t: # # al - yendo a/al/a las/... sitio # First author: Quique , 2002,2003. # # msgid "" msgstr "" "Project-Id-Version: es\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2003-12-10 09:29+0100\n" "Last-Translator: Quique \n" "Language-Team: Castilian aka Spanish \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "puta" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "putas" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "arma" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "armas" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "droga" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "drogas" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "%d-%m-%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "el usurero_al_al usurero" #: src/dopewars.c:196 msgid "the Bank" msgstr "el banco" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "la armería" #: src/dopewars.c:197 msgid "the pub" msgstr "el bar" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Puerto de red al que conectarse" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nombre del fichero de máximas puntuaciones" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nombre del servidor al que conectarse" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Mensaje de bienvenida del servidor" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Dirección de red del servidor al que escuchar" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE si se debe usar un servidor SOCKS para la conexión de red" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE si se deben usar ID de usuario numéricos para SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Si no se deja en blanco, el nombre de usuario a usar para SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "El nombre del servidor SOCKS a usar" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "El número de puerto del servidor SOCKS a usar" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "La versión del protocolo SOCKS a usar (4 o 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nombre de usuario para la autenticación SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Contraseña para la autenticación SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE si el servidor debe informar a un metaservidor" #: src/dopewars.c:281 #, fuzzy msgid "Metaserver URL to report/get server details to/from" msgstr "Nombre del metaservidor al que informar o del que obtener información" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "El nombre de su servidor" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Autenticación del nombre local con el metaservidor" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Descripción del servidor, que se pasa al metaservidor" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Si TRUE, el servidor se minimiza a la bandeja del sistema" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "Si TRUE, el servidor funciona en segundo plano" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "La orden usada para iniciar su navegador web" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Número de rondas de juego (si es 0, el juego nunca termina)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "Día del mes en el que empieza el juego" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "Mes en el que empieza el juego" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "Año en el que empieza el juego" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "El símbolo de dinero (por ejemplo, $)" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "Si TRUE, el símbolo de dinero va antes que el precio" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "Fichero en el que escribir los mensajes de registro" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "Controla el número de mensajes de registro producidos" # timestamps: dataciones estampilla marcas temporales #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "formato de la cadena strftime() para las marcas de tiempo" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Se limpian los eventos aleatorios" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE si se debe guardar el valor de las drogas compradas" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Ser prolijo al procesar el fichero de configuración" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Número de sitios en el juego" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Número de tipos de policía en el juego" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Número de armas en el juego" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Número de drogas en el juego" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Ubicación del usurero" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Ubicación del banco" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Ubicación de la armería" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Ubicación del bar" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "Tasa de interés diaria de la deuda con el usurero" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "Tipo de interés diario de su saldo en el banco" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Nombre del usurero" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Nombre del banco" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Nombre de la armería" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Nombre del bar" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "TRUE si se debe habilitar el sonido" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "Fichero de sonido que suena cuando un disparo hace blanco" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "Fichero de sonido que suena cuando un disparo yerra su objetivo" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "Fichero de sonido que suena cuando se recarga un arma" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" "Fichero de sonido que suena cuando se mata a un ayudante o a una puta enemiga" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "Fichero de sonido reproducido cuando muere una de sus putas" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" "Fichero de sonido reproducido cuando se mata a otro jugador o a un policía" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "Fichero de sonido reproducido cuando le matan a usted" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" "Fichero de sonido reproducido cuando un jugador intenta escapar, pero no lo " "consigue" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" "Fichero de sonido reproducido cuando usted intenta escapar, pero no lo " "consigue" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "Fichero de sonido reproducido cuando un jugador logra escapar" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "Fichero de sonido reproducido cuando usted logra escapar" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "Fichero de sonido que suena al llegar a un nuevo sitio" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje público al chat" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje privado al chat" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "Fichero de sonido que suena cuando se une un jugador al juego" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "Fichero de sonido que suena cuando un jugador abandona el juego" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "Fichero de sonido reproducido al empezar el juego" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "Fichero de sonido reproducido al acabar el juego" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Orden de las drogas disponibles" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Número de segundos para devolver disparos" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Los jugadores son desconectados después de este número de segundos" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Tiempo en segundos para que las conexiones sean establecidas o rotas" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Número máximo de conexiones TCP/IP" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Segundos entre los turnos de los jugadores automáticos" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Cantidad de dinero con la que empieza cada jugador" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Importe de la deuda con la que empieza cada jugador" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Nombre de cada lugar" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Presencia policial en cada sitio (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Número mínimo de drogas en cada sitio" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Máximo número de drogas en cada lugar" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "% de resistencia a disparos de cada jugador" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "% de resistencia a disparos de cada puta" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Nombre de cada policía" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Nombre del ayudante de cada policía" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Nombre de los ayudantes de cada policía" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "% de resistencia a disparos de cada policía" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "% de resistencia a disparos de cada ayudante" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Penalización de ataque relativa a un jugador" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Penalización de defensa relativa a un jugador" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Número mínimo de ayudantes acompañantes" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Número máximo de ayudantes acompañantes" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "" "Índice basado en cero de la pistola con la que están armados los policías" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Número de pistolas que porta cada policía" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "Número de pistolas con las que carga cada ayudante" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Nombre de cada droga" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Precio mínimo normal de cada droga" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Precio máximo normal de cada droga" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE si esta droga puede ser especialmente barata" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE si esta droga puede ser especiamente cara" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Mensaje a mostrar cuando esta droga sea especialmente barata" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Línea utilizada para drogas que sean caras el 50% de las veces" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "Divisor del precio de la droga cuando es especialmente barata" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicador para las drogas especialmente caras" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Nombre de cada arma" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Precio de cada arma" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Espacio que ocupa cada arma" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Daño ocasionado por cada arma" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Palabra usada para designar una sola \"puta\"" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Palabra usada para designar dos o más \"putas\"" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Palabra usada para designar una sola arma" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Palabra usada para designar dos o más armas" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Palabra usada para designar una sola droga" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Palabra usada para designar dos o más drogas" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "cadena de formato strftime() para mostrar la ronda del juego" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Coste de enviar a una puta a espiar al enemigo" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Coste de enviar a una puta a dar información sobre el enemigo a la policía" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Precio mínimo de contratar una puta" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Precio máximo de contratar una puta" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Lista de cosas que se oyen en el metro" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Número de cosas que se dicen en el metro" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Lista de canciones que se oyen tocar" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Número de canciones que se tocan" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Lista de cosas que puede dejar de hacer" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Número de cosas que puede dejar de hacer" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` de Jimi Hendrix" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` de Tone Loc" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Polipuestón` de King Putreak" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Alternativa platino` de Habeas Corpus" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Mineros locos (Armas pal pueblo)` de Def Con Dos" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Todo por la napia` de Siniestro Total" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` de Jefferson Airplane" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`I want to get high` de Cypress Hill" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Needle And The Spoon` de Lynyrd Skynyrd" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` de Jefferson Airplane" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Street Lobotomy` de Body Count" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` de the Tubes" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`I Love You Mary Jane` de Sonic Youth" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Drug Me` de Dead Kennedys" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Julie's In The Drug Squad` de The Clash" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Tengo un spiz amarillo` de Manolo Kabezabolo" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "las grabaciones del CESID" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalización` de Ska-P" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "tomar una cerveza" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "fumar un porro" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "fumar un puro" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "fumar un Djarum" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "fumar un cigarrillo" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Agente Matute" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "ayudante" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "ayudantes" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Comisario Romerales" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Jefe Wiggum" #: src/dopewars.c:703 msgid "cop" msgstr "poli" #: src/dopewars.c:703 msgid "cops" msgstr "polis" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr ".38 Special" #: src/dopewars.c:709 msgid ".38 Special" msgstr "Kalashnikov" #: src/dopewars.c:710 msgid "Ruger" msgstr "Colt 45" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Smith & Wesson" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "LSD" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "¡El mercado está inundado de LSD casero barato!" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Cocaína" #: src/dopewars.c:720 msgid "Hashish" msgstr "Hachís" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "¡Ha llegado un cargamento de hachís de Marruecos!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Heroína" #: src/dopewars.c:723 msgid "Ludes" msgstr "Barbitúricos" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "¡Alguien ha atracado en una farmacia y está vendiendo barbitúricos baratos!" #: src/dopewars.c:725 msgid "MDA" msgstr "Éxtasis" #: src/dopewars.c:726 msgid "Opium" msgstr "Opio" #: src/dopewars.c:727 msgid "PCP" msgstr "Ketamina" #: src/dopewars.c:728 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Hongos alucinógenos" #: src/dopewars.c:730 msgid "Speed" msgstr "Anfetaminas" #: src/dopewars.c:731 msgid "Weed" msgstr "Marihuana" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Ha llegado la cosecha. ¡El precio de la marihuana está por los suelos!" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "La Paz_al_a La Paz" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Barrio Oliver_al_al Barrio Oliver" #: src/dopewars.c:742 msgid "Central Park" msgstr "Parque Bruil_al_al Parque Bruil" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Zona pija_al_a la Zona pija" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Delicias_al_a las Delicias" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "El Gancho_al_al Gancho" #: src/dopewars.c:746 msgid "Queens" msgstr "Torrero_al_a Torrero" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Casco viejo_al_al Casco Viejo" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" "¡Los polis han hecho una gran redada de %tde! ¡Los precios son exorbitantes!" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "¡Los adictos están comprando %tde a precios absurdos!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "¡Vivamos al límite!" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "De todo lo que he perdido, lo que más echo de menos es la cabeza." #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Apuesto a que tiene sueños superinteresantes" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Creo que voy a ir a Amsterdam este año" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Chico, deberías teñirte el pelo de color amarillo" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Pero ¿por qué llevas gafas de sol si es de noche?" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "Yo no he sido siempre una mujer, ¿sabes?" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "¿Su madre sabe que es un camello?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "¿Está drogado o qué?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Ah, usted debe ser gallego" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "" "Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... " "chocolate." #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Poderoso caballero es Don Dinero" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "" "Sólo usamos el 10% de nuestro cerebro. ¡Destruyamos con drogas el 90% " "sobrante!" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "No puedo más, me voy a la cama. ¿Me acompaña?" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "¡Ánimo! El imperio estadounidense caerá como cayó el imperio romano" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "Usted sale en la televisión, ¿verdad?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "Los anuncios de compresas hacen que desee ser mujer" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "¿Sabe que tiene los ojos muy enrojecidos, joven?" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "¿Se imagina como sería la vida si no hubiera drogas?" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "En las hamburgueserías usan carne de rata. Por eso la dan picada." #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" "`Cuestionemos la autoridad; pensemos por nosotros mismos` dijo Tim Leary" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Le vendo una cámara de fotos nueva a mitad de precio" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Los triunfadores no usan drogas... salvo..." #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "¡Mi cuerpo es mío y en él meto lo que quiero!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Soy Carlos Jesús, y vengo de Raticulín." #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Espero que no le importe, pero voy a rezar por usted." #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "No somos más que un montón de átomos moviéndose en la nada." #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "¿No le encanta la música del noticiario?" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Si le ofrecen droga, diga \"no\", que somos muchos y queda poca." #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "La telepatía existe. ¿No siente la energía del universo?" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "" "De la piel para dentro usted es su único soberano. ¡Y las drogas son sus " "amigas!" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "No se ha podido procesar el fichero de configuración %s, línea %d" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "No es posible abrir el fichero %s" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La configuración sólo se puede cambiar interactivamente cuando no hay " "ningún\n" "jugador conectado. Espere a que se desconecten todos los jugadores, o\n" "elimínelos con las órdenes echar o matar, e inténtelo otra vez." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "El índice en la cadena %s debe estar entre 1 y %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s es %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s es %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s es %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s es \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] es %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s es { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s no puede ser menor de %d - se ignora" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Estructura lista redimensionada a %d elementos\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Se esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "$" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=FALSE" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FICHERO usar módulo de sonido \"FICHERO\"\n" " " #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fichero usar módulo de sonido \"fichero\"\n" "\t " #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "(%s disponible)\n" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versión %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b, --no-color, \"black and white\" - o sea, en blanco y negro\n" " --no-colour (por omisión se usan colores, si se puede)\n" " -n, --single-player ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 " "jugador)\n" " -a, --antique dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (sin red)\n" " -f, --scorefile=FICHERO indicar que fichero usar como tabla de " "puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o, --hostname=DIRE especificar un nombre de servidor en el que se " "puede\n" " encontrar un servidor para dopewars " "multiusuario\n" " -s, --public-server ejecutar en modo servidor (nota: lea la opción -A " "para\n" " configurar un servidor ya en funcionamiento)\n" " -S, --private-server ejecutar un servidor \"privado\" (no avisar al\n" " metaservidor)\n" " -p, --port=PUERTO indicar el puerto de red a usar (por omisión: " "7902)\n" " -g, --config-file=FICHERO indicar la ruta de un fichero de configuración " "de\n" " dopewars\n" " este fichero se lee inmediatamente cuando se\n" " encuentra la opción -g\n" " -r, --pidfile=FICHERO mantener el fichero pid \"FICHERO\" mientras se " "ejecuta\n" " el servidor\n" " -l, --logfile=FICHERO escribir la información del registroen\n" " \"FICHERO\"\n" " -A, --admin conectarse a un servidor ejecutándose localmente " "para\n" " administración\n" " -c, --ai-player crear y ejecutar un jugador automático\n" " -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o " "Win32)\n" " -t, --text-client obligar al uso de un cliente en modo texto " "(curses)\n" " (por omisión se intenta usar un cliente gráfico\n" " -P, --player=NOMBRE establecer el nombre del jugador como \"NOMBRE\"\n" " -C, --convert=FICHERO convertir un fichero de puntuaciones en el " "\"formato\n" " antiguo\" al nuevo formato\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help mostrar esta información de ayuda\n" " -v, --version mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU " "GPL\n" "Informe de fallos al autor escribiendo a benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b \"black and white\" - o sea, en blanco y negro\n" " (por omisión se usan colores, si se puede)\n" " -n ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 jugador)\n" " -a dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (no hay red)\n" " -f FICHERO indicar que fichero usar como tabla de puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o DIRE especificar un nombre de servidor en el que se\n" " puede encontrar un servidor para dopewars multiusuario\n" " -s ejecutar en modo servidor (nota: lea la opción -A para\n" " configurar un servidor que ya está en funcionamiento)\n" " -S ejecutar un servidor \"privado\" (no avisar al metaservidor)\n" " -p PUERTO indicar el puerto de red a usar (por omisión: 7902)\n" " -g FICHERO indicar la ruta de un fichero de configuración de dopewars\n" "este fichero se lee inmediatamente cuando se encuentra la opción -g\n" " -r FICHERO mantener el fichero pid \"FICHERO\" mientras se ejecuta el " "servidor\n" " -l FICHERO escribir la información del registro en \"FICHERO\"\n" " -c crear y ejecutar un jugador automático\n" " -w obligar al uso de un cliente gráfico (GTK+ o Win32)\n" " -t obligar al uso de un cliente en modo texto (curses) (por\n" " omisión se usa un cliente gráfico si es posible)\n" " -P nombre establecer el nombre del jugador a \"nombre\"\n" " -C FICHERO convertir un fichero de puntuaciones en el \"formato antiguo" "\" al nuevo formato\n" " -A conectarse a un servidor ejecutándose localmente para " "administración\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h mostrar esta información de ayuda\n" " -v mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU " "GPL\n" "Informe de fallos al autor escribiendo a benwebb@users.sf.net\n" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "El cliente curses no está disponible - vuelva a construir el binario\n" "pasando la opción --enable-curses-client a configure, o use una\n" "versión gráfica (si es posible) es su lugar.\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "El cliente gráfico no está disponible - vuelva a construir\n" "el binario pasando la opción --enable-gui-client a configure,\n" "o use el cliente curses (si está disponible) en su lugar.\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto\n" "no se puede ejecutar en modo servidor. Recompile pasando\n" "la opción --enable-networking al script configure.\n" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Traducción al español Quique" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una simulación" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" "de un mercado de la droga imaginario. Dopewars es un juego para toda la" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "" "familia que consiste en ganar dinero con la compraventa (y eludir a la " "policía)." #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "Lo primero que tiene que hacer es saldar la deuda con su usurero. Después" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "su objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "Tiene un mes de tiempo de juego para amasar su fortuna." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars está publicado bajo la GNU General Public License" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "Iconos y gráficos Ocelot Mantis" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sonidos Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Compraventa de drogas e investigación Dan Wolf " #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeo del juego Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeo intensivo del juego Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Críticas constructivas Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Críticas destructivas James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "Para conocer las opciones en la línea de órdenes, escriba dopewars -h" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "en su terminal. Se mostrará una pantalla de ayuda con las opciones " "disponibles." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Introduzca el nombre y puerto de un servidor dopewars:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Nombre del servidor: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Puerto: " #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Por favor, espere... intentando contactar con el metaservidor..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Servidor: %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Puerto : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Versión : %s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Jugadores: -desconocido- (máximo %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Jugadores: %d (máximo %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "En funcionamiento desde: %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Comentario: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>iguiente servidor: A>nterior servidor; E>scoger este servidor... " #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "SAE" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Conectado al servidor SOCKS %s..." #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "Autenticando contra el servidor SOCKS" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Pidiendo SOCKS para conectarse a %s..." #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "Se requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "Nombre de usuario: " #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "Contraseña: " #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Por favor, espere... intentando contactar con el servidor dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "No se pueden obtener los detalles del metaservidor" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "No se puede iniciar dopewars en modo multijugador" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "¿Quiere... C>onectarte a un servidor dopewars determinado" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr "" " L>istar los servidores que hay en el metaservidor, y elegir uno" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " S>alir (puede iniciar un servidor tecleando «dopewars -s»)" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " o J>ugar en modo 1 jugador? " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "CLSJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "¿Dónde quiere ir, caballero? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "%/Location display/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "No puede conseguir ni una moneda por estas %tde que lleva:" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "¿Qué quiere tirar? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "¿Cuántas quiere tirar? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "¿Qué quiere comprar? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "¿Qué quiere vender? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tiene dinero para comprar %d, y espacio para llevar %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "¿Cuánto quiere? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Tiene %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "¿Cuánto quiere vender? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Elija un recado que encargar a una de sus %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " E>spiar a otro traficante (precio: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " D>elatar a la policía otro traficante (precio: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " I>rse a consumir sus drogas" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "o C>ontactar con sus espias y recibir las informaciones" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "o N>o mandar ningún encargo " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "EDICN" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "¿A quién quiere espiar? " #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "¿A quién quiere delatar a la policía? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr " ¿Está seguro? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "SN" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "¿Está seguro de que quiere salir? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Nuevo nombre: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Ha sido expulsado del servidor. Pasando al modo 1 jugador." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "El servidor se ha desconectado. Pasando al módulo 1 jugador." #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "¡%s se une al juego!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s ha dejado el juego." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s es ahora conocido como %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "M E T R O" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "%/Ubicación actual/%tde" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Desgraciadamente ya hay alguien usando «su» nombre. Elija otro." #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "P U N T U A C I O N E S" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "¡No tiene ningún %tde que vender!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "¡No tiene ninguna que vender!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "¡Necesita más %tde para que le guarden más %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "¡No tiene suficiente espacio para llevar ese %tde!" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "¡No tiene suficiente dinero para comprar ese %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "¿Quiere C>omprar, V>ender o I>rse? " #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "CVI" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "¿Cuánto dinero quiere devolver? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "¡No tiene tanto dinero!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "¿Quiere I>ngresar dinero, O>btener dinero o S>alir?" #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "IOS" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "¿Cuánto dinero? " #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "No tiene tanto dinero en el banco..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "S:Sí" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:No" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "C:Correr" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "E:Enfrentarse" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Atacar" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "H:Huir" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Pulse cualquier tecla..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "Mensajes (-/+ desplaza hacia arriba/abajo)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Situación" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Dinero" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tde" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Salud" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Banco" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Deuda" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Espacio %4d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %5d Espacio %4d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Gabardina" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%/Situación: Drogas/%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d a %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Información sobre %s de las espías" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Espía: Drogas/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "%/Espía: Armas/%Tde..." #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "¡No hay ningún otro jugador conectado en este momento!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Jugadores conectados en este momento:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Eh, oiga. Los precios de las %tde aquí son:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGWINCH!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Eh oiga, ¿cómo se llama? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "¿Quiere C>omprar" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", V>ender" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", T>irar" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", H>ablar a todos, hablar a un J>ugador" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", L>istar" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", M>andar recado" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", E>nfrentarse" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", I>r a otro sitio" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", o S>alir? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "¿Quiere " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "L>uchar, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "E>sperar, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "C>orrer, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "V>ender %tde, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "o S>alir? " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador." #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "CVTHJLMEIS" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "VCLES" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "¿Qué lista quiere? ¿J>ugadores o P>untuaciones? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "JP" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "¿Con quién quiere hablar en privado?" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Decir: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "¿Jugar otra vez? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Juego" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Juego/_Nueva partida..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "/Juego/_Abandonar partida..." #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "/Juego/_Opciones..." #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "/Juego/Activar_sonido" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Juego/_Salir..." #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Hablar" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Hablar/_Hablar a todos..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Hablar/Hablar al _Jugador..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Listar" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Listar/_Jugadores..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Listar/_Puntuaciones..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Listar/_Inventario..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Recados" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Recados/_Espiar..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Recados/_Delatar..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Recados/_Obtener información de las espías..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Ayuda" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Ayuda/_Acerca de..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Advertencia" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "Error" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Mensaje" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "¿Abandonar esta partida?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Salir del juego" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Empezar nueva partida" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "Abandonar esta partida" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Inventario" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "Cerrar _Ventana" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Se ha perdido la conexión con el servidor - pasando al modo 1 jugador" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Ha sido expulsado del servidor.\n" "Pasando al modo 1 jugador." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "El servidor se ha apagado.\n" "Pasando al modo 1 jugador." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Yendo %tal" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Elemento de menú echar a una puta/E_char a una %Tde..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Espiar (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Delatar (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "Puntuaciones" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "El fichero de puntuaciones está corrupto :-(" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Enfrentarse" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "¡A _traficar!" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Luchar" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Esperar" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Correr" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Enfrentamiento: Putas/%d %tde" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "(Quedan)" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "(Muertas)" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Salud: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "Usted" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Putas/%Tde" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Ir al barrio:" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "%/Lugar al que irse/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "a %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Ahora lleva %d dosis de %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Espacio disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Tiene dinero para comprar %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Comprar" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Vender" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Tirar" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "¿Cuánto quiere comprar?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "¿Cuánto quiere vender?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "¿Cuánto quiere tirar?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_Aceptar" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Cancelar" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Comprar %tde" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Vender %tde" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Tirar %tde" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Sí" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_No" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Atacar" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_Huir" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Pregunta" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Espacio" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "¡_Irse!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Traducción al español" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Quique" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "Iconos y gráficos" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "Sonidos" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Compraventa de drogas e investigación" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Testeo del juego" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Testeo intensivo del juego" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Críticas constructivas" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Críticas destructivas" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "Acerca de Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una \n" "simulación de un mercado de la droga imaginario. Dopewars es un juego \n" "para toda la familia que consiste en la compraventa de droga y en intentar \n" "evitar a la policía.\n" "\n" "Lo primero que tiene que hacer es saldar la deuda con su usurero. \n" "Después, su objetivo es hacer tanto dinero como sea posible (¡y seguir \n" "vivo!) Tiene un mes de tiempo de juego para amasar su fortuna.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Versión %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars está publicado bajo la GNU General Public License\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Para obtener información sobre las opciones en la línea de órdenes,\n" "escriba dopewars -h en su terminal Unix. Esto mostrará una pantalla\n" "de ayuda con las opciones disponibles.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "Documentación local en HTML " #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Título de la ventana del usurero/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/Título de la ventana del banco/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "¡Tiene que introducir una cantidad positiva de dinero!" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "No tiene tanto dinero en el banco..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Dinero en efectivo: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Deuda: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Banco: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Saldar:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Ingresar" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Sacar" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Pagar todo" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Lista de jugadores" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Hablar al jugador (o jugadores)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Hablar a todos los jugadores" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Mensaje:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Enviar" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Espiar al jugador" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elija al jugador al quiere espiar. Su %tde ofrecerá\n" "sus servicios a ese jugador, y si tiene éxito, podrá ver la\n" "situación del jugador con el menú \"Obtener informes de las\n" "espías\" Recuerde que la %tde se va, así que puede perder\n" "todas las %tde o %tde que le esté guardando." #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Delatar a la policía" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elija al jugador al que quiere delatar a la policía. Su\n" "%tde ayudará a los policías a atacar a ese jugador, y le informará\n" "del resultado cuando se encuentren. Recuerde que la %tde se va\n" "a ir temporalmente, así que puede perder todas las %tde o %tde\n" "que le esté guardando." #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Título del diálogo Echar a una puta/Echar a una %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "¿Está seguro? (Perderá todas las %tde y %tde\n" "que le esté guardando esta %tde!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Nombre" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Precio" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Número" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Comprar ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Vender" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Tirar <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde aquí" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde que tiene" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Cambiar nombre" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Desgraciadamente ya hay otro jugador usando «su» nombre. Elija otro" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Ventana de la armería/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Información de las espías" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "Nuevo %s" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "Seleccionar fichero de sonido" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "Nuevo" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "Borrar" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "Arriba" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "Abajo" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "Presencia policial" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "Número mínimo de distintas clases de droga" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "Número máximo de distintos tipo de droga" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "Mínimo precio normal" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "Máximo precio normal" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "Puede ser especialmente barata" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "Frase barata" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "Puede ser especialmente cara" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "Inventario" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "Daño" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "Nombre de un ayudante" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "Nombre de varios ayudantes" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "Número mínimo de ayudantes" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "Número máximo de ayudantes" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "Blindaje del poli" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "Blindaje del ayudante" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "Opciones" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "Eliminar las referencias a drogas" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "Fichero de configuración de Unicode" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "Duración de la partida (turnos)" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "Capital inicial" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "Deuda inicial" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "Símbolo de dinero" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "Símbolo antes del precio" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "Nombre de una puta" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "Nombre de varias putas" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "Navegador" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "General" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "Sitios" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "Frase cara 1" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "Frase cara 2" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "Drogas" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "Armas" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "Polis" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "El servidor informa al metaservidor" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "Minimizar a la bandeja del sistema" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "Metaservidor" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Comentario" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "MOTD (mensaje de bienvenida)" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Servidor" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "Nombre del sonido" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "Descripción" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "Fichero de sonido" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "Inspeccionar..." #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "Jugar" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Ayuda" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "¡No puede empezar la partida sin dar un nombre antes!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Nueva partida" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Situación: Esperando datos del usuario" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Conexión cerrada por el servidor remoto." #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Situación: No se ha podido conectar (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Situación: Intentando contactar con %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Desconocido" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Situación: Conectado al servidor SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "Situación: Autenticando contra servidor SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Situación: Pidiendo SOCKS para conectarse a %s..." #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Puerto" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Versión" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Jugadores" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Eh oiga, ¿cuál es su _nombre?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Nombre del servidor" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Conectarse" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "_Modo antiguo" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Empezar partida para 1 jugador" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "1 jugador" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "_Refrescar" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Metaservidor" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "Se precisa autenticación SOCKS" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "Éste es el registro de arranque de dopewars, que\n" "contiene todos los mensajes de información resultantes\n" "de procesar el fichero de configuración, etc.\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "servidor dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "Jugador automático de dopewars" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "se escapó" #: src/serverside.c:73 msgid "defected" msgstr "desertó" #: src/serverside.c:73 msgid "was shot" msgstr "fue disparada" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AH" #. Help on various general server commands #: src/serverside.c:129 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "ordenes y preferencias del servidor dopewars versión %s\n" "\n" "help Muestra esta pantalla de ayuda\n" "list Lista todos los jugadores conectados\n" "push Le pide educadamente al jugador nombrado que se " "vaya\n" "kill Rompe repentinamente la conexión con el jugador " "nombrado\n" "msg: Envía un mensaje a todos los jugadores\n" "save Guardar la configuración actual en el fichero " "nombrado\n" "quit Salir elegantemente, tras avisar a todos los " "jugadores\n" "= Establece la variable nombrada al valor dado\n" " Muestra el valor de la variable nombrada\n" "[x].= Establece la variable nombrada en la lista dada,\n" " index x, al valor proporcionado\n" "[x]. Muestra el valor de la variable de la lista " "nombrada\n" "\n" "Las variables válidas son:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "No se ha podido conectar al metaservidor en %s (%s)" #: src/serverside.c:168 src/serverside.c:1102 #, fuzzy, c-format msgid "MetaServer: %s" msgstr "Metaservidor: %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" "Intentos para conectarse al metaservidor demasiado frecuentes - esperando al " "siguiente turno" #: src/serverside.c:240 #, fuzzy, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "Esperando para conectarse al metaservidor en %s..." #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" "Parece que está usando un cliente tremendamente viejo (versión 1.4.x)^ " "Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no " "estarán soportadas. Obtenga la última versión del sitio web de dopewars,^ " "https://dopewars.sourceforge.io/." #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" "Advertencia: su cliente es demasiado viejo para soportar todas las^ " "funcionalidades de este servidor. Para «vivir la experiencia» completa,^ " "consiga la última versión de dopewars del servidor web,^ http://dopewars." "sourceforge.net/." #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" "Alcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexión" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Disculpe, pero este servidor tiene un límite de 1 jugador, que ya ha sido " "alcanzado. ^Pruebe más tarde a conectarte de nuevo." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Disculpe, pero este servidor tiene un límite de %d jugadores, que ya ha sido " "alcanzado. ^Pruebe a conectarte de nuevo más tarde." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s es ahora conocido como %s" #: src/serverside.c:437 #, fuzzy, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: DENEGADO irse a %s" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Se acabó su tiempo para traficar..." #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: DENEGADO irse a %s" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s espía ahora a %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "espionaje de %s a %s: DENEGADO" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s delató a la policía a %s" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "Delación de %s sobre %s: DENEGADO" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Mensaje desconocido: %s:%c:%s:%s" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Manteniendo el fichero pid %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "No se puede crear el fichero pid %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" "No se puede crear el socket (%s) (a la escucha) del servidor. Cancelando." #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "No se puede conectar al puerto %u (%s). Cancelando." #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "No se puede escuchar el socket de red. Cancelando." #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "servidor dopewars versión %s preparado y esperando conexiones por el puerto " "%d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGUSR1!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGHUP!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGINT!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGTERM!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "¡No se puede instalar el gestor de tuberías!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "El fichero de configuración se ha guardado con éxito como %s\n" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Usuarios conectados:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "No hay ningún usuario conectado.\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Echando a %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "¡No existe ese usuario!\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s asesinado\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Orden desconocida - use «help» para obtener ayuda\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "recibida una conexión de %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "cerrando el servidor dopewars." #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "¡%s deja el servidor!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "No se ha podido establecer el socket de dominio Unix para conexiones de " "administración - compruebe los permisos en /tmp." #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "el servidor de dopewars versión %s está listo para recibir órdenes de " "administración; use «help» para obtener ayuda" #: src/serverside.c:1287 msgid "New admin connection" msgstr "Nueva conexión de administración" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "Orden de administración: %s" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "Conexión de administración cerrada" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "No se ha podido establecer el estado del Servicio NT" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "No se ha podido enviar el mensaje de notificación de servicio" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "No se ha podido registrar el gestor de servicio" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "No se ha podido iniciar el Servicio NT" #: src/serverside.c:1681 msgid "Command:" msgstr "Orden:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "No se ha podido leer la tabla de puntuaciones del fichero %s" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "El fichero %s de la tabla de puntuaciones se ha convertido\n" "al nuevo formato. Se ha creado una copia de respaldo del\n" "fichero antiguo, que se ha llamado %s.\n" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "No se ha podido crear la copia de respaldo (%s) del\n" "fichero de máximas puntuaciones %s." #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "No se ha podido abrir el fichero de puntuaciones %s: %s." #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "No se puede abrir el fichero de máximas puntuaciones %s.\n" "(%s.) Asegúrese de que tiene permisos para acceder\n" "a este fichero o directorio, o bien indique otro fichero de\n" "puntuaciones con la opción -f en la línea de órdenes." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s no parece ser un fichero de puntuaciones válido - \n" "por favor, compruébelo. Si es un fichero de puntuaciones\n" "de una versión antigua de dopewars, conviértala al nuevo\n" "formato ejecutando la orden «dopewars -C %s» en la\n" "línea de órdenes." #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, algunas preferencias podrían no funcionar de\n" "la manera esperada. Puede consultar el fichero «dopewars-log.txt»\n" "para conocer los detalles." #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, puede que algunas preferencias no funcionen\n" "de la manera esperada. Puede mirar los mensajes en la\n" "salida estándar para conocer más detalles." #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "No se puede leer el fichero de máximas puntuaciones %s." #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "¡Enhorabuena! ¡Ha conseguido una de las máximas puntuaciones!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "Ni siquiera ha conseguido entrar en la tabla de puntuaciones..." #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "No se ha podido escribir en el fichero de puntuaciones %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Delación de %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Oferta de espionaje de %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Una de sus %tde estaba espiando para %s. ^¡La espía %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "¡Su espía trabajando con %s ha sido descubierta!^¡La espía %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La señorita que está junto a usted en el metro dice:^ «%s»%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (al menos, eso es lo que *piensa* que ha dicho)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Oye a alguien poner %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^¿Quiere visitar %tal?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^¿Quiere contratar a una %tde por %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^¡%s ya está aquí!^¿Quiere Atacar o Huir?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "¡No hay armas ni polis!" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "¡Los polis no pueden atacar a otros polis!" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "¡Los jugadores ya están en una pelea!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "¡Los jugadores ya están en sus propias peleas!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "No se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Está criando malvas. Sayonara, baby." #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: la delación de %s acabó bien." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" "Siguiendo su delación, la policía va a por %s, ¡le disparan y es abatido!" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Siguiendo su delación , la policía va a por %s, que escapa con %d %tde. " #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^¿Quiere pagar %P a un médico para que le cure?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "¡Le atracan en el metro!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "¡Se encuentra con un amigo! Le da a usted %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "¡Se encuentra con un amigo! Usted le da %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Pasando de una oferta aleatoria" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "¡Los perros de la policía le persiguen durante %d minutos! ¡Pierde algo de " "%tde! Maldita sea..." #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Encuentra %d %tde en un cadáver abandonado en el metro!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "¡Su mamacita ha hecho galletas con algo de su %tde! ¡Estaban geniales!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^¡Aquí hay algo de marihuana que huele a herbicida!^¡Tiene buen aspecto! " "^¿Quiere fumarla? " #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Se ha parado para %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^¿Quiere comprar una gabardina más grande por %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^¡Eh, oiga! Le ayudo a llevar sus %tde por sólo %P. ¿Sí o no?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^¿Quiere comprar un %tde por %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: la oferta era en nombre de %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "¡%s ha aceptado su %tde!^Use la tecla G para contactar con su espía." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "¡Estuvo alucinando durante tres días en el viaje más salvaje que haya " "imaginado nunca!^Y entonces se murió debido a que su cerebro se derritió." #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Demasiado tarde. %s se acaba de ir." #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "¡%s ha rechazado su %tde!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "¡La policía le ve tirando %tde!" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "Enviando actualizaciones pendientes al metaservidor..." #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "Enviando mensaje recordatorio al metaservidor..." #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Jugador eliminado: demasiado tiempo inactivo" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Jugador eliminado debido a que se agotó el tiempo para la conexión" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "(No se puede mostrar el error en UTF-8)" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" "Se ha roto la conexión debido a que se ha llenado la memoria intermedia " "(full buffer)." #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "Código de error interno %d" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "WinSock no ha sido inicializado correctamente." #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "El subsistema de red no está preparado." #: src/error.c:156 msgid "WinSock version not supported" msgstr "Versión de WinSock no soportada" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "El subsistema de red ha fallado" #: src/error.c:158 msgid "Address already in use" msgstr "La dirección ya está en uso" #: src/error.c:159 msgid "Cannot reach the network" msgstr "No se puede alcanzar la red" #: src/error.c:160 msgid "The connection timed out" msgstr "La conexión excedió el tiempo límite" #: src/error.c:161 msgid "Out of file descriptors" msgstr "Ya no quedan descriptores de fichero" #: src/error.c:162 msgid "Out of buffer space" msgstr "Ya no queda memoria intermedia (buffer)" #: src/error.c:163 msgid "Operation not supported" msgstr "Operación no soportada" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "La conexión se ha roto debido a un fallo" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "Conexión rota por el servidor remoto" #: src/error.c:166 msgid "Connection refused" msgstr "Conexión rechazada" #: src/error.c:167 msgid "Address family not supported" msgstr "Familia de direcciones no soportada" #: src/error.c:168 msgid "Protocol not supported" msgstr "Protocolo no soportado" #: src/error.c:169 msgid "Socket type not supported" msgstr "Tipo de socket no soportado" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "Servidor no encontrado" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "Error temporal con el nombre del servidor - pruebe de nuevo más tarde" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "No se ha podido contactar con el servidor de nombres" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "Nombre válido, pero ahora no tiene ningún registro DNS" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "Error de red código %d" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "Error del servidor de nombres código %d" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Error interno del metaservidor «%s»" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Respuesta del metaservidor incorrecta «%s»" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "¿Echa a correr?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "¿Huye o se enfrenta?" #: src/message.c:1337 msgid "pitifully armed" msgstr "armados de pena" #: src/message.c:1338 msgid "lightly armed" msgstr "poco armados" #: src/message.c:1339 msgid "moderately well armed" msgstr "armados" #: src/message.c:1340 msgid "heavily armed" msgstr "muy armados" #: src/message.c:1340 msgid "armed to the teeth" msgstr "armados hasta los dientes" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "¡%s - %s - le está dando caza!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "¡%s y %d %tde - %s - le están persiguiendo!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "¡%s llega con %d %tde, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s se levanta y lo coge" #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Se queda ahí como un tonto." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s intenta huir, pero no lo consigue." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "¡Pánico! ¡No puede escapar!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "¡%s ha conseguido escapar %tal!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "¡%s ha conseguido escapar!" #: src/message.c:1384 msgid "You got away!" msgstr "¡Ha conseguido escapar!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Armas recargadas..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s dispara a %s... ¡y falla!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s le dispara... ¡y falla!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "¡No le ha dado a %s!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s mata a %s." #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s dispara a %s ¡y mata a una %tde!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s dispara a %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "¡%s le ha alcanzado! Descanse en paz..." #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s le dispara... ¡y mata a una %tde!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "¡%s le ha dado!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "¡Ha matado a %s!" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Le da a %s, y mata a un %tde!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "¡Le da a %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr " ¡Le encuentra %P en el cuerpo!" #: src/message.c:1439 msgid " You loot the body!" msgstr " ¡Le roba al cadaver!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "¡No se puede inicializar WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "Error general del servidor SOCKS" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "Conexión rechazada por las reglas de SOCKS" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "SOCKS: No se llega a la red" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "SOCKS: No se llega al servidor" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "SOCKS: Conexión rechazada" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "SOCKS: se agotó el tiempo" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "SOCKS: Orden no soportada" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Tipo de dirección no soportado" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "El servidor SOCKS rechazó todos los métodos ofrecidos" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "Devuelto tipo de dirección SOCKS desconocido" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "Error de autenticación SOCKS" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "Autenticación SOCKS cancelada por el usuario" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Solicitud rechazada o sin éxito" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Rechazada - no se ha podido contactar identd" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Rechazada - identd informa de diferentes ID de usuario" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "Código de respuesta de SOCKS desconocida" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "Código de respuesta de versión de SOCKS desconocida." #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "Versión de servidor SOCKS desconocida" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "Código de error de SOCKS %d" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, fuzzy, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Probando a conectar con el servidor dopewars local vía sockets de\n" "dominio Unix %s...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Conexión establecida. Use Ctrl-D para cerrar la sesión.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" "No se ha podido determinar el fichero de configuración local en que escribir" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "No se ha podido abrir el fichero %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "No se ha podido conectar al servidor dopewars\n" "(%s)\n" "El jugador automático se suicida." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Se ha establecido la conexión\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Conectado al servidor SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autenticándose con el servidor SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Pidiendo SOCKS para conectarse a %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" "Iniciado el jugador automático; intentando conectarse al servidor en %s:%d." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Jugador automático suicidado con éxito.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "¡Se ha roto la conexión con el servidor!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Usando el nombre %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Jugadores en esta partida:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s se une a la partida.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s ha dejado el juego.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Yendo %tal con %P en efectivo y %P de deuda\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Jugador automático asesinado. Cerrando de manera normal.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Se ha agotado el tiempo de juego. Saliendo.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "El jugador automático ha sido expulsado del servidor.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "El servidor se ha apagado.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendiendo %d %tde a %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Comprando %d %tde a %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Comprando un %tde por %P en la armería\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Deuda de %P pagada al usurero\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "El usurero está en %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "La armería está en %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "El bar está en %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "El banco está en %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "¿Y usted se hace llamar traficante?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un mono amaestrado lo haría mejor..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" "¿Cree que es lo suficientemente duro como para manejar a gente como yo?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... ¿está traficando con caramelos o qué?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Voy a tener que dispararle por su propio bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto no puede actuar " "como un jugador automático.\n" "Recompile pasando la opción --enable-networking al script configure" #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Seleccionado módulo «%s» no válido.\n" "(%s disponible, ahora usando «%s».)" #~ msgid "Cash %17P" #~ msgstr "Dinero %15P" #~ msgid "%-19Tde%3d" #~ msgstr "%-18Tde%3d" #, c-format #~ msgid "Health %3d" #~ msgstr "Salud %3d" #~ msgid "Bank %17P" #~ msgstr "Banco %16P" #~ msgid "Debt %17P" #~ msgstr "Deuda %16P" #~ msgid "Port for metaserver communication" #~ msgstr "Puerto para la comunicación con el metaservidor" #~ msgid "Name of a proxy for metaserver communication" #~ msgstr "Nombre del proxy para la comunicación con el metaservidor" #~ msgid "Port for communicating with the proxy server" #~ msgstr "Puerto para comunicarse con el servidor proxy" #~ msgid "Path of the script on the metaserver" #~ msgstr "Ruta del guión en el metaservidor" #~ msgid "If TRUE, use SOCKS for metaserver communication" #~ msgstr "Si TRUE, usar SOCKS para la comunicación con el metaservidor" #~ msgid "Username for HTTP Basic authentication" #~ msgstr "Nombre de usuario para la autenticación HTTP básica" #~ msgid "Password for HTTP Basic authentication" #~ msgstr "Contraseña para la autenticación HTTP básica" #~ msgid "Username for HTTP Basic proxy authentication" #~ msgstr "Nombre de usuario para la autenticación HTTP básica con el proxy" #~ msgid "Password for HTTP Basic proxy authentication" #~ msgstr "Contraseña para la autenticación HTTP básica con el proxy" #, c-format #~ msgid "Proxy authentication required for realm %s" #~ msgstr "Se requiere autenticación proxy para la zona %s" #, c-format #~ msgid "Authentication required for realm %s" #~ msgstr "Se requiere autenticación para la zona %s" #~ msgid "(Enter a blank username to cancel)" #~ msgstr "(Introduzca un nombre de usuario en blanco para cancelar)" #~ msgid "Web proxy hostname" #~ msgstr "Nombre del proxy web" #~ msgid "Script path" #~ msgstr "Ruta del script" #, c-format #~ msgid "Status: Could not connect to metaserver (%s)" #~ msgstr "Situación: No se ha podido conectar al metaservidor (%s)" #~ msgid "Status: Obtaining server information from metaserver..." #~ msgstr "Situación: Obtener información de servidores del metaservidor..." #~ msgid "Proxy Authentication Required" #~ msgstr "Se precisa autenticación con el Proxy" #~ msgid "Authentication Required" #~ msgstr "Se precisa autenticación" #~ msgid "" #~ "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " #~ "authentication" #~ msgstr "" #~ "Usando metaservidor. Proxy. Usuario y metaservidor. Proxy. Contraseña " #~ "para la autenticación con el proxy HTTP" #~ msgid "" #~ "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User " #~ "and MetaServer.Proxy.Password variables" #~ msgstr "" #~ "No se ha podido autenticar con proxy HTTP; por favor, establezca las " #~ "variablesMetaServer.Proxy.User y MetaServer.Proxy.Password" #~ msgid "" #~ "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " #~ "authentication" #~ msgstr "" #~ "Usando MetaServer.Auth.User y MetaServer.Auth.Password para la " #~ "autenticación HTTP" #~ msgid "" #~ "Unable to authenticate with HTTP server; please set MetaServer.Auth.User " #~ "and MetaServer.Auth.Password variables" #~ msgstr "" #~ "No se ha podido autenticar con el servidor HTTP; por favor, establezca " #~ "las variables MetaServer.Auth.User y MetaServer.Auth.Password" #~ msgid "" #~ "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" #~ msgstr "" #~ "Usando Socks.Auth.Usuario y Socks.Auth.Contraseña para autenticación " #~ "SOCKS5" #, c-format #~ msgid "Unknown metaserver error code %d" #~ msgstr "Error del metaservidor desconocido código %d" #~ msgid "Number of tries exceeded" #~ msgstr "Se ha excedido el número de intentos" #, c-format #~ msgid "Bad auth header: %s" #~ msgstr "Cabecera de autenticación no válida: %s" #, c-format #~ msgid "Bad redirect: %s" #~ msgstr "Redirección no válida: %s" #, c-format #~ msgid "Invalid HTTP status line: %s" #~ msgstr "Línea de estado de HTTP no válida: %s" #~ msgid "403: forbidden" #~ msgstr "403: prohibido" #~ msgid "404: page not found" #~ msgstr "404: página no encontrada" #~ msgid "401: HTTP authentication failed" #~ msgstr "401: la autenticación HTTP ha fallado" #~ msgid "407: HTTP proxy authentication failed" #~ msgstr "407: la autenticación con el proxy HTTP ha fallado" #~ msgid "Bad redirect message from server" #~ msgstr "Mensaje de redirección no válido recibido del servidor" #, c-format #~ msgid "Unknown HTTP error %d" #~ msgstr "Error HTTP desconocido %d" #, c-format #~ msgid "%d: redirect error" #~ msgstr "%d: error de redirección" #, c-format #~ msgid "%d: HTTP client error" #~ msgstr "%d: error del cliente HTTP" #, c-format #~ msgid "%d: HTTP server error" #~ msgstr "%d: error del servidor HTTP" dopewars-1.6.2/po/boldquot.sed000644 000765 000024 00000000331 14256000065 016212 0ustar00benstaff000000 000000 s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g s/“/“/g s/”/”/g s/‘/‘/g s/’/’/g dopewars-1.6.2/po/ChangeLog000644 000765 000024 00000002541 14256000065 015443 0ustar00benstaff000000 000000 2020-11-06 gettextize * Makefile.in.in: Upgrade to gettext-0.21. * Rules-quot: Upgrade to gettext-0.21. * en@boldquot.header: Upgrade to gettext-0.21. * en@quot.header: Upgrade to gettext-0.21. * insert-header.sin: Upgrade to gettext-0.21. * remove-potcdate.sin: Upgrade to gettext-0.21. 2013-07-08 gettextize * Makefile.in.in: Upgrade to gettext-0.18.2. * boldquot.sed: New file, from gettext-0.18.2. * en@boldquot.header: New file, from gettext-0.18.2. * en@quot.header: New file, from gettext-0.18.2. * insert-header.sin: New file, from gettext-0.18.2. * quot.sed: New file, from gettext-0.18.2. * remove-potcdate.sin: New file, from gettext-0.18.2. * Rules-quot: New file, from gettext-0.18.2. 2013-06-25 gettextize * Makefile.in.in: Upgrade to gettext-0.18.1. * boldquot.sed: New file, from gettext-0.18.1. * en@boldquot.header: New file, from gettext-0.18.1. * en@quot.header: New file, from gettext-0.18.1. * insert-header.sin: New file, from gettext-0.18.1. * quot.sed: New file, from gettext-0.18.1. * remove-potcdate.sin: New file, from gettext-0.18.1. * Rules-quot: New file, from gettext-0.18.1. 2001-10-26 gettextize * Makefile.in.in: Upgrade to gettext-0.10.38. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. dopewars-1.6.2/po/en@boldquot.header000644 000765 000024 00000002472 14256000065 017322 0ustar00benstaff000000 000000 # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # dopewars-1.6.2/po/de.gmo000644 000765 000024 00000207053 14256243622 015002 0ustar00benstaff000000 000000 \1AA?^BHB"B C5C5PCCCCC&C$C'D':D bD nDzDDDDDEE8EREgE{EEE E EEEE+E*F'GF(oFF=uGGGGG H%H 7H CH MH WHaHjH}H HHHH!HH I%+IQIqIIII I IJ2JNJcJyJJJ J/JK$ K2K9KBKJKSK[KbKjKrK K KKKKKK LL"L1LALULgLxLL LLLLLL L#LM(M"CM;fMMM MMM-M!N8NUNgN N+N+NNNBO!aO"O#OMO P!9P0[PP PPPPPPPJP>Q$RRRS SS S'S%=ScShSSS%S5ST2TPT(pT(T)T)T*UAU*^UU#>VbV${VVV V V V,VWJ WTW]W eW qW~W*,XWX wX!X X"X%X$Y;Z<UZ,Z ZZZ1Z[$3[/X[K[1[\$!\F\b\r\ \\\*\(\\\ ]) ]J]"O]r]#{]]] ] ]0]]^ ^<"^+_^^^ ^^^&^^^__&+_R_X_v_1``aaA*alata}a+a"aa b$b*bGHb?bEb2cIc]c}ccccccccc cd& d2dOd ld xdd dddd dee #e0De/ueAee!f%'f0Mf3~f+ff,f0g*Og,zg.ggg= h JhTh'dhhh)h0hi(i'Gi/oi iiiij#j0o (;;B1~(*و)6.e48I fq0!"ۊ,LDMߋL@#Hl )Ì  ")LHi**)@ # DPUp/) .!</^)(֐$/-.])%$ܑ:Y_(b@X̒'%4M )͓"%$7J5, ,"/O. Εvܕ SFaF5% AMl{((*"@S-r@Ә94N*1  !*18>DHL Q[b |,%*#(Ll$#(ԛ%#6,U""$Ȝ 1FJOXah q9}ǝH-BGM3U GÞ */Z kv  5ß+F%lu7ݡ5r.Ȣ:;I#أڣ#&!D f r~!Ԥ#ݤ7H`x ťΥ+170iR.Gd z Ȩ ߨ(-V#j*%ߩ";![)}ܪ#(LkAz-«    $. 7D\ n#| Ҭ߬,=Ys ʭҭ ڭ 0.1 `*j&A'>N])b"̯ݯ "#)M^E}$ð%3QB .Ա %$)NT dnGv4h ƴҴ'$)F_/w9%$&,)S)}**Ҷ6$41Y0e- -0^neԹ ܹ CҺ 52V.&4߻9-g"|?߼LL;`5ҽ 4V*:GվV1t(ƿ--=QW"[(~'- 88E~  J  0=C' %"$)N]-s$i@ ,4&a"=hQx?Q \"q  - &1@&Gn#  "(9br"J6F,s%26/!*Q|:2*-*/XH % E R.`9/-$'8L( -9>T h.r #'.=&l1 ? : JUo#.$15g4411Q (6Le y#*# DH O[ q~c"+N"f'5 +$/P%  $5Bx !* 4 ?M\ c m<y ;* KS1m3!1;:m<4]x* # "? NZagw "9+_. !+!K"n5' ">W2t3.  &1<n + !8-"f( ;/!IQH9 %*&Pw(/;<+,h1=>CDC*/'.E/t6  1AY m z ,1)')0Q!&FD@W(;-,+Xp7&$BT;hNq9/L(9=bKI;Q2"7<X;L g =**D+ZDEH- v-&8!Mot-H 11ck{(0-8hf%  7W%t/#)<'f?.??E566)>EJDw&7)<Z]y)>@77.o.)1)8E ~ HEUF?"@$]-.0.(_"#@#(AL>@04?t         ,HX-\&+$ @%`$)& -0 #^ # %     = 9  B M  V  d q  z C   H = R X  _ *i    $  : , = 5Q        : @Z I     tV32|*B`<XN)n %>_ IW%[^R5sNgf}"=O?dpd;Gi,v0|gE={#4XRoer_/O<9La23{Ad7^6#gh!q1:+P9@I$!J'M(ES*$F~x ~hU\;ZEwkDm[ 8 yxKTO+)cAj' .jz"-)Mvc 7?mBXABf]!%xb h>Qjlu Kpp0z,1 >@v,W Q+U7CM4k8Y{u/a4& nQ#lDZky:-ieZ~t].=IFH^ `0r'.:_ `r(@l\s9GCTC"(8s&T6P|ioV/J]}2KcLD *S<W Hy bn5-YYLFR  mwUzqG6 \$5qeV  fa[1&Ptu?wbo; JNH3S} For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? You find %P on the body! You loot the body!$% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-22tde %3d%-7tde %3d%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/LoanShark window title/%Tde%/Location to jet to/%tde%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%d. %tde%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no larger than %d - ignoring!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(Dead)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempting to connect to local dopewars server via Unix domain socket %s... Authenticating with SOCKS serverAuthenticating with SOCKS server Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBad metaserver reply "%s"BankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot get metaserver detailsCannot initialize WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armorCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolD O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armorDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaServer: %sMetaserverMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for SOCKS5 authenticationPassword: Pay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication canceled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUpUp since : %sUser name: Username for SOCKS5 authenticationUsers currently logged on:- Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License Waiting for connect to metaserver at %s...WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initializedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server terminating.dopewars server version %s ready and waiting for connections on port %d.dopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2001-04-08 15:48+0100 Last-Translator: Benjamin Karaca Language-Team: German Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Für Informationen über Kommandozeilen-Parameter, gib 'dopewars -h' in deiner UNIX-shell ein. Alle verfügbaren Kommandos werden dann angezeigt. L>iste Server des Metaserver auf und wähle einen ausmöchtest Du das Spiel B>eenden oder möchtest Du als E>inzelspieler spielen D>röhn dich voll S>chicke Spion zu einem anderem Dealer (Kosten: %P) V>erpfeife ein anderen Dealer an die Cops (Kosten: %P) Bist Du sicher? Du findest %P in der Leiche!Du plünderst die verdammte Leiche!$% Trefferresistenz jeder Huren% Trefferresistenz jedes Polizisten% Trefferresistenz jedes Hilfssheriffs% Trefferresistenz jedes Spielers%-22tde %3d%-7tde %3d%/BankName Fenstertitel/%Tde%/Kampf: Huren/%d %tde%/Derzeitiger Aufenthaltsort/%tde%c. %tde%/GTK Waffenladen Fenstertitel/%Tde%/GTK Stats: Huren/%Tde%/Kredithai Fenstertitel/%Tde%/Reiseziel/%tde%/Spion: Drogen/%Tde...%/Spion: Waffen/%Tde...%/Stats: Drogen/%Tde%Tde%Tde %3d Platz %6d%Tde dabei%Tde hier%d von %d%d. %tde%s - %s - verfolgt dich Mann!%s und %d %tde - %s - verfolgen dich, Mann!%s trifft mit %d %tde ein, %s!%s kann nicht größer sein als %d – ignorieren!%s kann nicht kleiner sein als %d – ignorieren!%s scheint keine gültige Bestenliste-Datei zu sein - bitte nachprüfen! Wenn es eine Datei von einer älteren Version von Dopewars ist, dann konvertiere sie zuerst in das neue Format mit Hilfe des Parameters "dopewars -C %s" in der Kommandozeile.%s hat deine %tde angenommen !^Benutz die Taste G um deinen Spion zu kontaktieren.%s ist geflohen nach %tde!%s ist abgehauen!%s hat das Spiel verlassen.%s verlassst das Spiel. %s hat deine %tde abgelehnt!%s trifft dich, Mann!%s ist "%s" %s ist %P %s ist %d %s ist %s %s ist { %s betritt das Spiel!%s betritt das Spiel. %s getötet %s verlässt den Server!%s spioniert nun bei %s%s erledigt %s.%s schießt auf %s und tötet eine %tde!%s schießt auf %s.%s schiesst auf %s... und verfehlt!%s schießt auf dich und tötet eine %tde!%s schießt auf dich... und verfehlt!%s spion bei %s: VERWEIGERT%s steht rum und kriegt's voll ab.%s verpfeifft %s: VERWEIGERT%s hat %s bei den Cops verraten%s versucht erfolglos zu fliehen.%s hat dich erledigt, Mann! So'n Scheiß!%s ist nun bekannt als %s%s ist nun bekannt als %s.%s: VERWEIGERT Reise zu %s%s: Spion angeboten von %s%s: Verpfiffen von %s%s: Angebot war im Interesse von %s%s: Verrat von %s erledigt OK.%s[%d] ist %s %s^%s ist schon hier!^Willst du angreifen, oder dich verdrücken?(Tot)(Fehler kann in UTF-8 nicht angezeigt werden)(Links)(R.I.P.), W>egwerfen, K>ämpfen, A>ktion, R>eisen, L>iste, V>erkaufen, S>prechen, F>lüstern, oder B>eenden? .38er Special/Aktionen/_Spionagebericht lesen.../Aktionen/_Spionieren.../Aktionen/_Verpfeifen.../Spiel/Sound/Spiel/_Abbrechen.../Spiel/_Neu.../Spiel/_Einstellungen.../Spiel/_Ende.../Hilfe/_Über.../Anzeigen/des _Inventars.../Anzeigen/der _Spieler.../Anzeigen/der _Punkte.../Mitteilung/An _Alle.../Mitteilung/An _Spieler.../_Aktionen/_Spiel/_Hilfe/_Anzeigen/_Mitteilung<- _VerkaufenEin Tag ohne Drogen ist so dunkel wie die Nacht.Selbst ein trainierter Affe könnte das besserA:AngriffKI Spieler wurde getötet. Beende normal. KI Spieler wurde vom Server geworfen. KI Spieler gestartet; erstelle Verbindung zu Server bei %s:%d ...KI Spieler beendet OK. Willst du das aktuelle Spiel abbrechen?Spiel AbbrechenÜber DopewarsAcidJunkies kaufen %tde für horrende Summen!Adresse wird bereits benutztAdressenfamilie nicht unterstütztAdmin Befehl: %sAdmin Verbindung geschlossenAgent SmithStartkapital der einzelnen SpielerStartschulden der einzelnen SpielerBist du bekifft?Willst du wirklich aufhören? Bist Du sicher? (Alles %tde oder %tde getragenes %tde geht verloren!)Frage SOCKS nach Verbindung zu %s...Frage SOCKS um zu %s... zu verbinden Angriffserschwernis im Verhältnis zu einem SpielerVersuche, lokalen dopewars Server via Unix Domänen Socket %s zu kontaktieren... Authentifiziere bei SOCKS ServerBestätigung mit SOCKS Server Bestätigung für LocalName mit dem MetaserverVerfügbarer Platz: %dEVWSFLAKRBEVGFalsche Antwort des Metaservers "%s"KontoBank ist in %s Konto: %PBarettaDieses Spiel basiert auf dem alten Spiel Drug Wars von John E. Dell undBasiert auf John E. Dell's altem Spiel 'Drug Wars'. Das Spiel simuliert einen imaginären Drogenmarkt, mit allen Dingen die man so gerne macht: Einkaufen, Verkaufen und versuchen, nicht von der Polizei erwischt zu werden. Als erstes sollte man seine Schulden beim Kredithai begleichen. Danach ist es das Ziel soviel Geld wie möglich zu verdienen und natürlich am Leben zu bleiben. Man hat dafür einen ganzen Monat Zeit. Für die Fehlersuche hilfreiche Nachrichten erzeugenBenjamin KaracaBronxBrooklynEinkaufenKaufen %tdeWieviel Einkaufen?Kaufe %d %tde für %P Kaufe eine %tde für %P im Waffenladen VLBEIhr nennt euch Drogendealer?Kann ?u?erst billig seinKann ?u?erst teuer seinKann nicht auf Port %u (%s) starten. Breche ab.Kann kein Backup (%s) der Bestenliste-Datei %s erstellen.Kann PID Datei nicht erstellen %s: %sBekomme keine Details des MetaserverKann WinSock nicht initialisieren (%s)Kann SIGHUP nicht installieren, breche abKann SIGINT nicht installieren, breche abKann SIGTERM nicht installieren, breche abKann SIGUSR1 nicht installieren, breche abKann den SIGWINCH Interrupt Handler nicht installierenKann pipe handler nicht installierenKann nicht am Netzwerksockeln horchen. Breche ab.Kann Bestenliste-Datei %s nicht öffnen. (%s). Stell sicher, dass du die Berechtigung für den Zugriff auf die Datei/das Verzeichnis hast oder gib eine andere Bestenliste-Datei mit derm -f Kommandozeilen-Parameter an.Kann die Bestenliste-Datei nicht öffnen %s: %s.Kann Netzwerk nicht erreichenKann nicht kämpfen - keine Waffen vorhanden!BargeldBargeld: %PCentral ParkÄndere NameNachricht für günstigen PreisWähle einen Auftrag für eine deiner %tde...KokainEin kolumbianischer Frachter hat die Küstenwache umschippert. Der Preis für Weed ist ins bodenlose gefallen!Befehl:KommentarKommentar: %sConey IslandEinstellungen können nur interaktiv geändert werden wenn keine Spieler eingeloggt sind. Warte bis alle Spieler ausgeloggt sind oder entferne sie mit dem push oder kill Kommando und versuche es dann noch malGlückwunsch! Du hast Dir einen Platz in der Bestenliste erkämpft!Verbinde zu SOCKS-Server %s...Zu SOCKS Server %s verbunden... Verbindung aufgrund eines Fehlschlages abgebrochenVerbindung wurde durch remote Host geschlossenVerbindung von SOCKS ruleset abgelehntVerbindung abgebrochen aufgrund eines vollen BuffersVerbindung hergestellt. Verbindung hergestellt. Beende deine Session mit Strg+D. Verbindung abgelehntVerbindung von Remote Host beendetVerbindung zum Server verloren - wechsle in Einzelspieler-ModusVerbindung zu Server verloren! Verbindung zum Server unterbrochen! Kehre in den Einzelspieler-Modus zurückKonstruktive KritikKonstruktive Kritk Andrea Elliot-Smith Pete WinnKontrolliert die Anzahl der erzeugten Log-NachrichtenRüstung des PolizistenPolizistenPolizisten können sich nicht gegenseitig angreifen.Die Polizei hat eine große Menge %tde konfisziert! Die Preise schießen in die Höhe!Fehlerhafte Bestenliste!Kosten für das Ausspionieren eines Feindes mit einer HureKosten um einen Spieler mit Hilfe einer Hure an die Polizei zu verratenKann keine Verbindung zu dopewars server (%s) herstellen KI Spieler unnormal beendet.Konnte lokale Konfigurationsdatei nicht bestimmenKann Datei nicht öffnen %s: %sKann den Multiplayer-Modus nicht startenVerbreitet die Wahrheit! Bush ist eine Nudel!WährungssymbolD O P E W A R Smit %tde H>andeln, HRKSEEAVTäglicher Zinssatz beim KredithaiTäglicher Zinssatz deines BankguthabensSchadenSchaden jeder WaffeDan's Haus der WaffenTag des Monats an dem das Spiel beginntSchulden%P Schulden an den Kredithai zurückgezahlt. Schulden: %PVerteidigungserschwernis im Verhältnis zu einem SpielerLöschenEinzahlenRüstung des HilfssheriffsBeschreibungTeiler der für den Drogenpreis benutzt wird wenn dieser extrem billig istWillst Du Willst Du Rennen, oder Kämpfen?Willst Du abhauen?Möchtest Du E>inzahlen, A>bheben, oder die Bank V>erlassen? Weiß deine Mami, dass du'n Dealer bistRunterWegwerfenWegwerfen %tdeWieviel Wegwerfen?Drogen Handel und NachforschungDrogenhandel und Infos Dan WolfDrogenDrogen können deine Freunde sein...V:VerschwindenDeutsche ÜbersetzungDeutsche Übersetzung Benjamin KaracaFehlerFehler beim Lesen der Punkte aus %s.Beim Lesen der Konfigurationsdatei traten Fehler auf. Als Folge werden einige Einstellungen vielleicht nicht wie erwartet funktionieren. Schau dir die Nachrichten unter Standard Output für weitere Details an.Beim Lesen der Konfigurationsdatei traten Fehler auf. Als Folge werden einige Einstellungen vielleicht nicht wie erwartet funktionieren. Ziehe die Datei "dopewars-log.txt" für weitere Details zu Rate.Nachricht für teuren Preis 1Nachricht für teuren Preis 2Exzessives TestspielenExzessives Testspielen Katherine Holt Caroline MooreK:KämpfenK>ämpfen, Kann Nameserver nicht erreichenKonnte Service Benachrichtigung nicht sendenKann Dienst handler nicht registrierenKann NT Dienst Status nicht setzenKann NT Dienst nicht startenKämpfenDatei in welche die Log-Nachrichten geschrieben werden sollenDeinem Tipp folgend haben die Cops %s in einen Hinterhalt gelockt; leider, konnte %d mit %tde entkommen.Deinem Tipp folgend haben die Cops %s in einen Hinterhalt gelockt und abgeknallt.Für Informationen über die Startparameter tipp dopewars -h inFormat-String der mit 50%-iger Wahrscheinlichkeit für teure Drogen benutzt wird Spiellänge (Runden)Spielzeit ist um. Verlasse Spiel. AllgemeinGhettoWaffenladen ist in%s WaffenWaffen nachgeladen...B E S T E N L I S T EHaschischHab' ich dich nich' mal im Fernsehen gesehen?GesundheitGesundheit: %dHeroinHey Kleiner, die %tde Preise von hier:Hey Kleiner, wie heißt Du? Hey Kleiner, wie lautet dein Name? B E S T E N L I S T ERechnernameHost nicht gefundenHostname: Wie viel kaufst du? Wie viel schmeißt du weg? Wieviel verkaufst du? Wieviel Geld möchtest Du zurückzahlen?Wie viel Kohle?Ich bin das Walross!Ich glaube nicht an Ronald Reagan!Mich überkommt das unbeschreibliche Verlangen meine Haare blau zu färbenIch finde, Hämorrhoiden-Werbung haben 'was für sich!Ich finde es wundervoll was man heutzutage mit Düften alles anstellt.Ich war selber mal 'n Hippie.Ich war nicht immer ne Frau, weißte?Darf ich dir diesen hochgestylten Pudel verkaufen?Ich möchte wetten, dass du interessante Träume hast.Ich erbitte Spenden für Zombies... für Jesus!Symbole und Grafiken Ocelot MantisSymbole und GrafikenWenn TRUE wird das Währungssymbol dem Preis vorangestelltWenn TRUE wird der Server zur Taskleiste minimiertWenn TRUE läuft der Server im HintergrundDer Benutzername für SOCKS4, wenn nicht leerIndex in Array %s sollte zwischen 1 und %d seinInterner Fehler %dInterner Metaserver Fehler "%s"Ungültiges Plugin "%s" ausgewählt. (%s verfügbar; verwende nun "%s".)InventarPlatz im InventarJesus liebt dich mehr als du glaubst.Reise zu OrtReise zu %tdeReise von %tde mit %P Bargeld und %P Schulden Sag' einfach NEIN... naja, vielleicht... ach, zum Teufel!Bringe Gott ein Opfer! Töte einen Polizisten!!Liste der Lieder die du spielen hören kannstListe der Dinge die du machen kannstListe der Dinge die du in der U-Bahn aufschnappen kannstZeige S>pieler oder P>unkte? Kredithai ist in %s Lokale HTML DokumentationPosition des KredithaisPosition der BankPosition des WaffenladensPosition des PubsOrteMedikamenteMDMABegrüßungsnachrichtPflege PID Datei %sManhattanMaxKlients (%d) erreicht - verwerfe VerbindungMaximale Anzahl an HilfssheriffsMaximale Menge an DrogenMaximaler NormalpreisMaximaler Standardpreis jeder DrogeMaximale Anzahl der TCP/IP-VerbindungenMaximale Anzahl der begleitenden HilfssheriffsMaximale Anzahl an Drogen an jedem OrtMinimaler Geldbetrag fuer das Anheuern einer HureNachrichtNachricht die angezeigt wird wenn diese Droge extrem billig istNachricht:-Nachrichten (-/+ zum Scrollen)MetaServer : %sMetaServerZur Taskleiste minimierenMindestanzahl an HilfssheriffsMinimale Menge an DrogenMinimaler NormalpreisMinimaler Standardpreis jeder DrogeMinimale Anzahl der begleitenden HilfssheriffsMindestanzahl an Drogen an jedem OrtMinimaler Geldbetrag für das Anheuern einer HureMonat in dem das Spiel beginntMultiplikationsfaktor bei extrem hohen DrogenpreisenN:NeinN>ächster ; V>orheriger ; W>ähle diesen Server... NVWNameNamen der einzelnen PolizistenName der Hilfssheriffs jedes einzelnen PolizistenName des Hilfssheriffs jedes einzelnen PolizistenName jeder DrogeName jeder WaffeNamen der einzelnen OrteName für eine HureName für einen HilfssheriffsName für mehrere HurenName für mehrere HilfssheriffsName der BankName des WaffenladensName der Highscore-DateiName des KredithaisName des PubsServer zu dem verbunden werden sollDNS Fehler code %dNetzwerkadresse für den ServerNetzwerkfehler code %dNetzwerk-Port zu dem verbunden werden sollNetzwerk-Subsysten ist nicht bereitNeuNeu %sNeues SpielNeue Admin verbindungNeuer Name: Keine Bullen oder Waffen!Es ist kein curses-Klient verfügbar - Du musst das binary mit der Option "--enable-curses-client" mit dem Programm "configure" neu kompilieren oder Du benutzt den GTK+-Klient falls er verfügbar ist. Es ist kein GTK+-Klient verfügbar - Du musst das binary mit der Option "--enable-gui-client" mit dem Programm "configure" neu kompilieren oder Du benutzt den curses-Klient falls er verfügbar ist. Tja, Du bist alleine auf der Welt!Kein solcher Benutzer! Du bist ganz allein auf der Welt! Anzahl der Spielrunden (0 = unbegrenzt)Sekundenanzahl in denen zurückgeschossen werden mussAnzahlAnzahl der Drogen im SpielAnzahl der Waffen im SpielAnzahl der Waffen die jeder Polizist trägtAnzahl der Waffen die jeder Hilfssheriff trägtAnzahl der Orte im SpielAnzahl der LiederAnzahl der DingeAnzahl der Dinge die du machen kannstAnzahl der Polizisten im SpielOfficer BobOfficer HardassOh, du musst aus Kalifornien kommen.Eine deiner %tde hat für %s spioniert.^Der Spion %s!Operation nicht unterstütztOpiumEinstellungenKein Platz im Buffer mehrKeine Datei-Beschreiber mehrPCPSPVerdammt! Du wirst sie nicht los!Passwort für die Bestätigung von SOCKS5Passwort: Bezahle allesZurückzahlen:PeyoteAbspielenTestspielerTestspieler Phil Davis Owen WalshMöchtest du noch mal spielen? Spieler ListeSpieler entfernt aufgrund von Timeout bei VerbindungsaufbauSpieler entfernt aufgrund von Idle TimeoutSpielerSpieler kämpfen bereits!Spieler kämpfen bereits in verschieden Kämpfen!Spieler werden nach Ablauf dieser Sekunden getrenntEingeloggte Mitspieler:-Spieler im Spiel:- Spieler: %d (maximal %d)Spieler: -unbekannt- (maximal %d)Bitte wähle einen Spieler aus den Du ausspionieren m?chtest. Deine %tde wird dann dem anderen Spieler ihre Dienste anbieten, und wenn sie erfolgreich ist, kannst du Dir die Statistik deines Kontrahenten im "Spion Report" Menu anschauen Aber Vorsicht %tde wird dich verlassen und %tde oder %tde mitnehmen.Bitte gib den Hostnamen und Port des Dopewars servers an:-Bitten warten... versuche Dopewars-Server zu kontaktieren...Bitte warten... Erstelle Verbindung zu Metaserver...Polizeihunde jagend dich %d Blocks entlang! Du hast ein wenig %tde weggeworfen! So'n Scheiß.PolizeipräsenzPolizeipräsenz an den einzelnen Orten (%)PortPort : %d Port: Bevorzugter Hostname deines ServersDrück irgend'ne Taste...PreisPreis jeder WaffeProtokoll nicht unterstütztPub ist in %s Drücke %s QueensFrageSpiel verlassenR:RennenR>ennen, Zufallsereignisse sind entschärftKleiner, ich muss dich töten - zu deinem eigenen Besten!Drogenreferenzen entfernenOptimierte Struktur-Liste von %d Elementen Gerade haben ein paar Dealer 'ne Apotheke ausgeraubt und verscheuern jetzt billige Medikamente!RugerU - B A H NS>tehen bleiben, SOCKS Authentifizierung benötigtSOCKS-Bestätigung vom Benutzer abgebrochenSOCKS-Bestätigung fehlgeschlagenSOCKS Authentifizierung benötigt (Benutzername leer lassen um abzubrechen)SOCKS Fehler Code %dSOCKS-Server allgemeiner FehlerSOCKS: Server hat alle angebotenen Methoden abgelehntSOCKS: Addressen-Typ nicht unterstütztSOCKS: Befehl nicht unterstütztSOCKS: Verbindung abgelehntSOCKS: Host unerreichbarSOCKS: Netzwerk unerreichbarSOCKS: Abgelehnt identd meldet andere Benutzer-IDSOCKS: Abgelehnt unmöglich identd zu kontaktierenSOCKS: Nachfrage abgelehnt oder fehlgeschlagenSOCKS: TTL abgelaufenSVDKNSamstag Nacht SpezialSekundenanzahl zwischen den Runden der KI-SpielerSound-Datei auswählenVerkaufenVerkaufen %tdeWieviel Verkaufen?Verkaufe %d %tde in %P SendenSende Update an Metaserver...Sende Erinnerungsnachricht an Metaserver...ServerServer : %sServer-Beschreibung, die an den Metaserver gemeldet wirdServer meldet sich beim MetaserverBegrüßungsnachricht (MOTD) des ServersShroomsEinzelspielerIch glaub' ich fahr' dieses Jahr mal wieder nach Amsterdam.Sockeltyp nicht unterstütztMein Sohn, du brauchst 'nen gelben Haarschnitt.Sorry, aber hier dürfen max. %d spielen.^Bitte versuchs später nochmal.Sorry, aber hier dürfen max. 1 spielen.^Bitte versuchs später nochmal.Taste für das Sortieren der Liste der vorhandenen DrogenSound-DateiSound-Datei für das Ende des SpielesSound-Datei für den Start des SpielesSound-Datei für einen TrefferSound-Datei für einen verfehlten SchussSound-Datei für die Ankunft an einem neuen OrtSound-Datei für den Beitritt eines Spielers zu einem SpielSound-Datei für den Ausstieg eines Spielers aus einem SpielSound-Datei für eine private Chat-NachrichtSound-Datei für eine Öffentliche Chat-NachrichtSound-Datei für eine gelungene Flucht eines anderen SpielersSound-Datei für eine erfolglose Flucht eines anderen SpielersSound-Datei für das Ableben einer/s feindlichen Hure/HilfssheriffsSound-Datei für das Ableben eines anderen Spielers oder PolizistenSound-Datei für das Nachladen einer WaffeSound-Datei für das Ableben einer eigenen HureSound-Datei für DEIN AblebenSound-Datei für eine gelungene Flucht von dirSound-Datei für eine erfolglose Flucht von dirSoundsSounds Robin Kohli, 19.5degs.comPlatzPlatz %6dPlatzverbrauch jeder WaffeSpeedSpioniere anderen Spieler ausSpion berichtetSpion berichtet für %sNeues Spiel startenStartkapitalStartschuldenStaten IslandStatistikStatus: Frage SOCKS um zu %s zu verbinden...Status: Versuche Verbindung zu %s herzustellen...Status: Authentifizieren mit SOCKS serverStatus: Verbinde mit SOCKS server %s...Status: Konnte keine Verbindung zu %s herstellenStatus: Warte auf BenutzereingabeWährungssymbol dem Preis voranstellenTRUE, wenn ein SOCKS-Server für das Netzwerkspiel genutzt werden sollTRUE, wenn numerische Benutzer-IDs für SOCKS4 benutzt werden sollenTRUE wenn der Server bei einem MetaServer Meldung erstatten sollTRUE wenn Sounds aktiviert werden sollenTRUE wenn der Wert gekaufter Drogen gespeichert werden sollTRUE wenn diese Droge extrem billig sein kannTRUE wenn diese Droge extrem teuer sein kannRede mit allen SpielernRede mit Spieler(n)Sprich: Temporärer DNS Fehler – Versuch es es später nochmalDer Marrakesch-Express ist angekommen!Der Papst war mal jüdisch, weißte?Das Kommando, welches zum Starten deines Web-Browsers benutzt wirdVerbindungs-TimeoutDie Cops haben dich gesehen als du %tde wegwerfen wolltest!Das Währungssymbol (z.B. $)Zuerst solltest du beim Örtlichen Kredithai deine Schulden begleichen. DanachDie Bestenliste-Datei %s wurde in das neue Format konvertiert. Ein Backup der alten Datei wurde als %s erstellt. Der Hostname eines SOCKS-Servers, der benutzt werden sollDie Lady neben dir in der U-Bahn sagte,^ "%s"%sDer Markt wird mit billigem, selbst hergestelltem Acid geradezu überflutet!Das Netzwerksubsystem ist fehlgeschlagenDie Port-Adresse eines SOCKS-Servers, der benutzt werden sollDer Server wurde beendet. Verbindung zu Server unterbrochen! Kehre zurück in den Einzelspieler-ModusVerbindung zum Server unterbrochen! Kehre zum Einzelspieler-Modus zurückDie Version des zu verwendenden SOCKS-Protokolls (4 oder 5)Ein B?nker spricht: "Soviel Geld haben Sie nicht."So viel Knete hast du gar nicht...Es geht einfach nichts über 'nen riesen Haufen Zaster!Denkste Du bist hart genug um mit Leuten wie mir zu handeln?Dieses Programm wurde ohne Netzwerkunterstützung kompiliert und kann dadurch nicht als KI Spieler eingesetzt werden. Neu kompilieren und --enable-networking bei ./configure angebenSekundenanzahl um Verbindungen herzustellen oder zu beendenGib der Polizei einen TippZu spät - %s hat sich verpisst!MantelFehler beim Öffnen der Datei %sAusführen der Konfigurationsdatei %s in Zeile %d abgebrochenKann die Bestenliste-Datei %s nicht lesen.Kann Bestenliste-Datei %s nicht schreiben.Unkonstruktive KritikUnkonstruktive Kritk James MatthewsLeider benutzt schon jemand anders "deinen" Namen. Bitte ändere IhnLeider benutzt schon jemand anders "deinen" Namen, ändere Ihn bitte.Unicode Konfigurationsdateideiner Unix Prompt ein. Dies listet dir alle verfügbaren Parameter auf.UnbekanntUnbekannter SOCKS Addressentyp zurückgekehrtUnbekannter SOCKS Antwort-CodeUnbekannter SOCKS Antwort-Version-CodeUnbekannte SOCKS Server-VersionUnbekanntes Kommando - versuch mal "help" für Hilfe... Unbekannte Nachricht: %s:%c:%s:%sHochOnline seit: %sBenutzername: Benutzername für die Bestätigung von SOCKS5Eingelogte Spieler:- Benutze Socks.Auth.User und Socks.Auth.Password für SOCK5-Bestätigung Benutze Name %s Gültiger Name, aber kein DNS Datensatz vorhandenVersionVersion : %sVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net Dopewars wurde unter der GNU General Public License veröffentlicht. Warte auf Verbindung zu Metaserver %s...WarnungWar Jane Fonda nicht unglaublich in Barbella?Man benutzt ohnehin nur 20% seines Gehirns, warum soll man sich da nicht die restlichen 80% zudröhnen?!Wir gewinnen den Kampf um die Drogen!Web-BrowserWeedWas willst du wegwerfen? Was willst du kaufen? Was möchtest du verscherbeln? Wohin soll's gehen, Kumpel? Wem möchtest du etwas zuflüstern ? Wen willst du bespitzeln? Wen möchtest du verpfeifen? Willst Du E>inkaufenWillst du E>inkaufen, V>erkaufen, oder G>ehen? Öffne V>erbindug zu einem Server, WinSock wurde nicht richtig initialisiertWinSock Version wird nicht unterstütztGewinner nehmen keine Drogen... es sei denn, sie nehmen welche!AbhebenWie soll eine einzelne Hure bezeichnet werden?Wie soll eine einzelne Droge oder Ähnliches bezeichnet werden?Wie soll eine einzelne Waffe oder Ähnliches bezeichnet werden?Wie sollen zwei oder mehrere Huren bezeichnet werden?Wie sollen zwei oder mehrere Drogen bezeichnet werden?Wie sollen zwei oder mehrere Waffen bezeichnet werden?Magst du ein Gummibärchen?Wäre es nicht cool, wenn alle plötzlich mal zittern würden?J:JaJNYN^Willst du einem Doktor %P blechen, damit er dich wieder zusammenflickt?YN^Hey Kumpel! Ich trage dir %tde für %P. Wie wär's? Ja oder Nein?YN^Du findest etwas Weed, das wie wie übelstes Rattengift stinkt!^Sieht aber sonst ganz gut aus! Willst Du es rauchen?YN^Willst Du eine %tde für %P kaufen?YN^Möchtest Du einen größeren Mantel für %P kaufen?YN^Möchtest du %tde besuchen?YN^^Willst Du eine %tde für %P anwerben?Jahr in dem das Spiel beginntDuZur Zeit trägst Du %d %tdeDu kannst %d kaufenDu kannst dir %d leisten, und %d tragen. Du kannst keine Kohle für die folgenden Drogen kriegen %tde :Du kannst kein Spiel starten, ohne vorher einen Namen anzugeben!Tja, besser spielen, dann gibt's auch 'nen Highscore...Du hast keine %tde die du verkaufen könntest!Du hast keine %tde die du verkaufen könntest!Du hast nicht genug Kohle für eine %tde!Du hast nicht genug Platz um eine %tde zu tragen!Soviel Kohle hast Du nicht!Du findest %d %tde bei einem toten Penner in der U-Bahn!Du entkommst!Du hattes den geilsten Trip deines Lebens. Er dauerte drei Tage und übertraf alles, was du bisher erlebt hast. Dann bist du abgekratzt, weil dein Gehirn in tausend Teile zersprungen ist.Du hast %d. Du wurdest vom Server geworfen. Kehre in Einzelspieler-Modus zurück.Du wurdest vom Server geworfen. Kehre zum Einzelspieler-Modus zurück.Dir bleibt ein ganzer Monat Spielzeit um dein Glück zu machen.Du hörst jemanden %s spielenDu schießt, und triffst %s!Du triffst %s und tötest eine %tde!Du triffst und tötest %sDu siehst aus wie 'n Erdferkel!Du triffst einen Freund! Er gibt dir %d %tde.Du triffst einen Freund! Du gibst ihm %d %tde.Du triffst %s nicht!Sie müßen einen positiven Geldbetrag eingeben!Du bleibst stehen und fängst die KugelnDu machst eine kleine Pause um %s.Du wurdest in der U-Bahn bestohlen!Du brauchst mehr %tde Platz um noch mehr %tde tragen zu können!Du bist tot! Game over.Deine Zeit als Dealer ist vorbei...Deine Mama hat aus deinem %tde Brownies gemacht! Die waren super!Dein Spion der für %s arbeitete wurde enttarnt!^Der Spion %s!Index der Waffe mit der Polizisten bewaffnet sind (Null-basiert)Zzzzz... handelst du mit Schokoriegeln oder was?^ (Zumindest -glaubst- du, sie hätte das gesagt)_Antiker Modus_Angriff_Einkaufen ->_Abbrechen_Schließen_Verbinde_%Tde dealen_Wegwerfen <-_Verschwinden_Kämpfen_Hilfe_Reisen!_Nein_OK_Rennen_Spion (%P)_Stehen bleiben_Starte Einzelspieler Spiel_Verpfeife (%P)_Ja`Acapulco Gold` von Riders of the Purple Sage`Are you Experienced` von Jimi Hendrix`Cheeba Cheeba` von Tone Loc`Comin` in to Los Angeles` von Arlo Guthrie`Commercial` von Spanky and Our Gang`Eight Miles High` von the Byrds`Itchycoo Park` von Small Faces`Kicks` von Paul Revere & the Raiders`Late in the Evening` von Paul Simon`Legalize It` von Mojo Nixon & Skid Roper`Legend of a Mind` von the Moody Blues`Light Up` von Styx`Mexico` von Jefferson Airplane`One toke over the line` von Brewer & Shipley`The Smokeout` von Shel Silverstein`White Punks on Dope` von the Tubes`White Rabbit` von Jefferson Airplanebis an die Zähne bewaffnetfür %PHureHurenDrogen zu kaufen und zu verkaufen und den Cops zu entwischen!PolizistPolizistenerwischtHilfssheriffsHilfssheriffdopewarsdopewars AIDrugwars wurde unter der GNU General Public License veröffentlichtDopewars ServerDer Server wurde beendet.dopewars server version %s klar und wartet auf verbindungen auf port %d.dopewars version %s DrogeDrogenentkommenErwarteter Boolean-Wert (0, FALSE, 1, TRUEbekommt Verbindung von %sWaffeWaffenein schönes, kaltes Bier zu trinkenschwer bewaffnetsimuliert einen imaginären Drogenmarktes. Das Ziel ist esleicht bewaffnetrecht gut bewaffnetoder K>ontaktiere deine Spione um Meldung zu erhaltenoder mach N>ichts ? oder B>eenden? ärmlich bewaffneteine Bong zu raucheneine dicke Zigarre zu raucheneine Kippe zu raucheneinen Joint zu rauchenstrftime() Format-String für das Anzeigen der Spielrundenstrftime() Format-String für Zeitstempel in den Log-Nachrichtenmusst du versuchen möglichst viel Geld zu verdienen (und zu überleben)!die Bankden KredithaiDie Nixon-Kassettendie Kneipewurde getroffendopewars-1.6.2/po/fr_CA.po000644 000765 000024 00000404235 14256242752 015224 0ustar00benstaff000000 000000 # François Marier , 2004. # # msgid "" msgstr "" "Project-Id-Version: dopewars 1.5.10\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2007-10-25 16:37+1300\n" "Last-Translator: François Marier \n" "Language-Team: French\n" "Language: fr_CA\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "pute" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "putes" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "gun" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "guns" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "drogue" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "drogues" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "%d-%m-%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "le prêteur à gages" #: src/dopewars.c:196 msgid "the Bank" msgstr "la Caisse populaire" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "le marchand d'armes" #: src/dopewars.c:197 msgid "the pub" msgstr "le bar" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Port réseau auquel se connecter" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nom du fichier des scores" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nom du serveur auquel se connecter" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Message de bienvenue du serveur pour aujourd'hui" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Adresse réseau du serveur" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "VRAI si un serveur SOCKS est nécessaire pour la connexion réseau" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "VRAI si un numéro d'identification est nécessaire pour SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Si non-vide, le nom d'utilisateur à utiliser pour SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "Le nom d'hôte d'un serveur SOCKS à utiliser" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "Le numéro de port d'un serveur SOCKS à utiliser" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "La version du protocole SOCKS à utiliser (4 ou 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nom d'utilisateur pour l'authentification SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Mot de passe pour l'authentification SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "VRAI si le serveur doit se rapporter à un méta-serveur" #: src/dopewars.c:281 #, fuzzy msgid "Metaserver URL to report/get server details to/from" msgstr "Nom du méta-serveur auquel envoyer/recevoir les détails du serveur" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "Le nom de votre machine serveur" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Authentification du nom local avec le metaserveur" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Description du serveur, rapportée au méta-serveur" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Si VRAI, le serveur est réduit dans le System Tray" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "Si VRAI, le serveur roule en arrière-plan" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "La commande utilisée pour lancer votre fureteur" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "Jour du mois durant lequel la partie débute" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "Mois durant lequel la partie débute" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "Année durant laquelle la partie débute" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "Le symbôle monétaire (example: $)" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "Si VRAI, le symbôle monétaire précède les prix" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "Fichier dans lequel écrire le journal" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "Contrôle le nombre de messages dans le journal" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "Chaîne de formattage strftime() pour les dates dans le journal" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Les éléments aléatioires sont nettoyés" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "VRAI si la valeur de la drogue achetée doit être sauvegardée" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Soyez verbose en lisant le fichier de configuration" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Nombre de lieux dans le jeu" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Nombre de types de policiers dans le jeu" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Nombre de guns dans le jeu" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Nombre de drogues dans le jeu" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Emplacement du prêteur à gages" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Emplacement de la banque" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Emplacement du marchand d'armes" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Emplacement du bar" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "Taux d'intérêt quotidien sur l'emprunt avec le prêteur à gages" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "Taux d'intérêt quotidien du compte de banque" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Nom du prêteur à gages" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Nom de la banque" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Nom du marchand d'armes" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Nom du bar" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "VRAI pour activer les sons" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "Son d'une balle qui atteint sa cible" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "Son d'une balle qui rate sa cible" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "Son d'un gun qui est rechargé" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "Son accompagnant la mort d'une pute ou d'un adjoint ennemi" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "Son accompagnant la more d'une de vos putes" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "Son accompagnant la mort d'un autre joueur ou d'un policier" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "Son accompagnant votre propre mort" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "Son d'un joueur qui tente de s'échapper mais qui rate" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "Son accompagnant votre fuite ratée" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "Son d'un joueur qui s'échappe avec succès" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "Son accompagnant votre fuite réussie" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "Son d'arrivée dans un nouvel endroit" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "Son d'un message publique envoyé par un joueur" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "Son d'un message privé envoyé par un joueur" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "Son à faire jouer lorsqu'un joueur se joint à la partie" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "Son à faire jouer lorsqu'un joueur quitte la partie" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "Son de début de la partie" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "Son de fin de la partie" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Touche de tri pour la liste des drogues disponibles" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Nombre de secondes après quoi on peut répliquer" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Les joueurs sont déconnectés après ce nombre de secondes" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Temps en secondes pour que les connexions soient établies ou brisées" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Nombre maximum de connexions TCP/IP" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "" "Nombre de secondes entre les tours des joueurs contrôlés par l'ordinateur" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Argent de départ de chaque joueur" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Montant des dettes en débutant la partie" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Nom de chaque endroit" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Présence policiaire à chaque endroit (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Nombre minimum de drogues à chaque endroit" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Nombre maximum de drogues à chaque endroit" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "% de résistance aux coups de gun de chaque joueur" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "% de résistance aux coups de gun de chaque pute" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Nom de chaque policier" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Nom de chaque adjoint" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Nom de chaque adjoint" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "% de résistance aux coups de gun de chaque policier" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "% de résistance aux coups de gun de chaque adjoint" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Pénalité d'attaque relative à un joueur" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Penalité de défense relative à un joueur" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Nombre minimum d'adjoints accompagnant un policier" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Nombre maximum d'adjoints accompagnant un policier" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "Numéro du gun que les policiers utilisent" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Nombre de guns que chaque policier possède" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "Nombre de guns que chaque adjoint possède" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Nom de chaque drogue" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Prix normal minimal de chaque drogue" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Prix normal maximum de chaque drogue" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "VRAI si cette drogue peut être offerte à prix très bas" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "VRAI si cette drogue peut être offerte à prix exhorbitants" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Message affiché si cette drogue est offerte à prix très bas" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" "Chaîne de formattage utilisée pour les drogues dispendieuses la moitié du " "temps" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "" "Diviseur sur le prix des drogues lorsqu'elle sont offertes à prix très bas" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "" "Multiplicateur pour les drogues lorsqu'elles sont offertes à prix " "exhorbitants" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Nom de chaque type de gun" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Prix de chaque type de gun" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Espace utilisé par chaque gun" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Dommage infligé par chaque gun" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Mot utilisé pour décrire une \"pute\"" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Mot utilisé pour décrire deux \"putes\" ou plus" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Mot utilisé pour décrire une arme" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Mot utilisé pour décrire deux armes ou plus" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Mot utilisé pour décrire une drogue" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Mot utilisé pour décrire deux drogues ou plus" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "Chaîne de formattage strftime() pour l'affichage du tour" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Coût pour envoyer une pute espionner le pusher ennemi" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Coût pour envoyer une pute donner des informations sur l'ennemi à la police" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Prix minimum pour employer une pute" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Prix maximum pour employer une pute" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Liste des choses que vous entendez dans le métro" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Nombre de choses que vous entendez dans le métro" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Liste des chansons que vous pouvez entendre de loin" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Nombre de chansons" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Liste des choses que vous pouvez arrêter de faire" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Nombre de choses que vous pouvez arrêter de faire" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`La petite grenouille` par André Guitar" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Bonjour la police` par Rock et Belles Oreilles" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Le p'tit pinson` par Normand L'Amour" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Le monde est à pleurer` par Jean Leloup" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Rape Me` par Richard Cheese" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Libérez-nous des Libéraux` par Loco Locass" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Quelle sorte de plotte c'est ça` par D-Natural" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`Slap My Bitch Up` par Prodigy" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Porn` par Blue Jam" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`Ventolin` par Aphex Twin" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Treat Me Mean, I Need The Reputation` par Xploding Plastix" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`Sod Off` par Björk" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`P'tit change` par Groovy Aardvark" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Hawaïenne` par Les Trois Accords" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Strangers on a Train` par Lovage" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Snake in the Garden` par Ramasutra" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "`Ass Itch` par Korn" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Get Down Make Love` par Nine Inch Nails" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "boire une bière" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "fumer du weed" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "fumer un cigare" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "fumer du hash" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "fumer une smoke" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Inspecteur Gadget" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "adjoint" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "adjoints" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Maurice la grosse police" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Sergent Bigras" #: src/dopewars.c:703 msgid "cop" msgstr "boeuf" #: src/dopewars.c:703 msgid "cops" msgstr "boeufs" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:709 msgid ".38 Special" msgstr ".38 Modifié" #: src/dopewars.c:710 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Spécial du samedi soir" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Acide" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "Le marché est saturé de buvards" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Cocaïne" #: src/dopewars.c:720 msgid "Hashish" msgstr "Hash" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "Le Marrakesh Express est arrivé!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Héroïne" #: src/dopewars.c:723 msgid "Ludes" msgstr "Colle" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Les pushers rivaux ont dévalisé une quincaillerie et vendent de la colle pas " "chère" #: src/dopewars.c:725 msgid "MDA" msgstr "Ecstasy" #: src/dopewars.c:726 msgid "Opium" msgstr "Opium" #: src/dopewars.c:727 msgid "PCP" msgstr "PCP" #: src/dopewars.c:728 msgid "Peyote" msgstr "Péyote" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Mush" #: src/dopewars.c:730 msgid "Speed" msgstr "Speed" #: src/dopewars.c:731 msgid "Weed" msgstr "Pot" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" "Les récoltes des serres hydroponiques dépassent les attentes, c'est le temps " "de fumer!" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "Laval" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Plateau Mont-Royal" #: src/dopewars.c:742 msgid "Central Park" msgstr "Parc Lafontaine" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Centre-ville" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Île Sainte-Hélène" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "Vieux-Port" #: src/dopewars.c:746 msgid "Queens" msgstr "Westmount" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Notre-Dame-de-Grâce" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Les boeufs ont mis la main sur un gros stock de dope (%tde) !" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Les accros achètent de la dope (%tde) à des prix de fou!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "" "Pète pis répète sont en bateau, pète tombe à l'eau, qui est-ce qu'il reste " "dans le bateau?" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "Tsé, le pape a déjà été juif" #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Chu sûre que tu fais des rêves très intéressants" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Je pense que je vais aller à Vancouver cette année" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Vas te faire couper les cheveux le pouilleux!" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Ça t'arrive tu de conduire la nuit avec des lunettes fumées ?" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "J'ai pas toujours été une femme tsé" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "Est-ce que ta mère sait que tu vends de la dope ?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "T'es tu gelé là ?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Toi, tu dois venir de Vancouver ?" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "Ta mère vient de faire des bons gâteaux avec un peu de ton Hash." #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Ya rien comme avoir full de cash" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "Sauvez des arbres, torchez-vous avec un lapin !" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Bon chu trop décriss, j'm'en vas me coucher." #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "" "Les terroristes dirigent la maison blanche depuis les dernières élections." #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "C'est vous que j'ai vu à la télé ?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "Savais-tu que l'américain moyen a une seule testicule ?" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "Vous avez les yeux rouges, jeune homme." #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "Un jour sans dope, c'est la nuit." #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "On utilise 20% de nos cerveaux, alors pourquoi ne pas en détruire 80% ?" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" "« Le seul moyen de se délivrer de la tentation, c'est d'y céder. » a dit " "Oscar Wilde" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "C'est à vous l'éléphant rose là-haut ?" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "" "Les vainqueurs ne se droguent pas... à moins qu'ils prennent de la drogue" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "Tue une police pour le petit Jésus!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Je suis une crevette!" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Jésus t'aime beaucoup plus que tu ne le sauras jamais" #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Je sens un désir incontrôlable de teindre mes cheveux bleus" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "" "Dans mon temps, il n'y avait pas de distributrices de balounes dans les " "toilettes maintenant?" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Dis-lui non, tout simplement... ouin, peut-être... ah pis d'la marde!" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "La télépathie existe ! Check les vibrations." #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "La drogue est votre amie !" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Impossible de lire le fichier de configuration %s (ligne %d)" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "Impossible d'ouvrir le fichier %s" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La configuration ne peut seulement être modifiée que lorsqu'aucun\n" "joueur n'est connecté. Attendez que tous les joueurs se déconnectent\n" "ou éjecter-les avec la commande push ou kill et essayer à nouveau." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "L'index dans %s doit être entre 1 et %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s est %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s est %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s est %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s est \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] est %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s est { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s ne peut pas être moins de %d" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s ne peut pas être moins de %d!" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Liste de structure redimentionée à %d éléments\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "valeur booléenne attendue (0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "$" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=FALSE" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FICHIER utiliser le plugin de son \"FICHIER\"\n" " " #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fichier utiliser le plugin de son \"fichier\"\n" "\t " #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "(%s disponible)\n" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars version %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue basé sur \"Drug Wars\" de John E. Dell\n" " -b, --no-color, \"noir et blanc\" - n'utilise pas les couleurs\n" " --no-colour (par défaut, les couleurs sont utilisées\n" " si le terminal les supporte)\n" " -n, --single-player ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a, --antique \"antique\" dopewars - rester proche de la version\n" " originale (cette option désactive les\n" " possibilités réseau)\n" " -f, --scorefile=FILE spécifier un fichier a utiliser pour la table des\n" " meilleurs scores (par défaut, %s/dopewars.sco " "est\n" " utilisé)\n" " -o, --hostname=ADDR spécifier une addresse où le serveur peut être\n" " trouvé (e.g. nowhere.com)\n" " -s, --public-server lancer en mode serveur (note: pour un serveur\n" " non-interactif, simplement lancer: \n" " dopewars -s < /dev/null >> logfile & )\n" " -S, --private-server lancer un serveur privé (i.e. ne pas contacter le \n" " méta-serveur)\n" " -p, --port=PORT spécifie le port réseau à utiliser (défault: 7902)\n" " -g, --config-file=FILE spécifie le chemin d'accès au fichier de \n" " configuration. Ce fichier est lu immédiatement \n" " quand l'option -g est rencontrée\n" " -r, --pidfile=FILE maintenir un fichier pid \"file\" pendant que le \n" " serveur tourne\n" " -l, --logfile=FILE écrit l'information du journal dans le fichier\n" " -A, --admin se connecter au serveur local pour " "l'administration\n" " -c, --ai-player crée et lance une intelligence artificielle\n" " (adversaire contrôlé par l'ordinateur)\n" " -w, --windowed-client force le lancement en mode graphique \n" " (GTK+ ou Win32)\n" " -t, --text-client force le lancement en mode texte (par défaut, le\n" " client graphique est lancé si possible)\n" " -C, --convert=FILE convertir un vieux fichier de scores au nouveau \n" " format\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help affiche cet écran d'aide\n" " -v, --version affiche la version et quitte\n" "\n" "dopewars est un Copyright (C) Ben Webb 1998-2022, et est distribué sous la " "GNU GPL\n" "Envoyer les bugs à l'auteur : benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue. Basé sur \"Drug Wars\" de John E. Dell\n" " -b \"noir et blanc\" - n'utilise pas les jolies couleurs\n" " (par défaut, les couleurs sont utilisées si le terminal les\n" " supporte)\n" " -n ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a \"antique\" dopewars - rester proche de la version originale\n" " (cette option désactive les possibilités réseau)\n" " -f file spécifie un fichier a utiliser pour la table des high scores\n" " (par défaut, %s/dopewars.sco est utilisé)\n" " -o addr spécifie une addresse où le serveur peut être trouvé\n" " (e.g. nowhere.com)\n" " -s lance en mode serveur (note: pour un serveur non-interactif, \n" " simplement lancer: dopewars -s < /dev/null >> logfile & )\n" " -S lance un serveur privé (i.e. ne pas contacter le méta-serveur)\n" " -p port spécifie le port réseau à utiliser (défault: 7902)\n" " -g file spécifie le chemin d'accès au fichier de configuration. Ce\n" " fichier est lu immédiatement quand l'option -g est rencontrée\n" " -r file maintient un fichier pid \"file\" pendant que le serveur tourne\n" " -l file écrit l'information du journal dans le fichier \"file\"\n" " -c crée et lance une intelligence artificielle (adversaire \n" " contrôlé par l'ordinateur)\n" " -w force le lancement en mode graphique (GTK+ ou Win32)\n" " -t force le lancement en mode texte\n" " (par défaut, le client graphique est lancé si possible)\n" "-P nom change le nom du joueur -C file convertit un vieux fichier de " "scores au nouveau format\n" " -A se connecte au serveur local pour l'administration\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h affiche cet écran d'aide\n" " -v affiche la version et quitte\n" "\n" "dopewars est un Copyright (C) Ben Webb 1998-2022, et distribué sous GNU GPL\n" "Envoyer les bugs à l'auteur : benwebb@users.sf.net\n" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Pas de client curses disponible - recompiler le programme en utilisant\n" "--enable-curses-client comme configuration, ou utiliser un client\n" "graphique (si disponible) à la place!\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Pas de client graphique disponible - recompiler le programme en utilisant\n" "--enable-gui-client comme configuration, ou utiliser un client\n" "curses à la place!\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Ce programme a été compilé sans le support réseau et ne peut donc pas\n" "fonctionner en mode serveur. Recompilez avec l'option --enable-networking\n" "dans le script configure.\n" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Ce programme a été compilé sans le support réseau et ne peut donc pas\n" "fonctionner en mode serveur. Recompilez avec l'option --enable-networking\n" "dans le script configure.\n" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Traduction québécoise François Marier" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Basé sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'un" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "marché de la drogue imaginaire. Dopewars est un jeu qui comprend" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "acheter, vendre et essayer d'éviter les polices!" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "La première chose à faire est de rembourser votre dette au prêteur. Après," #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "votre but est de faire le plus d'argent possible (tout en restant vivant)!" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "Vous avez un mois pour faire fortune." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Version·%-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars est distribué sous la license GNU GPL." #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "Icônes et graphiques Ocelot Mantis" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Effets sonores Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Vente de drogue et recherche Dan Wolf" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeurs Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeurs maniaques Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Critiques constructives Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Critiques non-consctructives James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "" "Pour afficher l'aide sur les options disponible sur la ligne de commande," #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "tapez dopewars -h sur votre prompt UNIX." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Merci d'entrer le nom de l'hôte et le port du serveur:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Nom: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Patientez... tentative de contacter le méta-serveur..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Serveur: %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Port : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Version :%s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Joueurs: -inconnu- (maximum %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Joueurs: %d (maximum %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "En ligne depuis : %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Commentaire: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>erveur suivant; P>récedent; C>hoisir ce serveur... " #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "SPC" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Connextion au serveur SOCKS %s..." #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "Authentification avec le serveur SOCKS" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Demande de connexion SOCKS avec %s..." #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "Authentification SOCKS requise (entrez un nom vide pour annuler)" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "Nom d'utilisateur: " #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "Mot de passe: " #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Patientez... tentative de contacter le serveur dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "Impossible d'obtenir les détails du méta-serveur" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "Ne peux pas démarrer dopewars en mode multi-joueurs" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "Voulez-vous... C>onnecter à un hôte/port différent" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>iste des serveurs sur le méta, et en sélectionner un" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" " Q>uitter (vous pouvez alors démarrer un server en " "tapant \"dopewars -s\")" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " ou J>ouer en solo ? " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "CLQJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "Où ça, man ? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "%/Affichage de l'endroit/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Tu peux pas te faire de cash avec ce que tu transportes %tde :" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "Qu'est-ce que tu veux crisser à terre? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "Combien d'unités veux-tu crisser à terre? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "Qu'est-ce que tu veux acheter? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "Qu'est-ce que tu veux vendre? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tu peux en acheter %d, et en transporter %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "Combien que t'en prends ? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "T'as %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "Combien que tu en vends? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Choisir une job à donner à une de tes %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " E>spionner un autre pusher (cout: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " D>onner un autre pusher aux boeufs (cout: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " A>ller se faire foutre" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "ou C>ontacter vos espions et recevoir leur rapports" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "ou P>as de job ? " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "EDACP" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "Qui c'est que tu veux espionner ? " #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "Qui c'est que tu veux donner aux flics ? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr " Es-tu certain? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "ON" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "Êtes-vous sur de vouloir quitter? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Nouveau nom: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "La connexion avec le serveur a été terminée. Mode solo." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "Le serveur est mort. Mode solo" #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "%s joint la partie!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s a quitté la partie." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s est maintenant %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "M É T R O" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "%/Endroit présent/%tde" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Malheureusement, quelqu'un d'autre utilise déjà ton nom. Change-le." #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "M E I L L E U R S S C O R E S" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "T'as pas de %tde à vendre!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "T'en n'as pas à vendre!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Tu as besoin de plus de %tde pour transporter plus de %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "T'as pas assez d'espace pour transporter: %tde" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "T'as pas assez de cash pour acheter: %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Veux tu A>cheter, V>endre, ou P>artir? " #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "AVP" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "Combien de cash tu rends ? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "T'as pas assez de cash!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "" "Tu veux D>époser de l'argent, R>etirer de l'argents, ou S>acrer ton camp ? " #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "DRS" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "Combien d'argent? " #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "Ya pas autant d'argent dans la banque..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "O:Oui" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:Non" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "D:écrisser" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "S:Se battre" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Attaquer" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "S:Se sauver" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Pèse sur une touche..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "Messages (-/+ avancer/reculer)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Statistiques" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Cash" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tde" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Santé" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Banque" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Dette" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Espace %6d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Espace %6d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Manteau" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%/Stats: Drogues/%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d @ %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Rapports des espions pour %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Espion: Drogues/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "%/Espion: Guns/%Tde..." #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "Aucun autre joueur est en ligne en ce moment!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Joueurs en ligne:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Heille man, les prix du %tde sont la:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Ne peux pas installer le handleur d'interruptions SIGWINCH!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Heille man, comment tu t'appelles ? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "A>cheter" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", V>endre" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", L>aisser tomber" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", P>lacotter, R>éveiller" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", L>ister" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", D>onner" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", C>ombattre" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", S>'en aller ailleurs" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", ou Q>uitter? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "Tu " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "C>ombattre, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "R>ester sur place, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "T>e sauver, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "V>endre des %tde, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "ou Q>uitter? " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "La connection au serveur est perdue. Change en mode Solo" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "AVLPRLDCSQ" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "VTCRQ" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "Lister quoi? J>oueurs ou S>cores? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "JS" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "À qui que tu veux parler en privé ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Parler: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "Jouer à nouveau? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Jeu" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Jeu/_Nouveau..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "/Jeu/_Abandonner..." #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "/Jeu/_Options..." #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "/Jeu/Activer les _sons" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Jeu/_Quitter" #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Parler" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Parler/Avec _tout le monde..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Parler/Avec un _joueur..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Liste" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Liste/_Joueurs..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Liste/_Scores..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Liste/_Inventaire..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Tâches" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Tâches/_Espionner..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Tâches/_Rapporter un joueur à la police..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Tâches/R_apports des espions..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Aide" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Aide/_À propos..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Attention" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "Erreur" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Message" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "Abandonner cette partie ?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Quitter la partie" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Commencer une nouvelle partie" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "Abandonner la partie" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Inventaire" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "_Fermer" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Connexion au serveur perdue - Mode solo" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Vous avez été expulsé(e) du serveur. Mode solo." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "Le serveur est mort. Mode solo" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "S'en aller vers %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Sack Bitch menu item/_Renvoyer une pute..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Espionner (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Rapporter un joueur à la police (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "Meilleurs scores" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "Le fichier des meilleurs scores est corrompu!" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Se battre" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "_Vendre de la dope" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Combattre" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Rester sur place" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Décrisser" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Combat: Putes/%d %tde" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "(Restant/es)" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "(Mort/es)" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Santé: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "Toi" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Putes/%Tde" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "%/Inventaire nom de la drogue/%tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "%/Inventaire nom du gun/%tde" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Se déplacer à un autre endroit" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "Endroit vers où se déplacer" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "à %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Tu transportes en ce moment %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Espace disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Tu peux acheter %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Acheter" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Vendre" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Laisser tomber" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "%/Vendre nom de la drogue/%tde" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "En acheter combien ?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "En vendre combien ?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "En laisser tomber combien ?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_OK" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Annuler" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Acheter %tde" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Vendre %tde" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Laisser tomber %tde" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Oui" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_Non" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Attaquer" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_S'enfuir" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Question" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Espace" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "_Décrisser!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "Dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Traduction québécoise" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "François Marier" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "Icônes et graphiques" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "Effets sonores" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Vente de drogue et recherche" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Testeurs de jeu" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Testeurs maniaques du jeu" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Critique constructive" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Critique non-constructive" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "À propos de dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basé sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation\n" "d'un marché de la drogue imaginaire. DopeWars est un jeu qui vous permet\n" "d'acheter ou vendre de la drogue et essayer d'éviter les polices!\n" "\n" "La première chose à faire est de rembourser le prêteur à gages.\n" "Ensuite, votre but est de faire le maximum d'argent (et de rester en vie!)\n" "Vous avez un mois de temps de jeu pour faire fortune.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars est distribué sous la licence GNU GPL\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Pour afficher l'aide sur les options disponible sur la ligne de commande,\n" "tapez dopewars -h sur votre prompt UNIX.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "Documentation HTML locale" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Prêteur window title/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/Banque window title/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "Vous devez entrer un montant positif!" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "Il n'y a pas autant d'argent dans la banque..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Argent: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Dettes: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Banque: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Rembourser:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Déposer" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Retirer" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Tout payer" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Liste des joueurs" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Parler au(x) joueur(s)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Parler à tous les joueurs" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Message:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Envoyer" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Espionner le joueur" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Merci de choisir le joueur a espionner. Votre %tde va\n" "ensuite offrir ses services aux joueur, et si elle a du\n" "succes, vous aurez ensuite acces aux stats du joueur avec\n" "le menu \"Rapport des Espions\". La %tde va partir, donc\n" "toutes les %tde ou %tde qu'elle porte seront peut etre perdus!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Rapporter un joueur à la police" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Choisir le joueur à rapporter à la police. Votre %tde va aider les boeufs\n" "à attaquer ce joueur, puis venir vous faire son rapport quand vous la\n" "rencontrerez. Rappellez-vous que la %tde vous quittera temporairement,\n" "donc tout ce qu'elle porte (%tde ou %tde) pourra être perdu!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Renvoyer une pute dialog title/Renvoyer %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Es-tu certain de ce que tu fais ? (Tous les %tde et les\n" "%tde transportés par cette %tde vont être perdus!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Nom" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Prix" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Quantité" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Acheter ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Vendre" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Laisser tomber <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde en vente/demande ici" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde transporté(e)s" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Changer de nom" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" "Malheureusement, quelqu'un d'autre utilise déjà ton nom.Merci de le changer:-" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Marchand d'armes window title/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Rapports des espions" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "Nouveau %s" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "Sélectionner le fichier de son" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "Nouveau" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "Supprimer" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "Haut" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "Bas" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "Présence policière" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "Nombre minimum de drogues" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "Nombre maximum de drogues" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "Prix normal minimum" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "Prix normal maximum" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "Peut être extrêmement bon marché" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "Expression \"bon marché\"" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "Peut être extrêmement chère" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "Espace d'inventaire" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "Dégât" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "Nom d'un adjoint" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "Nom de plusieurs adjoints" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "Nombre minimum d'adjoints" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "Nombre maximum d'adjoints" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "Armure d'un policier" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "Armure d'un adjoint" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "Options" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "Enlève les références à la drogue" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "Fichier de configuration Unicode" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "Nombre de tours dans une partie" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "Argent de départ" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "Dette de départ" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "Symbole monétaire" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "Le symbole monétaire précède les prix" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "Nom d'une pute" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "Nom de plusieurs putes" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "Fureteur" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "Général" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "Endroits" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "Expresion \"dispendieux\" 1" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "Expresion \"dispendieux\" 2" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "Drogues" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "Guns" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "Policiers" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "Le serveur se rapporte au méta-serveur" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "Minimiser dans le System Tray" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "Méta-serveur" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Commentaire" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "Message du jour" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Serveur" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "Nom du son" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "Description" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "Fichier de son" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "Parcourir..." #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "Jouer" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "A_ide" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "Impossible de débuter une partie sans se nommer!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Nouvelle partie" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Status: En attente de l'utilisateur" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Connexion terminée par l'autre partie" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Ne peut pas se connecter (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: En train de contacter %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Inconnu" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Connecté au serveur SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "Status: En cours d'authentification avec le serveur SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Status: En train de demander à SOCKS d'établir la connexion avec %s..." #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Port" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Version" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Joueurs" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Heille man, c'est quoi ton _nom?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Nom de l'hôte" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Connecter" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "Mode _antique" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Débuter la partie en mode solo" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "Mode solo" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "_Rafraîchir" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Méta-serveur" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "Authentification SOCKS nécessaire" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "# Ceci est le journal de démarrage de dopewars. Il contient\n" "# les messages d'information résultant de la lecture du\n" "# fichier de configuration et autre...\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "Serveur dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "IA dopewars" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "enfui" #: src/serverside.c:73 msgid "defected" msgstr "passé à l'ennemi" #: src/serverside.c:73 msgid "was shot" msgstr "tué" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AS" #. Help on various general server commands #: src/serverside.c:129 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "Serveur dopewars version %s, commandes et configuration\n" "\n" "help Affiche l'aide\n" "list Lister les joueurs connectés\n" "push Demander poliment à un joueur de partir\n" "kill Éjecter avec force le joueur donné\n" "msg: Envoyer un message à tous les joueurs\n" "save: Enregistrer la configuration dans le fichier\n" "quit Quitter après avoir averti tout le monde.\n" "= Assigne une valeur à une variable\n" " Affiche la valeur de la variable donnée\n" "[x].= Assigne la variable dans la liste donnée à\n" " à la position x, à la valeur donnée.\n" "[x]. Affiche la valeur de la variable donnée\n" " dans la liste\n" "\n" "Les variables acceptées sont:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "Impossible de se connecter au méta-serveur à %s (%s)" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "MetaServeur: %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "Connexion au méta-serveur trop fréquente, attente du prochain timeout" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "En attente de la connexion au méta-serveur à %s..." #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" "Vous semblez utiliser une très vieille version (1.4.x) du jeu. Cette " "versionrisque de fonctionner, mais plusieurs des nouvelles fonctionalités ne " "serontpas supportées. Obtenez la dernière version sur le site web de " "Dopewars: https://dopewars.sourceforge.io/" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" "Votre version de Dopewars est trop vieille pour supporter les " "fonctionalitésde ce serveur. Pour une meilleure expérience, obtenez la " "dernière versionsur le site web de Dopewars: https://dopewars.sourceforge.io/" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "Nombre maximum de clients (%d) dépassé - annulation de la connexion" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Désolé, ce serveur a une limite d'un seul joueur et cette limite a été " "^atteinte. Merci de réessayer plus tard." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Désolé, ce serveur a une limite de %d joueurs et cette limite a été " "^atteinte. Merci de réessayer plus tard." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s est maintenant connu sous le nom de %s" #: src/serverside.c:437 #, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: déplacement vers %s INTERDIT" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Votre temps de dealage est terminé" #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: déplacement vers %s INTERDIT" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s espionne %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "Tentative d'espionnage de %s sur %s: REFUSÉE" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s a rapporté %s à la police" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "Le rapportage par %s de %s à la police: REFUSÉ" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Message inconnu: %s:%c:%s:%s" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Maintenance du pid file %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Impossible de créer le fichier pid %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "Impossible de créer un socket d'écoute (%s) pour le serveur" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "Impossible de s'attacher au port %u (%s)" #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "Impossible de lire sur le socket réseau" #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "Serveur dopewars version %s attendant les connexions sur le port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGUSR1!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGHUP!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGINT!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGTERM!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "Impossible d'installer le handleur de pipeline!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "Fichier de configuration enregistré comme %s\n" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Utilisateurs en ligne:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "Aucun utilisateur en ligne!\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Intimidation de %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "Cet utilisateur n'existe pas.\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s tué\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Commande inconnue - essayez \"help\" pour l'aide...\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "connexion reçu de %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "Serveur dopewars en train de terminer." #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "%s quittes le serveur!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "Impossible d'installer le socket de domaine UNIX pour les " "connexionsadministratives - vérifiez les permissions sur /tmp!" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "Serveur dopewars version %s en attente de commandes d'administration.Essayez " "\"help\" pour l'aide." #: src/serverside.c:1287 msgid "New admin connection" msgstr "Nouvelle connexion administrative" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "Commande administrative: %s" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "Connexion administrative terminée" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "Impossible d'obtenir le status du service NT" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "Impossible d'envoyer un message de notification du service" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "Impossible d'installer un handleur de service" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "Impossible de démarrer le service NT" #: src/serverside.c:1681 msgid "Command:" msgstr "Commande:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "Impossible de lire le fichier des meilleurs scores: %s" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "Le fichier des scores (%s) a été converti au nouveau format.\n" "Une copie de l'ancien fichier a été créée: %s.\n" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Impossible de créer une copie (%s) du\n" "fichier des scores: %s" #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Impossible d'ouvrir le fichier des meilleurs scores (%s): %s." #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Ne peut pas ouvrir le fichier des meilleurs scores %s. (%s)\n" "Vérifiez que vous avez les permissions pour accéder ce fichier ou " "répertoire\n" "ou specifiez un autre fichier et chemin d'accès avec la commande -f." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s n'a pas l'air d'être un fichier de\n" "scores valide. S'il s'agit d'un fichier de scores d'une version\n" "précédente de dopewars, veuillez tout d'abord le convertir au\n" "nouveau format en utilisant la commande:\n" " dopewars -C %s" #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Erreurs lors de la lecture du fichier de configuration. Certaines\n" "préférences pourraient ne pas fonctionner correctement. Voir le\n" "fichier \"dopewars-log.txt\" pour plus de détails." #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Erreurs lors de la lecture du fichier de configuration. Certaines\n" "préférences pourraient ne pas fonctionner correctement. Portez attention\n" "aux messages figurant sur la sortie standard pour plus de détails." #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "Impossible de lire le fichier des high scores %s" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "Félicitations! Vous êtes dans les meilleurs scores!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "T'as même pas réussi à être dans les scores!" #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "Impossible d'écrire le fichier des meilleurs scores %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(Repose en Paix)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Indice de %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Espion offert par %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Une de tes %tde était un espion pour %s.^L'espion %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Votre espion travaillant pour %s a été découvert!^L'espion %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La madame à côté de toi dans le métro te dit,^ \"%s\"%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (du moins, tu -penses- que c'est ça qu'elle a dit)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Tu entends quelqu'un jouer %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Veux-tu visiter %tde?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Veux-tu engager une %tde pour %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s est déjà là!^Tu Attaque, or t'Evade?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "Pas de boeufs ou de guns" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "Les boeufs ne peuvent pas attaquer d'autres boeufs!" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "Les joueurs sont déjà en train de se battre!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "Les joueurs sont déjà dans des batailles séparées!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "Ne peut pas commencer la bataille - pas de gun à utiliser!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Tu viens de crever man!" #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: indice par %s finit OK." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Suivant votre indice, les boeufs ont pogné %s, qui est mort par balle!" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Suivant votre indice, les boeufs ont attaqué %s, qui s'est échappé avec %d " "%tde. " #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^Vas-tu payer le docteur %P pour te ramancher?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "Tu t'es fait pété la gueule dans le métro!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "T'as rencontré un chum, il t'a donné %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "T'as rencontré ton meilleur chum pis tu lui a donné %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Tu nettoies une offre aléatoire." #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Les chiens de police te courent après sur %d blocs! T'as échappé: %tde!" #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "T'as trouvé %d %tde sur un gars mort dans le métro!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" "Ta mère a fait des gâteaux avec un peu de %tde! Y'étaient vraiment bons!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ça a l'air bon! Veux-tu la " "fumer? " #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Tu t'arretes pour %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Veux-tu acheter un manteau plus gros %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" "YN^Heille man! J'pourrais t'aider à transporter tes %tde pour un petit %P. " "Qu'est-ce que t'en dis ?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Veux-tu acheter un %tde pour %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: l'offre etait au nom de %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s a accepté votre %tde!^Tape G pour contacter ton espion." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "T'as halluciné pendant trois jours dans le trip le plus hot que t'aurais " "^jamais pu imaginer! Ensuite t'es mort parce que ton cerveau s'est " "désintégré!" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Trop tard, %s vient juste de partir!" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "%s a rejeté ton %tde!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "Les boeufs t'ont vu jeter ton stock (%tde)!" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "Envoi des mise à jours au méta-serveur..." #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "Envoi du rappel au méta-serveur..." #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Joueur éjecté à cause d'une période d'inactivité trop longue" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Joueur éjecté à cause d'un temps de connexion trop long" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "(L'erreur ne peut pas être affichée en UTF-8)" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "La connexion est brisée à cause d'un tampon plein" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "Code d'erreur interne: %d" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "WinSock n'a pas été correctement initialisé" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "Le sous-système réseau n'est pas prêt" #: src/error.c:156 msgid "WinSock version not supported" msgstr "Cette version de WinSock n'est pas supportée" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "Échec dans le sous-système réseau" #: src/error.c:158 msgid "Address already in use" msgstr "Addresse déjà utilisée" #: src/error.c:159 msgid "Cannot reach the network" msgstr "Impossible de rejoindre le réseau" #: src/error.c:160 msgid "The connection timed out" msgstr "La connexion a échouée à cause d'un timeout" #: src/error.c:161 msgid "Out of file descriptors" msgstr "Aucun descripteur de fichiers disponible" #: src/error.c:162 msgid "Out of buffer space" msgstr "Pas assez d'espace de tampon" #: src/error.c:163 msgid "Operation not supported" msgstr "L'opération n'est pas supportée" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "Connexion abandonnée à cause d'un échec" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "Connexion réinitialisée par l'ordinateur distant" #: src/error.c:166 msgid "Connection refused" msgstr "Connexion refusée" #: src/error.c:167 msgid "Address family not supported" msgstr "Famille d'adresses non-supportée" #: src/error.c:168 msgid "Protocol not supported" msgstr "Protocole non-supporté" #: src/error.c:169 msgid "Socket type not supported" msgstr "Type de socket non-supporté" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "Impossible de trouver l'hôte" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "Erreur de serveur de noms temporaire - essayer plus tard" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "Impossible de contacter le serveur de noms" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "Nom valide, mais aucune information DNS disponible" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "Code d'erreur réseau: %d" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "Code d'erreur du serveur de noms: %d" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Erreur interne du méta-serveur \"%s\"" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Mauvaise réponse du méta-serveur \"%s\"" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "Tu cours ?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "Courir ou combattre ?" #: src/message.c:1337 msgid "pitifully armed" msgstr "leurs guns font pitié" #: src/message.c:1338 msgid "lightly armed" msgstr "légèrement armés" #: src/message.c:1339 msgid "moderately well armed" msgstr "relativement bien armés" #: src/message.c:1340 msgid "heavily armed" msgstr "lourdement armés" #: src/message.c:1340 msgid "armed to the teeth" msgstr "armés jusqu'aux dents" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - te courent après, man!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s et %d %tde - %s - te courent après, man!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s est arrivé avec %d %tde, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s reste debout et le prend." #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Tu restes là comme une momie." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s essaye de décrisser, mais échoue." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "Fuck! Tu peux pas te sauver!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "%s s'est enfuit %tde!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "%s se sont échappés!" #: src/message.c:1384 msgid "You got away!" msgstr "Tu t'es échappé!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Guns rechargés..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s tire sur %s... et manque son coup!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s te tire dessus.. et rate!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "Tu as manqué %s!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s tue %s par balle" #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s tire sur %s et tue une %tde!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s tire sur %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s t'as massacré, mam! Ça chie ton affaire..." #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s te tire dessus... et tue une %tde!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "%s t'a pogné, man!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "T'as achevé %s!" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Tu pognes %s, et tue une %tde!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "Tu pognes %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr " Tu trouves %P sur le corps!" #: src/message.c:1439 msgid " You loot the body!" msgstr " Tu fouilles le corps!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "Impossible d'initialiser WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "Échec général du serveur SOCKS" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "Connexion refusée par les règles SOCKS" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "SOCKS: Connexion réseau impossible" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "SOCKS: Connexion à l'hôte impossible" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "SOCKS: Connexion refusée" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "SOCKS: Le TTL a expiré" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "SOCKS: Commande non-supportée" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Type d'adresse non-supporté" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "Le serveur SOCKS a réjeté toutes les méthodes offertes" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "Le type de l'adresse SOCKS retournée est inconnu" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "Échec d'authentification SOCKS" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "Authentification SOCKS annulée par l'utilisateur" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Requête rejetée ou échouée" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Rejeté - impossible de contacter identd" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Rejeté - identd rapporte un nom d'utilisateur différent" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "Code de réponse SOCKS inconnu" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "Code de version de réponse SOCKS inconnu" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "Version de serveur SOCKS inconnue" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "Code d'error SOCKS: %d" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "En train d'essayer d'établir la connexion avec le serveur dopewars\n" "local en utilisant le socket UNIX %s...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Connexion établie. Utilisez Ctrl-D pour terminer votre session.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "Impossible de déterminer le fichier de configuration local." #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Impossible d'ouvrir le fichier %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Connexion au serveur dopewars impossible\n" "(%s)\n" "Joueur IA termine d'une façon anormale." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Connexion établie\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Connecté au serveur SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Authentification avec le serveur SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Demande de connexion SOCKS vers %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Utilisation de Socks.Auth.User et Socks.Auth.Password pour \n" "l'authentification SOCKS5\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Le joueur IA a débuté et tente de contacter le serveur sur %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Le joueur IA a terminé correctement.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Connexion au serveur perdue!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Utiliser le nom %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Joueurs dans ce jeu:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s joint la partie.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s a quitté la partie.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Déplacement de %tde avec %P en cash et %P en dettes\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Le joueur IA a été tué. Fin normale.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Temps de jeu écoulé. La partie est terminée.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Joueur IA éjecté du serveur.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Le serveur a terminé.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendre %d %tde à %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Acheter %d %tde à %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Acheter un %tde pour %P au marchand d'armes\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Dettes de %P payées au prêteur à gages\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Le prêteur à gages est situé à %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Le marchand d'armes est situé à %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Le bar est situé à %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "La banque est située à %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Tu oses te prendre pour un pusher?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un singe apprivoisé pourrait faire mieux..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Tu penses que t'es assez toff pour dealer avec du monde comme moi?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzzz... tu vends des bonbons ou quoi?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Je crois que je vais devoir te tuer pour ton propre bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Ce fichier binaire a été compilé sans le support réseau et donc ne peut pas " "se comporter comme un joueur IA.\n" "Recompile en passant --enable-networking au script de configuration." #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Le plugin sélectionné (\"%s\") est invalide.\n" "(%s est disponible, utilisation de \"%s\".)" #~ msgid "Cash %17P" #~ msgstr "Cash %17P" #~ msgid "%-19Tde%3d" #~ msgstr "%-19Tde%3d" #, c-format #~ msgid "Health %3d" #~ msgstr "Santé %3d" #~ msgid "Bank %17P" #~ msgstr "Banque %15P" #~ msgid "Debt %17P" #~ msgstr "Dette %15P" #~ msgid "Port for metaserver communication" #~ msgstr "Port du serveur de méta-communication" #~ msgid "Name of a proxy for metaserver communication" #~ msgstr "Nom d'un serveur proxy de méta-communication" #~ msgid "Port for communicating with the proxy server" #~ msgstr "Port par lequel communiquer avec le serveur proxy" #~ msgid "Path of the script on the metaserver" #~ msgstr "Chemin d'accès au script CGI sur le méta-serveur" #~ msgid "If TRUE, use SOCKS for metaserver communication" #~ msgstr "Si VRAI, utiliser SOCKS pour les méta-communications" #~ msgid "Username for HTTP Basic authentication" #~ msgstr "Nom d'utilisateur pour l'authentification HTTP de base" #~ msgid "Password for HTTP Basic authentication" #~ msgstr "Mot de passe pour l'authentification HTTP de base" #~ msgid "Username for HTTP Basic proxy authentication" #~ msgstr "Nom d'utilisateur pour l'authentification proxy HTTP de base" #~ msgid "Password for HTTP Basic proxy authentication" #~ msgstr "Mot de passe pour l'authentification proxy HTTP de base" #, c-format #~ msgid "Proxy authentication required for realm %s" #~ msgstr "Authentification proxy requise pour le domaine %s" #, c-format #~ msgid "Authentication required for realm %s" #~ msgstr "Authentification requise pour le domaine %s" #~ msgid "(Enter a blank username to cancel)" #~ msgstr "(Entrez un nom d'utilisateur vide pour annuler)" #~ msgid "Web proxy hostname" #~ msgstr "Nom du proxy Web" #~ msgid "Script path" #~ msgstr "Chemin du script" #, c-format #~ msgid "Status: Could not connect to metaserver (%s)" #~ msgstr "Status: Ne peut pas se connecter au méta-serveur (%s)" #~ msgid "Status: Obtaining server information from metaserver..." #~ msgstr "" #~ "Status: Obtention de l'information du serveur à partir du méta-serveur..." #~ msgid "Proxy Authentication Required" #~ msgstr "Authentification proxy nécessaire" #~ msgid "Authentication Required" #~ msgstr "Authentification nécessaire" #~ msgid "" #~ "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " #~ "authentication" #~ msgstr "" #~ "Utilisation de MetaServer.Proxy.User et MetaServer.Proxy.Password " #~ "pourl'authentification HTTP proxy." #~ msgid "" #~ "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User " #~ "and MetaServer.Proxy.Password variables" #~ msgstr "" #~ "Impossible de s'identifier avec le proxy HTTP. Veuillez configurer les " #~ "variables MetaServer.Proxy.User et MetaServer.Proxy.Password." #~ msgid "" #~ "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " #~ "authentication" #~ msgstr "" #~ "Utilisation de MetaServer.Auth.User et MetaServer.Auth.Password " #~ "pourl'authentification HTTP ." #~ msgid "" #~ "Unable to authenticate with HTTP server; please set MetaServer.Auth.User " #~ "and MetaServer.Auth.Password variables" #~ msgstr "" #~ "Impossible de s'identifier avec le serveur HTTP. Veuillez configurer les " #~ "variables MetaServer.Auth.User et MetaServer.Auth.Password." #~ msgid "" #~ "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" #~ msgstr "" #~ "Utilisation de Socks.Auth.User et Socks.Auth.Password pour " #~ "l'authentification SOCKS5." #, c-format #~ msgid "Unknown metaserver error code %d" #~ msgstr "Code d'erreur du méta-serveur inconnu: %d" #~ msgid "Number of tries exceeded" #~ msgstr "Nombre d'essais excédés" #, c-format #~ msgid "Bad auth header: %s" #~ msgstr "Mauvaise entête auth: %s" #, c-format #~ msgid "Bad redirect: %s" #~ msgstr "Mauvaise redirection: %s" #, c-format #~ msgid "Invalid HTTP status line: %s" #~ msgstr "Ligne de status HTTP invalide: %s" #~ msgid "403: forbidden" #~ msgstr "403: interdit" #~ msgid "404: page not found" #~ msgstr "404: page non-trouvée" #~ msgid "401: HTTP authentication failed" #~ msgstr "401: échec d'authentification HTTP" #~ msgid "407: HTTP proxy authentication failed" #~ msgstr "407: échec d'authentification proxy HTTP" #~ msgid "Bad redirect message from server" #~ msgstr "Mauvais message de redirection du serveur" #, c-format #~ msgid "Unknown HTTP error %d" #~ msgstr "Erreur HTTP inconnue %d" #, c-format #~ msgid "%d: redirect error" #~ msgstr "%d: erreur de redirection" #, c-format #~ msgid "%d: HTTP client error" #~ msgstr "%d: erreur de client HTTP" #, c-format #~ msgid "%d: HTTP server error" #~ msgstr "%d: erreur de serveur HTTP" #~ msgid "Version %s" #~ msgstr "Version %s" #~ msgid "Messages" #~ msgstr "Messages" dopewars-1.6.2/po/en_GB.po000644 000765 000024 00000274555 14256242752 015236 0ustar00benstaff000000 000000 # British English translation of dopewars # Copyright (C) 2020-2022 Ben Webb # This file is distributed under the same license as the dopewars package. # msgid "" msgstr "" "Project-Id-Version: dopewars SVN\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2020-12-09 12:02-0800\n" "Last-Translator: Ben Webb \n" "Language-Team: British English \n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "" #: src/dopewars.c:196 msgid "the Bank" msgstr "" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "" #: src/dopewars.c:197 msgid "the pub" msgstr "" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "" #: src/dopewars.c:281 msgid "Metaserver URL to report/get server details to/from" msgstr "" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "" #: src/dopewars.c:464 msgid "Name of each location" msgstr "" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "" #: src/dopewars.c:703 msgid "cop" msgstr "" #: src/dopewars.c:703 msgid "cops" msgstr "" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "" #: src/dopewars.c:709 msgid ".38 Special" msgstr "" #: src/dopewars.c:710 msgid "Ruger" msgstr "" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "" #: src/dopewars.c:719 msgid "Cocaine" msgstr "" #: src/dopewars.c:720 msgid "Hashish" msgstr "" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "" #: src/dopewars.c:722 msgid "Heroin" msgstr "" #: src/dopewars.c:723 msgid "Ludes" msgstr "" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" #: src/dopewars.c:725 msgid "MDA" msgstr "" #: src/dopewars.c:726 msgid "Opium" msgstr "" #: src/dopewars.c:727 msgid "PCP" msgstr "" #: src/dopewars.c:728 msgid "Peyote" msgstr "" #: src/dopewars.c:729 msgid "Shrooms" msgstr "" #: src/dopewars.c:730 msgid "Speed" msgstr "" #: src/dopewars.c:731 msgid "Weed" msgstr "" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "" #: src/dopewars.c:741 msgid "Ghetto" msgstr "" #: src/dopewars.c:742 msgid "Central Park" msgstr "" #: src/dopewars.c:743 msgid "Manhattan" msgstr "" #: src/dopewars.c:744 msgid "Coney Island" msgstr "" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "" #: src/dopewars.c:746 msgid "Queens" msgstr "" #: src/dopewars.c:747 msgid "Staten Island" msgstr "" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "" #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "" #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "" #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "" #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "" #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars is released under the GNU General Public Licence" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "" #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "" #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "" #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "" #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "" #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr "" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr "" #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "" #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "" #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "" #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "" #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "" #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "" #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "" #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "" #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "" #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "" #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr "" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr "" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr "" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "" #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "" #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr "" #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "" #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "" #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "" #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "" #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "" #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "" #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "" #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "" #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "" #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "" #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "" #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "" #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "" #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr "" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr "" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr "" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr "" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr "" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr "" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr "" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr "" #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "" #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "" #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "" #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "" #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "" #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "" #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "" #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "" #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "" #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "" #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "" #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "" #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "" #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "" #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "" #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "" #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "" #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "" #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "" #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "" #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "Cop armour" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "Deputy armour" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Metaserver URL" msgstr "" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "" #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "" #: src/serverside.c:73 msgid "defected" msgstr "" #: src/serverside.c:73 msgid "was shot" msgstr "" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:129 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "" #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "" #: src/serverside.c:437 #, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "" #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1287 msgid "New admin connection" msgstr "" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1681 msgid "Command:" msgstr "" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "" #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "" #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "" #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "" #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "" #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "" #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "" #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "WinSock has not been properly initialised" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:156 msgid "WinSock version not supported" msgstr "" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "" #: src/error.c:158 msgid "Address already in use" msgstr "" #: src/error.c:159 msgid "Cannot reach the network" msgstr "" #: src/error.c:160 msgid "The connection timed out" msgstr "" #: src/error.c:161 msgid "Out of file descriptors" msgstr "" #: src/error.c:162 msgid "Out of buffer space" msgstr "" #: src/error.c:163 msgid "Operation not supported" msgstr "" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "" #: src/error.c:166 msgid "Connection refused" msgstr "" #: src/error.c:167 msgid "Address family not supported" msgstr "" #: src/error.c:168 msgid "Protocol not supported" msgstr "" #: src/error.c:169 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "" #: src/message.c:1337 msgid "pitifully armed" msgstr "" #: src/message.c:1338 msgid "lightly armed" msgstr "" #: src/message.c:1339 msgid "moderately well armed" msgstr "" #: src/message.c:1340 msgid "heavily armed" msgstr "" #: src/message.c:1340 msgid "armed to the teeth" msgstr "" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "" #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "" #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "" #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "" #: src/message.c:1384 msgid "You got away!" msgstr "" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "" #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "" #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "" #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "" #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "" #: src/message.c:1437 msgid " You find %P on the body!" msgstr "" #: src/message.c:1439 msgid " You loot the body!" msgstr "" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "Cannot initialise WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "SOCKS authentication cancelled by user" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "" #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "" #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.6.2/po/insert-header.sin000644 000765 000024 00000001612 14256000065 017134 0ustar00benstaff000000 000000 # Sed script that inserts the file called HEADER before the header entry. # # Copyright (C) 2001 Free Software Foundation, Inc. # Written by Bruno Haible , 2001. # This file is free software; the Free Software Foundation gives # unlimited permission to use, copy, distribute, and modify it. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } dopewars-1.6.2/po/de.po000644 000765 000024 00000372457 14256242752 014654 0ustar00benstaff000000 000000 # German translation for dopewars # Copyright (C) 2000 Free Software Foundation, Inc. # Created by Ben Webb , Sep 2000, based on "Drug Wars" by John E. Dell. # Translation by Benjamin Karaca , 04/2006. # This translation is based on the translations by Eric Steiner . # and Tobias Mathes . It's quite some text to edit. Probably there are still lots of mistakes in it. # Some passages are still not fully translated. msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2001-04-08 15:48+0100\n" "Last-Translator: Benjamin Karaca \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "Hure" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "Huren" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "Waffe" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "Waffen" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "Droge" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "Drogen" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "den Kredithai" #: src/dopewars.c:196 msgid "the Bank" msgstr "die Bank" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "Dan's Haus der Waffen" #: src/dopewars.c:197 msgid "the pub" msgstr "die Kneipe" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Netzwerk-Port zu dem verbunden werden soll" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Name der Highscore-Datei" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Server zu dem verbunden werden soll" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Begrüßungsnachricht (MOTD) des Servers" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Netzwerkadresse für den Server" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE, wenn ein SOCKS-Server für das Netzwerkspiel genutzt werden soll" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE, wenn numerische Benutzer-IDs für SOCKS4 benutzt werden sollen" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Der Benutzername für SOCKS4, wenn nicht leer" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "Der Hostname eines SOCKS-Servers, der benutzt werden soll" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "Die Port-Adresse eines SOCKS-Servers, der benutzt werden soll" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "Die Version des zu verwendenden SOCKS-Protokolls (4 oder 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Benutzername für die Bestätigung von SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Passwort für die Bestätigung von SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE wenn der Server bei einem MetaServer Meldung erstatten soll" #: src/dopewars.c:281 #, fuzzy msgid "Metaserver URL to report/get server details to/from" msgstr "" "Name des Metaservers, zu/von dem Server-Details gesendet/erhalten werden " "sollen" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "Bevorzugter Hostname deines Servers" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Bestätigung für LocalName mit dem Metaserver" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Server-Beschreibung, die an den Metaserver gemeldet wird" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Wenn TRUE wird der Server zur Taskleiste minimiert" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "Wenn TRUE läuft der Server im Hintergrund" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "Das Kommando, welches zum Starten deines Web-Browsers benutzt wird" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Anzahl der Spielrunden (0 = unbegrenzt)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "Tag des Monats an dem das Spiel beginnt" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "Monat in dem das Spiel beginnt" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "Jahr in dem das Spiel beginnt" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "Das Währungssymbol (z.B. $)" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "Wenn TRUE wird das Währungssymbol dem Preis vorangestellt" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "Datei in welche die Log-Nachrichten geschrieben werden sollen" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "Kontrolliert die Anzahl der erzeugten Log-Nachrichten" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "strftime() Format-String für Zeitstempel in den Log-Nachrichten" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Zufallsereignisse sind entschärft" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE wenn der Wert gekaufter Drogen gespeichert werden soll" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Für die Fehlersuche hilfreiche Nachrichten erzeugen" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Anzahl der Orte im Spiel" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Anzahl der Polizisten im Spiel" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Anzahl der Waffen im Spiel" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Anzahl der Drogen im Spiel" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Position des Kredithais" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Position der Bank" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Position des Waffenladens" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Position des Pubs" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "Täglicher Zinssatz beim Kredithai" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "Täglicher Zinssatz deines Bankguthabens" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Name des Kredithais" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Name der Bank" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Name des Waffenladens" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Name des Pubs" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "TRUE wenn Sounds aktiviert werden sollen" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "Sound-Datei für einen Treffer" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "Sound-Datei für einen verfehlten Schuss" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "Sound-Datei für das Nachladen einer Waffe" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "Sound-Datei für das Ableben einer/s feindlichen Hure/Hilfssheriffs" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "Sound-Datei für das Ableben einer eigenen Hure" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "Sound-Datei für das Ableben eines anderen Spielers oder Polizisten" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "Sound-Datei für DEIN Ableben" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "Sound-Datei für eine erfolglose Flucht eines anderen Spielers" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "Sound-Datei für eine erfolglose Flucht von dir" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "Sound-Datei für eine gelungene Flucht eines anderen Spielers" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "Sound-Datei für eine gelungene Flucht von dir" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "Sound-Datei für die Ankunft an einem neuen Ort" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "Sound-Datei für eine Öffentliche Chat-Nachricht" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "Sound-Datei für eine private Chat-Nachricht" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "Sound-Datei für den Beitritt eines Spielers zu einem Spiel" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "Sound-Datei für den Ausstieg eines Spielers aus einem Spiel" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "Sound-Datei für den Start des Spieles" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "Sound-Datei für das Ende des Spieles" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Taste für das Sortieren der Liste der vorhandenen Drogen" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Sekundenanzahl in denen zurückgeschossen werden muss" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Spieler werden nach Ablauf dieser Sekunden getrennt" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Sekundenanzahl um Verbindungen herzustellen oder zu beenden" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Maximale Anzahl der TCP/IP-Verbindungen" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Sekundenanzahl zwischen den Runden der KI-Spieler" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Startkapital der einzelnen Spieler" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Startschulden der einzelnen Spieler" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Namen der einzelnen Orte" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Polizeipräsenz an den einzelnen Orten (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Mindestanzahl an Drogen an jedem Ort" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Maximale Anzahl an Drogen an jedem Ort" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "% Trefferresistenz jedes Spielers" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "% Trefferresistenz jeder Huren" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Namen der einzelnen Polizisten" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Name des Hilfssheriffs jedes einzelnen Polizisten" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Name der Hilfssheriffs jedes einzelnen Polizisten" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "% Trefferresistenz jedes Polizisten" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "% Trefferresistenz jedes Hilfssheriffs" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Angriffserschwernis im Verhältnis zu einem Spieler" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Verteidigungserschwernis im Verhältnis zu einem Spieler" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Minimale Anzahl der begleitenden Hilfssheriffs" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Maximale Anzahl der begleitenden Hilfssheriffs" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "Index der Waffe mit der Polizisten bewaffnet sind (Null-basiert)" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Anzahl der Waffen die jeder Polizist trägt" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "Anzahl der Waffen die jeder Hilfssheriff trägt" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Name jeder Droge" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Minimaler Standardpreis jeder Droge" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Maximaler Standardpreis jeder Droge" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE wenn diese Droge extrem billig sein kann" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE wenn diese Droge extrem teuer sein kann" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Nachricht die angezeigt wird wenn diese Droge extrem billig ist" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" "Format-String der mit 50%-iger Wahrscheinlichkeit für teure Drogen benutzt " "wird " #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "" "Teiler der für den Drogenpreis benutzt wird wenn dieser extrem billig ist" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplikationsfaktor bei extrem hohen Drogenpreisen" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Name jeder Waffe" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Preis jeder Waffe" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Platzverbrauch jeder Waffe" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Schaden jeder Waffe" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Wie soll eine einzelne Hure bezeichnet werden?" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Wie sollen zwei oder mehrere Huren bezeichnet werden?" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Wie soll eine einzelne Waffe oder Ähnliches bezeichnet werden?" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Wie sollen zwei oder mehrere Waffen bezeichnet werden?" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Wie soll eine einzelne Droge oder Ähnliches bezeichnet werden?" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Wie sollen zwei oder mehrere Drogen bezeichnet werden?" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "strftime() Format-String für das Anzeigen der Spielrunden" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Kosten für das Ausspionieren eines Feindes mit einer Hure" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Kosten um einen Spieler mit Hilfe einer Hure an die Polizei zu verraten" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Minimaler Geldbetrag für das Anheuern einer Hure" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Minimaler Geldbetrag fuer das Anheuern einer Hure" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Liste der Dinge die du in der U-Bahn aufschnappen kannst" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Anzahl der Dinge" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Liste der Lieder die du spielen hören kannst" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Anzahl der Lieder" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Liste der Dinge die du machen kannst" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Anzahl der Dinge die du machen kannst" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` von Jimi Hendrix" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` von Tone Loc" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Comin` in to Los Angeles` von Arlo Guthrie" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Commercial` von Spanky and Our Gang" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Late in the Evening` von Paul Simon" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Light Up` von Styx" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` von Jefferson Airplane" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`One toke over the line` von Brewer & Shipley" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`The Smokeout` von Shel Silverstein" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` von Jefferson Airplane" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Itchycoo Park` von Small Faces" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` von the Tubes" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` von the Moody Blues" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Eight Miles High` von the Byrds" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Acapulco Gold` von Riders of the Purple Sage" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Kicks` von Paul Revere & the Raiders" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "Die Nixon-Kassetten" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize It` von Mojo Nixon & Skid Roper" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "ein schönes, kaltes Bier zu trinken" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "einen Joint zu rauchen" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "eine dicke Zigarre zu rauchen" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "eine Bong zu rauchen" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "eine Kippe zu rauchen" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Officer Hardass" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "Hilfssheriff" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "Hilfssheriffs" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Officer Bob" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Agent Smith" #: src/dopewars.c:703 msgid "cop" msgstr "Polizist" #: src/dopewars.c:703 msgid "cops" msgstr "Polizisten" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:709 msgid ".38 Special" msgstr ".38er Special" #: src/dopewars.c:710 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Samstag Nacht Spezial" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Acid" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "" "Der Markt wird mit billigem, selbst hergestelltem Acid geradezu überflutet!" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Kokain" #: src/dopewars.c:720 msgid "Hashish" msgstr "Haschisch" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "Der Marrakesch-Express ist angekommen!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Heroin" #: src/dopewars.c:723 msgid "Ludes" msgstr "Medikamente" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Gerade haben ein paar Dealer 'ne Apotheke ausgeraubt und verscheuern jetzt " "billige Medikamente!" #: src/dopewars.c:725 msgid "MDA" msgstr "MDMA" #: src/dopewars.c:726 msgid "Opium" msgstr "Opium" #: src/dopewars.c:727 msgid "PCP" msgstr "PCP" #: src/dopewars.c:728 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Shrooms" #: src/dopewars.c:730 msgid "Speed" msgstr "Speed" #: src/dopewars.c:731 msgid "Weed" msgstr "Weed" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" "Ein kolumbianischer Frachter hat die Küstenwache umschippert. Der Preis für " "Weed ist ins bodenlose gefallen!" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "Bronx" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Ghetto" #: src/dopewars.c:742 msgid "Central Park" msgstr "Central Park" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Manhattan" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Coney Island" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "Brooklyn" #: src/dopewars.c:746 msgid "Queens" msgstr "Queens" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Staten Island" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" "Die Polizei hat eine große Menge %tde konfisziert! Die Preise schießen in " "die Höhe!" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Junkies kaufen %tde für horrende Summen!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Wäre es nicht cool, wenn alle plötzlich mal zittern würden?" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "Der Papst war mal jüdisch, weißte?" #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Ich möchte wetten, dass du interessante Träume hast." #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Ich glaub' ich fahr' dieses Jahr mal wieder nach Amsterdam." #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Mein Sohn, du brauchst 'nen gelben Haarschnitt." #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Ich finde es wundervoll was man heutzutage mit Düften alles anstellt." #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "Ich war nicht immer ne Frau, weißte?" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "Weiß deine Mami, dass du'n Dealer bist" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "Bist du bekifft?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Oh, du musst aus Kalifornien kommen." #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "Ich war selber mal 'n Hippie." #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Es geht einfach nichts über 'nen riesen Haufen Zaster!" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "Du siehst aus wie 'n Erdferkel!" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Ich glaube nicht an Ronald Reagan!" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "Verbreitet die Wahrheit! Bush ist eine Nudel!" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "Hab' ich dich nich' mal im Fernsehen gesehen?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "Ich finde, Hämorrhoiden-Werbung haben 'was für sich!" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "Wir gewinnen den Kampf um die Drogen!" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "Ein Tag ohne Drogen ist so dunkel wie die Nacht." #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "Man benutzt ohnehin nur 20% seines Gehirns, warum soll man sich da nicht die " "restlichen 80% zudröhnen?!" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Ich erbitte Spenden für Zombies... für Jesus!" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Darf ich dir diesen hochgestylten Pudel verkaufen?" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Gewinner nehmen keine Drogen... es sei denn, sie nehmen welche!" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "Bringe Gott ein Opfer! Töte einen Polizisten!!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Ich bin das Walross!" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Jesus liebt dich mehr als du glaubst." #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "" "Mich überkommt das unbeschreibliche Verlangen meine Haare blau zu färben" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "War Jane Fonda nicht unglaublich in Barbella?" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Sag' einfach NEIN... naja, vielleicht... ach, zum Teufel!" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "Magst du ein Gummibärchen?" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "Drogen können deine Freunde sein..." #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Ausführen der Konfigurationsdatei %s in Zeile %d abgebrochen" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "Fehler beim Öffnen der Datei %s" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Einstellungen können nur interaktiv geändert werden wenn keine\n" "Spieler eingeloggt sind. Warte bis alle Spieler ausgeloggt sind\n" "oder entferne sie mit dem push oder kill Kommando und versuche es dann noch " "mal" #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Index in Array %s sollte zwischen 1 und %d sein" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s ist %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s ist %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s ist %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s ist \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] ist %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s ist { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s kann nicht kleiner sein als %d – ignorieren!" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s kann nicht größer sein als %d – ignorieren!" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Optimierte Struktur-Liste von %d Elementen\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Erwarteter Boolean-Wert (0, FALSE, 1, TRUE" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "$" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars version %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Verwende: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"schwarz und weiß\" - benutze keine Farben\n" " -n verbinde zu keinem verfügbaren dopewars server\n" " (z.B. Einzelspieler-Modus)\n" " -a \"antik\" dopewars - emuliere original version \n" " -f datei spezifiziere Bestenlisten-Datei \n" " (standard: %s/dopewars.sco wird benutzt)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found (in human-readable - e.g. nowhere.com - format)\n" " -s run in server mode (note: for a \"non-interactive\" server, " "simply\n" " run as dopewars -s < /dev/null >> logfile & )\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p spezifiziere netzwerkport (standard: 7902)\n" " -g datei spezifiziere den pfad der dopewars konfiguration datei. \n" " -c erstelle und benutze einen KI Spieler\n" " -w benutze GUI (GTK+ oder Win32)\n" " -t benutze Text Modus (console) (curses)\n" " (wenn vorhanden wird der grafische Client als Standard " "benutzt)\n" " -h Zeige diese Hilfe an\n" " -v Zeige Version und beende\n" "\n" "dopewars steht unter dem Copyright (C) von Ben Webb 1998-2022 und ist " "veröffentlicht unter der GNU GPL\n" "Melde Programmierfehler dem Autor Ben Webb, benwebb@users.sf.net\n" "Melde übersetzungsfehler an Benjamin Karaca, mister-freeze@web.de\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Verwende: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"schwarz und weiß\" - benutzt keine Farben\n" " -n verbinde zu keinem verfügbaren dopewars server\n" " (z.B. Einzelspieler-Modus)\n" " -a \"antik\" dopewars - emuliere original version \n" " -f datei spezifiziere Bestenlisten-Datei \n" " (standard: %s/dopewars.sco wird benutzt)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found (in human-readable - e.g. nowhere.com - format)\n" " -s run in server mode (note: for a \"non-interactive\" server, " "simply\n" " run as dopewars -s < /dev/null >> logfile & )\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p spezifiziere netzwerkport (standard: 7902)\n" " -g datei spezifiziere den pfad der dopewars konfiguration datei. \n" " -c erstelle und verwende einen AI Spieler\n" " -w benutze GUI (GTK+ oder Win32)\n" " -t benutze text-modus klient (curses)\n" " (wenn vorhanden wird der GUI Client als Standard benutzt)\n" " -h Zeige diese Hilfe an\n" " -v Zeige Version und beende\n" "\n" "dopewars steht unter dem Copyright (C) von Ben Webb 1998-2022 und ist verö" "ffentlicht unter der GNU GPL\n" "Melde Programmierfehler dem Autor Ben Webb, benwebb@users.sf.net\n" "Melde übersetzungsfehler an Benjamin Karaca, mister-freeze@web.de\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Es ist kein curses-Klient verfügbar - Du musst das binary mit der \n" "Option \"--enable-curses-client\" mit dem Programm \"configure\"\n" "neu kompilieren oder Du benutzt den GTK+-Klient falls er verfügbar ist.\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Es ist kein GTK+-Klient verfügbar - Du musst das binary mit der \n" "Option \"--enable-gui-client\" mit dem Programm \"configure\"\n" "neu kompilieren oder Du benutzt den curses-Klient falls er verfügbar ist.\n" #: src/dopewars.c:2972 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Dieses Programm wurde ohne Netzwerkunterstützung kompiliert \n" " und kann dadurch nicht als KI Spieler eingesetzt werden.\n" "Neu kompilieren und --enable-networking bei ./configure angeben" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Deutsche Übersetzung Benjamin Karaca" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Dieses Spiel basiert auf dem alten Spiel Drug Wars von John E. Dell und" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "simuliert einen imaginären Drogenmarktes. Das Ziel ist es" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "Drogen zu kaufen und zu verkaufen und den Cops zu entwischen!" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "Zuerst solltest du beim Örtlichen Kredithai deine Schulden begleichen. Danach" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "musst du versuchen möglichst viel Geld zu verdienen (und zu überleben)!" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "Dir bleibt ein ganzer Monat Spielzeit um dein Glück zu machen." #: src/curses_client/curses_client.c:351 #, fuzzy, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "Drugwars wurde unter der GNU General Public License veröffentlicht" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "Symbole und Grafiken Ocelot Mantis" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sounds Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Drogenhandel und Infos Dan Wolf" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testspieler Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Exzessives Testspielen Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Konstruktive Kritk Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Unkonstruktive Kritk James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "Für Informationen über die Startparameter tipp dopewars -h in" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "deiner Unix Prompt ein. Dies listet dir alle verfügbaren Parameter auf." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Bitte gib den Hostnamen und Port des Dopewars servers an:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Hostname: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Bitte warten... Erstelle Verbindung zu Metaserver..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Server : %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Port : %d " #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Version : %s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Spieler: -unbekannt- (maximal %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Spieler: %d (maximal %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "Online seit: %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Kommentar: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "N>ächster ; V>orheriger ; W>ähle diesen Server... " #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "NVW" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Verbinde zu SOCKS-Server %s..." #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "Authentifiziere bei SOCKS Server" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Frage SOCKS nach Verbindung zu %s..." #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "SOCKS Authentifizierung benötigt (Benutzername leer lassen um abzubrechen)" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "Benutzername: " #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "Passwort: " #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Bitten warten... versuche Dopewars-Server zu kontaktieren..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "Bekomme keine Details des Metaserver" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "Kann den Multiplayer-Modus nicht starten" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "Öffne V>erbindug zu einem Server, " #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr "L>iste Server des Metaserver auf und wähle einen aus" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "möchtest Du das Spiel B>eenden" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " oder möchtest Du als E>inzelspieler spielen " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "VLBE" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "Wohin soll's gehen, Kumpel? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Du kannst keine Kohle für die folgenden Drogen kriegen %tde :" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "Was willst du wegwerfen? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "Wie viel schmeißt du weg? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "Was willst du kaufen? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "Was möchtest du verscherbeln? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Du kannst dir %d leisten, und %d tragen. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "Wie viel kaufst du? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Du hast %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "Wieviel verkaufst du? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Wähle einen Auftrag für eine deiner %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " S>chicke Spion zu einem anderem Dealer (Kosten: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " V>erpfeife ein anderen Dealer an die Cops (Kosten: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " D>röhn dich voll" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "oder K>ontaktiere deine Spione um Meldung zu erhalten" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "oder mach N>ichts ? " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "SVDKN" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "Wen willst du bespitzeln? " #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "Wen möchtest du verpfeifen? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr " Bist Du sicher? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "JN" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "Willst du wirklich aufhören? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Neuer Name: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Du wurdest vom Server geworfen. Kehre zum Einzelspieler-Modus zurück." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "" "Verbindung zum Server unterbrochen! Kehre zum Einzelspieler-Modus zurück" #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "%s betritt das Spiel!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s hat das Spiel verlassen." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s ist nun bekannt als %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "U - B A H N" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "%/Derzeitiger Aufenthaltsort/%tde" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Leider benutzt schon jemand anders \"deinen\" Namen. Bitte ändere Ihn" #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "B E S T E N L I S T E" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "Du hast keine %tde die du verkaufen könntest!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "Du hast keine %tde die du verkaufen könntest!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Du brauchst mehr %tde Platz um noch mehr %tde tragen zu können!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Du hast nicht genug Platz um eine %tde zu tragen!" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Du hast nicht genug Kohle für eine %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Willst du E>inkaufen, V>erkaufen, oder G>ehen? " #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "EVG" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "Wieviel Geld möchtest Du zurückzahlen?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "Soviel Kohle hast Du nicht!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Möchtest Du E>inzahlen, A>bheben, oder die Bank V>erlassen? " #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "EAV" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "Wie viel Kohle?" #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "So viel Knete hast du gar nicht..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "J:Ja" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:Nein" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "R:Rennen" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "K:Kämpfen" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Angriff" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "V:Verschwinden" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Drück irgend'ne Taste..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "Nachrichten (-/+ zum Scrollen)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Statistik" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Bargeld" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tde" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Gesundheit" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Konto" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Schulden" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Platz %6d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Platz %6d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Mantel" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%/Stats: Drogen/%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Spion berichtet für %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Spion: Drogen/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "%/Spion: Waffen/%Tde..." #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "Tja, Du bist alleine auf der Welt!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Eingeloggte Mitspieler:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Hey Kleiner, die %tde Preise von hier:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Kann den SIGWINCH Interrupt Handler nicht installieren" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Hey Kleiner, wie lautet dein Name? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "Willst Du E>inkaufen" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", V>erkaufen" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", W>egwerfen" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", S>prechen, F>lüstern" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", L>iste" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", A>ktion" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", K>ämpfen" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", R>eisen" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", oder B>eenden? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "Willst Du " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "K>ämpfen, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "S>tehen bleiben, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "R>ennen, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "mit %tde H>andeln, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "oder B>eenden? " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "" "Verbindung zum Server unterbrochen! Kehre in den Einzelspieler-Modus zurück" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "EVWSFLAKRB" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "HRKSE" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "Zeige S>pieler oder P>unkte? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "SP" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "Wem möchtest du etwas zuflüstern ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Sprich: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "Möchtest du noch mal spielen? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Spiel" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Spiel/_Neu..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "/Spiel/_Abbrechen..." #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "/Spiel/_Einstellungen..." #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "/Spiel/Sound" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Spiel/_Ende..." #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Mitteilung" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Mitteilung/An _Alle..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Mitteilung/An _Spieler..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Anzeigen" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Anzeigen/der _Spieler..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Anzeigen/der _Punkte..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Anzeigen/des _Inventars..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Aktionen" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Aktionen/_Spionieren..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Aktionen/_Verpfeifen..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Aktionen/_Spionagebericht lesen..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Hilfe" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Hilfe/_Über..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Warnung" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "Fehler" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Nachricht" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "Willst du das aktuelle Spiel abbrechen?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Spiel verlassen" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Neues Spiel starten" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "Spiel Abbrechen" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Inventar" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "_Schließen" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Verbindung zum Server verloren - wechsle in Einzelspieler-Modus" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Du wurdest vom Server geworfen.\n" "Kehre in Einzelspieler-Modus zurück." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "Verbindung zu Server unterbrochen!\n" "Kehre zurück in den Einzelspieler-Modus" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Reise zu %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Spion (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Verpfeife (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "B E S T E N L I S T E" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "Fehlerhafte Bestenliste!" # src/gtk_client.c:737 #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Kämpfen" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "_%Tde dealen" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Kämpfen" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Stehen bleiben" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Rennen" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Kampf: Huren/%d %tde" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "(Links)" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "(Tot)" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Gesundheit: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "Du" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Huren/%Tde" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 #, fuzzy msgid "%/Inventory gun name/%tde" msgstr "Inventar" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Reise zu Ort" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "%/Reiseziel/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "für %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Zur Zeit trägst Du %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Verfügbarer Platz: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Du kannst %d kaufen" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Einkaufen" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Verkaufen" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Wegwerfen" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "Wieviel Einkaufen?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "Wieviel Verkaufen?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "Wieviel Wegwerfen?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_OK" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Abbrechen" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Kaufen %tde" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Verkaufen %tde" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Wegwerfen %tde" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Ja" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_Nein" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Angriff" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_Verschwinden" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Frage" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Platz" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "_Reisen!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Deutsche Übersetzung" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Benjamin Karaca" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "Symbole und Grafiken" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "Sounds" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Drogen Handel und Nachforschung" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Testspieler" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Exzessives Testspielen" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Konstruktive Kritik" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Unkonstruktive Kritik" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "Über Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basiert auf John E. Dell's altem Spiel 'Drug Wars'.\n" "Das Spiel simuliert einen imaginären Drogenmarkt, mit allen\n" "Dingen die man so gerne macht: \n" "Einkaufen, Verkaufen und versuchen, nicht von der Polizei erwischt zu " "werden.\n" "\n" "Als erstes sollte man seine Schulden beim Kredithai begleichen.\n" "Danach ist es das Ziel soviel Geld wie möglich zu verdienen und\n" "natürlich am Leben zu bleiben. Man hat dafür einen ganzen Monat Zeit.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "Dopewars wurde unter der GNU General Public License veröffentlicht.\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Für Informationen über Kommandozeilen-Parameter, gib 'dopewars -h' in " "deiner \n" "UNIX-shell ein. Alle verfügbaren Kommandos werden dann angezeigt.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "Lokale HTML Dokumentation" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Kredithai Fenstertitel/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/BankName Fenstertitel/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "Sie müßen einen positiven Geldbetrag eingeben!" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "Ein B?nker spricht: \"Soviel Geld haben Sie nicht.\"" #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Bargeld: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Schulden: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Konto: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Zurückzahlen:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Einzahlen" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Abheben" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Bezahle alles" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Spieler Liste" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Rede mit Spieler(n)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Rede mit allen Spielern" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Nachricht:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Senden" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Spioniere anderen Spieler aus" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Bitte wähle einen Spieler aus den Du ausspionieren m?chtest.\n" "Deine %tde wird dann dem anderen Spieler ihre Dienste anbieten,\n" "und wenn sie erfolgreich ist, kannst du Dir die Statistik deines\n" "Kontrahenten im \"Spion Report\" Menu anschauen\n" "Aber Vorsicht %tde wird dich verlassen und %tde oder %tde mitnehmen." #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Gib der Polizei einen Tipp" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, fuzzy, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Bitte wähle einen Spieler den Du an die Bullen verpfeiffen m?chtest.\n" "Deine %tde wird der Polizei helfen Deinen Kontrahenten zu finden,\n" "aber keine Angst sie wird nach getaner Arbeit zurückkehren." #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Bist Du sicher? (Alles %tde oder %tde getragenes\n" "%tde geht verloren!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Name" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Preis" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Anzahl" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Einkaufen ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Verkaufen" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Wegwerfen <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde hier" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde dabei" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Ändere Name" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Leider benutzt schon jemand anders \"deinen\" Namen, ändere Ihn bitte." #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Waffenladen Fenstertitel/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Spion berichtet" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "Neu %s" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "Sound-Datei auswählen" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "Neu" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "Löschen" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "Hoch" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "Runter" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "Polizeipräsenz" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "Minimale Menge an Drogen" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "Maximale Menge an Drogen" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "Minimaler Normalpreis" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "Maximaler Normalpreis" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "Kann ?u?erst billig sein" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "Nachricht für günstigen Preis" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "Kann ?u?erst teuer sein" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "Platz im Inventar" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "Schaden" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "Name für einen Hilfssheriffs" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "Name für mehrere Hilfssheriffs" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "Mindestanzahl an Hilfssheriffs" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "Maximale Anzahl an Hilfssheriffs" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "Rüstung des Polizisten" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "Rüstung des Hilfssheriffs" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "Einstellungen" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "Drogenreferenzen entfernen" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "Unicode Konfigurationsdatei" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "Spiellänge (Runden)" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "Startkapital" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "Startschulden" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "Währungssymbol" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "Währungssymbol dem Preis voranstellen" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "Name für eine Hure" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "Name für mehrere Huren" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "Web-Browser" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "Allgemein" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "Orte" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "Nachricht für teuren Preis 1" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "Nachricht für teuren Preis 2" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "Drogen" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "Waffen" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "Polizisten" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "Server meldet sich beim Metaserver" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "Zur Taskleiste minimieren" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "MetaServer" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Kommentar" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "Begrüßungsnachricht" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Server" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "Beschreibung" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "Sound-Datei" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "Abspielen" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Hilfe" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "Du kannst kein Spiel starten, ohne vorher einen Namen anzugeben!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Neues Spiel" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Status: Warte auf Benutzereingabe" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Verbindung wurde durch remote Host geschlossen" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Konnte keine Verbindung zu %s herstellen" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Versuche Verbindung zu %s herzustellen..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Unbekannt" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d von %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Verbinde mit SOCKS server %s..." #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "Status: Authentifizieren mit SOCKS server" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Status: Frage SOCKS um zu %s zu verbinden..." #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Port" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Version" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Spieler" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Hey Kleiner, wie heißt Du? " #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Rechnername" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Verbinde" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "_Antiker Modus" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Starte Einzelspieler Spiel" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "Einzelspieler" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "MetaServer" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "SOCKS Authentifizierung benötigt" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "Dopewars Server" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "dopewars AI" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "entkommen" #: src/serverside.c:73 msgid "defected" msgstr "erwischt" #: src/serverside.c:73 msgid "was shot" msgstr "wurde getroffen" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:129 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "Dopewars Server - Version %s Kommandos und Einstellungen\n" "\n" "help Zeigt den Hilfebildschirm an\n" "list Listet alle eingeloggten Spieler an.\n" "push Bittet den Spieler zu gehen.\n" "kill Unterbricht die Verbindung zum genannten Spieler\n" "msg: Sende Nachricht an alle Spieler\n" "quit Freundliches Ende, nach Benachrichtigung aller " "Spieler\n" "= Weist die genannte Variable dem gegebenen Wert " "zu\n" " Zeigt den Wert der genannten Variable an\n" "[x].= Weist der genannten Variable in der Liste,\n" " Index x, den gegebenen Wert zu\n" "[x]. Zeigt den Wert der genannten Listen Variable an\n" "\n" "Verfügbare Variablen werden hier aufgelistet :-\n" "\n" #: src/serverside.c:160 #, fuzzy, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "Konnte nicht zu Metaserver verbinden %s (%s)" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "MetaServer : %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "Warte auf Verbindung zu Metaserver %s..." #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxKlients (%d) erreicht - verwerfe Verbindung" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "Sorry, aber hier dürfen max. 1 spielen.^Bitte versuchs später nochmal." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Sorry, aber hier dürfen max. %d spielen.^Bitte versuchs später nochmal." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s ist nun bekannt als %s" #: src/serverside.c:437 #, fuzzy, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: VERWEIGERT Reise zu %s" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Deine Zeit als Dealer ist vorbei..." #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: VERWEIGERT Reise zu %s" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s spioniert nun bei %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s spion bei %s: VERWEIGERT" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s hat %s bei den Cops verraten" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s verpfeifft %s: VERWEIGERT" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Unbekannte Nachricht: %s:%c:%s:%s" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Pflege PID Datei %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Kann PID Datei nicht erstellen %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "Kann nicht auf Port %u (%s) starten. Breche ab." #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "Kann nicht am Netzwerksockeln horchen. Breche ab." #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "dopewars server version %s klar und wartet auf verbindungen auf port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Kann SIGUSR1 nicht installieren, breche ab" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Kann SIGHUP nicht installieren, breche ab" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "Kann SIGINT nicht installieren, breche ab" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Kann SIGTERM nicht installieren, breche ab" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "Kann pipe handler nicht installieren" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Eingelogte Spieler:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "Du bist ganz allein auf der Welt!\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Drücke %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "Kein solcher Benutzer!\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s getötet\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Unbekanntes Kommando - versuch mal \"help\" für Hilfe...\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "bekommt Verbindung von %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "Der Server wurde beendet." #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "%s verlässt den Server!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1287 msgid "New admin connection" msgstr "Neue Admin verbindung" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "Admin Befehl: %s" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "Admin Verbindung geschlossen" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "Kann NT Dienst Status nicht setzen" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "Konnte Service Benachrichtigung nicht senden" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "Kann Dienst handler nicht registrieren" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "Kann NT Dienst nicht starten" #: src/serverside.c:1681 msgid "Command:" msgstr "Befehl:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "Fehler beim Lesen der Punkte aus %s." #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "Die Bestenliste-Datei %s wurde in das neue Format konvertiert.\n" "Ein Backup der alten Datei wurde als %s erstellt.\n" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Kann kein Backup (%s) der\n" "Bestenliste-Datei %s erstellen." #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Kann die Bestenliste-Datei nicht öffnen %s: %s." #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Kann Bestenliste-Datei %s nicht öffnen.\n" "(%s). Stell sicher, dass du die Berechtigung für den Zugriff\n" "auf die Datei/das Verzeichnis hast oder gib eine andere Bestenliste-Datei\n" "mit derm -f Kommandozeilen-Parameter an." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s scheint keine gültige Bestenliste-Datei zu sein -\n" "bitte nachprüfen! Wenn es eine Datei von einer älteren Version\n" "von Dopewars ist, dann konvertiere sie zuerst in das neue Format\n" "mit Hilfe des Parameters \"dopewars -C %s\"\n" "in der Kommandozeile." #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Beim Lesen der Konfigurationsdatei traten Fehler auf. Als Folge\n" "werden einige Einstellungen vielleicht nicht wie erwartet funktionieren.\n" "Ziehe die Datei \"dopewars-log.txt\" für weitere Details zu Rate." #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Beim Lesen der Konfigurationsdatei traten Fehler auf. Als Folge\n" "werden einige Einstellungen vielleicht nicht wie erwartet funktionieren.\n" "Schau dir die Nachrichten unter Standard Output für weitere Details an." #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "Kann die Bestenliste-Datei %s nicht lesen." #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "Glückwunsch! Du hast Dir einen Platz in der Bestenliste erkämpft!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "Tja, besser spielen, dann gibt's auch 'nen Highscore..." #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "Kann Bestenliste-Datei %s nicht schreiben." #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Verpfiffen von %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Spion angeboten von %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Eine deiner %tde hat für %s spioniert.^Der Spion %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Dein Spion der für %s arbeitete wurde enttarnt!^Der Spion %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "Die Lady neben dir in der U-Bahn sagte,^ \"%s\"%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (Zumindest -glaubst- du, sie hätte das gesagt)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Du hörst jemanden %s spielen" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Möchtest du %tde besuchen?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Willst Du eine %tde für %P anwerben?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s ist schon hier!^Willst du angreifen, oder dich verdrücken?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "Keine Bullen oder Waffen!" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "Polizisten können sich nicht gegenseitig angreifen." #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "Spieler kämpfen bereits!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "Spieler kämpfen bereits in verschieden Kämpfen!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "Kann nicht kämpfen - keine Waffen vorhanden!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Du bist tot! Game over." #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: Verrat von %s erledigt OK." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" "Deinem Tipp folgend haben die Cops %s in einen Hinterhalt gelockt und " "abgeknallt." #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Deinem Tipp folgend haben die Cops %s in einen Hinterhalt gelockt; leider, " "konnte %d mit %tde entkommen." #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "" "YN^Willst du einem Doktor %P blechen, damit er dich wieder zusammenflickt?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "Du wurdest in der U-Bahn bestohlen!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Du triffst einen Freund! Er gibt dir %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Du triffst einen Freund! Du gibst ihm %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Polizeihunde jagend dich %d Blocks entlang! Du hast ein wenig %tde " "weggeworfen! So'n Scheiß." #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Du findest %d %tde bei einem toten Penner in der U-Bahn!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Deine Mama hat aus deinem %tde Brownies gemacht! Die waren super!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Du findest etwas Weed, das wie wie übelstes Rattengift stinkt!^Sieht aber " "sonst ganz gut aus! Willst Du es rauchen?" #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Du machst eine kleine Pause um %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Möchtest Du einen größeren Mantel für %P kaufen?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^Hey Kumpel! Ich trage dir %tde für %P. Wie wär's? Ja oder Nein?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Willst Du eine %tde für %P kaufen?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: Angebot war im Interesse von %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "" "%s hat deine %tde angenommen !^Benutz die Taste G um deinen Spion zu " "kontaktieren." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Du hattes den geilsten Trip deines Lebens. Er dauerte drei Tage und übertraf " "alles, was du bisher erlebt hast. Dann bist du abgekratzt, weil dein Gehirn " "in tausend Teile zersprungen ist." #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Zu spät - %s hat sich verpisst!" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "%s hat deine %tde abgelehnt!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "Die Cops haben dich gesehen als du %tde wegwerfen wolltest!" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "Sende Update an Metaserver..." #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "Sende Erinnerungsnachricht an Metaserver..." #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Spieler entfernt aufgrund von Idle Timeout" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Spieler entfernt aufgrund von Timeout bei Verbindungsaufbau" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "(Fehler kann in UTF-8 nicht angezeigt werden)" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "Verbindung abgebrochen aufgrund eines vollen Buffers" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "Interner Fehler %d" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "WinSock wurde nicht richtig initialisiert" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "Netzwerk-Subsysten ist nicht bereit" #: src/error.c:156 msgid "WinSock version not supported" msgstr "WinSock Version wird nicht unterstützt" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "Das Netzwerksubsystem ist fehlgeschlagen" #: src/error.c:158 msgid "Address already in use" msgstr "Adresse wird bereits benutzt" #: src/error.c:159 msgid "Cannot reach the network" msgstr "Kann Netzwerk nicht erreichen" #: src/error.c:160 msgid "The connection timed out" msgstr "Verbindungs-Timeout" #: src/error.c:161 msgid "Out of file descriptors" msgstr "Keine Datei-Beschreiber mehr" #: src/error.c:162 msgid "Out of buffer space" msgstr "Kein Platz im Buffer mehr" #: src/error.c:163 msgid "Operation not supported" msgstr "Operation nicht unterstützt" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "Verbindung aufgrund eines Fehlschlages abgebrochen" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "Verbindung von Remote Host beendet" #: src/error.c:166 msgid "Connection refused" msgstr "Verbindung abgelehnt" #: src/error.c:167 msgid "Address family not supported" msgstr "Adressenfamilie nicht unterstützt" #: src/error.c:168 msgid "Protocol not supported" msgstr "Protokoll nicht unterstützt" #: src/error.c:169 msgid "Socket type not supported" msgstr "Sockeltyp nicht unterstützt" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "Host nicht gefunden" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "Temporärer DNS Fehler – Versuch es es später nochmal" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "Kann Nameserver nicht erreichen" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "Gültiger Name, aber kein DNS Datensatz vorhanden" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "Netzwerkfehler code %d" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "DNS Fehler code %d" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Interner Metaserver Fehler \"%s\"" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Falsche Antwort des Metaservers \"%s\"" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "Willst Du abhauen?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "Willst Du Rennen, oder Kämpfen?" #: src/message.c:1337 msgid "pitifully armed" msgstr "ärmlich bewaffnet" #: src/message.c:1338 msgid "lightly armed" msgstr "leicht bewaffnet" #: src/message.c:1339 msgid "moderately well armed" msgstr "recht gut bewaffnet" #: src/message.c:1340 msgid "heavily armed" msgstr "schwer bewaffnet" #: src/message.c:1340 msgid "armed to the teeth" msgstr "bis an die Zähne bewaffnet" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - verfolgt dich Mann!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s und %d %tde - %s - verfolgen dich, Mann!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s trifft mit %d %tde ein, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s steht rum und kriegt's voll ab." #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Du bleibst stehen und fängst die Kugeln" #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s versucht erfolglos zu fliehen." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "Verdammt! Du wirst sie nicht los!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "%s ist geflohen nach %tde!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "%s ist abgehauen!" #: src/message.c:1384 msgid "You got away!" msgstr "Du entkommst!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Waffen nachgeladen..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s schiesst auf %s... und verfehlt!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s schießt auf dich... und verfehlt!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "Du triffst %s nicht!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s erledigt %s." #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s schießt auf %s und tötet eine %tde!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s schießt auf %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s hat dich erledigt, Mann! So'n Scheiß!" #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s schießt auf dich und tötet eine %tde!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "%s trifft dich, Mann!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "Du triffst und tötest %s" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Du triffst %s und tötest eine %tde!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "Du schießt, und triffst %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr "Du findest %P in der Leiche!" #: src/message.c:1439 msgid " You loot the body!" msgstr "Du plünderst die verdammte Leiche!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "Kann WinSock nicht initialisieren (%s)" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "SOCKS-Server allgemeiner Fehler" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "Verbindung von SOCKS ruleset abgelehnt" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "SOCKS: Netzwerk unerreichbar" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "SOCKS: Host unerreichbar" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "SOCKS: Verbindung abgelehnt" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "SOCKS: TTL abgelaufen" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "SOCKS: Befehl nicht unterstützt" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Addressen-Typ nicht unterstützt" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "SOCKS: Server hat alle angebotenen Methoden abgelehnt" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "Unbekannter SOCKS Addressentyp zurückgekehrt" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "SOCKS-Bestätigung fehlgeschlagen" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "SOCKS-Bestätigung vom Benutzer abgebrochen" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Nachfrage abgelehnt oder fehlgeschlagen" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Abgelehnt unmöglich identd zu kontaktieren" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Abgelehnt identd meldet andere Benutzer-ID" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "Unbekannter SOCKS Antwort-Code" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "Unbekannter SOCKS Antwort-Version-Code" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "Unbekannte SOCKS Server-Version" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "SOCKS Fehler Code %d" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Versuche, lokalen dopewars Server via Unix Domänen Socket\n" "%s zu kontaktieren...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "Verbindung hergestellt. Beende deine Session mit Strg+D.\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "Konnte lokale Konfigurationsdatei nicht bestimmen" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Kann Datei nicht öffnen %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Kann keine Verbindung zu dopewars server (%s) herstellen\n" " KI Spieler unnormal beendet." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Verbindung hergestellt.\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Zu SOCKS Server %s verbunden...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Bestätigung mit SOCKS Server\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Frage SOCKS um zu %s... zu verbinden\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Benutze Socks.Auth.User und Socks.Auth.Password für SOCK5-Bestätigung\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "KI Spieler gestartet; erstelle Verbindung zu Server bei %s:%d ..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "KI Spieler beendet OK.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Verbindung zu Server verloren!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Benutze Name %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Spieler im Spiel:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s betritt das Spiel.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s verlassst das Spiel.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Reise von %tde mit %P Bargeld und %P Schulden\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "KI Spieler wurde getötet. Beende normal.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Spielzeit ist um. Verlasse Spiel.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "KI Spieler wurde vom Server geworfen.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Der Server wurde beendet.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Verkaufe %d %tde in %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Kaufe %d %tde für %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Kaufe eine %tde für %P im Waffenladen\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "%P Schulden an den Kredithai zurückgezahlt.\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Kredithai ist in %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Waffenladen ist in%s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Pub ist in %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Bank ist in %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Ihr nennt euch Drogendealer?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Selbst ein trainierter Affe könnte das besser" #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Denkste Du bist hart genug um mit Leuten wie mir zu handeln?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... handelst du mit Schokoriegeln oder was?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Kleiner, ich muss dich töten - zu deinem eigenen Besten!" #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Dieses Programm wurde ohne Netzwerkunterstützung kompiliert \n" " und kann dadurch nicht als KI Spieler eingesetzt werden.\n" "Neu kompilieren und --enable-networking bei ./configure angeben" #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Ungültiges Plugin \"%s\" ausgewählt.\n" "(%s verfügbar; verwende nun \"%s\".)" #~ msgid "Cash %17P" #~ msgstr "Bargeld %14P" #~ msgid "%-19Tde%3d" #~ msgstr "%-19Tde%3d" #, c-format #~ msgid "Health %3d" #~ msgstr "Gesundheit %3d" #~ msgid "Bank %17P" #~ msgstr "Konto %16P" #~ msgid "Debt %17P" #~ msgstr "Schulden %13P" #~ msgid "Port for metaserver communication" #~ msgstr "Port für Metaserver-Kommunikation" #~ msgid "Name of a proxy for metaserver communication" #~ msgstr "Proxyname für Metaserver-Kommunikation" #~ msgid "Port for communicating with the proxy server" #~ msgstr "Port für die Kommunikation mit dem Proxyserver" #~ msgid "Path of the script on the metaserver" #~ msgstr "Pfad des Skriptes auf dem Metaserver" #~ msgid "If TRUE, use SOCKS for metaserver communication" #~ msgstr "" #~ "TRUE, wenn SOCKS für die Kommunikation mit dem Metaserver benutzt werden " #~ "sollen" #~ msgid "Username for HTTP Basic authentication" #~ msgstr "Benutzername für HTTP-Basis-Bestätigung" #~ msgid "Password for HTTP Basic authentication" #~ msgstr "Passwort für HTTP-Basis-Bestätigung" #~ msgid "Username for HTTP Basic proxy authentication" #~ msgstr "Benutzername für HTTP-Basis-Proxy-Bestätigung" #~ msgid "Password for HTTP Basic proxy authentication" #~ msgstr "Passwort für HTTP-Basis-Proxy-Bestätigung" #, c-format #~ msgid "Proxy authentication required for realm %s" #~ msgstr "Proxy Bestätigung wird für Realm %s benötigt" #, c-format #~ msgid "Authentication required for realm %s" #~ msgstr "Bestätigung wird für Realm %s benötigt" #~ msgid "(Enter a blank username to cancel)" #~ msgstr "(Benutzername leer lassen um abzubrechen)" #~ msgid "Web proxy hostname" #~ msgstr "Hostname der Web-Proxy" #~ msgid "Script path" #~ msgstr "Pfad des Skriptes" #, c-format #~ msgid "Status: Could not connect to metaserver (%s)" #~ msgstr "Status: Konnte nicht zu Metaserver (%s) verbinden." #~ msgid "Proxy Authentication Required" #~ msgstr "Proxy Authentifizierung benötigt" #~ msgid "Authentication Required" #~ msgstr "Authentifizierung benötigt" #~ msgid "" #~ "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " #~ "authentication" #~ msgstr "Benutze Metaserver.Proxy.User Daten zur HTTP Proxy Bestätigung" #, c-format #~ msgid "Unknown metaserver error code %d" #~ msgstr "Unbekannter Metaserver Fehlercode %d" #~ msgid "Number of tries exceeded" #~ msgstr "Anzahl an Versuchen überschritten" #, c-format #~ msgid "Bad auth header: %s" #~ msgstr "Fehlerhafter auth Header: %s" #, c-format #~ msgid "Bad redirect: %s" #~ msgstr "Fehlerhafte Weiterleitung: %s" #, c-format #~ msgid "Invalid HTTP status line: %s" #~ msgstr "Ungültige HTTP Statuslinie: %s" #~ msgid "403: forbidden" #~ msgstr "403: forbidden" #~ msgid "404: page not found" #~ msgstr "404: page not found" #~ msgid "401: HTTP authentication failed" #~ msgstr "401: HTTP authentication failed" #~ msgid "407: HTTP proxy authentication failed" #~ msgstr "407: HTTP proxy authentication failed" #~ msgid "Bad redirect message from server" #~ msgstr "Fehlerhafte Weiterleitungs-Nachricht vom Server" #, c-format #~ msgid "Unknown HTTP error %d" #~ msgstr "Unbekannter HTTP Fehler %d" #, c-format #~ msgid "%d: redirect error" #~ msgstr "%d: Weiterleitungsfehler" #, c-format #~ msgid "%d: HTTP client error" #~ msgstr "%d: HTTP Client Fehler" #, c-format #~ msgid "%d: HTTP server error" #~ msgstr "%d: http Server Fehler" dopewars-1.6.2/po/stamp-po000644 000765 000024 00000000012 14256243623 015354 0ustar00benstaff000000 000000 timestamp dopewars-1.6.2/po/quot.sed000644 000765 000024 00000000231 14256000065 015350 0ustar00benstaff000000 000000 s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g dopewars-1.6.2/po/Makevars000644 000765 000024 00000006770 14256000065 015375 0ustar00benstaff000000 000000 # Makefile variables for PO directory in any package using GNU gettext. # # Copyright (C) 2003-2019 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation gives # unlimited permission to use, copy, distribute, and modify it. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --add-comments # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Ben Webb # This tells whether or not to prepend "GNU " prefix to the package # name that gets inserted into the header of the $(DOMAIN).pot file. # Possible values are "yes", "no", or empty. If it is empty, try to # detect it automatically by scanning the files in $(top_srcdir) for # "GNU packagename" string. PACKAGE_GNU = # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = benwebb@users.sf.net # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = # This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' # context. Possible values are "yes" and "no". Set this to yes if the # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no # These options get passed to msgmerge. # Useful options are in particular: # --previous to keep previous msgids of translated messages, # --quiet to reduce the verbosity. MSGMERGE_OPTIONS = # These options get passed to msginit. # If you want to disable line wrapping when writing PO files, add # --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and # MSGINIT_OPTIONS. MSGINIT_OPTIONS = # This tells whether or not to regenerate a PO file when $(DOMAIN).pot # has changed. Possible values are "yes" and "no". Set this to no if # the POT file is checked in the repository and the version control # program ignores timestamps. PO_DEPENDS_ON_POT = no # This tells whether or not to forcibly update $(DOMAIN).pot and # regenerate PO files on "make dist". Possible values are "yes" and # "no". Set this to no if the POT file and PO files are maintained # externally. DIST_DEPENDS_ON_UPDATE_PO = no dopewars-1.6.2/po/es.gmo000644 000765 000024 00000246106 14256243623 015024 0ustar00benstaff000000 000000 0C3(D)D?DHD"GEjE5zE5EEF.GNG4HDH^HrHH&H$$I'II'qI I IIIIIJ(JHJbJJJ#J$JJK$K8KKK _K lKvKKKK+KK(K"L=L=MVMgM}MMM M M M MMMN N&NjOjejmjj jj&jjj k kk &k1kGk^k ukkk k0k/ lA:l|l!l%l0l3m+Gmsm,m0m*m,n.vBvIvRv gvrvvw)www)x&9x`xgxx$x'xx y#y)Vpu  -'+SFH  ' 3 = GQZp  $%%Kg"%(.Ki!# /6 G'Qy '  0Mav)B] { 6%:7VL* 7J7N#$ 23I}$R& '4-\\%& 34h , I74#*=Td ly($3:Xn'I29'l99::C;~.288GT 1(H1z ?@!"2)U)+W-;M%F+ F6}=6 +"NN-.LUGM'y1G0@OU2Y/ ' :.Dsz = 4"Jms y&=R[b&z< A  %3/4c>/4&< c3oJLG;? ,!;TZn' , 8EYp")0-?^33P)W5-H,.[5n9.@ 2N%M  5' ] k,v>0$'8&`37J Q_hP*-X#n$*'$ /<7 t*~ ",##9*]'$1&C+osz($ 1G^y+%(.=l( " 58"<*W+3%!C)e)( 9Yqv'$) ! /:BIO=`D,  6'@0hD&"%=#c 7E@&bg$ 8QXl  !.!7/YN  -CLa 7&$ K e   = 3 '- U p v  7      ' ? 6F 0}   6 # " B  W 'a  3  \   01?9q?6="?`EF=-TkMK5Z;58O;7  +$Gl  2*.'-V)'?:03k#81..]zF3B,`'!&JI#@ 1J|.5=.[$$ H>D# !!CC89-A?E$P =-I)w6&4 4 U \ x N'70/K0{0K0080,151CF11 22*3B131t3 3 33333&4F4)a44$4:4.4 ,5+M5y5+5*5)5.6-/6,]6;666636C7a]7#7578)38]8}889989:960:?g:#::3:3;R;8k;;; R<:]<:<7< = "=0=N=Q`=4=1=>7/>g>>>3>%>$?H3?B|?L?1 @4>@ s@ }@@ @ @@ @@ @@@@@@A AA A)A2A RA`A(eA%AAA&AB1B-QB1BB%B&BC$6C([C"C$CCCCCQCHDMDSD \DfDoDxD;DDDEPHyI|III I8IIJJ J JG)J qJ~J7JJ JJJ KK)K<8K9uKEKKKL1L 8LQ(O "vHM:G0&~%P':h*!w^Vhg7@O  P-Z&jO'4bd4jt.b; kY7DgD`Ui)\+As. #?TLx #x_n(TiaI0sr5Rra9{9==H2A*hH QfdSE2w<tu)F}~C64Enb2k \t=D$3m8`0qGXFW.!qc +/_%r +-oZ'<JU/SVf$l@'qBe"L?z1}aeTc  -,+1pio_|YGJ^*>#AI" ,&>V";Jcl  X3z8v :Cv]LwN?Q]uyf($1@.e!\R;jKXmxW[Z {|)$%}/ UpyWB8N)6Pn*|<0ERu~BKs`kC#NF%Y[!,S mI,9>7/logK ]y6d({ ^M5M 3[-zp5 & For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%d. %tde%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAuthenticating with SOCKS serverAuthenticating with SOCKS server Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBad metaserver reply "%s"BankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialize WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armorCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armorDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaserverMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for SOCKS5 authenticationPassword: Pay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication canceled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colors (by default colors are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colors --no-colour (by default colors are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for SOCKS5 authenticationUsers currently logged on:- Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, https://dopewars.sourceforge.io/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initializedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, https://dopewars.sourceforge.io/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: es Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2003-12-10 09:29+0100 Last-Translator: Quique Language-Team: Castilian aka Spanish Language: es MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 Para obtener información sobre las opciones en la línea de órdenes, escriba dopewars -h en su terminal Unix. Esto mostrará una pantalla de ayuda con las opciones disponibles. L>istar los servidores que hay en el metaservidor, y elegir uno S>alir (puede iniciar un servidor tecleando «dopewars -s») o J>ugar en modo 1 jugador? I>rse a consumir sus drogas E>spiar a otro traficante (precio: %P) D>elatar a la policía otro traficante (precio: %P) -h mostrar esta información de ayuda -v mostrar información sobre la versión y salir dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU GPL Informe de fallos al autor escribiendo a benwebb@users.sf.net -h, --help mostrar esta información de ayuda -v, --version mostrar información sobre la versión y salir dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU GPL Informe de fallos al autor escribiendo a benwebb@users.sf.net -u fichero usar módulo de sonido "fichero" -u, --plugin=FICHERO usar módulo de sonido "FICHERO" ¿Está seguro? ¡Le encuentra %P en el cuerpo! ¡Le roba al cadaver!Éste es el registro de arranque de dopewars, que contiene todos los mensajes de información resultantes de procesar el fichero de configuración, etc. $% de resistencia a disparos de cada puta% de resistencia a disparos de cada policía% de resistencia a disparos de cada ayudante% de resistencia a disparos de cada jugador%-22tde %3d%-7tde %3d%-7tde %3d a %P%/Título de la ventana del banco/%Tde%/Enfrentamiento: Putas/%d %tde%/Ubicación actual/%tde%c. %tde%/GTK Ventana de la armería/%Tde%/GTK Stats: Putas/%Tde%/Título de la ventana del usurero/%Tde%/Location display/%tde%/Lugar al que irse/%tde%/Título del diálogo Echar a una puta/Echar a una %Tde%/Elemento de menú echar a una puta/E_char a una %Tde...%/Espía: Drogas/%Tde...%/Espía: Armas/%Tde...%/Situación: Drogas/%Tde%Tde%Tde %5d Espacio %4d%Tde que tiene%Tde aquí%d de %d%d. %tde%d-%m-%Y¡%s - %s - le está dando caza!¡%s y %d %tde - %s - le están persiguiendo!¡%s llega con %d %tde, %s!%s no puede ser menor de %d - se ignora%s no parece ser un fichero de puntuaciones válido - por favor, compruébelo. Si es un fichero de puntuaciones de una versión antigua de dopewars, conviértala al nuevo formato ejecutando la orden «dopewars -C %s» en la línea de órdenes.¡%s ha aceptado su %tde!^Use la tecla G para contactar con su espía.¡%s ha conseguido escapar %tal!¡%s ha conseguido escapar!%s ha dejado el juego.%s ha dejado el juego. ¡%s ha rechazado su %tde!¡%s le ha dado!%s es "%s" %s es %P %s es %d %s es %s %s es { ¡%s se une al juego!%s se une a la partida. %s asesinado ¡%s deja el servidor!%s espía ahora a %s%s mata a %s.%s dispara a %s ¡y mata a una %tde!%s dispara a %s.%s dispara a %s... ¡y falla!%s le dispara... ¡y mata a una %tde!%s le dispara... ¡y falla!espionaje de %s a %s: DENEGADO%s se levanta y lo cogeDelación de %s sobre %s: DENEGADO%s delató a la policía a %s%s intenta huir, pero no lo consigue.¡%s le ha alcanzado! Descanse en paz...%s es ahora conocido como %s%s es ahora conocido como %s.%s: DENEGADO irse a %s%s: Oferta de espionaje de %s%s: Delación de %s%s: la oferta era en nombre de %s%s: la delación de %s acabó bien.%s[%d] es %s %s^¡%s ya está aquí!^¿Quiere Atacar o Huir?(%s disponible) (Muertas)(No se puede mostrar el error en UTF-8)(Quedan)(R.I.P.), T>irar, E>nfrentarse, M>andar recado, I>r a otro sitio, L>istar, V>ender, H>ablar a todos, hablar a un J>ugador, o S>alir? Kalashnikov/Recados/_Obtener información de las espías.../Recados/_Espiar.../Recados/_Delatar.../Juego/Activar_sonido/Juego/_Abandonar partida.../Juego/_Nueva partida.../Juego/_Opciones.../Juego/_Salir.../Ayuda/_Acerca de.../Listar/_Inventario.../Listar/_Jugadores.../Listar/_Puntuaciones.../Hablar/_Hablar a todos.../Hablar/Hablar al _Jugador.../_Recados/_Juego/_Ayuda/_Listar/_Hablar<- _Vender¿Se imagina como sería la vida si no hubiera drogas?Un mono amaestrado lo haría mejor...A:AtacarAHJugador automático asesinado. Cerrando de manera normal. El jugador automático ha sido expulsado del servidor. Iniciado el jugador automático; intentando conectarse al servidor en %s:%d.Jugador automático suicidado con éxito. ¿Abandonar esta partida?Abandonar esta partidaAcerca de DopewarsLSD¡Los adictos están comprando %tde a precios absurdos!La dirección ya está en usoFamilia de direcciones no soportadaOrden de administración: %sConexión de administración cerradaJefe WiggumCantidad de dinero con la que empieza cada jugadorImporte de la deuda con la que empieza cada jugador¿Está drogado o qué?¿Está seguro de que quiere salir? ¿Está seguro? (Perderá todas las %tde y %tde que le esté guardando esta %tde!)Pidiendo SOCKS para conectarse a %s...Pidiendo SOCKS para conectarse a %s... Penalización de ataque relativa a un jugadorIntentos para conectarse al metaservidor demasiado frecuentes - esperando al siguiente turnoAutenticando contra el servidor SOCKSAutenticándose con el servidor SOCKS Autenticación del nombre local con el metaservidorEspacio disponible: %dCVTHJLMEISCVIRespuesta del metaservidor incorrecta «%s»BancoEl banco está en %s Banco: %P.38 SpecialBasado en el juego Drug Wars de John E. Dell, dopewars es una simulaciónBasado en el juego Drug Wars de John E. Dell, dopewars es una simulación de un mercado de la droga imaginario. Dopewars es un juego para toda la familia que consiste en la compraventa de droga y en intentar evitar a la policía. Lo primero que tiene que hacer es saldar la deuda con su usurero. Después, su objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!) Tiene un mes de tiempo de juego para amasar su fortuna. Ser prolijo al procesar el fichero de configuraciónQuiqueLa Paz_al_a La PazEl Gancho_al_al GanchoInspeccionar...ComprarComprar %tde¿Cuánto quiere comprar?Comprando %d %tde a %P Comprando un %tde por %P en la armería CLSJ¿Y usted se hace llamar traficante?Puede ser especialmente barataPuede ser especialmente caraNo se puede conectar al puerto %u (%s). Cancelando.No se ha podido crear la copia de respaldo (%s) del fichero de máximas puntuaciones %s.No se puede crear el fichero pid %s: %sNo se puede crear el socket (%s) (a la escucha) del servidor. Cancelando.No se pueden obtener los detalles del metaservidor¡No se puede inicializar WinSock (%s)!¡No se puede instalar el gestor de interrupción SIGHUP!¡No se puede instalar el gestor de interrupción SIGINT!¡No se puede instalar el gestor de interrupción SIGTERM!¡No se puede instalar el gestor de interrupción SIGUSR1!¡No se puede instalar el gestor de interrupción SIGWINCH!¡No se puede instalar el gestor de tuberías!No se puede escuchar el socket de red. Cancelando.No se puede abrir el fichero de máximas puntuaciones %s. (%s.) Asegúrese de que tiene permisos para acceder a este fichero o directorio, o bien indique otro fichero de puntuaciones con la opción -f en la línea de órdenes.No se ha podido abrir el fichero de puntuaciones %s: %s.No se puede alcanzar la redNo se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!DineroDinero en efectivo: %PParque Bruil_al_al Parque BruilCambiar nombreFrase barataElija un recado que encargar a una de sus %tde...CocaínaHa llegado la cosecha. ¡El precio de la marihuana está por los suelos!Orden:ComentarioComentario: %sDelicias_al_a las DeliciasLa configuración sólo se puede cambiar interactivamente cuando no hay ningún jugador conectado. Espere a que se desconecten todos los jugadores, o elimínelos con las órdenes echar o matar, e inténtelo otra vez.El fichero de configuración se ha guardado con éxito como %s ¡Enhorabuena! ¡Ha conseguido una de las máximas puntuaciones!Conectado al servidor SOCKS %s...Conectado al servidor SOCKS %s... La conexión se ha roto debido a un falloConexión cerrada por el servidor remoto.Conexión rechazada por las reglas de SOCKSSe ha roto la conexión debido a que se ha llenado la memoria intermedia (full buffer).Se ha establecido la conexión Conexión establecida. Use Ctrl-D para cerrar la sesión. Conexión rechazadaConexión rota por el servidor remotoSe ha perdido la conexión con el servidor - pasando al modo 1 jugador¡Se ha roto la conexión con el servidor! Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador.Críticas constructivasCríticas constructivas Andrea Elliot-Smith Pete WinnControla el número de mensajes de registro producidosBlindaje del poliPolis¡Los polis no pueden atacar a otros polis!¡Los polis han hecho una gran redada de %tde! ¡Los precios son exorbitantes!El fichero de puntuaciones está corrupto :-(Coste de enviar a una puta a espiar al enemigoCoste de enviar a una puta a dar información sobre el enemigo a la policíaNo se ha podido conectar al servidor dopewars (%s) El jugador automático se suicida.No se ha podido determinar el fichero de configuración local en que escribirNo se ha podido abrir el fichero %s: %sNo se ha podido establecer el socket de dominio Unix para conexiones de administración - compruebe los permisos en /tmp.No se puede iniciar dopewars en modo multijugador¡Ánimo! El imperio estadounidense caerá como cayó el imperio romanoSímbolo de dineroCurrency.Prefix=FALSED O P E W A R SV>ender %tde, VCLESIOSTasa de interés diaria de la deuda con el usureroTipo de interés diario de su saldo en el bancoDañoDaño ocasionado por cada armala armeríaDía del mes en el que empieza el juegoDeudaDeuda de %P pagada al usurero Deuda: %PPenalización de defensa relativa a un jugadorBorrarIngresarBlindaje del ayudanteDescripciónDivisor del precio de la droga cuando es especialmente barata¿Quiere ¿Huye o se enfrenta?¿Echa a correr?¿Quiere I>ngresar dinero, O>btener dinero o S>alir?¿Su madre sabe que es un camello?AbajoTirarTirar %tde¿Cuánto quiere tirar?Compraventa de drogas e investigaciónCompraventa de drogas e investigación Dan Wolf DrogasDe la piel para dentro usted es su único soberano. ¡Y las drogas son sus amigas!H:HuirTraducción al españolTraducción al español QuiqueErrorNo se ha podido leer la tabla de puntuaciones del fichero %sSe han encontrado errores al leer el fichero de configuración. Como resultado, puede que algunas preferencias no funcionen de la manera esperada. Puede mirar los mensajes en la salida estándar para conocer más detalles.Se han encontrado errores al leer el fichero de configuración. Como resultado, algunas preferencias podrían no funcionar de la manera esperada. Puede consultar el fichero «dopewars-log.txt» para conocer los detalles.Frase cara 1Frase cara 2Testeo intensivo del juegoTesteo intensivo del juego Katherine Holt Caroline MooreE:EnfrentarseL>uchar, No se ha podido conectar al metaservidor en %s (%s)No se ha podido contactar con el servidor de nombresNo se ha podido enviar el mensaje de notificación de servicioNo se ha podido registrar el gestor de servicioNo se ha podido establecer el estado del Servicio NTNo se ha podido iniciar el Servicio NTEnfrentarseFichero en el que escribir los mensajes de registroSiguiendo su delación , la policía va a por %s, que escapa con %d %tde. Siguiendo su delación, la policía va a por %s, ¡le disparan y es abatido!Para conocer las opciones en la línea de órdenes, escriba dopewars -hLínea utilizada para drogas que sean caras el 50% de las vecesDuración de la partida (turnos)Se ha agotado el tiempo de juego. Saliendo. GeneralBarrio Oliver_al_al Barrio OliverLa armería está en %s ArmasArmas recargadas...P U N T U A C I O N E SHachísUsted sale en la televisión, ¿verdad?SaludSalud: %dHeroínaEh, oiga. Los precios de las %tde aquí son:Eh oiga, ¿cuál es su _nombre?Eh oiga, ¿cómo se llama? PuntuacionesNombre del servidorServidor no encontradoNombre del servidor: ¿Cuánto quiere? ¿Cuántas quiere tirar? ¿Cuánto quiere vender? ¿Cuánto dinero quiere devolver? ¿Cuánto dinero? Soy Carlos Jesús, y vengo de Raticulín.No puedo más, me voy a la cama. ¿Me acompaña?No somos más que un montón de átomos moviéndose en la nada.Los anuncios de compresas hacen que desee ser mujerPero ¿por qué llevas gafas de sol si es de noche?Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... chocolate.Yo no he sido siempre una mujer, ¿sabes?Le vendo una cámara de fotos nueva a mitad de precioApuesto a que tiene sueños superinteresantes`Cuestionemos la autoridad; pensemos por nosotros mismos` dijo Tim LearyIconos y gráficos Ocelot MantisIconos y gráficosSi TRUE, el símbolo de dinero va antes que el precioSi TRUE, el servidor se minimiza a la bandeja del sistemaSi TRUE, el servidor funciona en segundo planoSi no se deja en blanco, el nombre de usuario a usar para SOCKS4El índice en la cadena %s debe estar entre 1 y %dCódigo de error interno %dError interno del metaservidor «%s»Seleccionado módulo «%s» no válido. (%s disponible, ahora usando «%s».)InventarioInventarioEspero que no le importe, pero voy a rezar por usted.Ir al barrio:Yendo %talYendo %tal con %P en efectivo y %P de deuda Si le ofrecen droga, diga "no", que somos muchos y queda poca.¡Mi cuerpo es mío y en él meto lo que quiero!Lista de canciones que se oyen tocarLista de cosas que puede dejar de hacerLista de cosas que se oyen en el metro¿Qué lista quiere? ¿J>ugadores o P>untuaciones? El usurero está en %s Documentación local en HTML Ubicación del usureroUbicación del bancoUbicación de la armeríaUbicación del barSitiosBarbitúricosÉxtasisMOTD (mensaje de bienvenida)Manteniendo el fichero pid %sZona pija_al_a la Zona pijaAlcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexiónNúmero máximo de ayudantesNúmero máximo de distintos tipo de drogaMáximo precio normalPrecio máximo normal de cada drogaNúmero máximo de conexiones TCP/IPNúmero máximo de ayudantes acompañantesMáximo número de drogas en cada lugarPrecio máximo de contratar una putaMensajeMensaje a mostrar cuando esta droga sea especialmente barataMensaje:-Mensajes (-/+ desplaza hacia arriba/abajo)MetaservidorMinimizar a la bandeja del sistemaNúmero mínimo de ayudantesNúmero mínimo de distintas clases de drogaMínimo precio normalPrecio mínimo normal de cada drogaNúmero mínimo de ayudantes acompañantesNúmero mínimo de drogas en cada sitioPrecio mínimo de contratar una putaMes en el que empieza el juegoMultiplicador para las drogas especialmente carasN:NoS>iguiente servidor: A>nterior servidor; E>scoger este servidor... SAENombreNombre de cada policíaNombre de los ayudantes de cada policíaNombre del ayudante de cada policíaNombre de cada drogaNombre de cada armaNombre de cada lugarNombre de una putaNombre de un ayudanteNombre de varias putasNombre de varios ayudantesNombre del bancoNombre de la armeríaNombre del fichero de máximas puntuacionesNombre del usureroNombre del barNombre del servidor al que conectarseError del servidor de nombres código %dDirección de red del servidor al que escucharError de red código %dPuerto de red al que conectarseEl subsistema de red no está preparado.NuevoNuevo %sNueva partidaNueva conexión de administraciónNuevo nombre: ¡No hay armas ni polis!El cliente curses no está disponible - vuelva a construir el binario pasando la opción --enable-curses-client a configure, o use una versión gráfica (si es posible) es su lugar. El cliente gráfico no está disponible - vuelva a construir el binario pasando la opción --enable-gui-client a configure, o use el cliente curses (si está disponible) en su lugar. ¡No hay ningún otro jugador conectado en este momento!¡No existe ese usuario! No hay ningún usuario conectado. Número de rondas de juego (si es 0, el juego nunca termina)Número de segundos para devolver disparosNúmeroNúmero de drogas en el juegoNúmero de armas en el juegoNúmero de pistolas que porta cada policíaNúmero de pistolas con las que carga cada ayudanteNúmero de sitios en el juegoNúmero de canciones que se tocanNúmero de cosas que se dicen en el metroNúmero de cosas que puede dejar de hacerNúmero de tipos de policía en el juegoComisario RomeralesAgente MatuteAh, usted debe ser gallegoUna de sus %tde estaba espiando para %s. ^¡La espía %s!Operación no soportadaOpioOpcionesYa no queda memoria intermedia (buffer)Ya no quedan descriptores de ficheroKetaminaJP¡Pánico! ¡No puede escapar!Contraseña para la autenticación SOCKS5Contraseña: Pagar todoSaldar:PeyoteJugarTesteo del juegoTesteo del juego Phil Davis Owen Walsh¿Jugar otra vez? Lista de jugadoresJugador eliminado debido a que se agotó el tiempo para la conexiónJugador eliminado: demasiado tiempo inactivoJugadores¡Los jugadores ya están en una pelea!¡Los jugadores ya están en sus propias peleas!Los jugadores son desconectados después de este número de segundosJugadores conectados en este momento:-Jugadores en esta partida:- Jugadores: %d (máximo %d)Jugadores: -desconocido- (máximo %d)Por favor, elija al jugador al quiere espiar. Su %tde ofrecerá sus servicios a ese jugador, y si tiene éxito, podrá ver la situación del jugador con el menú "Obtener informes de las espías" Recuerde que la %tde se va, así que puede perder todas las %tde o %tde que le esté guardando.Por favor, elija al jugador al que quiere delatar a la policía. Su %tde ayudará a los policías a atacar a ese jugador, y le informará del resultado cuando se encuentren. Recuerde que la %tde se va a ir temporalmente, así que puede perder todas las %tde o %tde que le esté guardando.Introduzca el nombre y puerto de un servidor dopewars:-Por favor, espere... intentando contactar con el servidor dopewars...Por favor, espere... intentando contactar con el metaservidor...¡Los perros de la policía le persiguen durante %d minutos! ¡Pierde algo de %tde! Maldita sea...Presencia policialPresencia policial en cada sitio (%)PuertoPuerto : %dPuerto: El nombre de su servidorPulse cualquier tecla...PrecioPrecio de cada armaProtocolo no soportadoEl bar está en %s Echando a %s Torrero_al_a TorreroPreguntaSalir del juegoC:CorrerC>orrer, Se limpian los eventos aleatoriosVoy a tener que dispararle por su propio bien.Eliminar las referencias a drogasEstructura lista redimensionada a %d elementos ¡Alguien ha atracado en una farmacia y está vendiendo barbitúricos baratos!Colt 45M E T R OE>sperar, Se precisa autenticación SOCKSAutenticación SOCKS cancelada por el usuarioError de autenticación SOCKSSe requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)Código de error de SOCKS %dError general del servidor SOCKSEl servidor SOCKS rechazó todos los métodos ofrecidosSOCKS: Tipo de dirección no soportadoSOCKS: Orden no soportadaSOCKS: Conexión rechazadaSOCKS: No se llega al servidorSOCKS: No se llega a la redSOCKS: Rechazada - identd informa de diferentes ID de usuarioSOCKS: Rechazada - no se ha podido contactar identdSOCKS: Solicitud rechazada o sin éxitoSOCKS: se agotó el tiempoEDICNPasando de una oferta aleatoriaSmith & WessonSegundos entre los turnos de los jugadores automáticosSeleccionar fichero de sonidoVenderVender %tde¿Cuánto quiere vender?Vendiendo %d %tde a %P EnviarEnviando actualizaciones pendientes al metaservidor...Enviando mensaje recordatorio al metaservidor...ServidorServidor: %sDescripción del servidor, que se pasa al metaservidorEl servidor informa al metaservidorMensaje de bienvenida del servidorHongos alucinógenos1 jugadorCreo que voy a ir a Amsterdam este añoTipo de socket no soportadoChico, deberías teñirte el pelo de color amarilloDisculpe, pero este servidor tiene un límite de %d jugadores, que ya ha sido alcanzado. ^Pruebe a conectarte de nuevo más tarde.Disculpe, pero este servidor tiene un límite de 1 jugador, que ya ha sido alcanzado. ^Pruebe más tarde a conectarte de nuevo.Orden de las drogas disponiblesFichero de sonidoFichero de sonido reproducido al acabar el juegoFichero de sonido reproducido al empezar el juegoFichero de sonido que suena cuando un disparo hace blancoFichero de sonido que suena cuando un disparo yerra su objetivoFichero de sonido que suena al llegar a un nuevo sitioFichero de sonido que suena cuando se une un jugador al juegoFichero de sonido que suena cuando un jugador abandona el juegoSonido que se oye cuando un jugador envía un mensaje privado al chatSonido que se oye cuando un jugador envía un mensaje público al chatFichero de sonido reproducido cuando un jugador logra escaparFichero de sonido reproducido cuando un jugador intenta escapar, pero no lo consigueFichero de sonido que suena cuando se mata a un ayudante o a una puta enemigaFichero de sonido reproducido cuando se mata a otro jugador o a un policíaFichero de sonido que suena cuando se recarga un armaFichero de sonido reproducido cuando muere una de sus putasFichero de sonido reproducido cuando le matan a ustedFichero de sonido reproducido cuando usted logra escaparFichero de sonido reproducido cuando usted intenta escapar, pero no lo consigueNombre del sonidoSonidosSonidos Robin Kohli, 19.5degs.comEspacioEspacio %4dEspacio que ocupa cada armaAnfetaminasEspiar al jugadorInformación de las espíasInformación sobre %s de las espíasEmpezar nueva partidaCapital inicialDeuda inicialCasco viejo_al_al Casco ViejoSituaciónSituación: Pidiendo SOCKS para conectarse a %s...Situación: Intentando contactar con %s...Situación: Autenticando contra servidor SOCKSSituación: Conectado al servidor SOCKS %s...Situación: No se ha podido conectar (%s)Situación: Esperando datos del usuarioSímbolo antes del precioTRUE si se debe usar un servidor SOCKS para la conexión de redTRUE si se deben usar ID de usuario numéricos para SOCKS4TRUE si el servidor debe informar a un metaservidorTRUE si se debe habilitar el sonidoTRUE si se debe guardar el valor de las drogas compradasTRUE si esta droga puede ser especialmente barataTRUE si esta droga puede ser especiamente caraHablar a todos los jugadoresHablar al jugador (o jugadores)Decir: Error temporal con el nombre del servidor - pruebe de nuevo más tarde¡Ha llegado un cargamento de hachís de Marruecos!De todo lo que he perdido, lo que más echo de menos es la cabeza.La orden usada para iniciar su navegador webLa conexión excedió el tiempo límite¡La policía le ve tirando %tde!El símbolo de dinero (por ejemplo, $)Lo primero que tiene que hacer es saldar la deuda con su usurero. DespuésEl fichero %s de la tabla de puntuaciones se ha convertido al nuevo formato. Se ha creado una copia de respaldo del fichero antiguo, que se ha llamado %s. El nombre del servidor SOCKS a usarLa señorita que está junto a usted en el metro dice:^ «%s»%s¡El mercado está inundado de LSD casero barato!El subsistema de red ha falladoEl número de puerto del servidor SOCKS a usarEl servidor se ha apagado. El servidor se ha apagado. Pasando al modo 1 jugador.El servidor se ha desconectado. Pasando al módulo 1 jugador.La versión del protocolo SOCKS a usar (4 o 5)No tiene tanto dinero en el banco...No tiene tanto dinero en el banco...Poderoso caballero es Don Dinero¿Cree que es lo suficientemente duro como para manejar a gente como yo?Este binario se ha compilado sin soporte de red, y por tanto no puede actuar como un jugador automático. Recompile pasando la opción --enable-networking al script configureEste binario se ha compilado sin soporte de red, y por tanto no se puede ejecutar en modo servidor. Recompile pasando la opción --enable-networking al script configure. Tiempo en segundos para que las conexiones sean establecidas o rotasDelatar a la policíaDemasiado tarde. %s se acaba de ir.GabardinaNo es posible abrir el fichero %sNo se ha podido procesar el fichero de configuración %s, línea %dNo se puede leer el fichero de máximas puntuaciones %s.No se ha podido escribir en el fichero de puntuaciones %sCríticas destructivasCríticas destructivas James MatthewsDesgraciadamente ya hay alguien usando «su» nombre. Elija otro.Desgraciadamente ya hay otro jugador usando «su» nombre. Elija otroFichero de configuración de Unicodeen su terminal. Se mostrará una pantalla de ayuda con las opciones disponibles.DesconocidoDevuelto tipo de dirección SOCKS desconocidoCódigo de respuesta de SOCKS desconocidaCódigo de respuesta de versión de SOCKS desconocida.Versión de servidor SOCKS desconocidaOrden desconocida - use «help» para obtener ayuda Mensaje desconocido: %s:%c:%s:%sArribaEn funcionamiento desde: %sSintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b "black and white" - o sea, en blanco y negro (por omisión se usan colores, si se puede) -n ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (no hay red) -f FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s ejecutar en modo servidor (nota: lea la opción -A para configurar un servidor que ya está en funcionamiento) -S ejecutar un servidor "privado" (no avisar al metaservidor) -p PUERTO indicar el puerto de red a usar (por omisión: 7902) -g FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l FICHERO escribir la información del registro en "FICHERO" -c crear y ejecutar un jugador automático -w obligar al uso de un cliente gráfico (GTK+ o Win32) -t obligar al uso de un cliente en modo texto (curses) (por omisión se usa un cliente gráfico si es posible) -P nombre establecer el nombre del jugador a "nombre" -C FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato -A conectarse a un servidor ejecutándose localmente para administración Sintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b, --no-color, "black and white" - o sea, en blanco y negro --no-colour (por omisión se usan colores, si se puede) -n, --single-player ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a, --antique dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (sin red) -f, --scorefile=FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o, --hostname=DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s, --public-server ejecutar en modo servidor (nota: lea la opción -A para configurar un servidor ya en funcionamiento) -S, --private-server ejecutar un servidor "privado" (no avisar al metaservidor) -p, --port=PUERTO indicar el puerto de red a usar (por omisión: 7902) -g, --config-file=FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r, --pidfile=FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l, --logfile=FICHERO escribir la información del registroen "FICHERO" -A, --admin conectarse a un servidor ejecutándose localmente para administración -c, --ai-player crear y ejecutar un jugador automático -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o Win32) -t, --text-client obligar al uso de un cliente en modo texto (curses) (por omisión se intenta usar un cliente gráfico -P, --player=NOMBRE establecer el nombre del jugador como "NOMBRE" -C, --convert=FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato Nombre de usuario: Nombre de usuario para la autenticación SOCKS5Usuarios conectados:- Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5 Usando el nombre %s Nombre válido, pero ahora no tiene ningún registro DNSVersiónVersión : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersión %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars está publicado bajo la GNU General Public License AdvertenciaAdvertencia: su cliente es demasiado viejo para soportar todas las^ funcionalidades de este servidor. Para «vivir la experiencia» completa,^ consiga la última versión de dopewars del servidor web,^ http://dopewars.sourceforge.net/.¿No le encanta la música del noticiario?En las hamburgueserías usan carne de rata. Por eso la dan picada.¿Sabe que tiene los ojos muy enrojecidos, joven?NavegadorMarihuana¿Qué quiere tirar? ¿Qué quiere comprar? ¿Qué quiere vender? ¿Dónde quiere ir, caballero? ¿Con quién quiere hablar en privado?¿A quién quiere espiar? ¿A quién quiere delatar a la policía? ¿Quiere C>omprar¿Quiere C>omprar, V>ender o I>rse? ¿Quiere... C>onectarte a un servidor dopewars determinadoWinSock no ha sido inicializado correctamente.Versión de WinSock no soportadaLos triunfadores no usan drogas... salvo...SacarPalabra usada para designar una sola "puta"Palabra usada para designar una sola drogaPalabra usada para designar una sola armaPalabra usada para designar dos o más "putas"Palabra usada para designar dos o más drogasPalabra usada para designar dos o más armasLa telepatía existe. ¿No siente la energía del universo?¡Vivamos al límite!S:SíSNYN^¿Quiere pagar %P a un médico para que le cure?YN^¡Eh, oiga! Le ayudo a llevar sus %tde por sólo %P. ¿Sí o no?YN^¡Aquí hay algo de marihuana que huele a herbicida!^¡Tiene buen aspecto! ^¿Quiere fumarla? YN^¿Quiere comprar un %tde por %P?YN^¿Quiere comprar una gabardina más grande por %P?YN^¿Quiere visitar %tal?YN^^¿Quiere contratar a una %tde por %P?Año en el que empieza el juegoUstedParece que está usando un cliente tremendamente viejo (versión 1.4.x)^ Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no estarán soportadas. Obtenga la última versión del sitio web de dopewars,^ https://dopewars.sourceforge.io/.Ahora lleva %d dosis de %tdeTiene dinero para comprar %dTiene dinero para comprar %d, y espacio para llevar %d. No puede conseguir ni una moneda por estas %tde que lleva:¡No puede empezar la partida sin dar un nombre antes!Ni siquiera ha conseguido entrar en la tabla de puntuaciones...¡No tiene ningún %tde que vender!¡No tiene ninguna que vender!¡No tiene suficiente dinero para comprar ese %tde!¡No tiene suficiente espacio para llevar ese %tde!¡No tiene tanto dinero!Encuentra %d %tde en un cadáver abandonado en el metro!¡Ha conseguido escapar!¡Estuvo alucinando durante tres días en el viaje más salvaje que haya imaginado nunca!^Y entonces se murió debido a que su cerebro se derritió.Tiene %d. Ha sido expulsado del servidor. Pasando al modo 1 jugador.Ha sido expulsado del servidor. Pasando al modo 1 jugador.Tiene un mes de tiempo de juego para amasar su fortuna.Oye a alguien poner %s¡Le da a %s!Le da a %s, y mata a un %tde!¡Ha matado a %s!Sólo usamos el 10% de nuestro cerebro. ¡Destruyamos con drogas el 90% sobrante!¡Se encuentra con un amigo! Le da a usted %d %tde.¡Se encuentra con un amigo! Usted le da %d %tde.¡No le ha dado a %s!¡Tiene que introducir una cantidad positiva de dinero!Se queda ahí como un tonto.Se ha parado para %s.¡Le atracan en el metro!¡Necesita más %tde para que le guarden más %tde!Está criando malvas. Sayonara, baby.Se acabó su tiempo para traficar...¡Su mamacita ha hecho galletas con algo de su %tde! ¡Estaban geniales!¡Su espía trabajando con %s ha sido descubierta!^¡La espía %s!Índice basado en cero de la pistola con la que están armados los policíasZzzzz... ¿está traficando con caramelos o qué?^ (al menos, eso es lo que *piensa* que ha dicho)_%c. %tde_Modo antiguo_Atacar_Comprar ->_CancelarCerrar _Ventana_Conectarse¡A _traficar!_Tirar <-_Huir_Luchar_Ayuda¡_Irse!_No_Aceptar_Refrescar_Correr_Espiar (%P)_Esperar_Empezar partida para 1 jugador_Delatar (%P)_Sí`Julie's In The Drug Squad` de The Clash`Are you Experienced` de Jimi Hendrix`Cheeba Cheeba` de Tone Loc`Polipuestón` de King Putreak`Alternativa platino` de Habeas Corpus`Drug Me` de Dead Kennedys`Street Lobotomy` de Body Count`Tengo un spiz amarillo` de Manolo Kabezabolo`Mineros locos (Armas pal pueblo)` de Def Con Dos`Legalización` de Ska-P`I Love You Mary Jane` de Sonic Youth`Todo por la napia` de Siniestro Total`Mexico` de Jefferson Airplane`I want to get high` de Cypress Hill`Needle And The Spoon` de Lynyrd Skynyrd`White Punks on Dope` de the Tubes`White Rabbit` de Jefferson Airplanearmados hasta los dientesa %Pputaputasfamilia que consiste en ganar dinero con la compraventa (y eludir a la policía).polipolisdesertóayudantesayudantedopewarsJugador automático de dopewarsdopewars está publicado bajo la GNU General Public Licenseservidor dopewarscerrando el servidor dopewars.ordenes y preferencias del servidor dopewars versión %s help Muestra esta pantalla de ayuda list Lista todos los jugadores conectados push Le pide educadamente al jugador nombrado que se vaya kill Rompe repentinamente la conexión con el jugador nombrado msg: Envía un mensaje a todos los jugadores save Guardar la configuración actual en el fichero nombrado quit Salir elegantemente, tras avisar a todos los jugadores = Establece la variable nombrada al valor dado Muestra el valor de la variable nombrada [x].= Establece la variable nombrada en la lista dada, index x, al valor proporcionado [x]. Muestra el valor de la variable de la lista nombrada Las variables válidas son:- servidor dopewars versión %s preparado y esperando conexiones por el puerto %d.el servidor de dopewars versión %s está listo para recibir órdenes de administración; use «help» para obtener ayudadopewars versión %s drogadrogasse escapóSe esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)recibida una conexión de %sarmaarmastomar una cervezamuy armadosde un mercado de la droga imaginario. Dopewars es un juego para toda lapoco armadosarmadoso C>ontactar con sus espias y recibir las informacioneso N>o mandar ningún encargo o S>alir? armados de penafumar un Djarumfumar un purofumar un cigarrillofumar un porrocadena de formato strftime() para mostrar la ronda del juegoformato de la cadena strftime() para las marcas de tiemposu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)el bancoel usurero_al_al usurerolas grabaciones del CESIDel barfue disparadadopewars-1.6.2/po/fr.gmo000644 000765 000024 00000141220 14256243623 015013 0ustar00benstaff000000 000000 Q,%11?62Hv2"22525(3^3n333&%4$L4'q4'4 4 4445!585X5r555555 5 6 66+36_6=|666667,7 >7 J7 T7 ^7h7q77 7777!788%28X8x8888 8 8999U9j9999 9/9 :::':/:6:>:F: U: b:n::: :::::;;%; 9;C;J;Q;X;_; h;#;;;(;";;<A<[<q<<-< <+<+<=2=BR=#=0== = > >>&>/>J7>>$@8@A@G@P@T@ ]@k@%@@@@(@(A):A)dA*AAA$BBB B B,BCJ CWC`C hC tCC*/DZD;rDD:DE<EYE^E1}EE$E/EKF$dFFF FFFFFF"F G#)GMG0UGGG G<G+GH H(H7H&QHxH~HHH&HHHAIRIZIcIGiI?IEI27JjJJJJJJJJJ J K&K7KTK qK }K KKKK KKL L0:L/kLALL!L%M0CM3tM.M M'M NN))N0SNN(N'N/N O=OWOrOOOOOO O.O!P$1P'VP(~PPP3P Q Q!Q'8Q(`QQ.QQ7QRRR-RIRcRuRRRRRRR S&SAS JSUSS)TTT)T& U2U9UUU$pU'UUUU)V"8V [VgVwV/VVVVVV VW W=W SW `W%lW"WWW'W0X6XTXlXXX9Y7Y2,ZO_Z$ZZ ZZ)Z['[-[?[ R[^[e[ n[x[~[[5[&[A[@\ F\R\[\a\~\#\\ \\\\\ \.]5] =]+K]w]l]j^$n^^ ^^^ ^ ^^^ ^ _#_5_T_,s_1_(_,_(`<`N`"U`"x`L`0`0aJa;fa;a(a*b)2b6\bb41cfcwc c!c"cc,cL*dMwdLde)eDeTeqeeeCee]f)ef@f fffg+gFg/Xgg)g g!g/g(/hXh$ah/h.h)h%i$5iZi:wiii(i@iX%j'~j4j j)j&k"*kMk%_k7k,k k l,'l/Tll.l lvl XmFfmFm5m*n FnRnqnn(n(nnno-o-Lozoo@o9o4(p*]p1p p pppppp pqqqq"q(q,q0q 5q?qFq `qmq,rq%qq*q# r0rPr$or#r(r%rss,9s"fs"s$sssss1s*t.t3tQgzÁʁҁ ہ"+ 5@(ClA˂(B [(|"U'92a  ۄL;7φ( 0=O/e$(݇()/)Y15= / P6X  H.7'Ks8ˋ<1$5V8LڌO'-wN ">Q'W )= @#_&ۏ *6&K0rA OFnH3%2 Xe" !: W c q|$ϓ,,E5r@@(*S4c='֕ : Dc4t0ږ:,-/Z"")З "> \fn.̘$$36"j6 ̙ ֙#)3/%c/;1If՛ 0 @N-Ɲޝ<<8u|(..0L,}$ϟ5DJN Q r } = 6.3b,j08ȡ+Dd=:4L0(} ߤ 4@OX j t&:-J\sy 8Ǧ $9A I.U 2ͧecN1 0D` ~ "% ߩ>H?AEʪ*>"G:jI1!A!]!..ЬHZE Q%d 01Ʈ,D?LIѯ1#UnC~ s)''ӱ9 S a-²33$X$`!0-س-*4/_%+JM5#6޵)% *K"b9, .!.P1ͷ߷ r,},.׸$3SFb**Թ, B6cIԺ><]'7»   (19 BO b lw}Լ,*2(] ս,(%Ek~"*־24JPX.a ƿ2ҿLcx~@*2Bu E 9C'V~ ?$%l9 Ir_vU/sY7oDo,PAm[r"*peOgte2y E(2BuIH'f  d0b ; Vp7MA#&-_n-1kQQNI+q#PW9+xlsJJc2  t/={7K@B0"ii-`D>=W9:CF&O 0X8>[/+O*#; hdGLN<] x=Pb^%S8R83! jZ`(*J4f)k}.w5:cg31  %:}E~?GFw]Q{qC6Y<L!U' 5>az;Z'MhBFCKH|1\3)&D5 XVTy!.vj@^<K,NTS$A",\E?M6@ nG.)6z|4m$~RH (4uaL For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. % resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/LoanShark window title/%Tde%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/_New.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?About dopewarsAcidAddicts are buying %tde at ridiculous prices!Agent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Attack penalty relative to a playerAuthentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot start fight - no guns to use!CashCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connection established Connection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not start multiplayer dopewarsCourage! Bush is a noodle!D O P E W A R SD>eal %tde, DRFSQDWLDamage done by each gunDan's House of GunsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDepositDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, FightFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame time is up. Leaving game. GhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIndex into %s array should be between 1 and %dInventoryJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Location of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaserverMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toNetwork port to connect toNew GameNew name: No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!OpiumPCPPSPanic! You can't get away!Pay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Resized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, STGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSellSell %tdeSell how many?Selling %d %tde at %P SendServerServer : %sServer description, reported to the metaserverShroomsSingle playerSo I think I'm going to Amsterdam this yearSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStaten IslandStatsStatus: Attempting to contact %s...Status: Could not connect (%s)Status: Waiting for user inputTRUE if server should report to a metaserverTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: The Marrakesh Express has arrived!The Pope was once Jewish, you knowThe first thing you need to do is pay off your debt to the Loan Shark. AfterThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.UnknownUnknown command - try "help" for help... Up since : %sUsers currently logged on:- Using name %s VersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!WeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?YouYou are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server version %s ready and waiting for connections on port %d.dopewars version %s drugdrugsescapedgot connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2001-10-16 20:50+0100 Last-Translator: leonard Language-Team: French Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour infos sur les options en ligne de commande, taper: dopewars -h L>ister les serveurs sur le meta, et en selectionner un Q>uitter (vous pouvez alors demarrer un server ou J>ouer en solo ? A>ller se faire foutre E>spionner un autre dealer (cout: %P) D>onner un autre dealer aux flics (cout: %P) Etes vous sur? Tu trouves %P sur le corps! Tu cherches le corps!# Ceci est le LOG de demarrage de dopewars. # Contient les messages d'info resultant du parsage # du fichier de config etc... % de resistance aux coups de fusil de chaque chienne% de resistance aux coups de fusil de chaque flic% de resistance aux coups de flingue de chaque sous-flic% de resistance aux coups de fusil de chaque joueur%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/Banque window title/%Tde%/Combat: Salopes/%d %tde%c. %tde%/GTK Armurerie window title/%Tde%/GTK Stats: Salopes/%Tde%/Preteur window title/%Tde%/Esprion: Drogues/%Tde...%/Esprion: Flingues/%Tde...%/Stats: Drogues/%Tde%Tde%Tde %3d Espace %6d%Tde transporte%Tde ici%d de %d%s - %s - te courent apres, mec!%s and %d %tde - %s - te courent apres, mec!%s est arrive avec %d %tde, %s!%s a accepte votre %tde!^Tape G pour contacter ton espion.%s s'est barre a %tde!%s se sont echappes!%s a quitte la partie.%s a quitte le jeu. %s a rejete votre %tde!%s te troue, mec!%s est "%s" %s est %P %s est %d %s est %s %s est { %s joint la partie!%s joint le jeu. %s tue %s quittes le serveur!%s espionne %s%s tire %s mort%s tire a %s et tue une %tde!%s tire a %s.%s tire a %s... et manque son coup!%s te tire dessus... et tue une %tde!%s te tire dessus.. et loupe!%s spy on %s: DENIED%s reste debout et le prend.%s tipoff about %s: DENIED%s a balance %s aux flics%s essaye de se barrer, mais echoue.%s t'as detruit, mec! Ca gonfles...%s est maintenant %s%s est maintenant %s.%s: deplacement vers %s INTERDIT%s: Espion offert par %s%s: Balance de %s%s: l'offre etait au nom de %s%s: balance par %s finit OK.%s[%d] est %s %s^%s est deja la!^Tu Attaque, or t'Evade?(Repose en Paix), L>aisser tomber, C>ombattre, D>onner, dEplacer, L>lister, V>endre, P>arler, R>reveiller, ou Q>uitter P 38/Taches/_Rapports des espions.../Taches/_Espionner.../Taches/_Balancer.../Jeu/_Nouveau.../Jeu/_Quitter/Aide/_A propos.../Liste/_Inventaire.../Liste/_Joueurs.../Liste/_Scores.../Parler/A _Tous.../Parler/A _joueur.../_Taches/_Jeu/_Aide/_Liste/_Parler<- _VendreUn jour sans camme, c'est la nuit.Un singe apprivoise pourrait faire mieux...A:AttaquerASjoueur IA tue. Teminating normallement. Joueur IA jette du serveur. Le joueur IA a debute; essaye de contacter le server sur %s:%d...Joueur IA terminated OK Abandonner cette partie ?A propos de dopewarsAcideLes junkies achetent %tde hors de prix !Detective de DieuleveultFric donne en debutant la partieMontant des dettes en debutant la partieT'est defonce a quoi, la ?Etes vous sur de vouloir quitter? Etes vous sur ? (Chaque %tde ou %tde transporte par cette %tde pourront etre perdus!)Penalite d'attaque relative a un joueurAuthentification du nom local avec le metaserveur Espace disponible: %dAVLPRLDCEQAVPBanqueLa banque est situee a %s banque: %PColt 45Base sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'unBase sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation d'un marche de la drogue imaginaire. DopeWars est un jeu qui vous permet d'acheter ou vendre de la camme et essayer d'eviter les flics! La premiere chose a faire est de rembourser le preteur a gages. Ensuite, votre but est de faire le maxium de fric (et de rester en vie!) Vous avez un mois de temps de jeu pour faire fortune. Soyez verbose en passant le config file a la moulinetteLeonardLe Moulin RougeBoulogneAcheterAcheter %tdeAcheter combien ?Acheter %d %tde a %P Acheter un %tde pour %P au magazin de flingues CLQJVous osez vous appeller des dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Ne peux pas installer SIGWINCH interrupt handler!Ne peut pas installer le truc qui s'occupe des pipes!Ne peut pas ouvrir le fichier des high score %s. (%s) Verifiez que vous avez les permissions pour acceder ce fichier ou repertoire ou specifiez un autre fichier et chemin d'acces avec la commande -f.Ne peut pas commencer la bagarre - pas de flingue a utiliser!FricFric: %PPorte de la ChapelleChanger NomChoisir un boulot a donner a une de tes %tde...Cocainede la bonne herbe d'Amsterdam vient d'arriver en masseCommand:CommentaireCommentaire: %sLes HallesLa config peut seulement etre changee quand aucun joueur n'est connecte.Felicitations! Vous etes dans les high scores!Connection etablie Connection au server perdue - Mode soloConnection au serveur perdue! La connection au serveur est perdue. Change en mode SoloCritique constructiveCritiques constructives Andrea Elliot-Smith Pete WinnflicsLes flics ne peuvent pas attaquer d'autres flics!Les flics ont mis la main sur un gros stock de %tde !High Score corrompu!Cout pour envoyer une chienne espionner le dealer ennemiCout pour envoyer une chienne donner des informations sur l'ennemi aux flicsNe peut pas connecter au server dopewars (%s) IA joueur terminating abnormally.Ne peux pas demarrer dopewars en multi-joueurLes vrais leaders de ce monde sont george bush, keanu reeves et sandra BullockD O P E W A R SD>eal %tde, DSCRQDRPDommage inflige par chaque flinguel'arriere boutiqueDetteDettes de %P payees au preteur a gages Dettes: %PPenalite de deffence relative a un joueurDeposerDiviseur sur le prix des cammes devenues vraiement pas cheresTu Tu cours ou combat ?Tu cours ?Tu veux D>eposer de l'argent, R>etirer des biftons, ou P>artir ?Ta mere sait que tu est un dealer ?Laisser tomberLaisser tomber %tdeLaisser tomber combien ?Vente de camme et RechercheVente de camme et recherche Dan WolfdroguesLa camme peut etre votre amie !S: S'evaderFrançais TraductionFrançais Traduction LeonardImpossible de lire le fichier des high scores %sTesteur extensif du jeuTesteurs extensifs Katherine Holt Caroline MooreS:Se battreC>combat, Se battreSuivant votre balance, les flics ont pecho %s, qui s'est echappe avec %d %tde. Suivant votre balance, les flics ont pecho %s, qui est mort par balle!Pour information sur les options en ligne de commande, taper dopewars -hLigne utilisee pour des drogues cheres 50% des foisTemps de jeu termine. Quitte le jeu. Gare du NordL'armurerie est situee a %s flinguesFlingues recharges...H I G H S C O R E SHashishC'est vous que j'ai vu a la tele ?SanteSante: %dHeroineHe man, les prix du %tde sont la:Salut mec, quel est ton _nom?He mec, c'est quoi ton nom? High ScoresNom de l'hoteHostname: Combien tu en achetes ?Combien d'unites tu laisses tomber? Combien tu en vends? Combien de fric tu rends ?Combien d'argent?Je suis un elephant de mer!Bon je suis trop defait, je vais me coucher.We are masses of wavelenghts on the infiniteL'esprit n'est jamais né, l'esprit ne cessera jamaisCa vous arrive de conduire la nuit avec des lunettes de soleil ?Ta mere vient de faire des bons gateaux avec un peu de ton Hash.J'ai pas toujours ete une femme, tu saisGnôthi seautonJe parie que vous faites des reves tres interessants`Question authority; think for yourself`. a dit Timothy LearyL'index dans %s doit etre entre 1 et %dInventaireSeulement de nos jours, les chateaux sont des entreprises.Se deplacer a un autre endroitBouger vers %tdeDeplacement de %tde avec %P en cash et %P en dettes Just say No... well, maybe... ok, what the hell!Bute un flic, bon Dieu!liste des morceaux de zic que vous pouvez entendre de loinliste des trucs que tu peux arreter de faireliste des trucs que vous entendez dans le metroLister quoi? J>oueurs ou S>cores? Le preteur a gages est situe a %s L'endroit ou se trouve le Preteur a GagesL'endroit ou se trouve la banquel'endroit ou se trouve l'armureriel'endroit ou se trouve le barSpecial KExctasyMaintenance du pid file %sBarbes RochechouartMaxClients (%d) exceeded - dropping connectionPrix MAX normal de chaque cammeNombre maximum de connections TCP/IPNombre MAX des adjoints accompagnantNombre maximum de potions magiques a chaque endroitPrix MAX pour employer une chienneMessageMessage affiche si cette camme est vraiement pas chereMessage:-MetaserverPrix minimum normal de chaque cammeNombre minimum de sous-flics accompagnantNombre minimum de potions magiques a chaque endroitPrix minimum pour employer une salopeMultiplicateur pour les drogues devenues cheresN:NonS>uivant server; P>recedent server; C>choisir ce serveur...SPCNomNom de chaque flicsNom de chaques sous-flicsNom de chaque sous-flicNom de chaque potion magiqueNom de chaque type de flingueNom de chaque lieuNom de la banqueNom de l'armurerieNom du fichier des scoresNom du Preteur a GagesNom du barNom du serveur a se connecterPort reseau a se connecterNouvelle partieNouveau nom: Pas de curses client disponible - reconstruire le binaire en utilisant --enable-curses-client pour configurer, ou utiliser un client fenetre (si dispo) a la place! Pas de curses client disponible - reconstruire le binaire en utilisant --enable-curses-client pour configurer, ou utiliser un client fenetre (si dispo) a la place! Aucun autre joueur est en ligne en ce moment!Cet user n'existe pas. Aucun utilisateur en ligne. Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)Nombre de secondes apres lesquelles on peut retourner le feuNombreNombre de drogues dans le jeuNombre de revolvers dans le jeuNombre de flingues que chaque flic porteNombre de flingues que chaque sous-flic portesNombre de lieux dans le jeunombre de morceaux de musiquenombre de choses que vous entendez dans le metronombre de trucs que tu peux arreter de faireNombre de types de flics dans le jeuInspecteur VERGESInspecteur GrosBoeufVous venez de Tunisie ?Une de tes %tde etait un espion pour %s.^L'espion %s!OpiumPCPJSPannique! Tu peux pas te sauver!Tout payerRembourser:MescalineTesteur de jeuTesteurs Phil Davis Owen WalshRejouer? Liste des joueursJoueur enleve a cause de temps de connection trop longJoueur enleve a cause d'inactivite trop longueJoueursLes joueurs sont deja en train de se battre!Les joueurs sont deja dans des bastons separees!Les joueurs sont deconnectes apres ce nombre de secondesJoueurs en ligne:-Joueurs dans ce jeu:- Joueurs: %d (maximum %d)Joueurs: -inconnu- (maximun %d)Merci de choisir le joueur a espionner. Votre %tde va ensuite offrir ses services aux joueur, et si elle a du succes, vous aurez ensuite acces aux stats du joueur avec le menu "Rapport des Espions". La %tde va partir, donc toutes les %tde ou %tde qu'elle porte seront peut etre perdus!Merci d'entrer le nom du host et le port du server dopewars:-Patientez... tentative de contacter le serveur dopewars...Patientez... tentative de contacter le metaserver...Les chiens des flics te courent apres sur %d blocs! Tu laisses tomber %tde! Presence policiaire a chaque endroit (%)PortPort : %dPort: Le nom de votre machine serveurAppuyer sur une touche...PrixPrix de chaque type de flingueLe bar est situe a %s Pousser %s Place d'ItalieQuestionQuitter la partieC:CourrirS>e sauver, Les elements aleatioires sont nettoyesJe crois que je vais devoir te buter pour ton propre bien.Structure liste redimentionnee a %d elements Tes concurrents ont devalise une pharmacie et vendent de la Keta pas chereAvtomat Kalashnikov 47METROR>este sur place, EDACPTu nettoies une offre aleatoire.Smith et Wesson 657Secondes entre les tours des intelligences artificiellesVendreVendre %tdeVendre combien ?Vendre %d %tde a %P EnvoyerServeurServeur: %sdescription du serveur, reporte au metaserveurChampisJouer en soloJe pense que je vais aller a Amsterdam cette anneeje suis un cheval, en faitDesole, ce serveur a une limite atteinte de %d joueursMerci de re-essayer votre connection plus tard.Desole, ce serveur a une limite atteinte de 1 joueurMerci de re-essayer votre connection plus tard.Touche de tri pour la liste des dopes disponiblesEspaceEspace %6dEspace pris par chaque flingueAmphesEspionner le joueurRapport des espionsRapport des espions pour %sCommencer une nouvelle partieArgenteuilStatistiquesStatus: Essayer de contacter %s...Status: Ne peut pas se connecter (%s)Status: Attente de l'utilisateurDifferent de zero si le serveur doit reporter a un metaserveurDifferent de zero si la valeur de la camme achetee doit etre sauvegardeeDifferent de zero si cette camme peut devenir vraiement pas chereDifferent de zero si cette drogue peut devenir particulierement chereParler a tout les joueursParler au joueur(s)Parler: The Marrakesh Express has arrived!Of all the things that I've lost, I miss my mind the most.La premiere chose a faire est de rembourser votre dette au preteur. ApresLa dame a cote de vous dans le metro dit,^ "%s"%sLe marche est sature de buvardsLe serveur has terminated. Le serveur est mort. Devient soloLe serveur est mort. Devient soloIl n'y a pas autant d'argent dans la banque...Il n'y a pas autant d'argent dans la banque...In dust, we trustTu penses que t'est suffisament dur pour dealer avec des mecs comme moi?Ce fichier binaire a ete compile sans le support rezo, et donc ne peut pas se comporter comme un joueur IA. Recompile en utilisant --enable-networking avec le script de config.Temps en secondes pour que les connections soient etablies ou casseesBalancer aux flicsTrop tard - %s vient juste de partir!TrenchcoatImpossible de lire le fichier des high scores %sImpossible d'ecrire le fichier des high scores %sCritique non-constructiveCritiques deconsctructives James MatthewsMalheureusement, qq d'autre utilise deja ton nom. Merci d'en changerMalheureusement, quelqu'un d'autre utilise deja ton nom. Merci de le changera votre prompt UNIX. Cela va afficher l'aide sur les options disponibles.InconnuCommande inconnue - Essaye "help" pour l'aide... Operationnel depuis : %sUtilisateurs en ligne:- Utiliser nom %s VersionVersion :%sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars est diffuse sous la GNU General Public License AvertissementIl faut ouvrir ses branchies aux courantsSauvez des arbres, mangez des castors !Vous avez les yeux rouges, jeune homme.SkunkQue veux tu laisser tomber? Que souhaites tu acheter? Que souhaites tu vendre? Ou ca, mec ? A qui tu veux parler en prive ? Qui tu veux espionner ?Qui tu veux donner aux flics ?A>cheterSouhaitez vous A>cheter, V>endre, ou P>artir?Woulez vous... C>connecter a un hote/port differentLes vainqueurs ne se droguent pas... a moins que...RetirerMot utilise pour decrire 1 "chienne"Mot utlise pour decrire 1 drogue Mot utilise pour decrire 1 flingue ou equivalentMot utilise pour decrire 2 "chiennes" ou plusMot utilise pour decrire deux drogues ou plusMot utlise pour decrire 2 flingues ou plusLa telepathie existe ! Regardez les vibrations.`Vivons dans l'extase de l'illimité`O:OuiONYN^Tu payes le docteur %P pour te recoudre?YN^He! mec! Je t'aiderais a porter tes %tde pour un petit %P. Oui ou non ?YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ca a l'air bon! Tu la fume?YN^Tu veux acheter un %tde pour %P?YN^Tu veux acheter une trenchcoat plus grande pour %P?YN^Voulez-vous visiter %tde?YN^^Voulez vous engager une %tde pour %P?VousVous portez en ce moment %d %tdeVous pouvez acheter %dTu peux acheter %d, et porter %d. Tu ne peux pas faire du fric avec ce que tu portes %tde :T'as meme pas reussi a etre dans les Scores!Tu n'as aucun %tde a vendre!T'en as aucun a vendre!Tu n'as pas assez de fric pour achter ce %tde!Tu n'as pas assez d'espace pour porter ce %tdeTu n'as pas assez d'argent!Tu trouves %d %tde sur un mec mort dans le metro!Tu t'est echappe!Tu a hallucine pendant trois jours dans le plus trip le plus sauvage que^t'aurais jamais imagine! Ensuite tu t'est mis a parler avec tes oreilles!Tu as %d. Vous avez ete vire du serveur. Devient solo.Vous avez ete vire du serveur. Devient solo.as un mois de temps de jeu pour faire fortune.Tu entends quelqu'un jouer %sTu touches %s!Tu touches %s, et tue une %tde!Tu as bute %s!On utilise 10% de nos cerveaux, alors pourquoi ne pas en crammer 90% ?Tu rencontres un ami! Il te donne %d %tde.Tu rencontre un ami! Tu lui donne %d %tde.Tu manques %s!Tu restes la comme un pantin.Tu t'arretes pour %s.Tu as ete attaque dans le metro!Tu as besoin de plus de %tde pour porter plus de %tde!Vous etes mort! GamE OveRVotre temps de deal est termineTa maman a fait des gateaux avec un peu de ton %tde! Ils sont excellents!Votre espion travaillant pour %s a ete decouvert!^L'espion %s!Index base sur zero du pistolet avec lequel le flic est armeZzzzzz... tu vends des bombons ou quoi?^ (au moins, tu -penses- que c'est ce qu'elle a dit)_%c. %tde_Antique mode_Attaquer_Acheter ->_Annuler_Fermer_Connect_Vendre %Tde_Laisser tomber <-_S'evader_Combattre_Aide_Bouger!_Non_OK_Courrir_Espionner (%P)_Rester sur place_Commencer un jeu en solo_Balancer (%P)_Oui`Douanier 007` par Sicemilla`Mangez-moi Mangez-moi` par Billy Ze Kick :)`Lost in the K hole` par Chemical Brothers`Annie aime les sucettes` par Gainsbourg`The Spice` par Dune`L'etat assassine` par Assassins`La main verte` par Tryo`l'Apologie` par Matmatah`Bons baisers d'Amsterdam` par Billy ze Kick`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Trip Tonite` par Etnica`Le Ciel Est Triste` par Haldolium`Autopilot` par Vibrasphere`Jesus Chris est un Hippie` par J.Hallyday`Live at Plookland city` par Transorbital Lobotomyarmes jusqu'aux dentsat %Pchiennechiennesacheter, vendre et essayer d'eviter les flics!flicflicspasse a l'ennemiadjointsadjointdopewarsdopewars AIdopewars est distribue sous la license GPL de GNU.serveur dopewarsdopewars server version %s pret et attendant les connections sur le port %d.dopewars version %s cammedroguesenfuirecu une connection de %sflingueflinguesboire une bierelourdement armesmarche de la drogue imaginaire. Dopewars est un jeu qui comprendlegerement armesrelativement bien armesou C>ontacter vos espions et recevoir des rapportsou P>as de boulot ? ou Q>uitter? leur armement fait pitiefumer un bluntfumer un cigarefumer une cigarettefumer un jointvotre but est de faire le plus de fric possible en restant vivant! Tula banqueLe Preteur a Gages`Mechanical Animals` par Marilyn Mansonle bara ete butedopewars-1.6.2/po/fr_CA.gmo000644 000765 000024 00000246006 14256243623 015366 0ustar00benstaff000000 000000 9O3DD?~EHE"F*F5:F5pFFG.vHNHHII2II&I$I' J'1J YJ eJqJJJJJJK#K=KXKrKKK#K$K L L4LHL[L oL |LLLLL+LL' M(1MZM=7NuNNNNNN N O O O#O,O?O SO^OtOO!OOO%OP3PHP_PzP P PPPQ%%QKQaQtQQ Q/QQQ$R*R1R:RBRKRSRZRbRjR yR RRRRRR RSS)S9SMS_SpSS SSSSSS S#S TT(T">T;aTTT TTT-TU3UPUbU zU+U+UUUBV!\V"~V#VJVMW ^W!W0WW WWWXX(X1XJ9XX$Z:ZCZIZ RZ\Z`Z iZwZ%ZZZZZ%[5.[d[6[[[([( \)I\)s\*\\*\]#]]$^'^,^ 5^ B^ N^,[^^J^^^ ^ ^_"_*_` !`!B` d`"`%``;`"a5a;Uaa:aa<a,xx)ryyy)y&yz"z>z$Yz'~zzzz)z"!{ D{P{`{/{{{{{{|| |"$| G|R| Z|d|k| p|=}| | |%|"|}%}'E}0m}}}}} ~"97V2O$!F KW)^ȁ ہ 5*`&wA %?@[)̓!6Ph2*!9#Pt ,- "..]#z +lj$ (!*J!u"/./<I;4‰:626i(4Ɋ%.$2S 7Ћ ֋ + : H Vd)j#(' (G4^2,ƍ 1(F,oŽ-Ɏ""*=h Ln %{00Ґ ($M;i;1(*<)g6Ȓf4֔ 0&!W"y,LM/}Lޖ# #D)a͝ p"|H*?GCW*GO) @5 v èݨ/ :)W !/) ()R$[/.)ߪ% $/T:q(@ޫX'x4 լ) >B"%H%Z75, <,X/.կ v FFް5%[ w(̱(*-Xv-ֲ@ 9J4*1  .6>FM Vajqx~  ŴҴ,״%**F#q$Ե#(%Fl,"˶"$6IOU1] 9ƷU-HH̻*/53=q G *B S^n } 5+F T]l|/tD2`w56F}M>@Z043&2Z  ()R"j.,2_y! ,, Y!z ; ";R f s ~  *%:%`-0&>/e)!!2Cb~- / $ 6 CM d nx !--AR cq   "!-,O |(E&@Zo:!"A"P)s#l%B&h*Gl&o'1 '=D alMt3b  ,3"8#[(=*=02n&::;>;z;/("K="[;~ /2X; .5!!'*I&t(3C P2c'8<+/h 3=-)6WMV<3%py4LEB.+Zb,* + +5> RL^ L2PTcw& 0O6V`2LAf 6*:#-^,% &TGeIRJ0j %%A H T%^ $,)Vp-=8!?ZB&*4/Xd,233*g9($V4 6 5FM$321 "R&u #,2:J eEr$#%2I+|#> < LZx$2+#D$hO6"9Oez $> W"b$ () 1<!L n|F-1<N1 +*,Ws12(-!?6a!(+2^ m x=:A@.6;,?Vo8:79Jq* 5MRm   *9%U3{U   "* 1M  @  ! 9 #S w  & # @ /< %l   !  K 6 V  ] i }  + #   3 '3 0[   4  - qt36E]$x!%94-T/+6:;P+"%#  DO7^ 1CT iHv#9(%F#l(B?8<u?9< Gby8!!0.0+_#Nr-q9!$1 Rj2.(  3BTMF $9!A<c07 ,#EPO (018j)!2 % * ?  '/00D0V]002001D1vX141 22]2HC3'333(33 4)4&94"`4)44'454.5-C5Jq55%5%5#6/46/d6-6.6_6Q7W70Z7d7U7#F8+j88%8(889# :.:-A:>o:1:0:;-;*F;.q;;5;;< <2<:<%=;= Y=g==/=/=>=6>%H>n>>->;> ?#%?KI?A?*?'@8*@ c@ m@ {@ @@@ @@@ @ @@ @@A A AA-A ?A&`AA!A(A/A%B)-B"WB;zB#BB(B" C-CC0qCCCCCDD!D&D1,D^DdDkD~DDD D0DD&D EDH`HGI\IcIkI.qIIIIIIAI$J8J3QJJ JJ JJJ J9J?2KJrKKKKKLUBLp0IX2o? f58hy B!!L.6S=%TS9 <d3cgducsZ<ib%T r Rl;  $ < '/I$Gzqa't#plG9vf\4K:Nf! C$t?w-['nn$h_jYy{m0*,7o@|\6e4T}xND9)#hP}*-g7V8gW"e/GR&BUes#@D)2`HYMm+\Ck=*&Fz&4WmL_6br]q` &_).d>'Q~({. %ZZ^/@Pr +X0x*:i{]"jc, Sz5~q,>+VkO7OnJ"137 M;I%3xU8W(Ny4|Q0F;A^O182H6EJJ~2H! jCa +=R EDaP}vit3 ( [^#,o9vEAlw">k-(p5YXwuA 1-Q|V?bM[K]` 5s):K.u1/  F For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/DealDrugs drug name/%tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/Inventory drug name/%tde%/Inventory gun name/%tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%d. %tde%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no larger than %d - ignoring!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: DENIED jet to invalid location %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAttempting to connect to local dopewars server via Unix domain socket %s... Authenticating with SOCKS serverAuthenticating with SOCKS server Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBad metaserver reply "%s"BankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialize WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armorCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armorDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaServer: %sMetaserverMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for SOCKS5 authenticationPassword: Pay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication canceled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in admin mode. Recompile passing --enable-networking to the configure script. This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colors (by default colors are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colors --no-colour (by default colors are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for SOCKS5 authenticationUsers currently logged on:- Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License Waiting for connect to metaserver at %s...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, https://dopewars.sourceforge.io/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initializedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, https://dopewars.sourceforge.io/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars 1.5.10 Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2007-10-25 16:37+1300 Last-Translator: François Marier Language-Team: French Language: fr_CA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour afficher l'aide sur les options disponible sur la ligne de commande, tapez dopewars -h sur votre prompt UNIX. L>iste des serveurs sur le méta, et en sélectionner un Q>uitter (vous pouvez alors démarrer un server en tapant "dopewars -s") ou J>ouer en solo ? A>ller se faire foutre E>spionner un autre pusher (cout: %P) D>onner un autre pusher aux boeufs (cout: %P) -h affiche cet écran d'aide -v affiche la version et quitte dopewars est un Copyright (C) Ben Webb 1998-2022, et distribué sous GNU GPL Envoyer les bugs à l'auteur : benwebb@users.sf.net -h, --help affiche cet écran d'aide -v, --version affiche la version et quitte dopewars est un Copyright (C) Ben Webb 1998-2022, et est distribué sous la GNU GPL Envoyer les bugs à l'auteur : benwebb@users.sf.net -u fichier utiliser le plugin de son "fichier" -u, --plugin=FICHIER utiliser le plugin de son "FICHIER" Es-tu certain? Tu trouves %P sur le corps! Tu fouilles le corps!# Ceci est le journal de démarrage de dopewars. Il contient # les messages d'information résultant de la lecture du # fichier de configuration et autre... $% de résistance aux coups de gun de chaque pute% de résistance aux coups de gun de chaque policier% de résistance aux coups de gun de chaque adjoint% de résistance aux coups de gun de chaque joueur%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/Banque window title/%Tde%/Combat: Putes/%d %tde%/Endroit présent/%tde%/Vendre nom de la drogue/%tde%c. %tde%/GTK Marchand d'armes window title/%Tde%/GTK Stats: Putes/%Tde%/Inventaire nom de la drogue/%tde%/Inventaire nom du gun/%tde%/Prêteur window title/%Tde%/Affichage de l'endroit/%tdeEndroit vers où se déplacer%/Renvoyer une pute dialog title/Renvoyer %Tde%/Sack Bitch menu item/_Renvoyer une pute...%/Espion: Drogues/%Tde...%/Espion: Guns/%Tde...%/Stats: Drogues/%Tde%Tde%Tde %3d Espace %6d%Tde transporté(e)s%Tde en vente/demande ici%d de %d%d. %tde%d-%m-%Y%s - %s - te courent après, man!%s et %d %tde - %s - te courent après, man!%s est arrivé avec %d %tde, %s!%s ne peut pas être moins de %d!%s ne peut pas être moins de %d%s n'a pas l'air d'être un fichier de scores valide. S'il s'agit d'un fichier de scores d'une version précédente de dopewars, veuillez tout d'abord le convertir au nouveau format en utilisant la commande: dopewars -C %s%s a accepté votre %tde!^Tape G pour contacter ton espion.%s s'est enfuit %tde!%s se sont échappés!%s a quitté la partie.%s a quitté la partie. %s a rejeté ton %tde!%s t'a pogné, man!%s est "%s" %s est %P %s est %d %s est %s %s est { %s joint la partie!%s joint la partie. %s tué %s quittes le serveur!%s espionne %s%s tue %s par balle%s tire sur %s et tue une %tde!%s tire sur %s.%s tire sur %s... et manque son coup!%s te tire dessus... et tue une %tde!%s te tire dessus.. et rate!Tentative d'espionnage de %s sur %s: REFUSÉE%s reste debout et le prend.Le rapportage par %s de %s à la police: REFUSÉ%s a rapporté %s à la police%s essaye de décrisser, mais échoue.%s t'as massacré, mam! Ça chie ton affaire...%s est maintenant connu sous le nom de %s%s est maintenant %s.%s: déplacement vers %s INTERDIT%s: déplacement vers %s INTERDIT%s: Espion offert par %s%s: Indice de %s%s: l'offre etait au nom de %s%s: indice par %s finit OK.%s[%d] est %s %s^%s est déjà là!^Tu Attaque, or t'Evade?(%s disponible) (Mort/es)(L'erreur ne peut pas être affichée en UTF-8)(Restant/es)(Repose en Paix), L>aisser tomber, C>ombattre, D>onner, S>'en aller ailleurs, L>ister, V>endre, P>lacotter, R>éveiller, ou Q>uitter? .38 Modifié/Tâches/R_apports des espions.../Tâches/_Espionner.../Tâches/_Rapporter un joueur à la police.../Jeu/Activer les _sons/Jeu/_Abandonner.../Jeu/_Nouveau.../Jeu/_Options.../Jeu/_Quitter/Aide/_À propos.../Liste/_Inventaire.../Liste/_Joueurs.../Liste/_Scores.../Parler/Avec _tout le monde.../Parler/Avec un _joueur.../_Tâches/_Jeu/_Aide/_Liste/_Parler<- _VendreUn jour sans dope, c'est la nuit.Un singe apprivoisé pourrait faire mieux...A:AttaquerASLe joueur IA a été tué. Fin normale. Joueur IA éjecté du serveur. Le joueur IA a débuté et tente de contacter le serveur sur %s:%d...Le joueur IA a terminé correctement. Abandonner cette partie ?Abandonner la partieÀ propos de dopewarsAcideLes accros achètent de la dope (%tde) à des prix de fou!Addresse déjà utiliséeFamille d'adresses non-supportéeCommande administrative: %sConnexion administrative terminéeSergent BigrasArgent de départ de chaque joueurMontant des dettes en débutant la partieT'es tu gelé là ?Êtes-vous sur de vouloir quitter? Es-tu certain de ce que tu fais ? (Tous les %tde et les %tde transportés par cette %tde vont être perdus!)Demande de connexion SOCKS avec %s...Demande de connexion SOCKS vers %s... Pénalité d'attaque relative à un joueurConnexion au méta-serveur trop fréquente, attente du prochain timeoutEn train d'essayer d'établir la connexion avec le serveur dopewars local en utilisant le socket UNIX %s... Authentification avec le serveur SOCKSAuthentification avec le serveur SOCKS Authentification du nom local avec le metaserveurEspace disponible: %dAVLPRLDCSQAVPMauvaise réponse du méta-serveur "%s"BanqueLa banque est située à %s Banque: %PBarettaBasé sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'unBasé sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation d'un marché de la drogue imaginaire. DopeWars est un jeu qui vous permet d'acheter ou vendre de la drogue et essayer d'éviter les polices! La première chose à faire est de rembourser le prêteur à gages. Ensuite, votre but est de faire le maximum d'argent (et de rester en vie!) Vous avez un mois de temps de jeu pour faire fortune. Soyez verbose en lisant le fichier de configurationFrançois MarierLavalVieux-PortParcourir...AcheterAcheter %tdeEn acheter combien ?Acheter %d %tde à %P Acheter un %tde pour %P au marchand d'armes CLQJTu oses te prendre pour un pusher?Peut être extrêmement bon marchéPeut être extrêmement chèreImpossible de s'attacher au port %u (%s)Impossible de créer une copie (%s) du fichier des scores: %sImpossible de créer le fichier pid %s: %sImpossible de créer un socket d'écoute (%s) pour le serveurImpossible d'obtenir les détails du méta-serveurImpossible d'initialiser WinSock (%s)!Impossible d'installer le handleur d'interruptions SIGHUP!Impossible d'installer le handleur d'interruptions SIGINT!Impossible d'installer le handleur d'interruptions SIGTERM!Impossible d'installer le handleur d'interruptions SIGUSR1!Ne peux pas installer le handleur d'interruptions SIGWINCH!Impossible d'installer le handleur de pipeline!Impossible de lire sur le socket réseauNe peut pas ouvrir le fichier des meilleurs scores %s. (%s) Vérifiez que vous avez les permissions pour accéder ce fichier ou répertoire ou specifiez un autre fichier et chemin d'accès avec la commande -f.Impossible d'ouvrir le fichier des meilleurs scores (%s): %s.Impossible de rejoindre le réseauNe peut pas commencer la bataille - pas de gun à utiliser!CashArgent: %PParc LafontaineChanger de nomExpression "bon marché"Choisir une job à donner à une de tes %tde...CocaïneLes récoltes des serres hydroponiques dépassent les attentes, c'est le temps de fumer!Commande:CommentaireCommentaire: %sÎle Sainte-HélèneLa configuration ne peut seulement être modifiée que lorsqu'aucun joueur n'est connecté. Attendez que tous les joueurs se déconnectent ou éjecter-les avec la commande push ou kill et essayer à nouveau.Fichier de configuration enregistré comme %s Félicitations! Vous êtes dans les meilleurs scores!Connextion au serveur SOCKS %s...Connecté au serveur SOCKS %s... Connexion abandonnée à cause d'un échecConnexion terminée par l'autre partieConnexion refusée par les règles SOCKSLa connexion est brisée à cause d'un tampon pleinConnexion établie Connexion établie. Utilisez Ctrl-D pour terminer votre session. Connexion refuséeConnexion réinitialisée par l'ordinateur distantConnexion au serveur perdue - Mode soloConnexion au serveur perdue! La connection au serveur est perdue. Change en mode SoloCritique constructiveCritiques constructives Andrea Elliot-Smith Pete WinnContrôle le nombre de messages dans le journalArmure d'un policierPoliciersLes boeufs ne peuvent pas attaquer d'autres boeufs!Les boeufs ont mis la main sur un gros stock de dope (%tde) !Le fichier des meilleurs scores est corrompu!Coût pour envoyer une pute espionner le pusher ennemiCoût pour envoyer une pute donner des informations sur l'ennemi à la policeConnexion au serveur dopewars impossible (%s) Joueur IA termine d'une façon anormale.Impossible de déterminer le fichier de configuration local.Impossible d'ouvrir le fichier %s: %sImpossible d'installer le socket de domaine UNIX pour les connexionsadministratives - vérifiez les permissions sur /tmp!Ne peux pas démarrer dopewars en mode multi-joueursLes terroristes dirigent la maison blanche depuis les dernières élections.Symbole monétaireCurrency.Prefix=FALSED O P E W A R SV>endre des %tde, VTCRQDRSTaux d'intérêt quotidien sur l'emprunt avec le prêteur à gagesTaux d'intérêt quotidien du compte de banqueDégâtDommage infligé par chaque gunle marchand d'armesJour du mois durant lequel la partie débuteDetteDettes de %P payées au prêteur à gages Dettes: %PPenalité de défense relative à un joueurSupprimerDéposerArmure d'un adjointDescriptionDiviseur sur le prix des drogues lorsqu'elle sont offertes à prix très basTu Courir ou combattre ?Tu cours ?Tu veux D>époser de l'argent, R>etirer de l'argents, ou S>acrer ton camp ? Est-ce que ta mère sait que tu vends de la dope ?BasLaisser tomberLaisser tomber %tdeEn laisser tomber combien ?Vente de drogue et rechercheVente de drogue et recherche Dan WolfDroguesLa drogue est votre amie !S:Se sauverTraduction québécoiseTraduction québécoise François MarierErreurImpossible de lire le fichier des meilleurs scores: %sErreurs lors de la lecture du fichier de configuration. Certaines préférences pourraient ne pas fonctionner correctement. Portez attention aux messages figurant sur la sortie standard pour plus de détails.Erreurs lors de la lecture du fichier de configuration. Certaines préférences pourraient ne pas fonctionner correctement. Voir le fichier "dopewars-log.txt" pour plus de détails.Expresion "dispendieux" 1Expresion "dispendieux" 2Testeurs maniaques du jeuTesteurs maniaques Katherine Holt Caroline MooreS:Se battreC>ombattre, Impossible de se connecter au méta-serveur à %s (%s)Impossible de contacter le serveur de nomsImpossible d'envoyer un message de notification du serviceImpossible d'installer un handleur de serviceImpossible d'obtenir le status du service NTImpossible de démarrer le service NTSe battreFichier dans lequel écrire le journalSuivant votre indice, les boeufs ont attaqué %s, qui s'est échappé avec %d %tde. Suivant votre indice, les boeufs ont pogné %s, qui est mort par balle!Pour afficher l'aide sur les options disponible sur la ligne de commande,Chaîne de formattage utilisée pour les drogues dispendieuses la moitié du tempsNombre de tours dans une partieTemps de jeu écoulé. La partie est terminée. GénéralPlateau Mont-RoyalLe marchand d'armes est situé à %s GunsGuns rechargés...M E I L L E U R S S C O R E SHashC'est vous que j'ai vu à la télé ?SantéSanté: %dHéroïneHeille man, les prix du %tde sont la:Heille man, c'est quoi ton _nom?Heille man, comment tu t'appelles ? Meilleurs scoresNom de l'hôteImpossible de trouver l'hôteNom: Combien que t'en prends ? Combien d'unités veux-tu crisser à terre? Combien que tu en vends? Combien de cash tu rends ? Combien d'argent? Je suis une crevette!Bon chu trop décriss, j'm'en vas me coucher.Je sens un désir incontrôlable de teindre mes cheveux bleusSavais-tu que l'américain moyen a une seule testicule ?Ça t'arrive tu de conduire la nuit avec des lunettes fumées ?Ta mère vient de faire des bons gâteaux avec un peu de ton Hash.J'ai pas toujours été une femme tséC'est à vous l'éléphant rose là-haut ?Chu sûre que tu fais des rêves très intéressants« Le seul moyen de se délivrer de la tentation, c'est d'y céder. » a dit Oscar WildeIcônes et graphiques Ocelot MantisIcônes et graphiquesSi VRAI, le symbôle monétaire précède les prixSi VRAI, le serveur est réduit dans le System TraySi VRAI, le serveur roule en arrière-planSi non-vide, le nom d'utilisateur à utiliser pour SOCKS4L'index dans %s doit être entre 1 et %dCode d'erreur interne: %dErreur interne du méta-serveur "%s"Le plugin sélectionné ("%s") est invalide. (%s est disponible, utilisation de "%s".)InventaireEspace d'inventaireJésus t'aime beaucoup plus que tu ne le sauras jamaisSe déplacer à un autre endroitS'en aller vers %tdeDéplacement de %tde avec %P en cash et %P en dettes Dis-lui non, tout simplement... ouin, peut-être... ah pis d'la marde!Tue une police pour le petit Jésus!Liste des chansons que vous pouvez entendre de loinListe des choses que vous pouvez arrêter de faireListe des choses que vous entendez dans le métroLister quoi? J>oueurs ou S>cores? Le prêteur à gages est situé à %s Documentation HTML localeEmplacement du prêteur à gagesEmplacement de la banqueEmplacement du marchand d'armesEmplacement du barEndroitsColleEcstasyMessage du jourMaintenance du pid file %sCentre-villeNombre maximum de clients (%d) dépassé - annulation de la connexionNombre maximum d'adjointsNombre maximum de droguesPrix normal maximumPrix normal maximum de chaque drogueNombre maximum de connexions TCP/IPNombre maximum d'adjoints accompagnant un policierNombre maximum de drogues à chaque endroitPrix maximum pour employer une puteMessageMessage affiché si cette drogue est offerte à prix très basMessage:-Messages (-/+ avancer/reculer)MetaServeur: %sMéta-serveurMinimiser dans le System TrayNombre minimum d'adjointsNombre minimum de droguesPrix normal minimumPrix normal minimal de chaque drogueNombre minimum d'adjoints accompagnant un policierNombre minimum de drogues à chaque endroitPrix minimum pour employer une puteMois durant lequel la partie débuteMultiplicateur pour les drogues lorsqu'elles sont offertes à prix exhorbitantsN:NonS>erveur suivant; P>récedent; C>hoisir ce serveur... SPCNomNom de chaque policierNom de chaque adjointNom de chaque adjointNom de chaque drogueNom de chaque type de gunNom de chaque endroitNom d'une puteNom d'un adjointNom de plusieurs putesNom de plusieurs adjointsNom de la banqueNom du marchand d'armesNom du fichier des scoresNom du prêteur à gagesNom du barNom du serveur auquel se connecterCode d'erreur du serveur de noms: %dAdresse réseau du serveurCode d'erreur réseau: %dPort réseau auquel se connecterLe sous-système réseau n'est pas prêtNouveauNouveau %sNouvelle partieNouvelle connexion administrativeNouveau nom: Pas de boeufs ou de gunsPas de client curses disponible - recompiler le programme en utilisant --enable-curses-client comme configuration, ou utiliser un client graphique (si disponible) à la place! Pas de client graphique disponible - recompiler le programme en utilisant --enable-gui-client comme configuration, ou utiliser un client curses à la place! Aucun autre joueur est en ligne en ce moment!Cet utilisateur n'existe pas. Aucun utilisateur en ligne! Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)Nombre de secondes après quoi on peut répliquerQuantitéNombre de drogues dans le jeuNombre de guns dans le jeuNombre de guns que chaque policier possèdeNombre de guns que chaque adjoint possèdeNombre de lieux dans le jeuNombre de chansonsNombre de choses que vous entendez dans le métroNombre de choses que vous pouvez arrêter de faireNombre de types de policiers dans le jeuMaurice la grosse policeInspecteur GadgetToi, tu dois venir de Vancouver ?Une de tes %tde était un espion pour %s.^L'espion %s!L'opération n'est pas supportéeOpiumOptionsPas assez d'espace de tamponAucun descripteur de fichiers disponiblePCPJSFuck! Tu peux pas te sauver!Mot de passe pour l'authentification SOCKS5Mot de passe: Tout payerRembourser:PéyoteJouerTesteurs de jeuTesteurs Phil Davis Owen WalshJouer à nouveau? Liste des joueursJoueur éjecté à cause d'un temps de connexion trop longJoueur éjecté à cause d'une période d'inactivité trop longueJoueursLes joueurs sont déjà en train de se battre!Les joueurs sont déjà dans des batailles séparées!Les joueurs sont déconnectés après ce nombre de secondesJoueurs en ligne:-Joueurs dans ce jeu:- Joueurs: %d (maximum %d)Joueurs: -inconnu- (maximum %d)Merci de choisir le joueur a espionner. Votre %tde va ensuite offrir ses services aux joueur, et si elle a du succes, vous aurez ensuite acces aux stats du joueur avec le menu "Rapport des Espions". La %tde va partir, donc toutes les %tde ou %tde qu'elle porte seront peut etre perdus!Choisir le joueur à rapporter à la police. Votre %tde va aider les boeufs à attaquer ce joueur, puis venir vous faire son rapport quand vous la rencontrerez. Rappellez-vous que la %tde vous quittera temporairement, donc tout ce qu'elle porte (%tde ou %tde) pourra être perdu!Merci d'entrer le nom de l'hôte et le port du serveur:-Patientez... tentative de contacter le serveur dopewars...Patientez... tentative de contacter le méta-serveur...Les chiens de police te courent après sur %d blocs! T'as échappé: %tde!Présence policièrePrésence policiaire à chaque endroit (%)PortPort : %dPort: Le nom de votre machine serveurPèse sur une touche...PrixPrix de chaque type de gunProtocole non-supportéLe bar est situé à %s Intimidation de %s WestmountQuestionQuitter la partieD:écrisserT>e sauver, Les éléments aléatioires sont nettoyésJe crois que je vais devoir te tuer pour ton propre bien.Enlève les références à la drogueListe de structure redimentionée à %d éléments Les pushers rivaux ont dévalisé une quincaillerie et vendent de la colle pas chèreRugerM É T R OR>ester sur place, Authentification SOCKS nécessaireAuthentification SOCKS annulée par l'utilisateurÉchec d'authentification SOCKSAuthentification SOCKS requise (entrez un nom vide pour annuler)Code d'error SOCKS: %dÉchec général du serveur SOCKSLe serveur SOCKS a réjeté toutes les méthodes offertesSOCKS: Type d'adresse non-supportéSOCKS: Commande non-supportéeSOCKS: Connexion refuséeSOCKS: Connexion à l'hôte impossibleSOCKS: Connexion réseau impossibleSOCKS: Rejeté - identd rapporte un nom d'utilisateur différentSOCKS: Rejeté - impossible de contacter identdSOCKS: Requête rejetée ou échouéeSOCKS: Le TTL a expiréEDACPTu nettoies une offre aléatoire.Spécial du samedi soirNombre de secondes entre les tours des joueurs contrôlés par l'ordinateurSélectionner le fichier de sonVendreVendre %tdeEn vendre combien ?Vendre %d %tde à %P EnvoyerEnvoi des mise à jours au méta-serveur...Envoi du rappel au méta-serveur...ServeurServeur: %sDescription du serveur, rapportée au méta-serveurLe serveur se rapporte au méta-serveurMessage de bienvenue du serveur pour aujourd'huiMushMode soloJe pense que je vais aller à Vancouver cette annéeType de socket non-supportéVas te faire couper les cheveux le pouilleux!Désolé, ce serveur a une limite de %d joueurs et cette limite a été ^atteinte. Merci de réessayer plus tard.Désolé, ce serveur a une limite d'un seul joueur et cette limite a été ^atteinte. Merci de réessayer plus tard.Touche de tri pour la liste des drogues disponiblesFichier de sonSon de fin de la partieSon de début de la partieSon d'une balle qui atteint sa cibleSon d'une balle qui rate sa cibleSon d'arrivée dans un nouvel endroitSon à faire jouer lorsqu'un joueur se joint à la partieSon à faire jouer lorsqu'un joueur quitte la partieSon d'un message privé envoyé par un joueurSon d'un message publique envoyé par un joueurSon d'un joueur qui s'échappe avec succèsSon d'un joueur qui tente de s'échapper mais qui rateSon accompagnant la mort d'une pute ou d'un adjoint ennemiSon accompagnant la mort d'un autre joueur ou d'un policierSon d'un gun qui est rechargéSon accompagnant la more d'une de vos putesSon accompagnant votre propre mortSon accompagnant votre fuite réussieSon accompagnant votre fuite ratéeNom du sonEffets sonoresEffets sonores Robin Kohli, 19.5degs.comEspaceEspace %6dEspace utilisé par chaque gunSpeedEspionner le joueurRapports des espionsRapports des espions pour %sCommencer une nouvelle partieArgent de départDette de départNotre-Dame-de-GrâceStatistiquesStatus: En train de demander à SOCKS d'établir la connexion avec %s...Status: En train de contacter %s...Status: En cours d'authentification avec le serveur SOCKSStatus: Connecté au serveur SOCKS %s...Status: Ne peut pas se connecter (%s)Status: En attente de l'utilisateurLe symbole monétaire précède les prixVRAI si un serveur SOCKS est nécessaire pour la connexion réseauVRAI si un numéro d'identification est nécessaire pour SOCKS4VRAI si le serveur doit se rapporter à un méta-serveurVRAI pour activer les sonsVRAI si la valeur de la drogue achetée doit être sauvegardéeVRAI si cette drogue peut être offerte à prix très basVRAI si cette drogue peut être offerte à prix exhorbitantsParler à tous les joueursParler au(x) joueur(s)Parler: Erreur de serveur de noms temporaire - essayer plus tardLe Marrakesh Express est arrivé!Tsé, le pape a déjà été juifLa commande utilisée pour lancer votre fureteurLa connexion a échouée à cause d'un timeoutLes boeufs t'ont vu jeter ton stock (%tde)!Le symbôle monétaire (example: $)La première chose à faire est de rembourser votre dette au prêteur. Après,Le fichier des scores (%s) a été converti au nouveau format. Une copie de l'ancien fichier a été créée: %s. Le nom d'hôte d'un serveur SOCKS à utiliserLa madame à côté de toi dans le métro te dit,^ "%s"%sLe marché est saturé de buvardsÉchec dans le sous-système réseauLe numéro de port d'un serveur SOCKS à utiliserLe serveur a terminé. Le serveur est mort. Mode soloLe serveur est mort. Mode soloLa version du protocole SOCKS à utiliser (4 ou 5)Il n'y a pas autant d'argent dans la banque...Ya pas autant d'argent dans la banque...Ya rien comme avoir full de cashTu penses que t'es assez toff pour dealer avec du monde comme moi?Ce fichier binaire a été compilé sans le support réseau et donc ne peut pas se comporter comme un joueur IA. Recompile en passant --enable-networking au script de configuration.Ce programme a été compilé sans le support réseau et ne peut donc pas fonctionner en mode serveur. Recompilez avec l'option --enable-networking dans le script configure. Ce programme a été compilé sans le support réseau et ne peut donc pas fonctionner en mode serveur. Recompilez avec l'option --enable-networking dans le script configure. Temps en secondes pour que les connexions soient établies ou briséesRapporter un joueur à la policeTrop tard, %s vient juste de partir!ManteauImpossible d'ouvrir le fichier %sImpossible de lire le fichier de configuration %s (ligne %d)Impossible de lire le fichier des high scores %sImpossible d'écrire le fichier des meilleurs scores %sCritique non-constructiveCritiques non-consctructives James MatthewsMalheureusement, quelqu'un d'autre utilise déjà ton nom. Change-le.Malheureusement, quelqu'un d'autre utilise déjà ton nom.Merci de le changer:-Fichier de configuration Unicodetapez dopewars -h sur votre prompt UNIX.InconnuLe type de l'adresse SOCKS retournée est inconnuCode de réponse SOCKS inconnuCode de version de réponse SOCKS inconnuVersion de serveur SOCKS inconnueCommande inconnue - essayez "help" pour l'aide... Message inconnu: %s:%c:%s:%sHautEn ligne depuis : %sUsage: dopewars [OPTION]... Jeu de vente de drogue. Basé sur "Drug Wars" de John E. Dell -b "noir et blanc" - n'utilise pas les jolies couleurs (par défaut, les couleurs sont utilisées si le terminal les supporte) -n ne pas se connecter aux autres serveurs dopewars (i.e. mode joueur unique) -a "antique" dopewars - rester proche de la version originale (cette option désactive les possibilités réseau) -f file spécifie un fichier a utiliser pour la table des high scores (par défaut, %s/dopewars.sco est utilisé) -o addr spécifie une addresse où le serveur peut être trouvé (e.g. nowhere.com) -s lance en mode serveur (note: pour un serveur non-interactif, simplement lancer: dopewars -s < /dev/null >> logfile & ) -S lance un serveur privé (i.e. ne pas contacter le méta-serveur) -p port spécifie le port réseau à utiliser (défault: 7902) -g file spécifie le chemin d'accès au fichier de configuration. Ce fichier est lu immédiatement quand l'option -g est rencontrée -r file maintient un fichier pid "file" pendant que le serveur tourne -l file écrit l'information du journal dans le fichier "file" -c crée et lance une intelligence artificielle (adversaire contrôlé par l'ordinateur) -w force le lancement en mode graphique (GTK+ ou Win32) -t force le lancement en mode texte (par défaut, le client graphique est lancé si possible) -P nom change le nom du joueur -C file convertit un vieux fichier de scores au nouveau format -A se connecte au serveur local pour l'administration Usage: dopewars [OPTION]... Jeu de vente de drogue basé sur "Drug Wars" de John E. Dell -b, --no-color, "noir et blanc" - n'utilise pas les couleurs --no-colour (par défaut, les couleurs sont utilisées si le terminal les supporte) -n, --single-player ne pas se connecter aux autres serveurs dopewars (i.e. mode joueur unique) -a, --antique "antique" dopewars - rester proche de la version originale (cette option désactive les possibilités réseau) -f, --scorefile=FILE spécifier un fichier a utiliser pour la table des meilleurs scores (par défaut, %s/dopewars.sco est utilisé) -o, --hostname=ADDR spécifier une addresse où le serveur peut être trouvé (e.g. nowhere.com) -s, --public-server lancer en mode serveur (note: pour un serveur non-interactif, simplement lancer: dopewars -s < /dev/null >> logfile & ) -S, --private-server lancer un serveur privé (i.e. ne pas contacter le méta-serveur) -p, --port=PORT spécifie le port réseau à utiliser (défault: 7902) -g, --config-file=FILE spécifie le chemin d'accès au fichier de configuration. Ce fichier est lu immédiatement quand l'option -g est rencontrée -r, --pidfile=FILE maintenir un fichier pid "file" pendant que le serveur tourne -l, --logfile=FILE écrit l'information du journal dans le fichier -A, --admin se connecter au serveur local pour l'administration -c, --ai-player crée et lance une intelligence artificielle (adversaire contrôlé par l'ordinateur) -w, --windowed-client force le lancement en mode graphique (GTK+ ou Win32) -t, --text-client force le lancement en mode texte (par défaut, le client graphique est lancé si possible) -C, --convert=FILE convertir un vieux fichier de scores au nouveau format Nom d'utilisateur: Nom d'utilisateur pour l'authentification SOCKS5Utilisateurs en ligne:- Utilisation de Socks.Auth.User et Socks.Auth.Password pour l'authentification SOCKS5 Utiliser le nom %s Nom valide, mais aucune information DNS disponibleVersionVersion :%sVersion·%-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars est distribué sous la licence GNU GPL En attente de la connexion au méta-serveur à %s...AttentionVotre version de Dopewars est trop vieille pour supporter les fonctionalitésde ce serveur. Pour une meilleure expérience, obtenez la dernière versionsur le site web de Dopewars: https://dopewars.sourceforge.io/Dans mon temps, il n'y avait pas de distributrices de balounes dans les toilettes maintenant?On utilise 20% de nos cerveaux, alors pourquoi ne pas en détruire 80% ?Vous avez les yeux rouges, jeune homme.FureteurPotQu'est-ce que tu veux crisser à terre? Qu'est-ce que tu veux acheter? Qu'est-ce que tu veux vendre? Où ça, man ? À qui que tu veux parler en privé ? Qui c'est que tu veux espionner ? Qui c'est que tu veux donner aux flics ? A>cheterVeux tu A>cheter, V>endre, ou P>artir? Voulez-vous... C>onnecter à un hôte/port différentWinSock n'a pas été correctement initialiséCette version de WinSock n'est pas supportéeLes vainqueurs ne se droguent pas... à moins qu'ils prennent de la drogueRetirerMot utilisé pour décrire une "pute"Mot utilisé pour décrire une drogueMot utilisé pour décrire une armeMot utilisé pour décrire deux "putes" ou plusMot utilisé pour décrire deux drogues ou plusMot utilisé pour décrire deux armes ou plusLa télépathie existe ! Check les vibrations.Pète pis répète sont en bateau, pète tombe à l'eau, qui est-ce qu'il reste dans le bateau?O:OuiONYN^Vas-tu payer le docteur %P pour te ramancher?YN^Heille man! J'pourrais t'aider à transporter tes %tde pour un petit %P. Qu'est-ce que t'en dis ?YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ça a l'air bon! Veux-tu la fumer? YN^Veux-tu acheter un %tde pour %P?YN^Veux-tu acheter un manteau plus gros %P?YN^Veux-tu visiter %tde?YN^^Veux-tu engager une %tde pour %P?Année durant laquelle la partie débuteToiVous semblez utiliser une très vieille version (1.4.x) du jeu. Cette versionrisque de fonctionner, mais plusieurs des nouvelles fonctionalités ne serontpas supportées. Obtenez la dernière version sur le site web de Dopewars: https://dopewars.sourceforge.io/Tu transportes en ce moment %d %tdeTu peux acheter %dTu peux en acheter %d, et en transporter %d. Tu peux pas te faire de cash avec ce que tu transportes %tde :Impossible de débuter une partie sans se nommer!T'as même pas réussi à être dans les scores!T'as pas de %tde à vendre!T'en n'as pas à vendre!T'as pas assez de cash pour acheter: %tde!T'as pas assez d'espace pour transporter: %tdeT'as pas assez de cash!T'as trouvé %d %tde sur un gars mort dans le métro!Tu t'es échappé!T'as halluciné pendant trois jours dans le trip le plus hot que t'aurais ^jamais pu imaginer! Ensuite t'es mort parce que ton cerveau s'est désintégré!T'as %d. Vous avez été expulsé(e) du serveur. Mode solo.La connexion avec le serveur a été terminée. Mode solo.Vous avez un mois pour faire fortune.Tu entends quelqu'un jouer %sTu pognes %s!Tu pognes %s, et tue une %tde!T'as achevé %s!Sauvez des arbres, torchez-vous avec un lapin !T'as rencontré un chum, il t'a donné %d %tde.T'as rencontré ton meilleur chum pis tu lui a donné %d %tde.Tu as manqué %s!Vous devez entrer un montant positif!Tu restes là comme une momie.Tu t'arretes pour %s.Tu t'es fait pété la gueule dans le métro!Tu as besoin de plus de %tde pour transporter plus de %tde!Tu viens de crever man!Votre temps de dealage est terminéTa mère a fait des gâteaux avec un peu de %tde! Y'étaient vraiment bons!Votre espion travaillant pour %s a été découvert!^L'espion %s!Numéro du gun que les policiers utilisentZzzzzz... tu vends des bonbons ou quoi?^ (du moins, tu -penses- que c'est ça qu'elle a dit)_%c. %tdeMode _antique_Attaquer_Acheter ->_Annuler_Fermer_Connecter_Vendre de la dope_Laisser tomber <-_S'enfuir_CombattreA_ide_Décrisser!_Non_OK_Rafraîchir_Décrisser_Espionner (%P)_Rester sur place_Débuter la partie en mode solo_Rapporter un joueur à la police (%P)_Oui`Strangers on a Train` par Lovage`La petite grenouille` par André Guitar`Bonjour la police` par Rock et Belles Oreilles`Le p'tit pinson` par Normand L'Amour`Le monde est à pleurer` par Jean Leloup`Hawaïenne` par Les Trois Accords`Treat Me Mean, I Need The Reputation` par Xploding Plastix`Snake in the Garden` par Ramasutra`Rape Me` par Richard Cheese`Get Down Make Love` par Nine Inch Nails`P'tit change` par Groovy Aardvark`Libérez-nous des Libéraux` par Loco Locass`Quelle sorte de plotte c'est ça` par D-Natural`Slap My Bitch Up` par Prodigy`Porn` par Blue Jam`Sod Off` par Björk`Ventolin` par Aphex Twinarmés jusqu'aux dentsà %Pputeputesacheter, vendre et essayer d'éviter les polices!boeufboeufspassé à l'ennemiadjointsadjointDopewarsIA dopewarsdopewars est distribué sous la license GNU GPL.Serveur dopewarsServeur dopewars en train de terminer.Serveur dopewars version %s, commandes et configuration help Affiche l'aide list Lister les joueurs connectés push Demander poliment à un joueur de partir kill Éjecter avec force le joueur donné msg: Envoyer un message à tous les joueurs save: Enregistrer la configuration dans le fichier quit Quitter après avoir averti tout le monde. = Assigne une valeur à une variable Affiche la valeur de la variable donnée [x].= Assigne la variable dans la liste donnée à à la position x, à la valeur donnée. [x]. Affiche la valeur de la variable donnée dans la liste Les variables acceptées sont:- Serveur dopewars version %s attendant les connexions sur le port %d.Serveur dopewars version %s en attente de commandes d'administration.Essayez "help" pour l'aide.dopewars version %s droguedroguesenfuivaleur booléenne attendue (0, FALSE, 1, TRUE)connexion reçu de %sgungunsboire une bièrelourdement armésmarché de la drogue imaginaire. Dopewars est un jeu qui comprendlégèrement armésrelativement bien armésou C>ontacter vos espions et recevoir leur rapportsou P>as de job ? ou Q>uitter? leurs guns font pitiéfumer du hashfumer un cigarefumer une smokefumer du weedChaîne de formattage strftime() pour l'affichage du tourChaîne de formattage strftime() pour les dates dans le journalvotre but est de faire le plus d'argent possible (tout en restant vivant)!la Caisse populairele prêteur à gages`Ass Itch` par Kornle bartuédopewars-1.6.2/po/pt_BR.gmo000644 000765 000024 00000171253 14256243623 015423 0ustar00benstaff000000 000000 L|,H;I;?;H<"g<<5<5<=.=N,>{>>>>>>>?'?A?#_?$???? ? ??@+"@N@'k@(@=@@A$A:AQAlA ~A A A AAAA AAA B! BBBSB%rBBBBBB C =C^CyCC%CCCCD 5D/CDsDD$DDDDDDDDDD D EE4EEEYEmE EEEEEEEEF F$F+F2F9F@F IF#jFF(F"F;FG9G OG\GkG-pGGGG G+G+HCH^HB~H!H#HJI RI!sI0II IIIIJ JJJ^J$KLL#L,L0L 9LGL%]LLLL5LLM(/M(XM)M)M*MNN#NN$O4O9O BO OO,[OOJOOO O OP"P*PQ !Q!BQ dQQ;QQQ; RHR:dRR<R,R S%S1DSvS$S/SKS+T$FTkTT TTT*T(TU U!U)5U_U"dUU#UUU U0UVV V<*V+gVVV VVV&VVVWW&3WZW`W~WAWWW*WXXG7X?XEX2Y8YXY_YwY|YYYYY YY&YZ"Z ?Z KZUZ dZoZZZ ZZZ Z0[/H[Ax[[![%[0 \3Q\+\\0\*\, ].M]|]=] ]']^^)#^0M^~^(^'^/^ _7_Q_j____ ____ _._,`A`!V`$x`'`(`` a3a HaRaaa vaa3aaaa!b'(b(Pbybb.bb7b"c&c+ct(bt'tttt4u28u,ku u1u(u,vAvUvgv"nv"v*vLv%,w0Rw0w(ww;w;5x1qx(x*x)x6!yXyyz41{f{w{ {{0{!{" |,|,E|Lr|M|L }Z})b}}}} }"}}~*~B~J~CZ~~*J)R@|   $?/Q) Ȁ!ր/((Q$Z/.)ށ%$.S:p@X'N4v )̃";%M7s5, /,K/x.ȅ v |FFц5N jv((* Ki|-Ɉ@9=4w*1׉ '/6 ?JSZagmquz  ,%*.#Y}$#(%.Tg,""֌$17=1Ew 9ʍH1HzÎ؎ݎ36: ? KGY *ŏ   +9 K+YF̐ՐBHAA0+r 675RFǕޕ''$L"h*+ *4%=0c**ٗ>C War ʘ Ԙޘ , COo'ޙ'F%c#Ț'%6!H j)x(   !+ = J0W˜ܜ 3Ibx  ʝ,.!%P@vԞ 4F[#z /.۟& !1SS''ϠZ!R"t5͡  O$t9' ams| *ä&@8-y1<٥<=S=>Ϧ,;6"::] 2ƨFI R^ n{-;2i!" #&<=z$A!E[?p1 ,7Q(g5]ƭ)$4Nî#Ǯ " 7X` ~' į5Я  (>53t  ưݰ)&- KU-l2ұC.6-?m&sH>M"9p)Գ۳'?F_n+ִ *9"Ux+ѵ =3A?u+Ҷ6=S-/ӷ)>-)lG &,<2K2~(ι-,%+R~̺!)- G/Q##ػ*''&Ov; Ƽؼ A!Tv#*ͽ'& G>a<!"DWi |οݿ=:Uqv ~ v-'Hp#0( ,*Ep/% "!28T%  $/? F?T,2 #$B3g$E[Aq40Uo# 3.G `nu ~ #G4 V?  Q,2O&f 4% .7<*t .2w;t<(e4t004 +@l9q !1 FT d r-!))($M&^>?6";:^53 6=(]*Q(3,/`0=A,Z''%DB<=z%E28O0FGRb 2" "5+Ht0C210U*q .?7X(403/;=k<10/I!y7ML*)w.", 9)Ak+;;@%'f"<<"+.N }AE_A#= M.n29!?T?t B<8?u16 + 3 ?I Q[ ju~  -&+R,o& %$*O&n-$#%@f|1   8%^pF_5JPW5_L -2Dw 3M#qy I\O*zFj\#:[7&&n_9uP0/$f0Kje@55= Y* -=gH,lG?8J@TxM~B6"z" B)f]N]8V gyvr^Od<mc T& N8lXtD' |7hhx qB>Nma<p(GmZ-OMWG=u6S?n/^>F, Ck. ?h@bc-Lq[ efEbSdx432!VY~5S]11Jjy"r%uaY`6 U)2Qo)D904<CF ;QI2$#,Cn|A(3k! %RM o:{sX +}p.^(7L}pEP3`Tv{b 4K{ AZy_[e#Q.i!'IsEA%VwD+zL'W`/ttHg;aUXZv:oRlPwqcRi>Js9KH*d+1r\;wUk_i$~|W} For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!$%/BankName window title/%Tde%/Current location/%tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/LoanShark window title/%Tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no larger than %d - ignoring!%s can be no smaller than %d - ignoring!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: DENIED jet to invalid location %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAuthenticating with SOCKS serverAuthenticating with SOCKS server Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot get metaserver detailsCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not open file %s: %sCould not start multiplayer dopewarsCourage! Bush is a noodle!D O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s (%s)FightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame time is up. Leaving game. GhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInvalid plugin "%s" selected. (%s available; now using "%s".)InventoryJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaServer: %sMetaServer: (closed)MetaserverMetaserver URLMetaserver URL to report/get server details to/fromMinimize to System TrayMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No servers listed on metaserverNo such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spacePCPPSPanic! You can't get away!Password for SOCKS5 authenticationPassword: Pay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Resized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication required (enter a blank username to cancel)STGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...ServerServer : %sServer description, reported to the metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when guns are reloadedSound file played when you are killedSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: ERROR: %sStatus: Waiting for user inputTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: The Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe first thing you need to do is pay off your debt to the Loan Shark. AfterThe hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in admin mode. Recompile passing --enable-networking to the configure script. This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.UnknownUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUpUp since : %sUser name: Username for SOCKS5 authenticationUsers currently logged on:- Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License Waiting for connect to metaserver at %s...WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Run_Select_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!connection to server failedcopcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server terminating.dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2022-06-10 23:06-0300 Last-Translator: Bruno Lopes Language-Team: Portuguese/Brazil Language: pt_BR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Para informações sobre opções de linha de comando, digite dopewars -h no seu prompt Unix. Isto irá mostrar a tela de ajuda, listando as opções disponíveis. L>istar os servidor no servidor meta, e selecionar um S>air (onde você pode iniciar um servidor digitando ou J>ogar com apenas um jogador ? D>espedir E>spionar um outro traficante (custo: %P) A>trair policiais para outro traficante (custo: %P) -h, --help mostra esta informação de ajuda -v, --version mostra informação sobre a versão e sai dopewars Copyright (C) Ben Webb 1998-2022, e licenciado sob a GNU GPL Reporte bugs ao autor em benwebb@users.sf.net -u arquivo use plugin de som "arquivo" -u, --plugin=ARQUIVO use plugin de som "ARQUIVO" Você tem certeza? Você achou %P no corpo! Você roubou o corpo!$%/Título da janela do NomeDoBanco/%Tde%/Local atual/%tde%c. %tde%/Título da janela da LojaDeArmas/%Tde%/Estatísticas: Putas/%Tde%/Título da janela do agiota/%Tde%/Despedir puta dialog title/Despedir %Tde%/Despedir puta menu item/_Despedir %Tde...%/Estatísticas: Drogas/%Tde%Tde%Tde %3d Espaço %6d%Tde carregados%Tde aqui%d de %d%s - %s - está te perseguindo, cara!%s e %d %tde - %s - estão te perseguindo, cara!%s chega com %d %tde, %s!%s não pode ser maior que %d - ignorando!%s não pode ser menor que %d - ignorando!%s aceitou seu %tde!^Use a tecla G para contactar seu espião.%s fugiu para %tde!%s fugiu!%s saiu do jogo.%s sai do jogo. %s rejeitou seu %tde!%s acertou você, carinha!%s é "%s" %s é %P %s é %d %s é %s %s é { %s entrou no jogo!%s entra no jogo. %s morto %s saiu do servidor!%s agora espionando %s%s mata %s.%s atira em %s e mata uma %tde!%s atira em %s.%s atira em %s... e erra!%s atirou em você... e matou uma %tde!%s atira em você... e erra!%s espionando %s: RECUSADO%s fica e pega%s atração para %s: RECUSADO%s atraiu os policiais para %s%s tenta escapar, mas falha.%s acabou com você, cara! Que merda!%s será conhecido como %s%s agora vai ser conhecido como %s.%s: RECUSADO ir para %s%s: RECUSADO ir para local inválido %s%s: espião oferecido por %s%s: Atrair de %s%s: oferta foi %s%s: atração de %s terminada OK.%s[%d] é %s %s^%s está aqui!^Você Ataca, ou Evacua?(%s dispnível) (Morto)(O erro não pode ser mostrado em UTF-8)(Saiu)(R.I.P.), L>argar, L>utar, D>ar, I>r, J>ogadores, V>ender, F>alar, P>agear, ou S>air? .38 Especial/Trabalhos/_Pegar informações de espionagem.../Trabalhos/_Espionar.../Trabalhos/_Atrair.../Jogo/_Habilitar som/Jogo/_Abandonar/Jogo/_Novo.../Jogo/_Opções/Jogo/_Sair.../Ajuda/_Sobre.../Listar/_Inventário.../Listar/_Jogadores.../Listar/_Pontuações.../Falar/Para _Todos.../Falar/Para um _Jogador.../_Trabalhos/_Jogo/_Ajuda/_Listar/_Falar<- _VenderUm dia sem droga é como a noiteUm macaco treinado pode até fazer melhor...A:AtacarJogador com IA morto. Terminando normalmente. Jogador com IA retirado do servidor. Jogador com IA iniciado; tentando contactar servidor em %s:%d...Jogador com IA terminado OK Abandonar jogo atual?Abandonar jogoSobre o dopewarsÁcidoViciados estão comprando %tde a preços ridículos!Endereço já em usoComando de administração: %sConexão de administrador encerradaAgente SmithQuantidade de dinheiro que cada jogador começaQuantidade de débito que cada jogador começaVocê está doidão ou coisa parecida?Você tem certeza que quer sair? Você tem certeza? (Qualquer %tde ou %tde carregado por esta %tde vai ser perdido!)Pedindo ao SOCKS para conectar em %s...Valor relativo de ataque para o jogadorTentativa de conectar ao metaservidor muito frequentemente - aguardando o próximo timeoutAutenticando com o servidor SOCKSAutenticando com o servidor SOCKS Autentificação para o NomeLocal com o servidor metaEspaço disponível: %dCVLFPJDLISCVSBancoBanco localizado em %s Banco: %PBarettaBaseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação deBaseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação de um mercado de drogas imaginário. dopewars é um jogo americano onde se pode comprar, vender, e tentar se safar dos policiais! A primeira coisa que você irá precisar fazer é pagar seu débito com o agiota. Depois disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficar vivo)! Você tem um mês de tempo de jogo para fazer sua fortuna. Mostrar mensagens processando o arquivo de configuraçãoBruno LopesBronxBrooklynComprarComprar %tdeComprar que quantidade?Comprando %d %tde por %P Comprando um %tde por %P na loja de armas CLSJVocês se acham traficantes de drogas?Pode ser especialmente baratoNão foi possível criar backup (%s) do arquivo de recordes: %s.Não foi possível criar o arquivo pid %s: %sNão foi possível obter detalhes do metaservidorNão foi possível instalar o sinal de interrupção SIGHUP!Não foi possível instalar o sinal de interrupção SIGINT!Não foi possível instalar o sinal de interrupção SIGTERM!Não foi possível instalar o sinal de interrupção SIGUSR1!Não foi possível instalar o sinal de interrupção SIGWINCH!Não foi possível instalar o sinal de pipe!Não foi possível abrir o arquivo de pontuação %s. (%s) Veja se você tem permissões para acessar este arquivo e diretório, ou especifique um arquivo de pontuação alternativo com a opção -f.Não foi possível abrir o arquivo de recordes %s: %s.Não é possível alcançar a redeNão é possível começar briga - nenhuma arma para usar!DinheiroDinheiro: %PCentral ParkMudar NomeEscolha um trabalho para dar a uma de suas %tde...CocaínaColombianos enganaram a Guarda Costeira! Preços de maconha abaixaram!Comando:ComentárioComentário: %sConey IslandConfiguração pode ser somente mudada interativamente quando nenhum jogador está logado. Espere por todos os jogadores saírem, ou remove eles com os comandos push ou kill, e tente de novo.Arquivo de configuração gravado OK como %s Parabéns! Você entrou nas melhores pontuações!Conectado ao servidor SOCKS %s...Conectado ao servidor SOCKS %s... Conexão abortada devido a falhaConexão encerrada pelo host remotoConexão estabelecida Conexão estabelecida; use Ctrl-D para fechar sua sessão. Conexão recusadaConexão reiniciada pelo host remotoConexão com o servidor perdida - mudando para modo de um jogadorConexão com o servidor perdida! Conexão com o servidor perdida! Revertendo para o modo de um jogadorCrítica ConstrutivaCrítica Construtiva Andrea Elliot-Smith Pete WinnControla o número de mensagens de log produzidaspoliciaisPoliciais não podem atacar outros policiaisPoliciais apreenderam %tde! Preços estão super altos!Highscore corrompido!Custo para as putas espionarem o inimigoCusto para as putas atraírem os policiais ao inimigoNão foi possível conectar no servidor dopewars (%s) Jogador com IA terminado abnormalmente.Não foi possível abrir o arquivo %s: %sNão foi possível iniciar o dopewars em multiplayerCoragem! Bush é um zé!D O P E W A R ST>raficar %tde, TCLFSDRSJuros diários na dívida do agiotaJuros diários em sua poupançaDanoDano de cada armaCasa de Armas do DanDia do mês em que o jogo iniciaDébitoDébito de %P pago ao agiota Débito: %PValor relativo de defesa para o jogadorRemoverDepositarDescriçãoDivisor para os preços da droga especialmente barataVocê quer Você corre, ou luta?Você corre?Você quer D>epositar dinheiro, R>etirar dinheiro, ou S>air ? Sua mãe sabe que você é um traficante de drogas?Para baixoLargarLargar %tdeLargar que quantidade?Tráfico de Drogas e PesquisasTráfico de Drogas e Pesquisas Dan WolfdrogasDrogas podem ser suas amigas!E:EvacuarTradução de PortugalTradução de Portugal Bruno LopesErroNão foi possível ler o arquivo de pontuação %sExtensivo Teste de JogoTestes Extensivos de Jogo Katherine Holt Caroline MooreL:LutarL>utar, Falha ao conectar com metaservidor em %s (%s)LutarArquivo onde escrever mensagens de logSeguindo suas pistas, os policiais cercara %s, que escapou com %d %tde. Seguindo suas pistas, os policiais cercaram %s, que foi morto!Para informações de opções da linha de comando, digite dopewars -h no seuFormato da string usada para drogas caras em 50% do tempoTempo de jogo esgotando. Saindo do jogo. GhettoLoja de armas localizada em %s armasArmas recarregadas...M E L H O R E S P O N T U A Ç Õ E SHaxixeEu já não te vi na TV?Pontos de vida(Pontos de vida: %d)HeroínaEi carinha, os preços de %tde aqui estão:Ei carinha, qual o seu _nome?Ei carinha, qual seu nome? Melhores PontuaçõesNome do hostHost não encontradoNome do Host: Quantos você vai comprar? Que quantidade você quer largar? Quantos você vai vender? Quanto dinheiro você quer pagar de volta? Quanto dinheiro? Eu sou o walrus!Eu não acredito no Ronal ReaganEu sinto uma vontade incontável de pintar meu cabelo de azulEu acho comerciais de hemorróida realmente doidos!Eu acho maravilhoso o que estão fazendo com incenso estes diasEu mesmo costumava ser hippeI eu não fui sempre uma mulher, você sabeEu queria te mandar um poodleEu aposto que você tem sonhos realmente interessantesEu estou solicitando contribuições para os Zumbis de CristoIcons and Graphics Ocelot MantisÍcones e gráficosSe TRUE, o servidor minimiza a Barra do SistemaSe TRUE, o servidor executa em backgroundSe não em branco, será o nome de usuário a usar para SOCKS4Índice da array %s deve ser entre 1 e %dCódigo interno de erro %dPlugin inválido "%s" selecionado. (%s disponível; agora usando "%s".)InventárioJesus ama você mais do que você sabeIr para o localIndo para %tdeIndo para %tde com %P de dinheiro e %P de débito Apenas diga Não... bem, talvez... ok, que diabos!Mate um policial por Cristo!Lista de sons ao qual você ouve tocandoLista de coisas que você pode parar de fazerLista de coisas ao qual você ouve no metrôListar o que? J>ogadores ou P>ontuações? Agiota localizado em %s Documentação local em HTMLLocalização do agiotaLocalização do bancoLocalização da loja de armasLocalização do bordelLocaisEcstasyMDAMantendo o arquivo pid %sManhattanMaxClientes (%d) excedido - cancelando conexãoQuantidade máxima de drogasPreço normal máximoPreço máximo normal de cada drogaNúmero máximo de conexões TCP/IPNúmero máximo de ajudantes acompanhantesNúmero máximo de drogas em cada localPreço máximo para contratar uma putaMensagemMensagem mostrada quando esta droga é especialmente barataMensagem:-Meta servidor: %sMetaServidor: (fechado)Servidor MetaURL do metaservidorNome do meta-servidor para reportar/obter os detalhes do servidorMinimizar para a Barra do SistemaQuantidade mínima de drogasPreço normal mínimoPreço mínimo normal de cada drogaNúmero mínimo de ajudantes acompanhantesNúmero mínimo de drogas em cada localPreço mínimo para contratar uma putaMês em que o jogo iniciaMultiplicador para para os preços da droga especialmente caraN:NãoP>róximo servidor; A>nterior; S>elecionar este servidor... PASNomeNome de cada policialNome dos ajudantes do policialNome de cada ajudante do policialNome de cada drogaNome de cada armaNome de cada localNome do bancoNome da loja de armasNome do arquivo de pontuaçãoNome do agiotaNome do bordelNome do servidor para conectarEndereço de rede para em que o servidor aguardará conexõesCódigo de erro de rede %dPorta de rede para conectarNovoNovo %sNovo JogoNova conexão de administradorNovo nome: Nenhum policial ou armas!Cliente curses não disponível - reconstrua o binário passando a opção --enable-curses-client para configurar, ou use o cliente gráfico (se disponível) no lugar! Nenhum cliente GTK+ disponível - reconstrua o binário passando a opção --enable-gui-client para configurar, ou use o cliente curses (se disponível) no lugar! Nenhum outro jogador está atualmente logado!Nenhum servidor listado no metaservidorEste usuário não existe! Nenhum usuário atualmente logado! No. de turnos do jogo (se 0, o jogo nunca acaba)Número de segundos em para revidar tiroNúmeroNúmero de drogas no jogoNúmero de armas no jogoNúmero de armas que cada policial carregaQuantidade de locais no jogoNúmero de sons tocandoNúmero de falas no metrôNúmero de coisas que você pode parar de fazerNúmero de tipos de policiais no jogoOficial BobOficial HardassAh, você deve ser da CalifórniaUm de suas %tde estava espionando para %s.^O espião %s!Operação não suportadaÓpioOpçõesSem espaço para bufferPCPJPPânico! Você não consegue escapar!Senha para autenticação SOCKS5Senha: Pagar tudoPagar de volta:PeyoteTeste de JogoTeste de Jogo Phil Davis Owen WalshJogar novamente? Lista de jogadoresJogador removido por expiração da conexãoJogador removido por ter ficado muito tempo paradoJogadoresJogadores já estão brigando!Jogadores estão em lutas separadas!Jogadores são desconectados depois destes segundosJogadores atualmente logados:-Jogadores neste jogo:- Jogadores: %d (máximo de %d)Jogadores: -unknown- (máximo de %d)Por favor escolha o jogador para espionar. Sua %tde irá então oferecer seus serviços para o jogador, e se conseguido, você poderá ver as estatísticas do jogador com o menu "Obter Informações de Espionagem". Lembre-se que a %tde irá deixar você, então qualquer %tde ou %tde que ela está carregandoirá ser perdido!Por favor escolha o jogador para os policiais serem atraídos. Sua %tde irá ajudar os policiais atacar este jogador, e então reportar de volta para você. Lembre-se que a %tde irá deixar você temporariamente, então todo %tde ou %tde que ela está carregando será perdido!Por favor entre com o nome do host e porta do servidor dopewars:-Aguarde... tentando contactar o servidor dopewars...Aguarde... tentando contactar o servidor meta...Cães policiais caçam você por %d blocos! Você largou algum %tde! Que droga, cara!Presença da políciaPolícia presente em cada local (%)PortaPorta : %dPortaNome do host preferido para a sua máquina servidorPressione qualquer tecla...PreçoPreço de cada armaProtocolo não suportadoBordel localizado em %s Retirando %s QueensPerguntaSair do JogoC:CorrerC>orrer, Eventos aleatórios são censuradosDroga eu vou ter que simplesmente atirar em você pro seu próprio bem.Estrutura de lista redimensionada para %d elementos Comerciantes de drogas rivais roubaram uma farmácia e estão vendendo ecstasy barato!RugerM E T R ÔF>icar paradão, Autenticação SOCKS NecessáriaAutenticação SOCKS necessária (entre nome de usuário em branco para cancelar)EADCNSanitized away a RandomOfferSaturday Night SpecialSegundos entre turnos dos jogadores IASelecione arquivo de somVenderVender %tdeVender que quantidade?Vendendo %d %tde por %P MandarEnviando atualizações pendentes ao metaservidor...ServidorServidor : %sDescrição do servidor, reportado para o servidor metaMensagem de boas vindas do dia no servidorCogumelosApenas um jogadorEntão eu acho que vou para Amsterdã este anoTipo de socket não suportadoFilho, você precisa de um corte de cabelo amareloDesculpe, mas este servidor tem um limite de %d jogadores, ao qual foi alcançado. Por favor tente conectar mais tarde.Desculpe, mas este servidor tem um limite de 1 jogador, ao qual foi alcançado. Por favor tente conectar mais tarde.Teclas de ordenação para a listagem de drogas disponíveisArquivo de somArquivo de som tocado para um tiro que acerta o alvoArquivo de som tocado quando um tiro erra o alvoArquivo de som tocado ao chegar em um novo localArquivo de som tocado quando armas são recarregadasArquivo de som tocado quando você é mortoSonsSounds Robin Kohli, 19.5degs.comEspaçoEspaço %6dEspaço tomado por cada armaSpeedEspionar JogadorInformações de EspionagemInformações de espionagem de %sIniciar um novo jogoGrana inicialDívida inicialStaten IslandEstatísticasStatus: Pedindo ao SOCKS para conectar a %s..Status: Tentando contacatar %s...Statis: Autenticando com o servidor SOCKSStatus: Conectado ao servidor SOCKS %s...Status: Não foi possível conectar (%s)Status: ERRO: %sStatus: Esperando por algo do usuárioTRUE se um servidor SOCKS deve ser usado para conectar à redeTRUE se IDs numéricos de usuário devem ser usados para SOCKS4Não-zero se o servidor deve reportar ao servidor metaTRUE se sons devem ser habilitadosNão-zero se o valor das drogas compradas devem ser salvosNão-zero se esta droga pode ser especialmente barataNão-zero se esta droga pode ser especialmente caraFalar com todos os jogadoresFalar com jogador(es)Fale: O Expresso de Marrakesh chegou!O Papa já foi judeu uma vez, você sabeO comando usado para iniciar seu navegadorA primeira coisa que você irá precisar fazer é pagar seu débito com o agiota.O hostname do servidor SOCKS a ser usadoA moça próxima a você no metrô lhe diz,^ "%s"%sO mercado está cheio de ácido caseiro barato!O número da porta do servidor SOCKS a ser usadoO servidor foi acabado. O servidor foi terminado. Revertendo para modo de um jogador.O servidor foi terminado. Revertendo para modo de jogador único.A versão do protocolo SOCKS a usar (4 ou 5)Não há todo este dinheiro no banco...Não há todo este dinheiro no banco...Não há nada como ter muito dinheiroAcham que vocês são duros o bastante para lidar com gente como eu?Este binário foi compilado sem suporte a rede, e por iss não se pode atuar como um jogador com IA. Recompile passando a opção --enable-networking para o script configure.Este binário foi compilado sem suporte a rede, e portanto não pode executar em modo admin. Recompile passando --enable-networking para o script de configuração. Este binário foi compilado sem suporte a rede, e portanto não pode executar em modo admin. Recompile passando --enable-networking para o script de configuração. Tempo em segundos para conexões a serem feitas ou quebradasAtrair os PoliciaisMuito tarde - %s já saiu!CasacoNão foi possível abrir o arquivo %sNão foi possível processar o arquivo de configuração %s, linha %dNão foi possível ler o arquivo de pontuação %sNão foi possível escrever no arquivo de pontuação %sCrítica não construtivaCrítica não construtiva James MatthewsInfelizmente, alguém já está usando o "seu" nome. Por favor mude-o.Infelizmente, alguém já está usando o "seu" nome. Por favor mude-o:-prompt Unix. Isto irá mostrar a tela de ajudam listando as opções disponíveis.DesconhecidoComando desconhecido - tente "help" para ajuda... Mensagem desconhecida: %s:%c:%s:%sPara cimaRodando desde : %sNome de usuário: Nome de usuário para autenticação SOCKS5Usuários atualmente logados:- Usando o nome %s Nome válido, mas não há registro DNS presenteVersãoVersão : %sVersão %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersão %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars está lançado sob a GNU General Public License Aguardando para conectar ao metaservidor em %s...AvisoJane Fonda não estava maravilhosa em BarbarellaNós usamos apenas 20% de nossos cérebros, então porque não estragar os outros 80%Nós estamos ganhando a guerra das drogas!NavegadorMaconhaO que você quer largar? O que você quer comprar? O que você quer vender? Para onde, cara ? Quem você quer pagear (falar privadamente) ? Quem você quer espiar? Para quem você quer que os policiais sejam atraídos? Você irá C>omprarVocê irá C>omprar, V>ender, ou S>air? Você irá... C>onectar em um diferente host e portaVencedores não usam drogas... ao menos que usemRetirarPalavra usada para denominar uma simples "puta"Palavra usada para denominar uma simples droga ou equivalentePalavra usada para detominar uma simples arma ou equivalentePalavra usada para denominar duas ou mais "putas"Palavra usada para denominar duas ou mais drogasPalavra usada para denominar duas ou mais armasVocê gostaria de um doce, bebê?Não seria engraçado se todos tivessem de uma vez só?S:SimSNYN^Ei carinha! Eu posso ajudar você carregar %tde por meros %P. Sim ou não?YN^Tem uma maconha aqui que cheira muito bem!^Parece bom! Você irá fumar? YN^Você gostaria de comprar %tde por %P?YN^Você gostaria de comprar um colete por %P?YN^Você gostaria de visitar %tde?YN^^Você gostaria de contratar %tde por %P?Ano em que o jogo inicia(Você)Você está atualmente carregando %d %tdeVocê pode comprar %dVocê pode comprar %d, e pode carregar %d. Você não pode ganhar nenhum dinheiro pelo seguinte %tde :Você não pode iniciar um jogo antes de dar a ele um nome!Você nem conseguiu entrar na tabela de melhores pontuações...Você não tem nenhum %tde para vender!Você não tem nenhum para vender!Você não tem dinheiro suficiente para comprar aquele %tde!Você não tem espaço suficiente para carregar aquele %tde!Você não tem todo esse dinheiro!Você acha %d %tde em um cara morto no metrô!Você fugiu!Você alucionou por três dias na viagem mais louca que você jamais imaginou!^Então você morreu porque seu cérebro desintegrou!Você tem %d. Você foi tirado do servidor. Revertendo para modo de um jogador.Você foi tirado do servidor. Revertendo para modo de jogador único.vivo)! Você tem um mês de tempo de jogo para fazer sua fortuna.Você escuta alguém tocando %sVocê acertou %s!Você acertou %s, e matou uma %tde!Você matou %s!Você tá parecendo um aardvark!Você encontrou um amigo! Ele lhe dá %d %tde.Você encontrou um amigo! Você dá a ele %d %tde.Você errou em %s!Você precisa entrar uma quantidade positiva de dinheiro!Você fica parado como um panaca.Você parou para %s.Você foi massacrado no metrô!Você irá precisar de mais %tde para carregar ainda mais %tde!Você está morto! Jogo acabado.Seu tempo de tráfico acabou...Sua mamãe fez comida com algumas de suas %tde! Ela estava ótima!Seu espião trabalhando com %s foi descobrido!^O espião %s!Índice baseado-em-zero da arma que os policiais estão armadosZzzzz... vocês estão traficando doces ou o que?^ (ao menos, você -pensa- que foi o que ela disse)Modo _Antigo_Atacar_Comprar ->_Cancelar_Fechar_Conectar_Traficar %Tde_Largar <-_Evacuar_Lutar_Ajudar_Ir!_Não_OK_Correr_Selecionar_Espionar (%P)_Ficar parado_Iniciar jogo de um jogador_Subornar (%P)_Sim`Acapulco Gold` por Riders of the Purple Sage`Are you Experienced` por Jimi Hendrix`Cheeba Cheeba` por Tome Loc`Comin` in to Los Angeless` por Arlo Guthrie`Comemrcial` por Spanky e Nossa Gangue`Eight Miles High` por the Byrds`Itchycoo Park` por Small Faces`Kicks` por Paul Revere & the Raiders`Late in the Evening` por Paul Simon`Legalize Já` por Planet Hemp`Legend of a Mind` por the Moody Blues`Light Up` por Styx`Mexico` por Jefferson Airplane`One toke over the line` por Brewer & Shipley`The Smokeout` por Shell Silverstein`White Punks on Dope` por the Tubes`White Rabbit` por Jefferson Airplanearmado até os dentesem %Pputaputascomprar, vender, e tentar se safar dos policiais!a conexão com o servidor falhoupolicialpoliciaisderrotadoajudantesajudantedopewarsIA dopewarsdopewars está lançado sob a GNU General Public Licenseservidor dopewarsservidor dopewars encerrando.servidor dopewars versão %s pronto e esperando conexões na porta %d.servidor dopewars versão %s pronto para comandos de administração; tente \"help\" para ajudadopewars versão %s drogadrogasescapouValor booleano esperado (om dentre 0, FALSE, 1, TRUE)conexão de %sarmaarmastome uma cervejapesadamente armadoum mercado de drogas imaginário. dopewars é um jogo americano onde se podepouco armadomoderamente bem armadoou C>ontactar suas espiãs e receber informaçõesou N>enhum trabalho ? ou S>air? muito pouco armadofumar um Djarumfumar um charutofumar um cigarrofumar um baseadoString de formato strftime() para timestamps de logDepois disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficaro Bancoo agiotaas fitas de Nixono bordellevou um tirodopewars-1.6.2/po/pl.gmo000644 000765 000024 00000126762 14256243622 015034 0ustar00benstaff000000 000000 Dl 8+9+?+H,"W,z,5,5,,-- 1- >-H-Q-=n----- . . . %./.8.K. _.j.......///D/W/u/ /////////0 0 0)0F0W0 k0y0000000 001 111 #1#D1h1(q1"1;112)282-=2+k2+222B20A3r3 333333J3 4$555555%566;6(Y6(6)6)6*6*7G778 8 8,#8P8JX88 8 88*r99;99: :H:<_::1:$:/:K(;$t;;; ;;;;;<" <0<9<0A<r<z< <<<+<= =&$=K=Q=k=s=&===A=%>->6>G<>?>E>2 ?=?]?d?|????? ??&??@ 3@ ?@ I@T@j@@ @@@ @0@/-AA]AA!A%A0B36B.jB B'BBB)B0CFC(]C'C/C CCD4DIDbDvD|DD D.D!D$D(EAE_E3gE EE E!E(E F.(FWF7\FFFFFFFFFG/G ?G`G{G GG)H)HHH)I&EIlIsIIIII)I %J1JAJ/aJJJJJ JJ J=J K K%K"AKdK0lKKKKK L!M9N7UN2NON$O5O :OFO)MOwOOOO OOO OOOO5P&8PA_PP PPPPP#PQQ6Q;Q BQ.NQ}Q Q+QQlQjKR$RR RRS S S#S6S ESSS#YS}SS,S(S,T>TRTdT"kT"TLT0T0/U`U;|U;U(U*V)HV6rVV4GW|WW W!W"WW,XL@XMXLX)(YRYbYYYYCYYkZ)sZ@Z ZZ[[9[T[/f[[)[ [![/ \(=\f\$o\/\.\)\%]$C]h]:]]](]@]X3^'^4^ ^) _"4_W_%i_7_,_ _`,1`/^``.`v` TaFbaFa5a&bBbQb(lb(bbbb-cr!^rrrr+r'r%r"s;sMUs+ss ssssttI"t]lt&uuv vvv/,v\vav%zv)v)v*v*w+JwvwwNxSx\x dx,qxx?x x x xy,yyHz#_zEzz<z{<${&a{.{j{("|(K|t||||-|||)| }!}-)}W}\} t}B~})}}}&~5~/;~k~z~/~4~~AS ZeQjQE3T*#&5 =I(Qz ́ہ" 6A"a1+ւ)!,(Nw-2"')?:i*-&$@,e% =#a%/ֆ 9 9G Wb. )Ї=>B!Hj~ "ڈ"#8 AN,Њ,)H"r͋.FLP.a=͌ ;,1h-ύ#6>u0|94[$x 'ݑ 0<DL [ frF,֒-19 ?IO g3u˓ӓ ړ'(!Gwiz.\ ,̕ҕ % 2=']#F>?/o *ЗE:-0h@@7W%w8֙6!ƚ46,c,|;;H!9j$؜AD ǝ.ԝ<@ `jܞ#7?;w %"! .+$Z">0E4Vz!ѡ."%Bh{)-%$ /L=h9EEդ(Dc?y*+' ?>`%;Ŧ:%<;b ʧ ӧ ݧ   *=#Eix},1ɨ2Kd+ͩ#!2$M r %ڪ *?5FuǫЫ D Rb%}$Ȭ׬! !-A<~7 ԭޭD}h70F.;jL[I%AHbJq~G0,a_4iuwV(,}g*#@  Vrla +^ -e8Z!RHY=@`{(P:AX^><EzUfWdNE=SNM+o\~6W "RbK !Gtk]vDOzXy: Z5`*LjP|\>so{tnu y_S)m259hB;U"?92$wQ?]& %r xTQ6Ks&lJcC'Ip1-Fi$3<Mve[fdB/Yg)km7nTpC qc31/x48|# .O' For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? %/Drug Select/%c. %tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%s arrives with %d %tde, %s!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?, D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/_New.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?About dopewarsAcidAddicts are buying %tde at ridiculous prices!Amount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBuyBuying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.CashCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connection established Connection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnCopsCops made a big %tde bust! Prices are outrageous!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not start multiplayer dopewarsCourage! Bush is a noodle!D O P E W A R SD>eal %tde, DRFSQDWLDamage done by each gunDan's House of GunsDebtDebt of %P paid off to loan shark Debt: %PDepositDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DropDrug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, FightFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame time is up. Leaving game. GhettoGun shop located at %s GunsH I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIndex into %s array should be between 1 and %dInventoryJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Location of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaServer: %sMetaserverMinimum normal price of each drugMinimum number of drugs at each locationMinimum price to hire a bitchMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toNetwork port to connect toNew GameNew name: No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!OpiumPCPPSPay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Resized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, STGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSellSelling %d %tde at %P SendServerServer : %sServer description, reported to the metaserverShroomsSingle playerSo I think I'm going to Amsterdam this yearSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStaten IslandStatsStatus: Attempting to contact %s...Status: Could not connect (%s)Status: Waiting for user inputTRUE if server should report to a metaserverTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: The Marrakesh Express has arrived!The Pope was once Jewish, you knowThe first thing you need to do is pay off your debt to the Loan Shark. AfterThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.Unknown command - try "help" for help... Up since : %sUsers currently logged on:- Using name %s VersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!WeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!defecteddopewars is released under the GNU General Public Licensedopewars server version %s ready and waiting for connections on port %d.drugdrugsescapedgot connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2001-04-08 16:16+01000 Last-Translator: Slawomir Molenda Language-Team: Polish Language: pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Informacje o komendach linni poleceń uzyskasz piszać dopewars -h po twoim znaku zachęty. To wyświetli ekran pomocy z dostępnym opcjami. Z>obaczyć listę serwerów na metaserwerze i wybrać jeden W>yjść (możesz uruchomić serwer pisząc G>rać w trybie single-player W>ypieprz ją z roboty S>zpieguj innego dilera (koszt: %P) Z>akapuj glinom na innego dilera (koszt: %P)Jesteś pewien? %c. %tde%Tde %3d Miejsce %6d%Tde w plecaku%Tde na rynku%d z %d%s przybył, z %d %tde, %s%s zaakceptował twój %tde!^Użyj klawisza G, aby skontaktować się ze szpiegiem%s zwiał!%s opuścił grę.%s opuścił grę. %s odmówił %tde%s jest "%s" %s jest %P %s jest %d %s jest %s %s jest { %s dołączył do gry!%s dołączył do gry. %s zabity %s opuszcza serwer!%s teraz szpieguje %s%s szpiegowanie %s: ZABRONIONE%s stoi i dostaje.%s nałanie glin na %s: ZABRONIONE%s nasłał gliny na %s%s będzie znany jako %s%s będzie teraz znany jako %s.%s: ZABRONIONY przejazd do %s%s: Zasadzkę zrobił %s%s: propozycja była na rachunek %s%s: kablowanie %s zakończone OK.%s[%d] jest %s %s^%s już tu jest!^A>takujesz czy E>wakuujesz się? U>puść A>takuj D>aj zlecenie J>edź Z>obacz S>przedaj G>adaj P>owiedz W>yjścieMagnum/Zlecenia/_Raport szpiegowski.../Zlecenia/_Szpiegowanie.../Zlecenia/_Zasadzka.../Gra/_Nowa.../Gra/_Wyjście.../Pomoc/_O programie.../Zobacz/_Plecak.../Zobacz/_Graczy.../Zobacz/_Wynik.../Rozmowa/Ze _Wszystkimi.../Rozmowa/Z _Graczem.../_Zlecenia/_Gra/_Pomoc/Z_obacz/_Rozmowa<- _SprzedajDzień bez prochów jest jak nocWytrenowana małpa zrobiłaby to lepiej...A:AtakujGracz AI zabity. Normalne wyjście. Gracz AI wyrzucony z serwera. Gracz AI rozpoczął grę; próba kontaktu z serwerem %s:%d...Gracz AI zakończył rozgrywkę. Zakończyć aktualną grę?O grzeKwasĆpuny kupują %tde po absurdalnych cenach!Ilość gotówki, z jaką gracz zaczynaZ jakim długiem zaczyna każdy graczCo dziś wciągnąłeś?Na pewno chcesz wyjść? Jesteś pewien? (%tde albo %tde niesiona przez tę %tde mogą być utracone!)Autentyfikacja dla LocalName z metaserweremDostępne miejsce: %dKSUGPZDAJWKSWBankBank jest w mieście %s Bank %PBarettaOparte są na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja Oparte są na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja rynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie i próby ucieczki gliniarzom! Najpierw musisz spłacić dług Złotym Pasom. Potem twoim celem jest zarobienie tak dużo forsy, jak się da i pozostanie przy życiu! Masz jeden miesiąc na zdobycie fortuny. Tryb śledzenia dla pliku konfiguracjiSlawomir MolendaWarszawaGdyniaKupKupuję %d %tde w %P Kupuję %tde za %P na ruskim bazarze z bronią PZWGNazywacie się dilerami?Nie można utworzyć pliku pid %s: %sNie można obsłużyć przerwania SIGHUP!Nie można obsłużyć przerwania SIGINT!Nie można obsłużyć przerwania SIGTERM!Nie można obsłużyć przerwania SIGUSR1!Nie można obsłużyć przerwania SIGWINCH!Nie można obłużyć potoku!Nie można otworzyć pliku z najlepszymi wynikami %s. (%s) Upewnij się, że masz dostęp do pliku i katalogu, albo podaj nazwę alternatywnego pliku poprzez opcję -f z linni poleceń.KasaKasa: %PGdańskZmień nickaWybierz zadanie dla jednej ze swoich %tde...KokainaŚwieża dostawa marihuany z Holandii! Ceny trawy lecą w dółKomentarzKomentarz: %sPruszkówKonfiguracja może być zmieniona interaktywnie tylko, gdy żaden z graczy nie jest zalogowany. Zaczekaj, aż wszyscy się wylogują lub usuń ich komendami "push" albo "kill" i spróbuj jeszcze raz.Gratulacje! Wpiszesz się na karty historii!Połączenie nawiązane Połączenie z serwerem przerwane - włączenie trybu dla jednego graczaPołączenie z serwerem przerwane! Połączenie z serwerem zerwane! Włączenie trybu dla jednego graczaKonstruktywna krytykaKonstruktywna krytyka Andrea Elliot-Smith Pete WinnZamknijGliny zrobiły obławę na %tde ! Ceny towaru są kosmiczne!Koszt szpiegowania wroga przez dziwkęKoszt napuszczenia na wroga glin przez dziwkęNie można połączyć się z serwerem dopewars (%s) Gracz AI zakończył rozrgrywkę w nietypowy sposób.Nie mogę wystartować trybu multiplayerOdwagi! Zajaraj sobie i się wyluzujesz!D R E S S W A R SD>ilujesz %tde, DUASWZWOObrażenia zadawane prze poszczególne bronieruski bazar z broniąDebetDług %P został spłacony Złotym Pasom Debet: %PDepozytSeparator dla ceny szczególnie taniego dragaCzy Uciekasz czy Atakujesz?Uciekasz?Zamierzasz Z>deponować, W>ycofać gotówkę czy O>puścić bank? Czy twoja stara wie, że jesteś dilerem?ZostawDilowanie dragami i rozwójDilowanie dragami i badania Dan WolfdragiDragi to twój najlepszy przyjaciel, pamiętaj!E:Ewakuuj sięTłumaczenie na polskiTłumaczenie na polski Slawomir MolendaNie można odczytać pliku z najlepszymi wynikami %sEkstensywne testowanie gryEkstensywne testowanie gry Katherine Holt Caroline MooreA:AtakA>takujeszAtakDzięki twoim wskazówkom gliny zasadziły się na %s, który uciekł z %d %tde. Dzięki twoim wskazówkom gliny zasadziły się na %s, który został zastrzelonyInformacje o komendach linni poleceń uzyskasz pisząc dopewars -h poFormat używany dla drogich dragów przez 50% czasuCzas gry się skończył. Opuszczam grę. WrocławSklep z bronią jest w mieście %s brońN A J L E P S Z E W Y N I K IHaszyszCzy ja cie czasem nie widziałem w TV?ZdrowieZdrowie: %dHeroinaHej cieciu, oto %tde jakie są w obiegu:Jak się _nazywasz cieciu?Jak się nazywasz cieciu? Najlepsze wynikiNazwa hostaNazwa hosta: Ile kupujesz? Ile chcesz zostawić? Ile sprzedajesz? Ile forsy oddajesz Złotym Pasom? Ile kasy? Jestem zajebistą prostytutką!Przypominasz mi zafajdanego ćpunaCzuję potrzebę przefarbowania się na niebieskoReklamy tamponów są odjazdoweMasz niezły tyłek...chcesz się zabawić?Kiedyś też byłem śmieciem, tak ja ty.Wiesz, nie zawsze byłam kobietąSprzedać ci trochę pyłku kosmicznego?Hej cieciu, zwolnij trochęZbieram datki na Kościół Zombich ChrystusaIndeks w tablicy %s powinien być pomiędzy 1 i %dPlecakJezus kocha cię bardziej ode mniePodróżPodróż do miasta %tdeJedziesz do %tde z %P kasą i %P debetem Po prostu powiedz NIE...chociaż, może...ok, a niech tam!Zajeb gline, dla Chrystusa!Liczba piosenek, które możesz usłyszećLista rzeczy, które możesz przestać robićLista rzeczy jakie słyszysz na dworcuCo chcesz zobaczyć? G>raczy W>ynikiSiedziba Złotych Pasów jest w mieście %s Położenie Złotych PasówPołożenie bankuPołożenie ruskiego bazaru z broniąPołożenie dyskotekiLufkiEkstazaUżywam pliku %sKrakówMaxClients (%d) przekoroczona wartość - zrywam połączenieMaksymalna cena każdego dragaMaksymalna ilość połączeń TCP/IPMaksymalna ilość dragów dla każdego miejscaMaksymalna wynajęcia dziwkiWiadomośćWiadomość wyświetlana, gdy drag jest szczególnie taniWiadomość:-Metaserwer : %sMetaserwerMinimalna cena każdego dragaMinimalna ilość dragów dla każdego miejscaMinimalna cena wynajęcia dziwkiMnożnik dla szczególnie drogich dragówN:NieN>astępny serwer; P>oprzedni serwer; W>ybierz ten serwer... NPWNazwaNazwa poszczególnych narkotykówNazwa każdej broniNazwa każdej lokacjiNazwa bankuNazwa sklepu z broniąNazwa pliku z najlepszymi wynikamiNazwa Złotych PasówNazwa dyskotekiNazwa serwera do połączenia sięPort do połączeniaNowa GraNowe imię: Nie ma klienta dla biblioteki curses - przekompiluj grę dodając opcję --enable-curses-client to pliku konfigurancyjnego, albo użyj zamiast tego okienkowej wersji klienta (jeżeli jest dostępny). Klient GTK+ niedostępny - skompiluj grę dodając opcję --enable-gui-client do skryptu konfiguracyjnego, albo użyj zamiast tego (jeżeli jest dostępny) klienta opartego na curses. Nie ma aktualnie innych zalogowanych graczy!Nie ma takiego użytkownika! Nie ma żadnych zalogowanych użytkowników Ilość tur (jeżeli 0, brak ograniczeń)Ilość sekund na oddanie strzałuIlośćIlość narkotyków w grzeIlość broni w grzeIlość miejsc w grzeLiczba granych piosenekLiczba komentarzy na dworcuLiczba rzeczy, które możesz przestać robićRomekButPan z Wołomina?Jeden z twoich %tde chodził za %s.^Szpieg %s!OpiumPCPGWSpłać wszystkoZwróć:PeyotlTestowanie gryTestowanie gry Phil Davis Owen WalshGrasz jeszcze raz? Lista graczyGracz usunięty przez przekroczenia czasu przy połączeniuGracz usunięty przez przekroczenie czasu na ruchGraczeGracze są rozłączani po tej liczbie sekundGracze aktualnie zalogowani:-Gracze w grze:- Gracze: %d (maksymalnie %d)Gracze: -nieznani- (maksymalnie %d)Wybierz gracza, którego chcesz szpiegować. Twoja %tde zaoferuje wtedy swoje usługi temu graczowi, i jeżeli on się zgodzi, będziesz w stanie zobaczyć jego statystyki poprzez opcję "Raport szpiegowski" w menu. Pamiętaj, że %tde cię opuści i jakikolwiek %tde albo %tde, którą niesie, może stracić!Wybierz gracza, na którego chcesz napuścić gliny. Twoja %tde pomoże gliniarzom zaatakować gracza i potem wróci, aby zdać raport co się stało. Pamiętaj, że %tde opuści cię tymczasowo, także jakikolwiek %tde albo %tde, którą niesie, może stracić!Wprowadź nazwę hosta i port serwera dopewars:-Proszę czekać... próba kontaktu z serwerem dopewars...Proszę czekać... próba kontaktu z metaserwerem...Policyjne psy skoczyły ci do gardła %d! Upuściłeś jakieś %tde! Ale rozpierdol!dresie!Policja obecna w każdym miejscu (%)PortPort: : %dPort: Preferowana nazwa hosta twojego serweraNaciśnij dowolny klawisz...CenaCena każdej broniDyskoteka jest w mieście %s Wywalam %s PoznańPytanieWyjście z gryU:UciekaszU>ciekasz, Losowe zdarzenia umiarkowaneUważam, że powiniennem cię zastrzelić dla twojego własnego dobra.Zmieniono strukturę listy do %d elementów Konkurencyjni dresiarze opychają tanio lufkiBejzbolP K PS>toisz, SZWKNWyłączono RandomOfferKastet AdidaSLiczba sekund pomiędzy turami komputerowych graczySprzedajSprzedaję %d %tde w %P WyślijSerwerSerwer : %sOpis serwera, zgłaszany do metaserweraGrzybkiPojedyńczy graczPo co ci mózg, jak masz dresyWiesz, nie zawsze byłam kobietąPrzykro mi, ale serwer ma limit %d graczy, który został osiągnięty.^Proszę spróbować połączyć się później.Przykro mi, ale serwer ma limit do 1 gracza, który został osiągnięty. ^Proszę spróbować połączyć się później.Rodzaj klucza sortującego dostępne narkotykiMiejsceMiejsce %6dMiejsce zajmowane przez poszczególną brońSpidySzpieguj graczaRaport szpiegaSzpieg złożył raport o %sRozpoczniej nową gręKozia WólkaStatystykaStatus: Próba kontaktu z %s...Status: Nie mogę się połączyć (%s)Status: Czekam na aktywność useraNiezerowa wartość jeżeli serwer ma się kontaktować z metaserweremNiezerowa wartość jeżeli ten drag ma być szczególnie taniNiezerowa wartość jeżeli ten drag ma być szczególnie drogiMów do wszystkich graczyMów do gracza(y)Nawijaj: Ekspres z Marakeszu przywiózł tani hasz!Zażywasz-przegrywasz!Najpierw musisz spłacić dług Złotym Pasom. Potem twoim celem jestJakaś kobieta stojąca obok na dworcu powiedziała^"%s"%sRynek jest pełen taniego, domowej roboty kwasu!Serwer zakończył pracę. Serwer został zatrzymany. Włączenie trybu dla jednego gracza.Serwer został zatrzymany. Włączenie trybu dla jednego gracza.Nie ma tyle gotówki w banku...Nie ma tyle gotówki w banku...Nic się nie liczy oprócz pieniędzyMyślisz, że jesteś taki twardy, aby ze mną dilować?Program został skompilowany bez wsparcia dla sieci i nie może zachowywać się jakby był komputerowym graczem. Skonfiguruj z opcją --enable-networking i przekompilujLiczba sekund na nawiązanie połącznia albo zerwanieNapuść glinyZa późno - %s właśnie zwiał!Twój płaszczNie można odczytać pliku z najlepszymi wynikami %sNie można zapisać do pliku z najlepszymi wynikami %sNiekonstruktywna krytykaNiekonstruktywna krytyka James MatthewsNiestety jakiś cieć używa już twojego nicka. Zmień go.Niestety jakiś cieć używa już twojego nicka. Zmień go. twoim znaku zachęty. To wyświetli ekran pomocy z dostępnym opcjami.Nieznana komenda - spróbuj "help",aby uzyskać pomoc... Od : %sUżytkownicy aktualnie zalogowani:= Używa imienia %s WersjaWersja : %sWersja %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netWersja %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars są publikowane zgodnie z GNU General Public License OstrzeżenieCzy twoja laska nie była cudowna w tym porno?Używamy tylko 10% naszego mózgu, czemu nie zjarać reszty?Wygramy tę wojnę o narkotyki!MarihuanaCo chcesz zostawić? Co chcesz kupić? Co chcesz sprzedać? Dokąd jedziesz ? Do kogo prywatnie zagadujesz ? Kogo chcesz szpiegować? Na kogo chcesz nasłać gliny? K>upK>upić, S>przedać, czy W>yjść? Chcesz... P>ołączyć się z innym hostem i/lub portemZwycięzcy nie używają dragów...dopóki są zwycięzcamiWycofaj sięSłowo określające jedną "dziwkę"Słowo określające jednego dragaSłowo określające jedną brońSłowo określające dwie lub więcej "dziwek"Słowo określające więcej dragówSłowo określające więcej broniChcesz landrynkę kotku?Byłoby fajnie gdyby wszyscy wyszli na ulicę i się pieprzyliT:TakYNYN^Płacisz doktorowi %P, żeby cię pozszywał?YN^Hej koleś! Pomogę ci ponieść %tde za jedyne %P. Zgadzasz się?YN^Znalazłeś trochę ziela, które pachnie tak świeżo!^Dobrze wygląda! Zapalisz? YN^Chciałbyś kupić %tde za %P?YN^Chciałbyć kupić większy płaszcz za %P?YN^Chciałbyś odwiedzić %tde?YN^^Chciałbyś wynająć %tde za %P?Masz teraz %d %tdeStać cię na %dStać cię na %d, a możesz unieść %d. Nie dostaniesz forsy za to ci niesiesz %tde :Nawet się nie wpiszesz, cieniasie...Nie masz żadnej %tde do sprzedania!Nie masz nic do opchnięcia!Nie masz tyle kasy na %tde!Nie masz wystarczająco dużo miejsca, aby unieść tę %tde!Nie masz tak dużo kasy!Znalazłeś %d %tde przy zwłokach jakiegoś ćpuna w WC!Miałeś haluny przez trzy dni i najlepszego tripa w swoim życiu!^Potem umarłeś, bo dla twojego mózga ta wycieczka była za mocna!Posiadasz %d. Zostałeś wyrzucony z serwera. Włączenie trybu dla jednego gracza.Zostałeś wyrzucony z serwera. Włączenie trybu dla jednego gracza.Masz jeden miesiąc na zdobycie fortuny.Słyszysz jak ktoś puszcza %sTrafisz i zabijasz %sNiezły dres, widzę, że zarabiasz na tym gównie kupę szmaluSpotykasz starego dilera! Daje ci %d %tde.Spotkałeś przyjaciela! Dajesz mu %d %tde.Stoisz tam jak idiota.Zatrzymujesz się i %s.Zostałeś obrzygany w pociągu!Będziesz potrzebował więcej %tde aby jeszcze unieść %tde!Twój czas dilerki dobiegł końca...Mamuśka zrobiła ci kanapki z odrobiną %tde! Były super!Twój szpieg pracujący nad %s został odkryty!^Szpieg %s!Zzzzz... dilujesz cukiereczku czy co?^ (tak ci się przynajmniej wydaje, że TO powiedziała)_Tryb `antyczny`_Atakuj_Kup ->Z_aniechaj_Zamknij_Połącz_Diluj %Tde_Zostaw <-_Ewakuuj się_Atakujesz_Pomoc_Jedź_Nie_Uciekasz_Szpiegowanie (%P)_Stoisz_Rozpocznij grę dla jednego gracza_Zasadzka (%P)_Tak`Tata diler` by Kazik na żywo`Czy jesteś doświadczony` by Alex Sex Band`Chodź tu i pokaż mi swe paski` by Dress Attack`Dziewczyna drezyna` by BoYz`Spuszczę ci się do środka` by Spanky Doggy Dog`Firestarter` by Prodigy`Killin' floor` by Body Count`Blondyna Maryna` by Just Five`Mój dom, mój pies` by Krzysztof Krawczyk`Zalegalizuj To` by Kaliber 45`Taste like drug spirit` by Nirvana`Murzyn Mariusz` by Acid Drinkers`Viva Gołota` by Calabash`Mandatory Cocaine Song` by Flapjack`Zagubiona miłość` by Classic`Czarnuchy na kwasie` by Skinner`Biały króliczek` by Marylin Mansonkurewsko uzbrojony po zębyza %Pdziwkadziwkii próby ucieczki od gliniarzy.uszkodził dopewars są publikowane zgodnie z GNU General Public Licenseserwer dopewars w wersji %s gotowy i oczekuje połączeńna porcie %d.dragdragiusciekłpołączenie z %sbrońbrońpijesz browardobrze uzbrojonyrynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie lekko uzbrojonycałkiem nieźle uzbrojonyalbo K>ontakt ze szpiegami i raporcik N>ie ma być żadnego zlecenia ? czy W>yjście beznadziejnie uzbrojonyczujesz, że musich sobie ulżyćwypalasz cygaropalisz fajepalisz skrętazarobienie tak dużo forsy, jak się da i pozostanie przy życiu!banksiedziba Złotych Pasów`Zasadź Krzaka, zarzuć Kwacha` by Degenerate Politicsdyskotekazostał postrzelonydopewars-1.6.2/po/POTFILES.in000644 000765 000024 00000000570 14256000065 015446 0ustar00benstaff000000 000000 # List of source files containing translatable strings src/dopewars.c src/util.c src/curses_client/curses_client.c src/gui_client/gtk_client.c src/gui_client/optdialog.c src/gui_client/newgamedia.c src/gtkport/gtkport.c src/cursesport/cursesport.c src/winmain.c src/serverside.c src/error.c src/message.c src/network.c src/admin.c src/configfile.c src/AIPlayer.c src/sound.c dopewars-1.6.2/po/Makefile.in.in000644 000765 000024 00000046213 14256000065 016347 0ustar00benstaff000000 000000 # Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-2000 Ulrich Drepper # Copyright (C) 2000-2020 Free Software Foundation, Inc. # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. # # Origin: gettext-0.21 GETTEXT_MACRO_VERSION = 0.20 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SED = @SED@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ # When building gettext-tools, we prefer to use the built programs # rather than installed programs. However, we can't do that when we # are cross compiling. CROSS_COMPILING = @CROSS_COMPILING@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = @MSGMERGE@ MSGMERGE_UPDATE = @MSGMERGE@ --update MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot POFILESDEPS_yes = $(POFILESDEPS_) POFILESDEPS_no = POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT)) DISTFILESDEPS_ = update-po DISTFILESDEPS_yes = $(DISTFILESDEPS_) DISTFILESDEPS_no = DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO)) # Makevars gets inserted here. (Don't remove this line!) all: all-@USE_NLS@ .SUFFIXES: .SUFFIXES: .po .gmo .sed .sin .nop .po-create .po-update # The .pot file, stamp-po, .po files, and .gmo files appear in release tarballs. # The GNU Coding Standards say in # : # "GNU distributions usually contain some files which are not source files # ... . Since these files normally appear in the source directory, they # should always appear in the source directory, not in the build directory. # So Makefile rules to update them should put the updated files in the # source directory." # Therefore we put these files in the source directory, not the build directory. # During .po -> .gmo conversion, take into account the most recent changes to # the .pot file. This eliminates the need to update the .po files when the # .pot file has changed, which would be troublesome if the .po files are put # under version control. $(GMOFILES): $(srcdir)/$(DOMAIN).pot .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && $(GMSGFMT) --statistics --verbose -o $${lang}.gmo $${lang}.1po && rm -f $${lang}.1po"; \ cd $(srcdir) && \ rm -f $${lang}.gmo && \ $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && \ $(GMSGFMT) --check-header --check-domain --statistics --verbose -o t-$${lang}.gmo $${lang}.1po && \ mv t-$${lang}.gmo $${lang}.gmo && \ rm -f $${lang}.1po .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all-yes: $(srcdir)/stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. CHECK_MACRO_VERSION = \ test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, $(srcdir)/stamp-po is a nop (i.e. a phony target). # $(srcdir)/stamp-po is a timestamp denoting the last time at which the CATALOGS # have been loosely updated. Its purpose is that when a developer or translator # checks out the package from a version control system, and the $(DOMAIN).pot # file is not under version control, "make" will update the $(DOMAIN).pot and # the $(CATALOGS), but subsequent invocations of "make" will do nothing. This # timestamp would not be necessary if updating the $(CATALOGS) would always # touch them; however, the rule for $(POFILES) has been designed to not touch # files that don't need to be changed. $(srcdir)/stamp-po: $(srcdir)/$(DOMAIN).pot @$(CHECK_MACRO_VERSION) test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch $(srcdir)/stamp-po" && \ echo timestamp > $(srcdir)/stamp-poT && \ mv $(srcdir)/stamp-poT $(srcdir)/stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. # The determination of whether the package xyz is a GNU one is based on the # heuristic whether some file in the top level directory mentions "GNU xyz". # If GNU 'find' is available, we avoid grepping through monster files. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed package_gnu="$(PACKAGE_GNU)"; \ test -n "$$package_gnu" || { \ if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep -i 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \ else \ LC_ALL=C grep -i 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ fi; \ } | grep -v 'libtool:' >/dev/null; then \ package_gnu=yes; \ else \ package_gnu=no; \ fi; \ }; \ if test "$$package_gnu" = "yes"; then \ package_prefix='GNU '; \ else \ package_prefix=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_prefix}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot-header; then \ sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \ cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po && \ rm -f $(DOMAIN).1po \ || exit 1; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(POFILESDEPS) @test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} --previous $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ 0.1[6-7] | 0.1[6-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --previous $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} --previous $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: install-dvi install-ps install-pdf install-html: mostlyclean: rm -f remove-potcdate.sed rm -f $(srcdir)/stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f $(srcdir)/$(DOMAIN).pot $(srcdir)/stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: $(srcdir)/stamp-po $(DISTFILES) @dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ else \ case $(XGETTEXT) in \ :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \ *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the contents of the POTFILES.in file and the XGETTEXT_OPTIONS in the Makevars file." 1>&2;; \ esac; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang --previous $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ 0.1[6-7] | 0.1[6-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --previous -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang --previous -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dopewars-1.6.2/po/dopewars.pot000644 000765 000024 00000264523 14256242752 016266 0ustar00benstaff000000 000000 # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Ben Webb # This file is distributed under the same license as the dopewars package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: dopewars SVN\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "" #: src/dopewars.c:196 msgid "the Bank" msgstr "" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "" #: src/dopewars.c:197 msgid "the pub" msgstr "" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "" #: src/dopewars.c:281 msgid "Metaserver URL to report/get server details to/from" msgstr "" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "" #: src/dopewars.c:464 msgid "Name of each location" msgstr "" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "" #: src/dopewars.c:703 msgid "cop" msgstr "" #: src/dopewars.c:703 msgid "cops" msgstr "" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "" #: src/dopewars.c:709 msgid ".38 Special" msgstr "" #: src/dopewars.c:710 msgid "Ruger" msgstr "" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "" #: src/dopewars.c:719 msgid "Cocaine" msgstr "" #: src/dopewars.c:720 msgid "Hashish" msgstr "" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "" #: src/dopewars.c:722 msgid "Heroin" msgstr "" #: src/dopewars.c:723 msgid "Ludes" msgstr "" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" #: src/dopewars.c:725 msgid "MDA" msgstr "" #: src/dopewars.c:726 msgid "Opium" msgstr "" #: src/dopewars.c:727 msgid "PCP" msgstr "" #: src/dopewars.c:728 msgid "Peyote" msgstr "" #: src/dopewars.c:729 msgid "Shrooms" msgstr "" #: src/dopewars.c:730 msgid "Speed" msgstr "" #: src/dopewars.c:731 msgid "Weed" msgstr "" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "" #: src/dopewars.c:741 msgid "Ghetto" msgstr "" #: src/dopewars.c:742 msgid "Central Park" msgstr "" #: src/dopewars.c:743 msgid "Manhattan" msgstr "" #: src/dopewars.c:744 msgid "Coney Island" msgstr "" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "" #: src/dopewars.c:746 msgid "Queens" msgstr "" #: src/dopewars.c:747 msgid "Staten Island" msgstr "" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "" #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "" #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "" #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "" #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "" #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "" #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "" #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "" #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "" #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "" #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr "" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr "" #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "" #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "" #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "" #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "" #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "" #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "" #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "" #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "" #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "" #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "" #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr "" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr "" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr "" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "" #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "" #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr "" #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "" #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "" #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "" #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "" #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "" #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "" #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "" #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "" #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "" #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "" #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "" #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "" #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "" #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr "" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr "" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr "" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr "" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr "" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr "" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr "" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr "" #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "" #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "" #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "" #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "" #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "" #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "" #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "" #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "" #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "" #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "" #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "" #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "" #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "" #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "" #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "" #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "" #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "" #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "" #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "" #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "" #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Metaserver URL" msgstr "" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "" #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "" #: src/serverside.c:73 msgid "defected" msgstr "" #: src/serverside.c:73 msgid "was shot" msgstr "" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:129 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "" #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "" #: src/serverside.c:437 #, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "" #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1287 msgid "New admin connection" msgstr "" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1681 msgid "Command:" msgstr "" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "" #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "" #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "" #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "" #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "" #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "" #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "" #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:156 msgid "WinSock version not supported" msgstr "" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "" #: src/error.c:158 msgid "Address already in use" msgstr "" #: src/error.c:159 msgid "Cannot reach the network" msgstr "" #: src/error.c:160 msgid "The connection timed out" msgstr "" #: src/error.c:161 msgid "Out of file descriptors" msgstr "" #: src/error.c:162 msgid "Out of buffer space" msgstr "" #: src/error.c:163 msgid "Operation not supported" msgstr "" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "" #: src/error.c:166 msgid "Connection refused" msgstr "" #: src/error.c:167 msgid "Address family not supported" msgstr "" #: src/error.c:168 msgid "Protocol not supported" msgstr "" #: src/error.c:169 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "" #: src/message.c:1337 msgid "pitifully armed" msgstr "" #: src/message.c:1338 msgid "lightly armed" msgstr "" #: src/message.c:1339 msgid "moderately well armed" msgstr "" #: src/message.c:1340 msgid "heavily armed" msgstr "" #: src/message.c:1340 msgid "armed to the teeth" msgstr "" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "" #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "" #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "" #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "" #: src/message.c:1384 msgid "You got away!" msgstr "" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "" #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "" #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "" #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "" #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "" #: src/message.c:1437 msgid " You find %P on the body!" msgstr "" #: src/message.c:1439 msgid " You loot the body!" msgstr "" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "" #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "" #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.6.2/po/nn.po000644 000765 000024 00000373530 14256242752 014670 0ustar00benstaff000000 000000 # translation of nn_new.po to Norsk nynorsk # translation of nn.po to Norsk nynorsk # Norwegian Nynorsk translation for dopewars. Might work with version 1.5.6. # Copyright (C) 2002 Åsmund Skjæveland # # # # %t-kodar: # # ue - ubunden eintal # be - bunden eintal # uf - ubunden fleirtal # bf - bunden fleirtal # First author: Åsmund Skjæveland , 2002. # Åsmund Skjæveland , 2003. # # msgid "" msgstr "" "Project-Id-Version: nn_new\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2003-08-31 22:58+0200\n" "Last-Translator: Åsmund Skjæveland \n" "Language-Team: Norsk nynorsk \n" "Language: nn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "hore_ue_hore_be_hora" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "horer_uf_horer_bf_horene" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "våpen_ue_våpen_be_våpenet" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "pistolar_uf_pistolar_bf_pistolane" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "dop_ue_dop_be_dopet" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "dop_uf_dop_bf_dopa" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "%d-%m/%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "Lånehaien" #: src/dopewars.c:196 msgid "the Bank" msgstr "Banken" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "Vidar's Våpen" #: src/dopewars.c:197 msgid "the pub" msgstr "puben" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Nettverksport å kopla til" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Namn på poengfila" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Namn på tenaren du vil kopla deg til" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Tenaren si velkomsthelsing for dagen" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Netverkadressa tenaren skal lytta på" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE viss ein SOCKS-tenar skal brukast i nettverket" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE viss numerisk brukar-ID skal brukast for SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Viss ikkje blank, brukarnamnet som skal brukast til SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "Vertsnamnet på SOCKS-tenaren" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "Portnummeret på SOCKS-tenaren" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "Versjonen av SOCKS-protokollen du vil bruka (4 eller 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Brukarnamn for SOCKS5-autentisering" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Passord for SOCKS5-autentisering" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE viss tenaren skal rapportera til ein metatenar" #: src/dopewars.c:281 #, fuzzy msgid "Metaserver URL to report/get server details to/from" msgstr "Metatenar å rapportera til/få tenar-detaljar frå" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "Føretrukke vertsnamn på tenarmaskinen din" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Autentisering for LocalName med metatenaren" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Tenarskildring, rapportert til metatenaren" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Viss TRUE, vil tenaren minimera til systemtrauet" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "Viss TRUE, så vil tenaren køyra i bakgrunnen" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "Kommandoen som startar nettlesaren din" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Tal på rundar i spelet (viss 0 vil spelet aldri slutta)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "Dagen i månaden som spelet startar på" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "Månaden spelet startar i" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "Året spelet startar i" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "Valutasymbolet (t.d. $)" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "Viss TRUE, går valutasymbolet framfor prisane" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "Fil som loggmeldingar skal skrivast til" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "Kontrollerer talet på loggmeldingar som blir laga" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "strftime()-format-streng for logg-tidsmerker" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Tilfeldige hendingar er rensa" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE viss verdien av det kjøpte dopet skal hugsast" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Vér ordrik når oppsettfila blir lest" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Tal på stader i spelet" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Tal på typar politimenn i spelet" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Tal på våpen i spelet" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Tal på sortar dop i spelet" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Staden Lånehaien held til" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Staden banken held til" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Staden våpenbutikken held til" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Staden puben held til" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "Dagleg rente på gjelda til lånehaien" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "Dagleg rente på innskotet i banken" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Namnet på lånehaien" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Namnet på banken" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Namnet på våpenforretningen" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Namnet på puben" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "SANN for å slå på lyd" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "Lyd som blir spelt når eit skot treff" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "Lyd som blir spelt når eit skot bommar" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "Lyd som blir spelt når våpna blir lada" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "Lyd som blir spelt når ei fientleg hore eller betjent blir drepen" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "Lyd som blir spelt når ei av horene dine blir drepen" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" "Lyd som blir spelt når ein annan spelar eller ei politimann blir drepen" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "Lyd som blir spelt når du blir drepen" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "Lyd som blir spelt når ein spelar ikkje klarer å koma seg unna" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "Lyd som blir spelt når du ikkje klarer å koma deg unna" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "Lyd som blir spelt når ein spelar klarer å koma seg unna" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "Lyd som blir spelt når du klarer å koma deg unna" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "Lyd som blir spelt når du kjem til ein ny stad" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "Lyd som blir spelt når du sender ei offentleg melding" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "Lyd som blir spelt når du sender ei privat melding" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "Lyd som blir spelt når ein annan blir med i spelet" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "Lyd som blir spelt når ein spelar går ut av spelet" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "Lyd som blir spelt i byrjinga av spelet" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "Lyd som blir spelt i slutten av spelet" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Sorteringsnøkkel for lista over det tilgjengelege dopet" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Tal på sekund du har på deg til å skyta tilbake" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Spelarar blir kopla frå etter så mange sekund" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Tida i sekund for å kopla til eller bryta samband" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Maksimalt tal på TCP/IP-sambandar" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Sekund mellom rundane for AI-spelarar" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Kor mykje pengar kvar spelar startar med" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Kor mykje gjeld kvar spelar startar med" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Namn på kvar stad" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Politinærleik på kvar stad (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Minste tal på dopsortar på kvar plass" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Største tal på dopsortar på kvar plass" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "% motstand mot skot for kvar spelar" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "% motstand mot skot for kvar hore" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Namn på kvar politimann" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Namn på kvar politimann sin betjent" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Namn på kvar politimann sine betjentar" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "% motstand mot skot for kvar purk" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "% motstand mot skot for kvar politibetjent" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Åtaks-handikap relativt til ein spelar" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Forsvars-handikap relativt til ein spelar" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Minste tal på politibetjentar" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Største tal på politibetjentar" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "Null-basert indeks på våpenet politiet er væpna med" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Tal på våpen kvar politimann har" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "Tal på våpen kvar politibetjent har" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Namn på kvart dop" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Minste vanlege pris på kvart dop" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Største vanlege pris på kvart dop" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE viss dette dopet kan vera ekstra billeg" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE viss dette dopet kan vera ekstra dyrt" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Melding som skal visast når dette dopet er ekstra billeg" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Formatstreng brukt for dyrt dop 50% av tida" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "Tal som prisen på dopet skal delast på når det er ekstra billeg" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Tal som prisen på dopet skal gangast med når det er ekstra dyrt" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Namn på kvart våpen" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Prisen på kvart våpen" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Plassen kvart våpen tek" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Skaden kvart våpen gjer" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Ord for ei einskild «hore»" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Ord for to eller fleire «horer»" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Ord for eit einskild våpen eller tilsvarande" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Ord for to eller fleire våpen" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Ord for eit einskild narkotikum eller tilsvarande" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Ord for to eller fleire slag dop" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "strftime() formatstreng for å visa tida i spelet" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Prisen for at ei hore skal spionera på fienden" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "Prisen for at ei hore skal tipsa politiet om ein fiende" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Minstepris for å tilsetja ei hore" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Høgaste pris for å tilsetja ei hore" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Liste over ting du høyrer på T-banen" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Tal på ting som blir sagt på T-banen" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Liste over songar du kan høyra bli spelt" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Tal på sogar som spelar" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Liste over ting du kan stoppa for å gjera" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Tal på ting du kan stoppa for å gjera" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` av Jimi Hendrix" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` av Tone Loc" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Comin' in to Los Angeles` av Arlo Guthrie" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Commercial` av Spanky and Our Gang" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Late in the Evening` av Paul Simon" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Light Up` av Styx" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` av Jefferson Airplane" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`One toke over the line` av Brewer & Shipley" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`The Smokeout` av Shel Silverstein" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` av Jefferson Airplane" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Itchycoo Park` av Small Faces" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` av the Tubes" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` av the Moody Blues" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Eight Miles High` av the Byrds" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Acapulco Gold` av Riders of the Purple Sage" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Kicks` av Paul Revere & the Raiders" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "Nixon-opptaka" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize It` av Mojo Nixon & Skid Roper" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "tar ein øl" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "røyker ei bønne" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "røyker ein sigar" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "røyker ein bong" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "røyker ein sigarett" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Politimeister Bastian" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "betjent" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "betjentar" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Lensmann Peder" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Agent Smith" #: src/dopewars.c:703 msgid "cop" msgstr "politimann" #: src/dopewars.c:703 msgid "cops" msgstr "politimenn" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "Beretta" #: src/dopewars.c:709 msgid ".38 Special" msgstr ".38 Spesial" #: src/dopewars.c:710 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Sprettert" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Syre" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "Marknaden er oversvømt med billeg heimelaga syre!" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Kokain" #: src/dopewars.c:720 msgid "Hashish" msgstr "Hasj" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "Marrakesh-ekspressen er her!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Heroin" #: src/dopewars.c:723 msgid "Ludes" msgstr "Hypparar" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "Andre pusharar plyndra eit apotek og sel billege hypparar!" #: src/dopewars.c:725 msgid "MDA" msgstr "MDA" #: src/dopewars.c:726 msgid "Opium" msgstr "Opium" #: src/dopewars.c:727 msgid "PCP" msgstr "PCP" #: src/dopewars.c:728 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Flein" #: src/dopewars.c:730 msgid "Speed" msgstr "Speed" #: src/dopewars.c:731 msgid "Weed" msgstr "Jazztobakk" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Columbiansk lasteskip lurte kystvakta! Jazztobakkprisen stuper!" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "Grünerløkka" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Tøyen" #: src/dopewars.c:742 msgid "Central Park" msgstr "Majorstuen" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Karl Johan" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Sagene" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "Oslo S" #: src/dopewars.c:746 msgid "Queens" msgstr "Bjølsen" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Frogner" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Politiet gjorde eit kjempebeslag av %tde! Prisane er skyhøge!" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Narkomane kjøper %tde til avsindige prisar!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Ville det ikkje vore festleg viss alle plutseleg kvekkte samtidig?" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "Paven var jøde ein gong, veit du." #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Eg er sikker på at du har nokon ordentleg interessante draumar." #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Eg trur eg skal reisa til Amsterdam i år" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Guten min, du treng ein gul hårklipp." #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Eg synest det er fantastisk kva dei får til med røykjelse no til dags." #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "Eg har ikkje vore kvinne heile livet, veit du" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "Veit mora di at du sel dop?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "Er du høg på noko?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Å, du må vera frå California" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "Eg var hippie sjølv ein gong i tida" #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Det er ingenting som å ha mykje pengar" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "Du ser ut som eit beltedyr!" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Eg trur ikkje på Ronald Reagan" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "Ha mot! Bush er ein nuddel!" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "Har eg ikkje sett deg på fjernsynet?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "Eg synest hemorroidereklamar er ordentleg flotte!" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "Me vinn krigen mot narkotika!" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "Ein dag utan dop er som ei natt" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "Me bruker berre 20% av hjernane våre, så kvifor ikkje øydeleggja resten" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Eg samlar inn pengar til Zomibiar for Kristus" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Eg vil gjerne selja deg ein etande puddel" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Vinnarar dopar seg ikkje... viss ikkje dei gjer det" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "Kverk ein purk for Jesus!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Eg er kvalrossen!" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Jesus elskar deg meir enn du veit" #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Eg har slik ei voldsom lyst til å farga håret mitt blått" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Var ikkje Jane Fonda fantastisk i Barbarella" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Berre sei nei! Eller, kanskje... ok, faen heller!" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "Vil du ha ein seigmann?" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "Dopet kan vera vennen din!" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Kan ikkje tolka oppsettfila %s, linje %d" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "Klarte ikkje å opna fila %s" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Oppsettet kan berre endrast interaktivt når ingen spelarar\n" " er logga på. Vent til alle spelarane har logga av, eller\n" "fjern dei med dytt- eller-drep-kommandoane, og prøv igjen." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Indeks til %s array burde vore mellom 1 og %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s er %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s er %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s er %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s er «%s»\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] er %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s er { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s kan ikkje vera mindre enn %d - ignorerer!" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s kan ikkje vera større enn %d - ignorerer!" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Forandra storleiken på strukturlista til %d element\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Venta ein boolsk verdi (ein av 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "Kr. " #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=TRUE" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FIL bruk lydmodul «FIL»\n" " " #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fil bruk lydmodul «fil»\n" "\t " #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "(%s tilgjengeleg)\n" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versjon %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Bruk: dopewars [VAL]...\n" "Dop-pushe-spel tufta på «Drug Wars» av John E. Dell\n" " -b, --no-color, «svart-kvitt» - mao. ikkje bruk fine fargar\n" " --no-colour (fargar blir normalt brukt viss mogleg)\n" " -n, --single-player vér kjedeleg og ikkje kopla til nokon\n" " tilgjengelege dopewars-vertar\n" " (mao. ein-spelar-modus)\n" " -a, --antique «antikk» dopewars - gjer spelet så likt den\n" " opprinnelege versjonen som råd er\n" " (utan nettverksspel)\n" " -f, --scorefile=FIL sei kva for ei fil som skal brukast som " "poengtavle\n" " (normalt blir %s/dopewars.sco brukt)\n" " -o, --hostname=ADR sei kva for ein vertmaskin som skal koplast til\n" " for fleirspelar-modus\n" " -s, --public-server køyr i vertsmodus (merk: sjå -A-opsjonen for å\n" " stilla inn tenaren når han er i gang)\n" " -S, --private-server køyr ein «privat» tenar (ikkje sei ifrå til\n" " metatenaren)\n" " -p, --port=PORT nettverksporten som skal brukast (normalt: 7902)\n" " -g, --config-file=FIL bane til ei oppsettfil for dopewars\n" " denne fila blir lest med ein gong -g-opsjonen\n" " blir lest\n" " -r, --pidfile=FIL bruk denne pid-fila når tenaren køyrer\n" " -l, --logfile=FIL skriv logg til denne fila\n" " -A, --admin kopla til ein lokalt køyrande tenar for\n" " administrasjon\n" " -c, --ai-player skap og køyr ein datastyrt spelar\n" " -w, --windowed-client tving bruk av grafisk klient (GTK+ eller Win32)\n" " -t, --text-client tving bruk av tekstklient (curses)\n" " (standard er å bruka ein grafisk klient når\n" " mogleg)\n" " -P, --player=NAMN Sett namnet på spelaren\n" " -C, --convert=FIL konverter ei poengfil i gamalt format til det\n" " nye formatet\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help vis denne hjelpeteksten\n" " -v, --version vis versjonsinformasjon og avslutt\n" "\n" "dopewars er Copyright (C) Ben Webb 1998-2022, og er tilgjengeleg under GNU " "GPL\n" "Rapportér feil til forfattaren på benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Bruk: dopewars [VAL]...\n" "Dop-pushe-spel tufta på «Drug Wars» av John E. Dell\n" " -b «svart-kvitt» - mao. ikkje bruk fine fargar\n" " (fargar blir normalt brukt viss terminalen støttar det)\n" " -n vér kjedeleg og ikkje kopla til nokon tilgjengelege\n" " dopewars-vertar (mao. ein-spelar-modus)\n" " -a, «antikk» dopewars - gjer spelet så likt den\n" " opprinnelege versjonen som råd er (utan nettverksspel)\n" " -f fil sei kva for ei fil som skal brukast som poengtavle\n" " (normalt blir %s/dopewars.sco brukt)\n" " -o adr sei kva for ein vertmaskin som skal koplast til\n" " for fleirspelar-modus\n" " -s køyr i vertsmodus (merk: sjå -A-opsjonen for å\n" " stilla inn tenaren når han er i gang)\n" " -S køyr ein «privat» tenar (ikkje sei ifrå til metatenaren)\n" " -p port nettverksporten som skal brukast (normalt: 7902)\n" " -g fil bane til ei oppsettfil for dopewars\n" " denne fila blir lest med ein gong -g-opsjonen blir lest\n" " -r fil bruk denne pid-fila når tenaren køyrer\n" " -l fil skriv logg til denne fila\n" " -c skap og køyr ein datastyrt spelar\n" " -w tving bruk av grafisk klient (GTK+ eller Win32)\n" " -t tving bruk av tekstklient (curses)\n" " (standard er å bruka ein grafisk klient når mogleg)\n" " -P namn Sett namnet på spelaren\n" " -C fil konverter ei poengfil i gamalt format til det nye formatet\n" " -A kopla til ein lokalt køyrande tenar for administrasjon\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, vis denne hjelpeteksten\n" " -v, vis versjonsinformasjon og avslutt\n" "\n" "dopewars er Copyright (C) Ben Webb 1998-2022, og er tilgjengeleg under GNU " "GPL\n" "Rapportér feil til forfattaren på benwebb@users.sf.net\n" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Curses-klient er ikkje tilgjengeleg. Kompilér opp binærfila\n" "på nytt, med valet --enable-curses-client til configure,\n" "eller bruk ein grafisk klient (viss tilgjengeleg) i staden.\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Ingen grafisk klient tilgjengeleg. Kompilér opp\n" "binærfila på nytt, med valet --enable-gui-client til\n" "configure, eller bruk tekstmodus-klienten (viss\n" "tilgjengeleg) i staden.\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Denne binærfila har blitt kompilert utan støtte for nettverk,\n" "og kan ikkje køyra som tenar. Kompilér på nytt, og gi valet\n" "--enable-networking til configure-skriptet.\n" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Norsk omsetjing Åsmund Skjæveland" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "dopewars er tufta på Drug Wars av John E. Dell, og er ei simulering" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "av ein oppdikta narkotikamarknad. Skap rikdomen din ved å kjøpa" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "og selja narkotika. Ikkje lat politiet ta deg!" #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "Det fyrste du må gjera er å betala gjelda di til lånehaien." #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "Etter det, er målet ditt å tena så mykje pengar som råd (og halda deg i " "live)!" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "Du har ein månad i speletid på å skapa formuen din." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Versjon %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars er tilgjengeleg under GNU General Public License" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "Ikon og grafikk Ocelot Mantis" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Lydar Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Dopsal og research Dan Wolf " #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Speltesting Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Grundig speltesting Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Konstruktiv kritikk Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Ukonstruktiv kritikk James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "For informasjon om kommandolinevala, skriv dopewars -h på" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "Unix-kommandolina. Det viser ein hjelpetekst med dei tilgjengelege vala." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Skriv vertsnamnet og porten på ein dopewars-tenar:" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Vertsnamn:" #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Port:" #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Vent litt... prøver å kontakta metatenar..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Tenar : %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Port : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Versjon : %s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Spelarar: -ukjent- (maksimum %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Spelarar: %d (maksimum %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "Oppe sidan : %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Kommentar: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "N>este tenar: F>ørre tenar: V>el denne tenaren" #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "NFV" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Kopla til SOCKS-tenar %s..." #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "Autentiserer mot SOCKS-tenar" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Ber SOCKS om samband til %s..." #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "Treng SOCKS-autentisering (skriv eit blankt brukarnamn for å avbryta)" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "Brukarnamn:" #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "Passord:" #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Vent litt... prøver å kopla til dopewars-tenar..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "Kan ikkje henta metatenar-detaljar" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "Kunne ikkje starta fleirspelar dopewars" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "Vil du K>opla til ein bestemt dopewars-tenar" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>ista tenarane på metatenaren, og velga ein" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " A>vslutta (du kan starta ein tenar med «dopewars -s»)" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " eller S>pela åleine? " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "KLAS" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "Kor til, kompis? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "%/Liste over stader/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Du kan ikkje få nokon pengar for desse %tbf:" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "Kva vil du kasta? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "Kor mange vil du kasta? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "Kva vil du kjøpa? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "Kva vil du selja? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Du har råd til %d, og kan béra %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "Kor mange vil du kjøpa? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Du har %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "Kor mange vil du selja? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Vel eit ærend å gje ei av %tbf dine ..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " S>pionér på ein annan pushar (pris: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " T>ipsa politiet om ein annan pushar (pris: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " H>a seg vekk" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "eller K>ontakta spionane dine og få rapportar" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "eller I>ngenting?" #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "STHKI" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "Kven vil du spionera på?" #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "Kven vil du tipsa purken om?" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr "Er du sikker?" #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "JN" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "Er du viss på at du vil avslutta? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Nytt namn:" #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Du har blitt dytta av tenaren. Byter til einspelar-modus." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "Tenaren har stengt. Byter til einspelar-modus." #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "%s blir med i spelet!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s har forlatt spelet." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s er no kjend som %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "T - B A N E" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "%/Staden du er no/%tde" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Diverre er det alt nokon som brukar «ditt» namn. Vér snill og byt det." #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "P O E N G L I S T E" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "Du har ikkje noko %tde å selja!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "Du har ikkje noko å selja!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Du treng fleire %tde for å bera meir %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Du har ikkje nok plass til å bera det %tde!" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Du har ikkje nok pengar til å kjøpa det %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Vil du K>jøpa, S>elja eller G>å?" #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "KSG" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "Kor mykje pengar vil du betala tilbake?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "Du har ikkje så mykje pengar!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Vil du S>etja inn pengar, T>a ut pengar, eller G>å?" #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "STG" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "Kor mykje pengar?" #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "Du har ikkje så mykje i banken." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "J:Ja" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:Nei" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "S:Spring" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "K:Kjemp" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Angrip" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "U:Unngå" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Trykk ein tast..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "Meldingar (-/+ rullar opp/ned)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Status" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Kontantar" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tuf" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Helse" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Bank" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Gjeld" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Plass %6d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d plass %6d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Frakk" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d @ %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Spionrapportar for %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Spion: Dop/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "%/Spion: Våpen/%Tde..." #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "Ingen andre spelarar er logga på no." #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Spelarar som er logga på:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Hei du. Her kostar %tbe:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Kan ikkje installera SIGWINCH-avbrotshandsamar!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Namnet ditt:" #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "Vil du K>jøpa" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", S>elja" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", H>iva" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", sN>akka med alle, snakka med E>in" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", sjå L>ister" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", G>je oppdrag" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", kJ>empa" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", R>eisa" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", eller A>vslutta? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "Vil du " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "K>jempa, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "V>enta, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "R>ømma, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "S>elja %tuf, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "eller A>vslutta?" #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "Mista sambandet til tenaren! Går tilbake til einspelar-modus." #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "KSHNELGJRA" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "SRKVA" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "Lista opp kva? S>pelarar eller P>oeng? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "SP" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "Kven vil du snakka privat med? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Snakk: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "Spela igjen? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Spel" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Spel/_Nytt ..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "/Spel/_Gje opp" #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "/Game/_Innstillingar" #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "/Spel/Slå på _lyd" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Spel/_Avslutt" #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Snakk" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Snakk/Til _alle ..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Snakk/Til _spelar ..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Lister" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Lister/_Spelarar..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Lister/_Poeng..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Lister/_Eignelutar..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Oppdrag" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Oppdrag/_Spioner ..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Oppdrag/_Tips politiet ..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Oppdrag/_Hent spionrapportar ..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Hjelp" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Hjelp/_Om ..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Åtvaring" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "Feil" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Melding" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "Gje opp denne runden?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Avslutt spelet" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Start nytt spel" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "Gje opp dette spelet" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Eignelutar" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "_Steng" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Mista sambandet til tenaren - byter til einspelar-modus" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Du har blitt dytta av tenaren.\n" "Byter til einspelar-modus." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "Tenaren har avslutta.\n" "Byter til einspelar-modus." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Reiser til %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Spark hore menyval/S_park %tue..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Spioner (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Tips (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "Poengtavle" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "Poengtavlefila er øydelagt!" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Kjemp" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "_Sel %tuf" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Kjemp" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Vent" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Røm" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Kamp: Horer/%d %tuf" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "(Ute av spelet)" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "(Daud)" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Helse: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "Du" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Horer/%Tuf" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "Narkotika" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "Våpen" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Reis til plass:" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "%/Plass å reisa til/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "for %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "No har du på deg %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Ledig plass: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Du har råd til %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Kjøp" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Sel" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Hiv" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "%tuf" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "Kjøpa kor mange?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "Selja kor mange?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "Hiva kor mange?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_OK" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Avbryt" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Kjøpa %tuf" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Selja %tuf" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Hiva %tuf" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Ja" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_Nei" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Angrip" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_Dukk unna" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Spørsmål" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Plass" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "_Reis!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Norsk omsetjing" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Åsmund Skjæveland" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "Ikon og grafikk" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "Lydar" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Dopsal og research" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Speltesting" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Grundig speltesting" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Konstruktiv kritikk" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Ukonstruktiv kritikk" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "Om Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "dopewars er tufta på Drug Wars av John E. Dell, og er ei simulering\n" "av ein oppdikta narkotikamarknad. I dopewars må du kjøpa, selja\n" "og koma unna politiet.\n" "\n" "Det fyrste du må gjera er å betala gjelda di til lånehaien.\n" "Etter det, er målet ditt å tena så mykje pengar som råd (og halda deg i \n" "live)!\n" "Du har ein månad i speletid på å skapa formuen din.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars er tilgjengeleg under GNU General Public License\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "For informasjon om kommandolinevala, skriv dopewars -h på\n" "unix-kommandolinja. Det viser ein hjelpetekst med dei tilgjengelege vala.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "Lokal dokumentasjon i HTML-format" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Lånehai vindagustittel/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/Banknamn vindaugstittel/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "Du må skriva inn ei positiv mengde pengar!" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "Du har ikkje så mykje pengar i banken." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Kontantar: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Gjeld: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Bank: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Betal tilbake:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Sett inn" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Ta ut" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Betal alt" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Spelarliste" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Snakk med spelar(ar)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Snakk med alle spelarane" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Melding:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Send" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Spionér på spelar" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Vel ein spelar du vil spionera på. %Tbe di vil så\n" "tilby tenestane sine til spelarane, og viss ho lukkast,\n" "vil du kunna sjå den spelaren sin status med\n" "«Hent spionrapportar»-menyen. Hugs at %tbe vil forlata\n" "deg, så %tuf eller %tuf som ho har på seg kan gå tapt!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Tips politiet" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Vel spelaren du vil tipsa politiet om. %Tbe di vil hjelpa politiet\n" "med å angripa den spelaren, og så rapportera tilbake til deg.\n" "Hugs at %tbe bil forlata deg ei kort stund, så %tuf eller %tuf\n" "ho har på seg kan gå tapt!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Spark hore dialog-tittel/Spark %tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Er du sikker? (%Tuf eller %tuf denne\n" "%tbe har på seg kan gå tapt!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Namn" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Pris" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Mengde" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Kjøp ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Sel" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Hiv <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tuf her" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tuf du har" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Byt namn" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Diverre, nokon andre bruker «ditt» namn. Ver snill og byt det:-" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Våpenforretning-tittel/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Spionrapportar" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "Ny %s" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "Vel lydfil" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "Ny" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "Slett" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "Opp" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "Ned" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "Politinærvær" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "Minste tal på ulike slag narkotika" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "Største tal på ulike slag narkotika" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "Minste vanlege pris" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "Største vanlege pris" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "Kan vera ekstra billeg" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "Billeg-streng" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "Kan vera ekstra dyrt" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "Plass kravd" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "Skade" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "Namn på ein betjent" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "Namn på fleire betjentar" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "Minste tal på politibetjentar" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "Største tal på politibetjentar" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "Pansring av politiet" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "Pansring av lensmannsbetjentane" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "Innstillingar" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "Fjern narkotika-referansar" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "Unicode oppsettfil" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "Spellengde (rundar)" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "Startkapital" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "Startgjeld" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "Valutasymbol" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "Symbol står før prisen" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "Namn på ei hore" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "Namn på fleire horer" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "Nettlesar" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "Ålmennt" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "Stader" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "Dyrt streng 1" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "Dyrt streng 2" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "Dop" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "Våpen" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "Politi" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "Tenaren rapporterer til metatenaren" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "Minimer til systemtrauet" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "Metatenar" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Kommentar" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "Velkomstmelding" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Tenar" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "Lydnamn" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "Skildring" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "Lydfil" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "Bla gjennom..." #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "Spel" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Hjelp" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "Du kan ikkje starta spelet utan å velja eit namn!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Nytt spel" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Status: Ventar på brukaren" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Sambandet vart stengd av nettverksverten." #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Kunne ikkje kopla til (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Freistar å kopla til %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Ukjend" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d av %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Kopla til SOCKS-tenar %s..." #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "Status: Autentiserer mot SOCKS-tenar" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Ber SOCKS om samband til %s..." #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Port" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Versjon" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Spelarar" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Namnet ditt:" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Vertsnamn" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Kopla til" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "_Gamaldags modus" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Start spel for ein spelar" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "Ein spelar" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "_Frisk opp" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Metatenar" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "Må ha SOCKS-autentisering" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "# Dette er oppstartsloggen for dopewars. Her kjem\n" "# nyttige meldingar frå tolkinga av\n" "# oppsettfilene og slikt.\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "dopewars-tenar" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "Datastyrt dopewars-spelar" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "slapp unna" #: src/serverside.c:73 msgid "defected" msgstr "hoppa av" #: src/serverside.c:73 msgid "was shot" msgstr "vart skoten" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AD" #. Help on various general server commands #: src/serverside.c:129 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "dopewars-tenar versjon %s kommandoar og innstillingar\n" "\n" "help Viser denne hjelpeteksten\n" "list Viser alle spelarane som er logga på\n" "push Ber spelaren høfleg om å logga av\n" "kill Bryt sambandet til spelaren utan varsel\n" "msg: Send ei melding til alle spelarane\n" "save Lagrar det gjeldande oppsettet til den\n" " gjevne fila\n" "quit Stopp tenaren ordentleg, etter å ha sagt \n" " ifrå til alle spelarane\n" "= Set den gjevne variabelen til den gjevne verdien\n" " viser verdien av den gjevne variabelen\n" "[x].= Set den gjevne variabelen i den gjevne lista,\n" " indeks x, til den gjevne verdien\n" "[x]. Viser verdien til den gjevne listevariabelen\n" "\n" "Lovlege variablar er lista under:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "Kunne ikkje kopla til metatenaren på %s (%s)" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "Metatenar : %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "Prøver for ofte å kopla til metatenaren - venter på neste tidsavbrot" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "Ventar på tilkopling til metatenaren på %s..." #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" "Det ser ut til at du bruker ein svært gamal (versjon 1.4.x)-klient.^Dette " "vil truleg fungera, men mange av dei nye eigenskapane til^dopewars vil ikkje " "vera støtta. Hent den nyaste versjonen frå^dopewars-vevsida, http://dopewars." "sourceforge.net/." #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" "Åtvaring: Klienten din er for gamal til å støtta alle^ eigenskapane ved " "denne tenaren. For den fulle^ «opplevinga» bør du henta den siste versjonen " "av ^ dopewars frå vevsida: https://dopewars.sourceforge.io/" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "Gjekk over MaxClients (%d) - bryt sambandet" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Denne tenaren har ei grense på 1 spelar, og denne grensa har blitt nådd. " "^Prøv att seinare." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Denne tenaren har ei grense på %d spelarar, og denne grensa har blitt^nådd. " "Prøv att seinare." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s kallar seg no for %s" #: src/serverside.c:437 #, fuzzy, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: NEKTA reise til %s" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Pushetida di er ute." #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: NEKTA reise til %s" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s spionerer no på %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s spionéra på %s: NEKTA" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s tipsa politiet om %s" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s tysta på %s: NEKTA" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Ukjend melding: %s:%c:%s:%s" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Bruker pid-fil %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Kan ikkje laga pid-fil %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "Kan ikkje laga (lytte-)sokkel (%s) til tenaren. Avbryt." #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "Kan ikkje kopla til port %u (%s). Bryt av." #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "Kan ikkje lytta til nettverkssokkel. Avbryt." #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "dopewars-tenar versjon %s er klar og ventar på samband på port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Kan ikkje installera SIGUSR1-avbrotshandsamar!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Kan ikkje installera SIGHUP-avbrotshandsamar!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "Kan ikkje installera SIGINT-avbrotshandsamar!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Kan ikkje installera SIGTERM-avbrotshandsamar!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "Kan ikkje installera røyr-handsamar!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "Oppsettfil lagra OK som %s\n" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Brukarar logga på:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "Ingen brukarar er logga på no.\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Dyttar %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "Ingen slik brukar!\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s drepen\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Ukjend kommando - prøv «help» for hjelp\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "Vart kopla til frå %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "dopewars-tenaren avsluttar." #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "%s forlét tenaren!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "Kunne ikkje laga unix domenesokkel til admin-samband - sjekk skriveløyva på /" "tmp!" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "dopewars-tenar versjon %s er klar til å ta imot admin-kommandoar, prøv " "«help» for å få hjelp" #: src/serverside.c:1287 msgid "New admin connection" msgstr "Nytt admin-samband" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "Admin-kommando: %s" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "Admin-samband stengt" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "Klarte ikkje å setja NT teneste-status" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "Kunne ikkje posta tenestevarselsmelding" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "Kunne ikkje registrera tenestehandsamar" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "Klarte ikkje å starta NT-teneste" #: src/serverside.c:1681 msgid "Command:" msgstr "Kommando:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "Feil ved lesing av poeng frå %s." #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "Den gamle poengfila %s har blitt konvertert til det nye\n" "formatet. Ein kopi av den gamle fila har fått namnet %s.\n" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Kan ikkje laga kopi (%s) av\n" "poengtavlefila %s." #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Kan ikkje opna poengtavlefila %s: %s." #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Kan ikkje opna poengtavlefila %s.\n" "(%s.) Du må anten vera sikker på at du har løyve\n" "til å bruka denne fila, eller spesifisera ei\n" "anna poengtavlefil med kommandolineopsjonen -f." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s ser ikkje ut til å vera ei gyldig\n" "poengtavlefil. Sjekk om fila er i orden. Viss det er ei\n" "poengtavlefil frå ein gamal versjon av dopewars, må du\n" "fyrst konvertera henne til det nye formatet ved å køyra\n" "«dopewars -C %s» frå kommandolina." #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon\n" "av innstillingane ikkje vil virka som venta. Sjå på loggfila\n" "«dopewars-log.txt» for fleire detaljar." #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon\n" "av innstillingane ikkje vil virka som venta. Sjå på meldingane på\n" "standard-ut for fleire detaljar." #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "Kan ikkje lesa poengtavlefila %s" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "Gratulerar! Du kom på poengtavla!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "Du kom ikkje ein gong på poengtavla..." #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "Kan ikkje skriva til poengtavlefila %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(Kvil i fred.)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Tips frå %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Fekk tilbod om spion frå %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Ei av %tbf dine spionerte for %s. ^Spionen %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Spionen din hjå %s har blitt oppdaga!^Spionen %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "Dama attmed deg på t-banen sa^ «%s»%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (i det minste er det det du -trur- ho sa)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Du høyrer nokon som speler %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Vil du vitja %tde?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Vil du hyra ei %tue for %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s er alt her!^Vil du gå til Angrep, eller Stikka av?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "Ingen politi eller våpen!" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "Politi kan ikkje gå til åtak på andre politi!" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "Spelarane er allereie i ein kamp!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "Spelarane er alt i kvar sine kampar!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "Kan ikkje starta kamp - har ingen våpen!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Du er daud! Spelet er slutt." #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: Tips frå %s avslutta OK." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Ut frå tipset ditt gjekk politiet mot %s, som vart skoten og drepen!" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Ut frå tipset ditt rykka politiet ut mot %s, som kom seg unna med %d %tde." #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^vil du betala %P til ein doktor for å lappa deg saman?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "Du vart rana på t-banen!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Du møter ein venn! Han gjev deg %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Du møter ein venn, og gjev han %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Luka vekk eit RandomOffer" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Politihundar jagar deg %d kvartal! Du mista litt %tde. Det er hardt, mann." #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Du finn %d %tde på ein daud kar på t-banen!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Mora di laga sjokoladekjeks med litt av %tbe. Dei var kjempegode!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Det er litt jazztobakk som luktar ugraskverk her.^Det ser bra ut! Vil du " "røyka det?" #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Du stoppa for å %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Vil du kjøpa ein større frakk for %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^Hei du! Eg kan hjelpa deg å bera %tde for berre %P. Ja eller nei?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Vil du kjøpa ein %tue for %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: Tilbodet var på vegne av %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s har godteke %tbe di! Bruk G-knappen for å kontakta spionen din." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Du hallusinerte i tre dagar på den villaste trippen du kunne^ forestilla " "deg! Så døydde du fordi hjernen din smuldra opp!" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "For seint. %s har nett gått." #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "%s har avvist di %tde!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "Politiet ser at du kastar %tde!" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "Sender oppdateringar til metatenaren" #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "Sender påminningsmelding til metatenaren..." #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Spelaren fjerna: Han/ho var ikkje aktiv" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Spelaren fjerna pga. tidsavbrot i sambandet" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "(Feilen kan ikkje visast i UTF-8)" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "Sambandet vart avbrote pga. fullt buffer" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "Intern feilkode %d" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "WinSock har ikkje starta opp ordentleg" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "Nettverk-delsystemet er ikkje klart" #: src/error.c:156 msgid "WinSock version not supported" msgstr "WinSock-versjonen er ikkje støtta" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "Nettverks-delsystemet mislukkast" #: src/error.c:158 msgid "Address already in use" msgstr "Adressa er i bruk" #: src/error.c:159 msgid "Cannot reach the network" msgstr "Kan ikkje nå nettverket" #: src/error.c:160 msgid "The connection timed out" msgstr "Sambandet vart tidsutkopla." #: src/error.c:161 msgid "Out of file descriptors" msgstr "Tom for filskildrarar" #: src/error.c:162 msgid "Out of buffer space" msgstr "Tom for bufferplass" #: src/error.c:163 msgid "Operation not supported" msgstr "Operasjonen er ikkje støtta" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "Sambandet vart avbrote på grunn av feil." #: src/error.c:165 msgid "Connection reset by remote host" msgstr "Sambandet vart stengd av nettverksverten." #: src/error.c:166 msgid "Connection refused" msgstr "Samband nekta" #: src/error.c:167 msgid "Address family not supported" msgstr "Adressefamilien er ikkje støtta" #: src/error.c:168 msgid "Protocol not supported" msgstr "Protokollen er ikkje støtta" #: src/error.c:169 msgid "Socket type not supported" msgstr "Sokkeltypen er ikkje støtta" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "Fann ikkje verten" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "Mellombels feil med namnetenaren -- prøv att seinare" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "Fekk ikkje kontakt med namnetenaren" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "Gyldig namn, men det er ingen DNS-data tilgjengeleg" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "Nettverksfeil kode %d" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "Namnetenarfeil kode %d" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Intern metatenar-feil «%s»" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Feil metatenar-svar «%s»" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "Stikk du av?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "Stikk du av, eller slåst du?" #: src/message.c:1337 msgid "pitifully armed" msgstr "Latterleg dårleg væpna" #: src/message.c:1338 msgid "lightly armed" msgstr "lett væpna" #: src/message.c:1339 msgid "moderately well armed" msgstr "godt væpna" #: src/message.c:1340 msgid "heavily armed" msgstr "tungt væpna" #: src/message.c:1340 msgid "armed to the teeth" msgstr "væpna til tennene" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - spring etter deg!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s og %d %tuf - %s - spring etter deg!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s kjem hit med %d %tuf, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s står og tek imot" #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Du står der som ein annan tulling." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s prøver å rømma, men får det ikkje til." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "Panikk! Du kjem deg ikkje vekk!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "%s har rømt til %tde!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "%s kom seg unna!" #: src/message.c:1384 msgid "You got away!" msgstr "Du kom deg unna!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Våpna lada..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s skyt på %s... og bommar!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s skyt på deg... og bommar!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "Du bomma på %s!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s drep %s." #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s skyt på %s og drep ei %tue!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s skyt på %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s kverka deg, mann! Søren også!" #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s skyt på deg... og drep ei %tue!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "%s treff deg, mann!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "Du drap %s!" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Du traff %s, og drap ei %tue!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "Du traff %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr " Du finn %P på liket!" #: src/message.c:1439 msgid " You loot the body!" msgstr "Du plyndrar liket!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "Kan ikkje starta opp WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "SOCKS server generell feil" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "Samband nekta av SOCKS-regelsett" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "SOCKS: Kan ikkje nå nettverket" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "SOCKS: Kan ikkje nå verten" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "Samband nekta" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "SOCKS: TTL gjekk ut" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "SOCKS: Kommandoen er ikkje støtta" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Adressetypen er ikkje støtta" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "SOCKS-tenar avviste alle tilbudte metodar" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "Ukjend SOCKS-adressetype returnert" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "SOCKS-autentiserer feila" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "SOCKS-autentisering avbroten av brukar" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Førespurnad vart avvist eller feila" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Avslått - kan ikkje kontakta identd" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Avslått - identd rapporterer ein annan brukaridentitet" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "Ukjend SOCKS svarkode" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "Ukjend SOCKS svar-versjon-kode" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "Ukjend SOCKS tenarversjon" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "SOCKS feilkode %d" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Prøver å kopla til lokal dopewars-tenar via\n" "Unix-domenesokkel %s\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Samband oppretta. Bruk Ctrl-D for å stenga tilkoplinga.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "Kunne ikkje finna ei lokal oppsettfil å skriva til" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Kunne ikkje opna file %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Kunne ikkje kopla til dopewars-tenar\n" "(%s)\n" "Den datastyrte spelaren avsluttar." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Samband oppretta\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Kopla til SOCKS-tenar %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autentiserer med SOCKS-tenar\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Ber SOCKS om samband til %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Bruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentisering\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Datastyrt spelar starta. Prøver å kopla til tenaren på %s:%d." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Datastyrt spelar avslutta OK.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Sambandet vart brote!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Bruker namnet %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Spelarar i denne runden:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s blir med i runden.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s har gått ut av spelet.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Reiser til %tde med %P i kontantar og %P i gjeld\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Datastyrt spelar vart drepen. Avsluttar normalt.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Speletida er ute. Avsluttar spelet.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Datastyrt spelar vart dytta av tenaren.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Tenaren har avslutta.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Sel %d %tde for %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Kjøper %d %tde for %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Kjøper ein %tde for %P på våpenbutikken\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Gjeld på %P vart betalt til lånehaien\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Lånehaien er på %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Våpenforretninga er på %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Puben er på %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Banken er på %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Og de kallar drykk dopseljarar?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Ein trent apekatt kunne gjort det betre." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Trur du du er tøff nok til å takla slike som meg?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Sel du snop, eller kva?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Eg blir vel nøydd til å skyta deg til ditt eige beste." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Denne binærfila har blitt kompilert utan nettverksstøtte, og kan dermed " "ikkje fungera som ein nettverksspelar.\n" "Kompiler på nytt med opsjonen --enable-networking til configure." #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Ugyldig modul «%s» vald.\n" "(%s tilgjengeleg, brukar «%s» no.)" #~ msgid "Cash %17P" #~ msgstr "Pengar %15P" #~ msgid "%-19Tde%3d" #~ msgstr "%-19Tde%3d" #, c-format #~ msgid "Health %3d" #~ msgstr "Helse %3d" #~ msgid "Bank %17P" #~ msgstr "Bank %17P" #~ msgid "Debt %17P" #~ msgstr "Gjeld %16P" #~ msgid "Port for metaserver communication" #~ msgstr "Port for metatenar-kommunikasjon" #~ msgid "Name of a proxy for metaserver communication" #~ msgstr "Namn på ein proxy for metatenar-kommunikasjon" #~ msgid "Port for communicating with the proxy server" #~ msgstr "Port for å kommunisera med metatenaren" #~ msgid "Path of the script on the metaserver" #~ msgstr "Bane til skriptet på metatenaren" #~ msgid "If TRUE, use SOCKS for metaserver communication" #~ msgstr "Viss TRUE, bruk SOCKS til metatenar-kommunikasjon" #~ msgid "Username for HTTP Basic authentication" #~ msgstr "Brukarnamn for HTTP Basic-autentisering" #~ msgid "Password for HTTP Basic authentication" #~ msgstr "Passord for HTTP Basic-autentisering" #~ msgid "Username for HTTP Basic proxy authentication" #~ msgstr "Brukarnamn for HTTP Basic proxy-autentisering" #~ msgid "Password for HTTP Basic proxy authentication" #~ msgstr "Passord for HTTP Basic proxy-autentisering" #, c-format #~ msgid "Proxy authentication required for realm %s" #~ msgstr "Treng proxy-autentisering for område %s" #, c-format #~ msgid "Authentication required for realm %s" #~ msgstr "Treng autentisering for område %s\tc " #~ msgid "(Enter a blank username to cancel)" #~ msgstr "(Skriv eit blankt brukarnamn for å avbryta)" #~ msgid "Web proxy hostname" #~ msgstr "Vertsnamn på vevproxy" #~ msgid "Script path" #~ msgstr "Sti til skript" #, c-format #~ msgid "Status: Could not connect to metaserver (%s)" #~ msgstr "Status: Kunne ikkje kopla til metatenaren (%s)" #~ msgid "Status: Obtaining server information from metaserver..." #~ msgstr "Status: Hentar informasjon frå metatenaren..." #~ msgid "Proxy Authentication Required" #~ msgstr "Treng mellomtenar-autentisering" #~ msgid "Authentication Required" #~ msgstr "Treng autentisering" #~ msgid "" #~ "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " #~ "authentication" #~ msgstr "" #~ "Bruker MetaServer.Proxy.User og MetaServer.Proxy.Password til HTTP " #~ "mellomtenar-autentisering" #~ msgid "" #~ "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User " #~ "and MetaServer.Proxy.Password variables" #~ msgstr "" #~ "Kan ikkje autentisera med HTTP-mellomtenar: Set MetaServer.Proxy.User og " #~ "MetaServer.Proxy.Password-variablane til dei rette verdiane." #~ msgid "" #~ "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " #~ "authentication" #~ msgstr "" #~ "Bruker MetaServer.Auth.User og MetaServer.Auth.Password til HTTP-" #~ "autentisering" #~ msgid "" #~ "Unable to authenticate with HTTP server; please set MetaServer.Auth.User " #~ "and MetaServer.Auth.Password variables" #~ msgstr "" #~ "Kan ikkje autentisera med HTTP-tenaren: Set MetaServer.Auth.User og " #~ "MetaServer.Auth.Password-variablane til dei rette verdiane." #~ msgid "" #~ "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" #~ msgstr "" #~ "Bruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentisering" #, c-format #~ msgid "Unknown metaserver error code %d" #~ msgstr "Ukjend metatenar-feilkode %d" #~ msgid "Number of tries exceeded" #~ msgstr "For mange forsøk" #, c-format #~ msgid "Bad auth header: %s" #~ msgstr "Ugyldig auth meldingshovud: %s" #, c-format #~ msgid "Bad redirect: %s" #~ msgstr "Ugyldig omdirigeringsmelding: %s" #, c-format #~ msgid "Invalid HTTP status line: %s" #~ msgstr "Ugyldig HTTP statusline: %s" #~ msgid "403: forbidden" #~ msgstr "403: Forbode" #~ msgid "404: page not found" #~ msgstr "404: Fann ikkje sida" #~ msgid "401: HTTP authentication failed" #~ msgstr "401: HTTP-autentisering feila" #~ msgid "407: HTTP proxy authentication failed" #~ msgstr "407: HTTP-mellomvert-autentisering feila" #~ msgid "Bad redirect message from server" #~ msgstr "Ugyldig omdirigeringsmelding frå tenaren" #, c-format #~ msgid "Unknown HTTP error %d" #~ msgstr "Ukjend HTTP-feil %d" #, c-format #~ msgid "%d: redirect error" #~ msgstr "%d: Omdirigeringsfeil" #, c-format #~ msgid "%d: HTTP client error" #~ msgstr "%d: HTTP klientfeil" #, c-format #~ msgid "%d: HTTP server error" #~ msgstr "%d: HTTP tenarfeil" dopewars-1.6.2/po/remove-potcdate.sin000644 000765 000024 00000001320 14256000065 017474 0ustar00benstaff000000 000000 # Sed script that removes the POT-Creation-Date line in the header entry # from a POT file. # # Copyright (C) 2002 Free Software Foundation, Inc. # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } dopewars-1.6.2/po/pl.po000644 000765 000024 00000336507 14256242752 014673 0ustar00benstaff000000 000000 # Polish translation for dopewars # Copyright (C) 2000-1 Free Software Foundation, Inc. # Created by Slawomir Molenda , 2000 # msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2001-04-08 16:16+01000\n" "Last-Translator: Slawomir Molenda \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "dziwka" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "dziwki" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "broń" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "broń" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "drag" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "dragi" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "siedziba Złotych Pasów" #: src/dopewars.c:196 msgid "the Bank" msgstr "bank" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "ruski bazar z bronią" #: src/dopewars.c:197 msgid "the pub" msgstr "dyskoteka" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Port do połączenia" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nazwa pliku z najlepszymi wynikami" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nazwa serwera do połączenia się" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "Niezerowa wartość jeżeli serwer ma się kontaktować z metaserwerem" #: src/dopewars.c:281 #, fuzzy msgid "Metaserver URL to report/get server details to/from" msgstr "Nazwa metaserwera do wysyłania szczegółów o serwerze" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "Preferowana nazwa hosta twojego serwera" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Autentyfikacja dla LocalName z metaserwerem" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Opis serwera, zgłaszany do metaserwera" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Ilość tur (jeżeli 0, brak ograniczeń)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Losowe zdarzenia umiarkowane" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Tryb śledzenia dla pliku konfiguracji" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Ilość miejsc w grze" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Ilość broni w grze" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Ilość narkotyków w grze" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Położenie Złotych Pasów" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Położenie banku" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Położenie ruskiego bazaru z bronią" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Położenie dyskoteki" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Nazwa Złotych Pasów" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Nazwa banku" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Nazwa sklepu z bronią" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Nazwa dyskoteki" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Rodzaj klucza sortującego dostępne narkotyki" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Ilość sekund na oddanie strzału" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Gracze są rozłączani po tej liczbie sekund" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Liczba sekund na nawiązanie połącznia albo zerwanie" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Maksymalna ilość połączeń TCP/IP" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Liczba sekund pomiędzy turami komputerowych graczy" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Ilość gotówki, z jaką gracz zaczyna" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Z jakim długiem zaczyna każdy gracz" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Nazwa każdej lokacji" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Policja obecna w każdym miejscu (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Minimalna ilość dragów dla każdego miejsca" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Maksymalna ilość dragów dla każdego miejsca" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Nazwa poszczególnych narkotyków" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Minimalna cena każdego draga" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Maksymalna cena każdego draga" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "Niezerowa wartość jeżeli ten drag ma być szczególnie tani" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "Niezerowa wartość jeżeli ten drag ma być szczególnie drogi" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Wiadomość wyświetlana, gdy drag jest szczególnie tani" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Format używany dla drogich dragów przez 50% czasu" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "Separator dla ceny szczególnie taniego draga" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Mnożnik dla szczególnie drogich dragów" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Nazwa każdej broni" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Cena każdej broni" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Miejsce zajmowane przez poszczególną broń" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Obrażenia zadawane prze poszczególne bronie" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Słowo określające jedną \"dziwkę\"" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Słowo określające dwie lub więcej \"dziwek\"" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Słowo określające jedną broń" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Słowo określające więcej broni" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Słowo określające jednego draga" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Słowo określające więcej dragów" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Koszt szpiegowania wroga przez dziwkę" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "Koszt napuszczenia na wroga glin przez dziwkę" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Minimalna cena wynajęcia dziwki" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Maksymalna wynajęcia dziwki" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Lista rzeczy jakie słyszysz na dworcu" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Liczba komentarzy na dworcu" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Liczba piosenek, które możesz usłyszeć" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Liczba granych piosenek" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Lista rzeczy, które możesz przestać robić" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Liczba rzeczy, które możesz przestać robić" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Czy jesteś doświadczony` by Alex Sex Band" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Chodź tu i pokaż mi swe paski` by Dress Attack" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Dziewczyna drezyna` by BoYz" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Spuszczę ci się do środka` by Spanky Doggy Dog" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Mój dom, mój pies` by Krzysztof Krawczyk" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Murzyn Mariusz` by Acid Drinkers" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Viva Gołota` by Calabash" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`Mandatory Cocaine Song` by Flapjack" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Zagubiona miłość` by Classic" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`Biały króliczek` by Marylin Manson" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Killin' floor` by Body Count" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`Czarnuchy na kwasie` by Skinner" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Taste like drug spirit` by Nirvana" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Firestarter` by Prodigy" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Tata diler` by Kazik na żywo" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Blondyna Maryna` by Just Five" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "`Zasadź Krzaka, zarzuć Kwacha` by Degenerate Politics" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Zalegalizuj To` by Kaliber 45" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "pijesz browar" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "palisz skręta" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "wypalasz cygaro" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "czujesz, że musich sobie ulżyć" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "palisz faje" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "But" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Romek" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "" #: src/dopewars.c:703 msgid "cop" msgstr "" #: src/dopewars.c:703 msgid "cops" msgstr "" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:709 msgid ".38 Special" msgstr "Magnum" #: src/dopewars.c:710 msgid "Ruger" msgstr "Bejzbol" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Kastet AdidaS" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Kwas" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "Rynek jest pełen taniego, domowej roboty kwasu!" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Kokaina" #: src/dopewars.c:720 msgid "Hashish" msgstr "Haszysz" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "Ekspres z Marakeszu przywiózł tani hasz!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Heroina" #: src/dopewars.c:723 msgid "Ludes" msgstr "Lufki" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "Konkurencyjni dresiarze opychają tanio lufki" #: src/dopewars.c:725 msgid "MDA" msgstr "Ekstaza" #: src/dopewars.c:726 msgid "Opium" msgstr "Opium" #: src/dopewars.c:727 msgid "PCP" msgstr "PCP" #: src/dopewars.c:728 msgid "Peyote" msgstr "Peyotl" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Grzybki" #: src/dopewars.c:730 msgid "Speed" msgstr "Spidy" #: src/dopewars.c:731 msgid "Weed" msgstr "Marihuana" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Świeża dostawa marihuany z Holandii! Ceny trawy lecą w dół" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "Warszawa" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Wrocław" #: src/dopewars.c:742 msgid "Central Park" msgstr "Gdańsk" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Kraków" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Pruszków" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "Gdynia" #: src/dopewars.c:746 msgid "Queens" msgstr "Poznań" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Kozia Wólka" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Gliny zrobiły obławę na %tde ! Ceny towaru są kosmiczne!" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Ćpuny kupują %tde po absurdalnych cenach!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Byłoby fajnie gdyby wszyscy wyszli na ulicę i się pieprzyli" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "Zażywasz-przegrywasz!" #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Hej cieciu, zwolnij trochę" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Po co ci mózg, jak masz dresy" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Wiesz, nie zawsze byłam kobietą" #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Masz niezły tyłek...chcesz się zabawić?" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "Wiesz, nie zawsze byłam kobietą" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "Czy twoja stara wie, że jesteś dilerem?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "Co dziś wciągnąłeś?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Pan z Wołomina?" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "Kiedyś też byłem śmieciem, tak ja ty." #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Nic się nie liczy oprócz pieniędzy" #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "Niezły dres, widzę, że zarabiasz na tym gównie kupę szmalu" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Przypominasz mi zafajdanego ćpuna" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "Odwagi! Zajaraj sobie i się wyluzujesz!" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "Czy ja cie czasem nie widziałem w TV?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "Reklamy tamponów są odjazdowe" #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "Wygramy tę wojnę o narkotyki!" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "Dzień bez prochów jest jak noc" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "Używamy tylko 10% naszego mózgu, czemu nie zjarać reszty?" #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Zbieram datki na Kościół Zombich Chrystusa" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Sprzedać ci trochę pyłku kosmicznego?" #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Zwycięzcy nie używają dragów...dopóki są zwycięzcami" #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "Zajeb gline, dla Chrystusa!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Jestem zajebistą prostytutką!" #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Jezus kocha cię bardziej ode mnie" #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Czuję potrzebę przefarbowania się na niebiesko" #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Czy twoja laska nie była cudowna w tym porno?" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Po prostu powiedz NIE...chociaż, może...ok, a niech tam!" #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "Chcesz landrynkę kotku?" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "Dragi to twój najlepszy przyjaciel, pamiętaj!" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Konfiguracja może być zmieniona interaktywnie tylko, gdy\n" "żaden z graczy nie jest zalogowany. Zaczekaj, aż wszyscy się wylogują\n" "lub usuń ich komendami \"push\" albo \"kill\" i spróbuj jeszcze raz." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Indeks w tablicy %s powinien być pomiędzy 1 i %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s jest %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s jest %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s jest %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s jest \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] jest %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s jest { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Zmieniono strukturę listy do %d elementów\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Użycie: dopewars [OPCJE]...\n" "Gra o dilowaniu dragami oparta na \"Drug Wars\" Johna E. Della\n" " -b bez kolorów (standardowo kolory są używane, gdy terminal je " "wspiera\n" " -n bez łączenia się z żadnym serwerem (gra dla jednego gracza)\n" " -a \"antyczne\" dopewars - starają się naśladować antyczną wersję\n" " jak tylko to możliwe (to wyłącza wszelkie połączenia " "sieciowe)\n" " -f plik określa plik, jaki ma być użyty do najlepszych wyników\n" " (standardowo używany jest %s/dopewars.sco)\n" " -o adres nazwa hosta, gdzie znajduje się serwer dopewars dla wielu " "graczy\n" " (np. x.mtl.pl)\n" " -s uruchamia tryb serwera (jeżeli ma to być nieinteraktywny serwer\n" " należy napisać dopewars -s < /dev/null >> logfile & )\n" " -S uruchamia \"prywatny\" serwer (nie łączy się z metaserwerem)\n" " -p port, jak ma być użyty (standardowo: 7902)\n" " -g plik ścieżka do pliku z konfiguracją dopewars\n" " -r plik nazwa pliku z pid'em określającym uruchomiony serwer\n" " -c tworzy gracza komputerowego\n" " -w wymuszenie użycia trybu graficznego (GTK+ albo Win32)\n" " -t wymuszenie użycia trybu tekstowego klienta (curses)\n" " (standardowo, klient graficzny uruchamiany jest, gdy to " "możliwe)\n" " -h wyświetla tę pomoc\n" " -v wyświetla wersję programu\n" "\n" "dopewars (C) Ben Webb 1998-2000, publikowane zgodnie z GNU GPL\n" "Wszelkie błędy wysyłaj na adres autora benwebb@users.sf.net\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Użycie: dopewars [OPCJE]...\n" "Gra o dilowaniu dragami oparta na \"Drug Wars\" Johna E. Della\n" " -b bez kolorów (standardowo kolory są używane, gdy terminal je " "wspiera\n" " -n bez łączenia się z żadnym serwerem (gra dla jednego gracza)\n" " -a \"antyczne\" dopewars - starają się naśladować antyczną wersję\n" " jak tylko to możliwe (to wyłącza wszelkie połączenia " "sieciowe)\n" " -f plik określa plik, jaki ma być użyty do najlepszych wyników\n" " (standardowo używany jest %s/dopewars.sco)\n" " -o adres nazwa hosta, gdzie znajduje się serwer dopewars dla wielu " "graczy\n" " (np. x.mtl.pl)\n" " -s uruchamia tryb serwera (jeżeli ma to być nieinteraktywny serwer\n" " należy napisać dopewars -s < /dev/null >> logfile & )\n" " -S uruchamia \"prywatny\" serwer (nie łączy się z metaserwerem)\n" " -p port, jak ma być użyty (standardowo: 7902)\n" " -g plik ścieżka do pliku z konfiguracją dopewars\n" " -r plik nazwa pliku z pid'em określającym uruchomiony serwer\n" " -c tworzy gracza komputerowego\n" " -w wymuszenie użycia trybu graficznego (GTK+ albo Win32)\n" " -t wymuszenie użycia trybu tekstowego klienta (curses)\n" " (standardowo, klient graficzny uruchamiany jest, gdy to " "możliwe)\n" " -h wyświetla tę pomoc\n" " -v wyświetla wersję programu\n" "\n" "dopewars (C) Ben Webb 1998-2000, publikowane zgodnie z GNU GPL\n" "Wszelkie błędy wysyłaj na adres autora benwebb@users.sf.net\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Nie ma klienta dla biblioteki curses - przekompiluj grę dodając\n" "opcję --enable-curses-client to pliku konfigurancyjnego, albo użyj\n" "zamiast tego okienkowej wersji klienta (jeżeli jest dostępny).\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Klient GTK+ niedostępny - skompiluj grę dodając opcję\n" "--enable-gui-client do skryptu konfiguracyjnego, albo użyj\n" "zamiast tego (jeżeli jest dostępny) klienta opartego na curses.\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Tłumaczenie na polski Slawomir Molenda" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D R E S S W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Oparte są na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja " #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "rynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie " #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "i próby ucieczki od gliniarzy." #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "Najpierw musisz spłacić dług Złotym Pasom. Potem twoim celem jest" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "zarobienie tak dużo forsy, jak się da i pozostanie przy życiu!" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "Masz jeden miesiąc na zdobycie fortuny." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Wersja %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr " dopewars są publikowane zgodnie z GNU General Public License" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Dilowanie dragami i badania Dan Wolf" #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testowanie gry Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Ekstensywne testowanie gry Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Konstruktywna krytyka Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Niekonstruktywna krytyka James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "Informacje o komendach linni poleceń uzyskasz pisząc dopewars -h po" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr " twoim znaku zachęty. To wyświetli ekran pomocy z dostępnym opcjami." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Wprowadź nazwę hosta i port serwera dopewars:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Nazwa hosta: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Proszę czekać... próba kontaktu z metaserwerem..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Serwer : %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Port: : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Wersja : %s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Gracze: -nieznani- (maksymalnie %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Gracze: %d (maksymalnie %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "Od : %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Komentarz: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "N>astępny serwer; P>oprzedni serwer; W>ybierz ten serwer... " #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "NPW" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Proszę czekać... próba kontaktu z serwerem dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "Nie mogę wystartować trybu multiplayer" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "Chcesz... P>ołączyć się z innym hostem i/lub portem" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr " Z>obaczyć listę serwerów na metaserwerze i wybrać jeden" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " W>yjść (możesz uruchomić serwer pisząc " #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " G>rać w trybie single-player" #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "PZWG" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "Dokąd jedziesz ? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Nie dostaniesz forsy za to ci niesiesz %tde :" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "Co chcesz zostawić? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "Ile chcesz zostawić? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "Co chcesz kupić? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "Co chcesz sprzedać? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Stać cię na %d, a możesz unieść %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "Ile kupujesz? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Posiadasz %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "Ile sprzedajesz? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Wybierz zadanie dla jednej ze swoich %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " S>zpieguj innego dilera (koszt: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " Z>akapuj glinom na innego dilera (koszt: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " W>ypieprz ją z roboty" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "albo K>ontakt ze szpiegami i raporcik" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr " N>ie ma być żadnego zlecenia ? " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "SZWKN" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "Kogo chcesz szpiegować? " #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "Na kogo chcesz nasłać gliny? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr "Jesteś pewien? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "YN" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "Na pewno chcesz wyjść? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Nowe imię: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Zostałeś wyrzucony z serwera. Włączenie trybu dla jednego gracza." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "Serwer został zatrzymany. Włączenie trybu dla jednego gracza." #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "%s dołączył do gry!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s opuścił grę." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s będzie teraz znany jako %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "P K P" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Niestety jakiś cieć używa już twojego nicka. Zmień go." #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "N A J L E P S Z E W Y N I K I" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "Nie masz żadnej %tde do sprzedania!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "Nie masz nic do opchnięcia!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Będziesz potrzebował więcej %tde aby jeszcze unieść %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Nie masz wystarczająco dużo miejsca, aby unieść tę %tde!" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Nie masz tyle kasy na %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "K>upić, S>przedać, czy W>yjść? " #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "KSW" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "Ile forsy oddajesz Złotym Pasom? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "Nie masz tak dużo kasy!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Zamierzasz Z>deponować, W>ycofać gotówkę czy O>puścić bank? " #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "ZWO" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "Ile kasy? " #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "Nie ma tyle gotówki w banku..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "T:Tak" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:Nie" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "U:Uciekasz" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "A:Atak" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Atakuj" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "E:Ewakuuj się" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Naciśnij dowolny klawisz..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Statystyka" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Kasa" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Zdrowie" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Bank" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Debet" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Miejsce %6d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Miejsce %6d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Twój płaszcz" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Szpieg złożył raport o %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "Nie ma aktualnie innych zalogowanych graczy!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Gracze aktualnie zalogowani:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Hej cieciu, oto %tde jakie są w obiegu:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Nie można obsłużyć przerwania SIGWINCH!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Jak się nazywasz cieciu? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "K>up" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr " S>przedaj" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr " U>puść" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr " G>adaj P>owiedz " #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr " Z>obacz" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr " D>aj zlecenie" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr " A>takuj" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr " J>edź" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr " W>yjście" #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "Czy " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "A>takujesz" #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "S>toisz, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "U>ciekasz, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "D>ilujesz %tde, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "czy W>yjście " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "Połączenie z serwerem zerwane! Włączenie trybu dla jednego gracza" #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "KSUGPZDAJW" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "DUASW" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "Co chcesz zobaczyć? G>raczy W>yniki" #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "GW" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "Do kogo prywatnie zagadujesz ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Nawijaj: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "Grasz jeszcze raz? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Gra" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Gra/_Nowa..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Gra/_Wyjście..." #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Rozmowa" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Rozmowa/Ze _Wszystkimi..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Rozmowa/Z _Graczem..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/Z_obacz" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Zobacz/_Graczy..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Zobacz/_Wynik..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Zobacz/_Plecak..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Zlecenia" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Zlecenia/_Szpiegowanie..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Zlecenia/_Zasadzka..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Zlecenia/_Raport szpiegowski..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Pomoc" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Pomoc/_O programie..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Ostrzeżenie" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Wiadomość" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "Zakończyć aktualną grę?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Wyjście z gry" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Rozpoczniej nową grę" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Plecak" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "_Zamknij" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Połączenie z serwerem przerwane - włączenie trybu dla jednego gracza" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Zostałeś wyrzucony z serwera. Włączenie trybu dla jednego gracza." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "Serwer został zatrzymany. Włączenie trybu dla jednego gracza." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Podróż do miasta %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Szpiegowanie (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Zasadzka (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "Najlepsze wyniki" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Atak" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "_Diluj %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Atakujesz" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Stoisz" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Uciekasz" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Zdrowie: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Podróż" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "za %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Masz teraz %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Dostępne miejsce: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Stać cię na %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Kup" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Sprzedaj" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Zostaw" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "Z_aniechaj" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Tak" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_Nie" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Atakuj" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_Ewakuuj się" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Pytanie" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Miejsce" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "_Jedź" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Tłumaczenie na polski" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Slawomir Molenda" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Dilowanie dragami i rozwój" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Testowanie gry" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Ekstensywne testowanie gry" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Konstruktywna krytyka" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Niekonstruktywna krytyka" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "O grze" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Oparte są na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja\n" "rynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie\n" "i próby ucieczki gliniarzom!\n" "\n" "Najpierw musisz spłacić dług Złotym Pasom. Potem twoim celem jest\n" "zarobienie tak dużo forsy, jak się da i pozostanie przy życiu!\n" "Masz jeden miesiąc na zdobycie fortuny.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Wersja %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars są publikowane zgodnie z GNU General Public License\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Informacje o komendach linni poleceń uzyskasz piszać dopewars -h po\n" "twoim znaku zachęty. To wyświetli ekran pomocy z dostępnym opcjami.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "Nie ma tyle gotówki w banku..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Kasa: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Debet: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Bank %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Zwróć:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Depozyt" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Wycofaj się" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Spłać wszystko" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Lista graczy" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Mów do gracza(y)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Mów do wszystkich graczy" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Wiadomość:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Wyślij" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Szpieguj gracza" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Wybierz gracza, którego chcesz szpiegować. Twoja %tde\n" "zaoferuje wtedy swoje usługi temu graczowi, i jeżeli on się zgodzi,\n" "będziesz w stanie zobaczyć jego statystyki poprzez opcję\n" "\"Raport szpiegowski\" w menu. Pamiętaj, że %tde cię opuści\n" "i jakikolwiek %tde albo %tde, którą niesie, może stracić!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Napuść gliny" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Wybierz gracza, na którego chcesz napuścić gliny. Twoja %tde\n" "pomoże gliniarzom zaatakować gracza i potem wróci, aby zdać raport\n" "co się stało. Pamiętaj, że %tde opuści cię tymczasowo, także\n" "jakikolwiek %tde albo %tde, którą niesie, może stracić!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Jesteś pewien? (%tde albo %tde niesiona\n" "przez tę %tde mogą być utracone!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Nazwa" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Cena" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Ilość" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Kup ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Sprzedaj" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Zostaw <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde na rynku" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde w plecaku" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Zmień nicka" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Niestety jakiś cieć używa już twojego nicka. Zmień go." #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Raport szpiega" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "dragi" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "broń" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "Zamknij" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "Metaserwer" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Komentarz" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Serwer" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Pomoc" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Nowa Gra" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Status: Czekam na aktywność usera" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Nie mogę się połączyć (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Próba kontaktu z %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d z %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Port" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Wersja" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Gracze" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Jak się _nazywasz cieciu?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Nazwa hosta" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Połącz" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "_Tryb `antyczny`" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Rozpocznij grę dla jednego gracza" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "Pojedyńczy gracz" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Metaserwer" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "usciekł" #: src/serverside.c:73 msgid "defected" msgstr "uszkodził" #: src/serverside.c:73 msgid "was shot" msgstr "został postrzelony" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:129 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "komendy i ustawienia serwera dopewars w wersji %s\n" "\n" "help Wyświetla ten ekran pomocy\n" "list Listuje zalogowanych graczy\n" "push Grzecznie prosi danego gracza o opuszczenie " "serwera\n" "kill Natychmiast zrywa połączenie z danym graczem\n" "msg: Wysyła wiadomość do wszystkich graczy\n" "quit Wyjście po uprzednim poinformowaniu o tym graczy\n" "= Ustawienie dla zmiennej podanej wartości\n" " Wyświetlenie warotości danej zmiennej\n" "[x].= Ustawia zmiennej z listy o indeksie x, daną " "wartość\n" "[x]. Wyświetla wartość danej zmiennej z listy\n" "\n" "Prawidłowe zmienne są poniżej:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "Metaserwer : %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "" #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxClients (%d) przekoroczona wartość - zrywam połączenie" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Przykro mi, ale serwer ma limit do 1 gracza, który został osiągnięty. " "^Proszę spróbować połączyć się później." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Przykro mi, ale serwer ma limit %d graczy, który został osiągnięty.^Proszę " "spróbować połączyć się później." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s będzie znany jako %s" #: src/serverside.c:437 #, fuzzy, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: ZABRONIONY przejazd do %s" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Twój czas dilerki dobiegł końca..." #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: ZABRONIONY przejazd do %s" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s teraz szpieguje %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s szpiegowanie %s: ZABRONIONE" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s nasłał gliny na %s" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s nałanie glin na %s: ZABRONIONE" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Używam pliku %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Nie można utworzyć pliku pid %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "serwer dopewars w wersji %s gotowy i oczekuje połączeńna porcie %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Nie można obsłużyć przerwania SIGUSR1!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Nie można obsłużyć przerwania SIGHUP!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "Nie można obsłużyć przerwania SIGINT!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Nie można obsłużyć przerwania SIGTERM!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "Nie można obłużyć potoku!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Użytkownicy aktualnie zalogowani:=\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "Nie ma żadnych zalogowanych użytkowników\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Wywalam %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "Nie ma takiego użytkownika!\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s zabity\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Nieznana komenda - spróbuj \"help\",aby uzyskać pomoc...\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "połączenie z %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "%s opuszcza serwer!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1287 msgid "New admin connection" msgstr "" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1681 msgid "Command:" msgstr "" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "Nie można odczytać pliku z najlepszymi wynikami %s" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Nie można otworzyć pliku z najlepszymi wynikami %s. (%s)\n" "Upewnij się, że masz dostęp do pliku i katalogu, albo podaj nazwę\n" "alternatywnego pliku poprzez opcję -f z linni poleceń." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "Nie można odczytać pliku z najlepszymi wynikami %s" #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "Gratulacje! Wpiszesz się na karty historii!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "Nawet się nie wpiszesz, cieniasie..." #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "Nie można zapisać do pliku z najlepszymi wynikami %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Zasadzkę zrobił %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Jeden z twoich %tde chodził za %s.^Szpieg %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Twój szpieg pracujący nad %s został odkryty!^Szpieg %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "Jakaś kobieta stojąca obok na dworcu powiedziała^\"%s\"%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (tak ci się przynajmniej wydaje, że TO powiedziała)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Słyszysz jak ktoś puszcza %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Chciałbyś odwiedzić %tde?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Chciałbyś wynająć %tde za %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s już tu jest!^A>takujesz czy E>wakuujesz się?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "" #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: kablowanie %s zakończone OK." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" "Dzięki twoim wskazówkom gliny zasadziły się na %s, który został zastrzelony" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Dzięki twoim wskazówkom gliny zasadziły się na %s, który uciekł z %d %tde. " #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^Płacisz doktorowi %P, żeby cię pozszywał?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "Zostałeś obrzygany w pociągu!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Spotykasz starego dilera! Daje ci %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Spotkałeś przyjaciela! Dajesz mu %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Wyłączono RandomOffer" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Policyjne psy skoczyły ci do gardła %d! Upuściłeś jakieś %tde! Ale " "rozpierdol!dresie!" #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Znalazłeś %d %tde przy zwłokach jakiegoś ćpuna w WC!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Mamuśka zrobiła ci kanapki z odrobiną %tde! Były super!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Znalazłeś trochę ziela, które pachnie tak świeżo!^Dobrze wygląda! " "Zapalisz? " #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Zatrzymujesz się i %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Chciałbyć kupić większy płaszcz za %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^Hej koleś! Pomogę ci ponieść %tde za jedyne %P. Zgadzasz się?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Chciałbyś kupić %tde za %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: propozycja była na rachunek %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "" "%s zaakceptował twój %tde!^Użyj klawisza G, aby skontaktować się ze szpiegiem" #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Miałeś haluny przez trzy dni i najlepszego tripa w swoim życiu!^Potem " "umarłeś, bo dla twojego mózga ta wycieczka była za mocna!" #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Za późno - %s właśnie zwiał!" #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "%s odmówił %tde" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Gracz usunięty przez przekroczenie czasu na ruch" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Gracz usunięty przez przekroczenia czasu przy połączeniu" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "" #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:156 msgid "WinSock version not supported" msgstr "" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "" #: src/error.c:158 msgid "Address already in use" msgstr "" #: src/error.c:159 msgid "Cannot reach the network" msgstr "" #: src/error.c:160 msgid "The connection timed out" msgstr "" #: src/error.c:161 msgid "Out of file descriptors" msgstr "" #: src/error.c:162 msgid "Out of buffer space" msgstr "" #: src/error.c:163 msgid "Operation not supported" msgstr "" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "" #: src/error.c:166 msgid "Connection refused" msgstr "" #: src/error.c:167 msgid "Address family not supported" msgstr "" #: src/error.c:168 msgid "Protocol not supported" msgstr "" #: src/error.c:169 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "Uciekasz?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "Uciekasz czy Atakujesz?" #: src/message.c:1337 msgid "pitifully armed" msgstr "beznadziejnie uzbrojony" #: src/message.c:1338 msgid "lightly armed" msgstr "lekko uzbrojony" #: src/message.c:1339 msgid "moderately well armed" msgstr "całkiem nieźle uzbrojony" #: src/message.c:1340 msgid "heavily armed" msgstr "dobrze uzbrojony" #: src/message.c:1340 msgid "armed to the teeth" msgstr "kurewsko uzbrojony po zęby" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s przybył, z %d %tde, %s" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s stoi i dostaje." #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Stoisz tam jak idiota." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "" #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "" #: src/message.c:1378 #, fuzzy, c-format msgid "%s has got away to %tde!" msgstr "%s zwiał!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "%s zwiał!" #: src/message.c:1384 msgid "You got away!" msgstr "" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "" #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "" #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "" #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "" #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "Trafisz i zabijasz %s" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "" #: src/message.c:1437 msgid " You find %P on the body!" msgstr "" #: src/message.c:1439 msgid " You loot the body!" msgstr "" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Nie można połączyć się z serwerem dopewars\n" "(%s)\n" "Gracz AI zakończył rozrgrywkę w nietypowy sposób." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Połączenie nawiązane\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Gracz AI rozpoczął grę; próba kontaktu z serwerem %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Gracz AI zakończył rozgrywkę.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Połączenie z serwerem przerwane!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Używa imienia %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Gracze w grze:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s dołączył do gry.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s opuścił grę.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Jedziesz do %tde z %P kasą i %P debetem\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Gracz AI zabity. Normalne wyjście.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Czas gry się skończył. Opuszczam grę.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Gracz AI wyrzucony z serwera.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Serwer zakończył pracę.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Sprzedaję %d %tde w %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Kupuję %d %tde w %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Kupuję %tde za %P na ruskim bazarze z bronią\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Dług %P został spłacony Złotym Pasom\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Siedziba Złotych Pasów jest w mieście %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Sklep z bronią jest w mieście %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Dyskoteka jest w mieście %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Bank jest w mieście %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Nazywacie się dilerami?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Wytrenowana małpa zrobiłaby to lepiej..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Myślisz, że jesteś taki twardy, aby ze mną dilować?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... dilujesz cukiereczku czy co?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Uważam, że powiniennem cię zastrzelić dla twojego własnego dobra." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Program został skompilowany bez wsparcia dla sieci i nie może zachowywać się " "jakby był komputerowym graczem.\n" "Skonfiguruj z opcją --enable-networking i przekompiluj" #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" #~ msgid "Cash %17P" #~ msgstr "Kasa %17P" #, c-format #~ msgid "Health %3d" #~ msgstr "Zdrowie %3d" #~ msgid "Bank %17P" #~ msgstr "Bank %17P" #~ msgid "Debt %17P" #~ msgstr "Debet %16P" #~ msgid "Port for metaserver communication" #~ msgstr "Port do komunikacji z metaserwerem" #~ msgid "Path of the script on the metaserver" #~ msgstr "Ścieżka do skryptu CGI na metaserwerze" dopewars-1.6.2/po/es_ES.po000644 000765 000024 00000406666 14256242752 015262 0ustar00benstaff000000 000000 # Translation of Dopewars to Castilian aka Spanish # This file is distributed under the same license as the Dopewars package. # Copyright (C) 2003 Ben Webb # Quique , 2002, 2003. # # # códigos %t: # # al - yendo a/al/a las/... sitio # First author: Quique , 2002, 2003. # # msgid "" msgstr "" "Project-Id-Version: es_ES\n" "Report-Msgid-Bugs-To: benwebb@users.sf.net\n" "POT-Creation-Date: 2022-06-25 23:32-0700\n" "PO-Revision-Date: 2003-12-10 09:48+0100\n" "Last-Translator: Quique \n" "Language-Team: Castilian aka Spanish \n" "Language: es_ES\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Name of a single bitch - if you need to use different words for #. "bitch" depending on where in the sentence it occurs (e.g. subject or #. object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. This notation can be used for most of the translatable strings in #. dopewars. #: src/dopewars.c:179 msgid "bitch" msgstr "puta" #. Word used for two or more bitches #: src/dopewars.c:181 msgid "bitches" msgstr "putas" #. Word used for a single gun #: src/dopewars.c:183 msgid "gun" msgstr "arma" #. Word used for two or more guns #: src/dopewars.c:185 msgid "guns" msgstr "armas" #. Word used for a single drug #: src/dopewars.c:187 msgid "drug" msgstr "droga" #. Word used for two or more drugs #: src/dopewars.c:189 msgid "drugs" msgstr "drogas" #. String for displaying the game date or turn number. This is passed #. to the strftime() function, with the exception that %T is used to #. mean the turn number rather than the calendar date. #: src/dopewars.c:193 msgid "%m-%d-%Y" msgstr "%d-%m-%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. respectively #: src/dopewars.c:196 msgid "the Loan Shark" msgstr "el usurero_al_al usurero" #: src/dopewars.c:196 msgid "the Bank" msgstr "el banco" #: src/dopewars.c:197 msgid "Dan's House of Guns" msgstr "la armería" #: src/dopewars.c:197 msgid "the pub" msgstr "el bar" #. The following strings are the helptexts for all the options that can #. be set in a dopewars configuration file, or in the server. See #. doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Puerto de red al que conectarse" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nombre del fichero de máximas puntuaciones" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nombre del servidor al que conectarse" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Mensaje de bienvenida del servidor" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Dirección de red del servidor al que escuchar" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE si se debe usar un servidor SOCKS para la conexión de red" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE si se deben usar ID de usuario numéricos para SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Si no se deja en blanco, el nombre de usuario a usar para SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "El nombre del servidor SOCKS a usar" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "El número de puerto del servidor SOCKS a usar" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "La versión del protocolo SOCKS a usar (4 o 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nombre de usuario para la autenticación SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Contraseña para la autenticación SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE si el servidor debe informar a un metaservidor" #: src/dopewars.c:281 #, fuzzy msgid "Metaserver URL to report/get server details to/from" msgstr "Nombre del metaservidor al que informar o del que obtener información" #: src/dopewars.c:284 msgid "Preferred hostname of your server machine" msgstr "El nombre de tu servidor" #: src/dopewars.c:287 msgid "Authentication for LocalName with the metaserver" msgstr "Autenticación del nombre local con el metaservidor" #: src/dopewars.c:290 msgid "Server description, reported to the metaserver" msgstr "Descripción del servidor, que se pasa al metaservidor" #: src/dopewars.c:295 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Si TRUE, el servidor se minimiza a la bandeja del sistema" #: src/dopewars.c:299 msgid "If TRUE, the server runs in the background" msgstr "Si TRUE, el servidor funciona en segundo plano" #: src/dopewars.c:302 msgid "The command used to start your web browser" msgstr "La orden usada para iniciar tu navegador web" #: src/dopewars.c:306 msgid "No. of game turns (if 0, game never ends)" msgstr "Número de rondas de juego (si es 0, el juego nunca termina)" #: src/dopewars.c:309 msgid "Day of the month on which the game starts" msgstr "Día del mes en el que empieza el juego" #: src/dopewars.c:312 msgid "Month in which the game starts" msgstr "Mes en el que empieza el juego" #: src/dopewars.c:315 msgid "Year in which the game starts" msgstr "Año en el que empieza el juego" #: src/dopewars.c:318 msgid "The currency symbol (e.g. $)" msgstr "El símbolo de dinero (por ejemplo, $)" #: src/dopewars.c:321 msgid "If TRUE, the currency symbol precedes prices" msgstr "Si TRUE, el símbolo de dinero va antes del precio" #: src/dopewars.c:324 msgid "File to write log messages to" msgstr "Fichero en el que escribir los mensajes de registro" #: src/dopewars.c:327 msgid "Controls the number of log messages produced" msgstr "Controla el número de mensajes de registro producidos" #: src/dopewars.c:330 msgid "strftime() format string for log timestamps" msgstr "formato de la cadena strftime() para las marcas de tiempo" #: src/dopewars.c:333 msgid "Random events are sanitized" msgstr "Se limpian los eventos aleatorios" #: src/dopewars.c:336 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE si se debe guardar el valor de las drogas compradas" #: src/dopewars.c:339 msgid "Be verbose in processing config file" msgstr "Ser prolijo al procesar el fichero de configuración" #: src/dopewars.c:342 msgid "Number of locations in the game" msgstr "Número de sitios en el juego" #: src/dopewars.c:346 msgid "Number of types of cop in the game" msgstr "Número de tipos de poli en el juego" #: src/dopewars.c:350 msgid "Number of guns in the game" msgstr "Número de armas en el juego" #: src/dopewars.c:354 msgid "Number of drugs in the game" msgstr "Número de drogas en el juego" #: src/dopewars.c:358 msgid "Location of the Loan Shark" msgstr "Ubicación del usurero" #: src/dopewars.c:360 msgid "Location of the bank" msgstr "Ubicación del banco" #: src/dopewars.c:363 msgid "Location of the gun shop" msgstr "Ubicación de la armería" #: src/dopewars.c:366 msgid "Location of the pub" msgstr "Ubicación del bar" #: src/dopewars.c:369 msgid "Daily interest rate on the loan shark debt" msgstr "Tasa de interés diaria de la deuda con el usurero" #: src/dopewars.c:372 msgid "Daily interest rate on your bank balance" msgstr "Tipo de interés diario de tu saldo en el banco" #: src/dopewars.c:375 msgid "Name of the loan shark" msgstr "Nombre del usurero" #: src/dopewars.c:377 msgid "Name of the bank" msgstr "Nombre del banco" #: src/dopewars.c:379 msgid "Name of the gun shop" msgstr "Nombre de la armería" #: src/dopewars.c:381 msgid "Name of the pub" msgstr "Nombre del bar" #: src/dopewars.c:383 msgid "TRUE if sounds should be enabled" msgstr "TRUE si se debe habilitar el sonido" #: src/dopewars.c:386 msgid "Sound file played for a gun \"hit\"" msgstr "Fichero de sonido que suena cuando un disparo hace blanco" #: src/dopewars.c:389 msgid "Sound file played for a gun \"miss\"" msgstr "Fichero de sonido que suena cuando un disparo yerra su objetivo" #: src/dopewars.c:392 msgid "Sound file played when guns are reloaded" msgstr "Fichero de sonido que suena cuando se recarga un arma" #: src/dopewars.c:395 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" "Fichero de sonido a reproducir cuando se mata a un ayudante o a una puta " "enemiga" #: src/dopewars.c:398 msgid "Sound file played when one of your bitches is killed" msgstr "Fichero de sonido reproducido cuando muere una de tus putas" #: src/dopewars.c:401 msgid "Sound file played when another player or cop is killed" msgstr "" "Fichero de sonido reproducido cuando se mata a otro jugador o a un policía" #: src/dopewars.c:404 msgid "Sound file played when you are killed" msgstr "Fichero de sonido reproducido cuando te matan a ti" #: src/dopewars.c:407 msgid "Sound file played when a player tries to escape, but fails" msgstr "" "Fichero de sonido reproducido cuando un jugador intenta escapar, pero no lo " "consigue" #: src/dopewars.c:410 msgid "Sound file played when you try to escape, but fail" msgstr "" "Fichero de sonido reproducido cuando intentas escapar, pero no lo consigues" #: src/dopewars.c:413 msgid "Sound file played when a player successfully escapes" msgstr "Fichero de sonido reproducido cuando un jugador logra escapar" #: src/dopewars.c:416 msgid "Sound file played when you successfully escape" msgstr "Fichero de sonido reproducido cuando tú logras escapar" #: src/dopewars.c:419 msgid "Sound file played on arriving at a new location" msgstr "Fichero de sonido que suena al llegar a un nuevo sitio" #: src/dopewars.c:422 msgid "Sound file played when a player sends a public chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje público al chat" #: src/dopewars.c:425 msgid "Sound file played when a player sends a private chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje privado al chat" #: src/dopewars.c:428 msgid "Sound file played when a player joins the game" msgstr "Fichero de sonido que suena cuando se une un jugador al juego" #: src/dopewars.c:431 msgid "Sound file played when a player leaves the game" msgstr "Fichero de sonido que suena cuando un jugador abandona el juego" #: src/dopewars.c:434 msgid "Sound file played at the start of the game" msgstr "Fichero de sonido reproducido al empezar el juego" #: src/dopewars.c:437 msgid "Sound file played at the end of the game" msgstr "Fichero de sonido reproducido al acabar el juego" #: src/dopewars.c:440 msgid "Sort key for listing available drugs" msgstr "Orden de las drogas disponibles" #: src/dopewars.c:443 msgid "No. of seconds in which to return fire" msgstr "Número de segundos para devolver disparos" #: src/dopewars.c:446 msgid "Players are disconnected after this many seconds" msgstr "Los jugadores son desconectados después de este número de segundos" #: src/dopewars.c:449 msgid "Time in seconds for connections to be made or broken" msgstr "Tiempo en segundos para que las conexiones sean establecidas o rotas" #: src/dopewars.c:452 msgid "Maximum number of TCP/IP connections" msgstr "Número máximo de conexiones TCP/IP" #: src/dopewars.c:455 msgid "Seconds between turns of AI players" msgstr "Segundos entre los turnos de los jugadores automáticos" #: src/dopewars.c:458 msgid "Amount of cash that each player starts with" msgstr "Cantidad de dinero con la que empieza cada jugador" #: src/dopewars.c:461 msgid "Amount of debt that each player starts with" msgstr "Importe de la deuda con la que empieza cada jugador" #: src/dopewars.c:464 msgid "Name of each location" msgstr "Nombre de cada lugar" #: src/dopewars.c:468 msgid "Police presence at each location (%)" msgstr "Presencia policial en cada sitio (%)" #: src/dopewars.c:472 msgid "Minimum number of drugs at each location" msgstr "Número mínimo de drogas en cada sitio" #: src/dopewars.c:476 msgid "Maximum number of drugs at each location" msgstr "Máximo número de drogas en cada lugar" #: src/dopewars.c:480 src/dopewars.c:483 msgid "% resistance to gunshots of each player" msgstr "% de resistencia a disparos de cada jugador" #: src/dopewars.c:486 src/dopewars.c:489 msgid "% resistance to gunshots of each bitch" msgstr "% de resistencia a disparos de cada puta" #: src/dopewars.c:492 msgid "Name of each cop" msgstr "Nombre de cada poli" #: src/dopewars.c:496 msgid "Name of each cop's deputy" msgstr "Nombre del ayudante de cada poli" #: src/dopewars.c:500 msgid "Name of each cop's deputies" msgstr "Nombre de los ayudantes de cada poli" #: src/dopewars.c:504 src/dopewars.c:508 msgid "% resistance to gunshots of each cop" msgstr "% de resistencia a disparos de cada poli" #: src/dopewars.c:512 src/dopewars.c:516 msgid "% resistance to gunshots of each deputy" msgstr "% de resistencia a disparos de cada ayudante" #: src/dopewars.c:520 msgid "Attack penalty relative to a player" msgstr "Penalización de ataque relativa a un jugador" #: src/dopewars.c:524 msgid "Defend penalty relative to a player" msgstr "Penalización de defensa relativa a un jugador" #: src/dopewars.c:528 msgid "Minimum number of accompanying deputies" msgstr "Número mínimo de ayudantes acompañantes" #: src/dopewars.c:532 msgid "Maximum number of accompanying deputies" msgstr "Número máximo de ayudantes acompañantes" #: src/dopewars.c:536 msgid "Zero-based index of the gun that cops are armed with" msgstr "Índice basado en cero de la pistola con la que están armados los polis" #: src/dopewars.c:540 msgid "Number of guns that each cop carries" msgstr "Número de pistolas que porta cada poli" #: src/dopewars.c:544 msgid "Number of guns that each deputy carries" msgstr "Número de pistolas con las que carga cada ayudante" #: src/dopewars.c:548 msgid "Name of each drug" msgstr "Nombre de cada droga" #: src/dopewars.c:552 msgid "Minimum normal price of each drug" msgstr "Precio mínimo normal de cada droga" #: src/dopewars.c:556 msgid "Maximum normal price of each drug" msgstr "Precio máximo normal de cada droga" #: src/dopewars.c:560 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE si esta droga puede ser especialmente barata" #: src/dopewars.c:564 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE si esta droga puede ser especiamente cara" #: src/dopewars.c:568 msgid "Message displayed when this drug is specially cheap" msgstr "Mensaje a mostrar cuando esta droga sea especialmente barata" #: src/dopewars.c:572 src/dopewars.c:576 #, no-c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Línea utilizada para drogas que sean caras el 50% de las veces" #: src/dopewars.c:579 msgid "Divider for drug price when it's specially cheap" msgstr "Divisor del precio de la droga cuando es especialmente barata" #: src/dopewars.c:583 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicador para las drogas especialmente caras" #: src/dopewars.c:586 msgid "Name of each gun" msgstr "Nombre de cada arma" #: src/dopewars.c:590 msgid "Price of each gun" msgstr "Precio de cada arma" #: src/dopewars.c:594 msgid "Space taken by each gun" msgstr "Espacio que ocupa cada arma" #: src/dopewars.c:598 msgid "Damage done by each gun" msgstr "Daño ocasionado por cada arma" #: src/dopewars.c:602 msgid "Word used to denote a single \"bitch\"" msgstr "Palabra usada para designar una sola \"puta\"" #: src/dopewars.c:605 msgid "Word used to denote two or more \"bitches\"" msgstr "Palabra usada para designar dos o más \"putas\"" #: src/dopewars.c:608 msgid "Word used to denote a single gun or equivalent" msgstr "Palabra usada para designar una sola arma" #: src/dopewars.c:611 msgid "Word used to denote two or more guns" msgstr "Palabra usada para designar dos o más armas" #: src/dopewars.c:614 msgid "Word used to denote a single drug or equivalent" msgstr "Palabra usada para designar una sola droga" #: src/dopewars.c:617 msgid "Word used to denote two or more drugs" msgstr "Palabra usada para designar dos o más drogas" #: src/dopewars.c:620 msgid "strftime() format string for displaying the game turn" msgstr "cadena de formato strftime() para mostrar el turno del juego" #: src/dopewars.c:623 msgid "Cost for a bitch to spy on the enemy" msgstr "Coste de enviar a una puta a espiar al enemigo" #: src/dopewars.c:626 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Coste de enviar a una puta a dar información sobre el enemigo a la poli" #: src/dopewars.c:629 msgid "Minimum price to hire a bitch" msgstr "Precio mínimo de contratar una puta" #: src/dopewars.c:632 msgid "Maximum price to hire a bitch" msgstr "Precio máximo de contratar una puta" #: src/dopewars.c:635 msgid "List of things which you overhear on the subway" msgstr "Lista de cosas que oyes en el metro" #: src/dopewars.c:638 msgid "Number of subway sayings" msgstr "Número de cosas que se dicen en el metro" #: src/dopewars.c:641 msgid "List of songs which you can hear playing" msgstr "Lista de canciones que oyes tocar" #: src/dopewars.c:644 msgid "Number of playing songs" msgstr "Número de canciones que se tocan" #: src/dopewars.c:647 msgid "List of things which you can stop to do" msgstr "Lista de cosas que puedes dejar de hacer" #: src/dopewars.c:650 msgid "Number of things which you can stop to do" msgstr "Número de cosas que puedes dejar de hacer" #. Default list of songs that you can hear playing (N.B. this can be #. overridden in the configuration file with the "Playing" variable) - #. look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:660 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` de Jimi Hendrix" #: src/dopewars.c:661 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` de Tone Loc" #: src/dopewars.c:662 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Polipuestón` de King Putreak" #: src/dopewars.c:663 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Alternativa platino` de Habeas Corpus" #: src/dopewars.c:664 msgid "`Late in the Evening` by Paul Simon" msgstr "`Mineros locos (Armas pal pueblo)` de Def Con Dos" #: src/dopewars.c:665 msgid "`Light Up` by Styx" msgstr "`Todo por la napia` de Siniestro Total" #: src/dopewars.c:666 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` de Jefferson Airplane" #: src/dopewars.c:667 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`I want to get high` de Cypress Hill" #: src/dopewars.c:668 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Needle And The Spoon` de Lynyrd Skynyrd" #: src/dopewars.c:669 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` de Jefferson Airplane" #: src/dopewars.c:670 msgid "`Itchycoo Park` by Small Faces" msgstr "`Street Lobotomy` de Body Count" #: src/dopewars.c:671 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` de the Tubes" #: src/dopewars.c:672 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`I Love You Mary Jane` de Sonic Youth" #: src/dopewars.c:673 msgid "`Eight Miles High` by the Byrds" msgstr "`Drug Me` de Dead Kennedys" #: src/dopewars.c:674 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Julie's In The Drug Squad` de The Clash" #: src/dopewars.c:675 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Tengo un spiz amarillo` de Manolo Kabezabolo" #: src/dopewars.c:676 msgid "the Nixon tapes" msgstr "las grabaciones del CESID" #: src/dopewars.c:677 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalización` de Ska-P" #. Default list of things which you can "stop to do" (random events that #. cost you a little money). These can be overridden with the "StoppedTo" #. variable in the configuration file. See the later string "You stopped #. to %s." to see how these strings are used. #: src/dopewars.c:686 msgid "have a beer" msgstr "tomar un cerveza" #: src/dopewars.c:687 msgid "smoke a joint" msgstr "fumar un porro" #: src/dopewars.c:688 msgid "smoke a cigar" msgstr "fumar un puro" #: src/dopewars.c:689 msgid "smoke a Djarum" msgstr "fumar un chino" #: src/dopewars.c:690 msgid "smoke a cigarette" msgstr "fumar un cigarrillo" #. Name of the first police officer to attack you #: src/dopewars.c:695 msgid "Officer Hardass" msgstr "Agente Matute" #. Name of a single deputy of the first police officer #: src/dopewars.c:697 src/dopewars.c:701 msgid "deputy" msgstr "ayudante" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:699 src/dopewars.c:701 msgid "deputies" msgstr "ayudantes" #. Ditto, for the other police officers #: src/dopewars.c:701 msgid "Officer Bob" msgstr "Comisario Romerales" #: src/dopewars.c:703 msgid "Agent Smith" msgstr "Jefe Biggum" #: src/dopewars.c:703 msgid "cop" msgstr "madero" #: src/dopewars.c:703 msgid "cops" msgstr "maderos" #. The names of the default guns #: src/dopewars.c:708 msgid "Baretta" msgstr ".38 Special" #: src/dopewars.c:709 msgid ".38 Special" msgstr "Kalashnikov" #: src/dopewars.c:710 msgid "Ruger" msgstr "Colt 45" #: src/dopewars.c:711 msgid "Saturday Night Special" msgstr "Smith & Wesson" #. The names of the default drugs, and the messages displayed when they #. are specially cheap or expensive #: src/dopewars.c:717 msgid "Acid" msgstr "Tripis" #: src/dopewars.c:718 msgid "The market is flooded with cheap home-made acid!" msgstr "" "¡El mercado está inundado de tripis baratos recién llegados de Amsterdam!" #: src/dopewars.c:719 msgid "Cocaine" msgstr "Farlopa" #: src/dopewars.c:720 msgid "Hashish" msgstr "Costo" #: src/dopewars.c:721 msgid "The Marrakesh Express has arrived!" msgstr "¡Alguien se ha bajado al moro!" #: src/dopewars.c:722 msgid "Heroin" msgstr "Caballo" #: src/dopewars.c:723 msgid "Ludes" msgstr "Barbitúricos" #: src/dopewars.c:724 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "¡Alguien ha dado un palo en una farmacia y está vendiendo barbitúricos " "baratos!" #: src/dopewars.c:725 msgid "MDA" msgstr "Pirulos" #: src/dopewars.c:726 msgid "Opium" msgstr "Opio" #: src/dopewars.c:727 msgid "PCP" msgstr "Ketamina" #: src/dopewars.c:728 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:729 msgid "Shrooms" msgstr "Monguis" #: src/dopewars.c:730 msgid "Speed" msgstr "Speed" #: src/dopewars.c:731 msgid "Weed" msgstr "María" #: src/dopewars.c:732 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Ha llegado la cosecha. ¡El precio de la marihuana está por los suelos!" #. The names of the default locations #: src/dopewars.c:740 msgid "Bronx" msgstr "La Paz_al_a La Paz" #: src/dopewars.c:741 msgid "Ghetto" msgstr "Barrio Oliver_al_al Barrio Oliver" #: src/dopewars.c:742 msgid "Central Park" msgstr "Parque Bruil_al_al Parque Bruil" #: src/dopewars.c:743 msgid "Manhattan" msgstr "Zona pija_al_a la Zona pija" #: src/dopewars.c:744 msgid "Coney Island" msgstr "Delicias_al_a las Delicias" #: src/dopewars.c:745 msgid "Brooklyn" msgstr "El Gancho_al_al Gancho" #: src/dopewars.c:746 msgid "Queens" msgstr "Torrero_al_a Torrero" #: src/dopewars.c:747 msgid "Staten Island" msgstr "Casco viejo_al_al Casco Viejo" #. Messages displayed for drug busts, etc. #: src/dopewars.c:753 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" "¡La pestañí ha hecho una gran redada de %tde! ¡Los precios son exorbitantes!" #: src/dopewars.c:754 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "¡Los yonquis están comprando %tde a precios absurdos!" #. Default list of things which the "lady on the subway" can tell you #. (N.B. can be overridden with the "SubwaySaying" config. file #. variable). Look for "the lady next to you" to see how these strings #. are used. #: src/dopewars.c:764 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "¡Vivamos al límite, co!" #: src/dopewars.c:765 msgid "The Pope was once Jewish, you know" msgstr "De todo lo que he perdido, lo que más echo de menos es la cabeza." #: src/dopewars.c:766 msgid "I'll bet you have some really interesting dreams" msgstr "Apuesto a que tienes sueños superinteresantes" #: src/dopewars.c:767 msgid "So I think I'm going to Amsterdam this year" msgstr "Este verano no sé si bajar al moro o irme a Amsterdam" #: src/dopewars.c:768 msgid "Son, you need a yellow haircut" msgstr "Tío, tienes que hacerte una cresta." #: src/dopewars.c:769 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Pero ¿por qué llevas gafas de sol si es de noche?" #: src/dopewars.c:770 msgid "I wasn't always a woman, you know" msgstr "Yo no he sido siempre una mujer, ¿sabes?" #: src/dopewars.c:771 msgid "Does your mother know you're a dope dealer?" msgstr "¿Tu madre sabe que eres un camello?" #: src/dopewars.c:772 msgid "Are you high on something?" msgstr "¿Te has metido algo?" #: src/dopewars.c:773 msgid "Oh, you must be from California" msgstr "Ah, tú debes ser gallego" #: src/dopewars.c:774 msgid "I used to be a hippie, myself" msgstr "" "Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... " "chocolate." #: src/dopewars.c:775 msgid "There's nothing like having lots of money" msgstr "Con dinero, chufletes." #: src/dopewars.c:776 msgid "You look like an aardvark!" msgstr "" "Sólo usamos el 10% de nuestro cerebro. ¡Destruye con drogas el 90% sobrante!" #: src/dopewars.c:777 msgid "I don't believe in Ronald Reagan" msgstr "Estoy hecha polvo, me voy a la cama. ¿Vienes?" #: src/dopewars.c:778 msgid "Courage! Bush is a noodle!" msgstr "El PP es lo más rancio y retrógrado que ha parido madre. ¿O no?" #: src/dopewars.c:779 msgid "Haven't I seen you on TV?" msgstr "Tú sales en la tele, ¿verdad?" #: src/dopewars.c:780 msgid "I think hemorrhoid commercials are really neat!" msgstr "" "Los anuncios de compresas usan la regla de la reina: la sangre siempre es " "azul." #: src/dopewars.c:781 msgid "We're winning the war for drugs!" msgstr "¿Sabe que tiene los ojos muy enrojecidos, joven?" #: src/dopewars.c:782 msgid "A day without dope is like night" msgstr "¿Te imaginas como sería la vida si no hubiera drogas?" #: src/dopewars.c:784 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "En las hamburgueserías usan carne de rata. Por eso la dan picada." #: src/dopewars.c:785 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "`Cuestiona la autoridad; piensa por ti mismo` dijo Tim Leary" #: src/dopewars.c:786 msgid "I'd like to sell you an edible poodle" msgstr "Te vendo una chupa de cuero por 30 euros." #: src/dopewars.c:787 msgid "Winners don't do drugs... unless they do" msgstr "Los triunfadores no usan drogas... salvo..." #: src/dopewars.c:788 msgid "Kill a cop for Christ!" msgstr "¡Mi cuerpo es mío y en él meto lo que quiero!" #: src/dopewars.c:789 msgid "I am the walrus!" msgstr "Soy Carlos Jesús, y vengo de Raticulín." #: src/dopewars.c:790 msgid "Jesus loves you more than you will know" msgstr "Espero que no te importe, pero voy a rezar por ti." #: src/dopewars.c:791 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "No somos más que un montón de átomos moviéndose en la nada." #: src/dopewars.c:792 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "¿No te encanta la música del telediario?" #: src/dopewars.c:793 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Si te ofrecen droga, di \"no\", que somos muchos y queda poca." #: src/dopewars.c:794 msgid "Would you like a jelly baby?" msgstr "La telepatía existe. ¿No sientes la energía del universo?" #: src/dopewars.c:795 msgid "Drugs can be your friend!" msgstr "" "De la piel para dentro usted es su único soberano. ¡Y las drogas son sus " "amigas!" #: src/dopewars.c:1857 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "No se ha podido procesar el fichero de configuración %s, línea %d" #: src/dopewars.c:1893 #, c-format msgid "Unable to open file %s" msgstr "No es posible abrir el fichero %s" #: src/dopewars.c:1957 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La configuración sólo se puede cambiar interactivamente cuando no hay " "ningún\n" "jugador conectado. Espera a que se desconecten todos los jugadores, o\n" "elimínalos con las órdenes echar o matar, e inténtalo otra vez." #: src/dopewars.c:2070 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "El índice en la cadena %s debe estar entre 1 y %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2095 #, c-format msgid "%s is %d\n" msgstr "%s es %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. TRUE" #: src/dopewars.c:2100 #, c-format msgid "%s is %s\n" msgstr "%s es %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. $200" #: src/dopewars.c:2106 msgid "%s is %P\n" msgstr "%s es %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. \"the loan shark\"" #: src/dopewars.c:2111 #, c-format msgid "%s is \"%s\"\n" msgstr "%s es \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. "StoppedTo[1] is have a beer" #: src/dopewars.c:2117 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] es %s\n" #. Display of the first part of an entire string list config. file #. variable - e.g. "StoppedTo is { " (followed by "have a beer", #. "smoke a joint" etc.) #: src/dopewars.c:2126 #, c-format msgid "%s is { " msgstr "%s es { " #: src/dopewars.c:2181 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s no puede ser menor de %d - se ignora" #: src/dopewars.c:2187 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2196 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Estructura lista redimensionada a %d elementos\n" #: src/dopewars.c:2234 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Se esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2418 msgid "$" msgstr "€" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. symbol to follow all prices. #: src/dopewars.c:2422 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=FALSE" #: src/dopewars.c:2549 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FICHERO usar módulo de sonido \"FICHERO\"\n" " " #: src/dopewars.c:2552 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fichero usar módulo de sonido \"fichero\"\n" "\t " #: src/dopewars.c:2556 #, c-format msgid "(%s available)\n" msgstr "(%s disponible)\n" #: src/dopewars.c:2562 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versión %s\n" #. Usage information, printed when the user runs "dopewars -h" #. (version with support for GNU long options) #: src/dopewars.c:2571 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colors\n" " --no-colour (by default colors are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b, --no-color, \"black and white\" - o sea, en blanco y negro\n" " --no-colour (por omisión se usan colores, si se puede)\n" " -n, --single-player ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 " "jugador)\n" " -a, --antique dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (sin red)\n" " -f, --scorefile=FICHERO indicar que fichero usar como tabla de " "puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o, --hostname=DIRE especificar un nombre de servidor en el que se " "puede\n" " encontrar un servidor para dopewars " "multiusuario\n" " -s, --public-server ejecutar en modo servidor (nota: lee la opción -A " "para\n" " configurar un servidor ya en funcionamiento)\n" " -S, --private-server ejecutar un servidor \"privado\" (no avisar al\n" " metaservidor)\n" " -p, --port=PUERTO indicar el puerto de red a usar (por omisión: " "7902)\n" " -g, --config-file=FICHERO indicar la ruta de un fichero de configuración " "de\n" " dopewars\n" " este fichero se lee inmediatamente cuando se\n" " encuentra la opción -g\n" " -r, --pidfile=FICHERO mantener el fichero pid \"FICHERO\" mientras se " "ejecuta\n" " el servidor\n" " -l, --logfile=FICHERO escribir la información del registro en\n" " \"FICHERO\"\n" " -A, --admin conectarse a un servidor ejecutándose localmente " "para\n" " administración\n" " -c, --ai-player crear y ejecutar un jugador automático\n" " -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o " "Win32)\n" " -t, --text-client obligar al uso de un cliente en modo texto " "(curses)\n" " (por omisión se intenta usar un cliente gráfico\n" " -P, --player=NOMBRE establecer el nombre del jugador como \"NOMBRE\"\n" " -C, --convert=FICHERO convertir un fichero de puntuaciones en el " "\"formato\n" " antiguo\" al nuevo formato\n" #: src/dopewars.c:2601 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help mostrar esta información de ayuda\n" " -v, --version mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU " "GPL\n" "Informa de fallos al autor escribiendo a benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. (short options only version) #: src/dopewars.c:2608 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colors\n" " (by default colors are used where the terminal supports them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b \"black and white\" - o sea, en blanco y negro\n" " (por omisión se usan colores, si se puede)\n" " -n ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 jugador)\n" " -a dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (no hay red)\n" " -f FICHERO indicar que fichero usar como tabla de puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o DIRE especificar un nombre de servidor en el que se\n" " puede encontrar un servidor para dopewars multiusuario\n" " -s ejecutar en modo servidor (nota: lea la opción -A para\n" " configurar un servidor que ya está en funcionamiento)\n" " -S ejecutar un servidor \"privado\" (no avisar al metaservidor)\n" " -p PUERTO indicar el puerto de red a usar (por omisión: 7902)\n" " -g FICHERO indicar la ruta de un fichero de configuración de dopewars\n" "este fichero se lee inmediatamente cuando se encuentra la opción -g\n" " -r FICHERO mantener el fichero pid \"FICHERO\" mientras se ejecuta el " "servidor\n" " -l FICHERO escribir la información del registro en \"FICHERO\"\n" " -c crear y ejecutar un jugador automático\n" " -w obligar al uso de un cliente gráfico (GTK+ o Win32)\n" " -t obligar al uso de un cliente en modo texto (curses) (por\n" " omisión se usa un cliente gráfico si es posible)\n" " -P nombre establecer el nombre del jugador a \"nombre\"\n" " -C FICHERO convertir un fichero de puntuaciones en el \"formato antiguo" "\" al nuevo formato\n" " -A conectarse a un servidor ejecutándose localmente para " "administración\n" #: src/dopewars.c:2637 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h mostrar esta información de ayuda\n" " -v mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2022, y está publicado bajo la GNU " "GPL\n" "Informa de fallos al autor escribiendo a benwebb@users.sf.net\n" #: src/dopewars.c:2904 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "El cliente curses no está disponible - vuelve a construir el binario\n" "pasando la opción --enable-curses-client a configure, o usa una\n" "versión gráfica (si es posible) es su lugar.\n" #: src/dopewars.c:2924 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "El cliente gráfico no está disponible - vuelve a construir\n" "el binario pasando la opción --enable-gui-client a configure,\n" "o usa el cliente curses (si está disponible) en su lugar.\n" #: src/dopewars.c:2972 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:2993 src/winmain.c:359 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto\n" "no se puede ejecutar en modo servidor. Recompila pasando\n" "la opción --enable-networking al script configure.\n" #: src/curses_client/curses_client.c:326 msgid "English Translation Ben Webb" msgstr "Traducción al español Quique" #. Curses client introduction screen #: src/curses_client/curses_client.c:334 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:339 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una simulación" #: src/curses_client/curses_client.c:341 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" "de un mercado de la droga imaginario. Dopewars es un juego para toda la" #: src/curses_client/curses_client.c:343 msgid "buying, selling, and trying to get past the cops!" msgstr "" "familia que consiste en ganar dinero con la compraventa (y eludir a la poli)." #: src/curses_client/curses_client.c:345 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "Lo primero que tienes que hacer es saldar la deuda con tu usurero. Después" #: src/curses_client/curses_client.c:347 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "tu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)" #: src/curses_client/curses_client.c:349 msgid "You have one month of game time to make your fortune." msgstr "Tienes un mes de tiempo de juego para amasar tu fortuna." #: src/curses_client/curses_client.c:351 #, c-format msgid "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:354 msgid "dopewars is released under the GNU General Public License" msgstr "dopewars está publicado bajo la GNU General Public License" #: src/curses_client/curses_client.c:362 msgid "Icons and Graphics Ocelot Mantis" msgstr "Iconos y gráficos Ocelot Mantis" #: src/curses_client/curses_client.c:363 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sonidos Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:364 msgid "Drug Dealing and Research Dan Wolf" msgstr "Compraventa de drogas e investigación Dan Wolf " #: src/curses_client/curses_client.c:365 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeo del juego Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:367 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeo intensivo del juego Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:369 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Críticas constructivas Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:371 msgid "Unconstructive Criticism James Matthews" msgstr "Críticas destructivas James Matthews" #: src/curses_client/curses_client.c:373 msgid "For information on the command line options, type dopewars -h at your" msgstr "Para conocer las opciones en la línea de órdenes, escribe dopewars -h" #: src/curses_client/curses_client.c:375 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "en tu terminal. Se mostrará una pantalla de ayuda con las opciones " "disponibles." #. Prompts for hostname and port when selecting a server #. manually #: src/curses_client/curses_client.c:401 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Introduce el nombre y puerto de un servidor doperwars:-" #: src/curses_client/curses_client.c:402 msgid "Hostname: " msgstr "Nombre del servidor: " #: src/curses_client/curses_client.c:406 msgid "Port: " msgstr "Puerto: " #: src/curses_client/curses_client.c:432 msgid "Please wait... attempting to contact metaserver..." msgstr "Por favor, espera... intentando contactar con el metaservidor..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:495 #, c-format msgid "Server : %s" msgstr "Servidor: %s" #: src/curses_client/curses_client.c:497 #, c-format msgid "Port : %d" msgstr "Puerto : %d" #: src/curses_client/curses_client.c:499 #, c-format msgid "Version : %s" msgstr "Versión : %s" #: src/curses_client/curses_client.c:502 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Jugadores: -desconocido- (máximo %d)" #: src/curses_client/curses_client.c:505 #, c-format msgid "Players: %d (maximum %d)" msgstr "Jugadores: %d (máximo %d)" #: src/curses_client/curses_client.c:509 #, c-format msgid "Up since : %s" msgstr "En funcionamiento desde: %s" #: src/curses_client/curses_client.c:511 #, c-format msgid "Comment: %s" msgstr "Comentario: %s" #: src/curses_client/curses_client.c:515 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>iguiente servidor: A>nterior servidor; E>scoger este servidor... " #. The three keys that are valid responses to the previous question - #. if you translate them, keep the keys in the same order (N>ext, #. P>revious, S>elect) as they are here, otherwise they'll do the #. wrong things. #: src/curses_client/curses_client.c:521 msgid "NPS" msgstr "SAE" #: src/curses_client/curses_client.c:570 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Conectado al servidor SOCKS %s..." #: src/curses_client/curses_client.c:574 msgid "Authenticating with SOCKS server" msgstr "Autenticando contra el servidor SOCKS" #: src/curses_client/curses_client.c:577 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Pidiendo SOCKS para conectarse a %s..." #: src/curses_client/curses_client.c:598 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "Se requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)" #: src/curses_client/curses_client.c:601 msgid "User name: " msgstr "Nombre de usuario: " #: src/curses_client/curses_client.c:603 msgid "Password: " msgstr "Contraseña: " #: src/curses_client/curses_client.c:698 msgid "Please wait... attempting to contact dopewars server..." msgstr "Por favor, espera... intentando contactar con el servidor dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:709 msgid "Cannot get metaserver details" msgstr "No se pueden obtener los detalles del metaservidor" #. Display of an error message while trying to contact a dopewars #. server (the error message itself is displayed on the next #. screen line) #: src/curses_client/curses_client.c:717 msgid "Could not start multiplayer dopewars" msgstr "No se puede iniciar dopewars en modo multijugador" #: src/curses_client/curses_client.c:720 msgid "connection to server failed" msgstr "" #: src/curses_client/curses_client.c:727 msgid "Will you... C>onnect to a named dopewars server" msgstr "¿Quieres... C>onectarte a un servidor dopewars determinado" #: src/curses_client/curses_client.c:729 msgid " L>ist the servers on the metaserver, and select one" msgstr "" " L>istar los servidores que hay en el metaservidor, y elegir uno" #: src/curses_client/curses_client.c:732 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" " S>alir (puedes iniciar un servidor tecleando «dopewars -s»)" #: src/curses_client/curses_client.c:734 msgid " or P>lay single-player ? " msgstr " o J>ugar en modo 1 jugador? " #. Translate these 4 keys in line with the above options, keeping #. the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:739 msgid "CLQP" msgstr "CLSJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:832 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:839 src/gui_client/gtk_client.c:1460 msgid "Where to, dude ? " msgstr "¿Dónde quieres ir, colega? " #: src/curses_client/curses_client.c:845 msgid "%/Location display/%tde" msgstr "%/Location display/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. default) #: src/curses_client/curses_client.c:881 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "No puedes conseguir ni un pavo por estas %tde que llevas:" #: src/curses_client/curses_client.c:894 msgid "What do you want to drop? " msgstr "¿Qué quieres tirar? " #: src/curses_client/curses_client.c:904 msgid "How many do you drop? " msgstr "¿Cuántas quieres tirar? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:940 src/curses_client/curses_client.c:1424 msgid "What do you wish to buy? " msgstr "¿Qué quieres pillar? " #: src/curses_client/curses_client.c:942 src/curses_client/curses_client.c:1376 msgid "What do you wish to sell? " msgstr "¿Qué quieres pulir? " #. Display of number of drugs you could buy and/or carry, when #. buying drugs #: src/curses_client/curses_client.c:960 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tienes pasta para comprar %d, y espacio para llevar %d. " #: src/curses_client/curses_client.c:963 msgid "How many do you buy? " msgstr "¿Cuánto quieres? " #: src/curses_client/curses_client.c:976 #, c-format msgid "You have %d. " msgstr "Tienes %d. " #: src/curses_client/curses_client.c:979 msgid "How many do you sell? " msgstr "¿Cuánto quieres vender? " #: src/curses_client/curses_client.c:1012 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Elige un recado que encargar a una de tus %tde..." #: src/curses_client/curses_client.c:1018 msgid " S>py on another dealer (cost: %P)" msgstr " E>spiar a otro camello (precio: %P)" #: src/curses_client/curses_client.c:1022 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " S>oplarse a la bofia de otro camello (precio: %P)" #: src/curses_client/curses_client.c:1025 msgid " G>et stuffed" msgstr " I>rse a tomar por culo" #: src/curses_client/curses_client.c:1028 msgid "or C>ontact your spies and receive reports" msgstr "o C>ontactar con tus espias y recibir las informaciones" #: src/curses_client/curses_client.c:1030 msgid "or N>o errand ? " msgstr "o N>o mandar ningún encargo " #. Translate these 5 keys to match the above options, keeping the #. original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. N>o errand) #: src/curses_client/curses_client.c:1037 msgid "STGCN" msgstr "ESICN" #: src/curses_client/curses_client.c:1042 msgid "Whom do you want to spy on? " msgstr "¿A quién quieres espiar? " #: src/curses_client/curses_client.c:1048 msgid "Whom do you want to tip the cops off to? " msgstr "¿De quién quieres chivarte a la pasma? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1055 msgid " Are you sure? " msgstr " ¿Estás seguro? " #. The two keys that are valid for answering Yes/No - if you #. translate them, keep them in the same order - i.e. "Yes" before #. "No" #: src/curses_client/curses_client.c:1060 #: src/curses_client/curses_client.c:1083 #: src/curses_client/curses_client.c:2833 msgid "YN" msgstr "SN" #: src/curses_client/curses_client.c:1081 msgid "Are you sure you want to quit? " msgstr "¿Estás seguro de que quieres salir? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1094 msgid "New name: " msgstr "Nuevo nombre: " #: src/curses_client/curses_client.c:1161 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Has sido expulsado del servidor. Pasando al modo 1 jugador." #: src/curses_client/curses_client.c:1171 msgid "The server has terminated. Reverting to single player mode." msgstr "El servidor se ha desconectado. Pasando al módulo 1 jugador." #: src/curses_client/curses_client.c:1191 src/gui_client/gtk_client.c:518 #: src/serverside.c:378 #, c-format msgid "%s joins the game!" msgstr "¡%s se une al juego!" #: src/curses_client/curses_client.c:1198 src/gui_client/gtk_client.c:527 #, c-format msgid "%s has left the game." msgstr "%s ha dejado el juego." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1206 #, c-format msgid "%s will now be known as %s." msgstr "%s es ahora conocido como %s." #: src/curses_client/curses_client.c:1228 msgid "S U B W A Y" msgstr "M E T R O" #: src/curses_client/curses_client.c:1235 #: src/curses_client/curses_client.c:2093 src/gui_client/gtk_client.c:1201 msgid "%/Current location/%tde" msgstr "%/Ubicación actual/%tde" #: src/curses_client/curses_client.c:1277 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Desgraciadamente ya hay alguien usando «tu» nombre. Elige otro." #: src/curses_client/curses_client.c:1304 msgid "H I G H S C O R E S" msgstr "P U N T U A C I O N E S" #. Error - player tried to sell guns that he/she doesn't have #. (%tde="guns" by default) #: src/curses_client/curses_client.c:1368 src/gui_client/gtk_client.c:1824 #, c-format msgid "You don't have any %tde to sell!" msgstr "¡No tienes ningún %tde que vender!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1387 src/gui_client/gtk_client.c:1845 msgid "You don't have any to sell!" msgstr "¡No tienes ninguna que vender!" #. Error - player tried to buy more guns #. than his/her bitches can carry (1st #. %tde="bitches", 2nd %tde="guns" by #. default) #: src/curses_client/curses_client.c:1415 src/gui_client/gtk_client.c:1830 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "¡Necesitas más %tde para que te guarden más %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1436 src/gui_client/gtk_client.c:1836 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "¡No tienes suficiente espacio para llevar ese %tde!" #. Error - player tried to buy a gun that he/she can't afford #. (%tde="gun" by default) #: src/curses_client/curses_client.c:1446 src/gui_client/gtk_client.c:1841 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "¡No tienes suficientes pelas para comprar ese %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1486 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "¿Quieres C>omprar, P>ulir o D>arte el piro? " #. Translate these three keys in line with the above options, keeping #. the order (B>uy, S>ell, L>eave) the same - you can change the #. wording of the prompt, but if you change the order in this key #. list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1496 msgid "BSL" msgstr "CPD" #: src/curses_client/curses_client.c:1519 msgid "How much money do you pay back? " msgstr "¿Cuánto dinero quieres devolver? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. he/she has #: src/curses_client/curses_client.c:1530 #: src/curses_client/curses_client.c:1576 src/gui_client/gtk_client.c:2524 msgid "You don't have that much money!" msgstr "¡No tienes tanta pasta!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1555 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "¿Quieres I>ngresar dinero, S>acar dinero o L>argarte?" #. Make sure you keep the order the same if you translate these keys! #. (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1561 msgid "DWL" msgstr "ISL" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1565 msgid "How much money? " msgstr "¿Cuánto dinero? " #. Error - player has tried to withdraw more money from the bank #. than there is in the account #: src/curses_client/curses_client.c:1581 msgid "There isn't that much money in the bank..." msgstr "No tienes tantos dineros en el banco..." #. Expansions of the single-letter keypresses for the benefit of the #. user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. to the user which letter in the word corresponds to the keypress, by #. capitalising it or similar. #: src/curses_client/curses_client.c:1631 msgid "Y:Yes" msgstr "S:Sí" #: src/curses_client/curses_client.c:1631 msgid "N:No" msgstr "N:No" #: src/curses_client/curses_client.c:1631 msgid "R:Run" msgstr "C:Correr" #: src/curses_client/curses_client.c:1632 msgid "F:Fight" msgstr "E:Enfrentarse" #: src/curses_client/curses_client.c:1632 msgid "A:Attack" msgstr "A:Atacar" #: src/curses_client/curses_client.c:1632 msgid "E:Evade" msgstr "H:Huir" #: src/curses_client/curses_client.c:1769 msgid "Press any key..." msgstr "Pulsa cualquier tecla..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:2033 msgid "Messages (-/+ scrolls up/down)" msgstr "Mensajes (-/+ desplaza hacia arriba/abajo)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:2043 src/gui_client/gtk_client.c:2263 msgid "Stats" msgstr "Situación" #. Display of the player's cash in the stats window #. Player's cash label in GTK+ client status display #: src/curses_client/curses_client.c:2048 src/gui_client/gtk_client.c:2087 msgid "Cash" msgstr "Pasta" #. Display of the total number of guns carried (%Tde="Guns" by default) #. Title of the "guns" window (the only important bit in this string #. is the "%Tde" which is "Guns" by default) #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2054 #: src/curses_client/curses_client.c:2133 src/gui_client/gtk_client.c:1224 msgid "%/Stats: Guns/%Tde" msgstr "%Tde" #. Display of the player's health #. Player's health label in GTK+ client status display #: src/curses_client/curses_client.c:2060 src/gui_client/gtk_client.c:2118 msgid "Health" msgstr "Salud" #. Display of the player's bank balance #. Player's bank balance label in GTK+ client status display #: src/curses_client/curses_client.c:2065 src/gui_client/gtk_client.c:2101 msgid "Bank" msgstr "Banco" #. Display of the player's debt #. Player's debt label in GTK+ client status display #: src/curses_client/curses_client.c:2073 src/gui_client/gtk_client.c:2094 msgid "Debt" msgstr "Pufo" #: src/curses_client/curses_client.c:2085 #, c-format msgid "Space %6d" msgstr "Espacio %4d" #. Display of the player's number of bitches, and available space #. (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2089 msgid "%Tde %3d Space %6d" msgstr "%Tde %5d Espacio %4d" #: src/curses_client/curses_client.c:2102 msgid "Trenchcoat" msgstr "Gabardina" #. Title of the "drugs" window (the only important bit in this #. string is the "%Tde" which is "Drugs" by default; the %/.../ part #. is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2108 msgid "%/Stats: Drugs/%Tde" msgstr "%/Situación: Drogas/%Tde" #: src/curses_client/curses_client.c:2116 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d a %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2123 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2138 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2163 #, c-format msgid "Spy reports for %s" msgstr "Información sobre %s de las espías" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. default) #: src/curses_client/curses_client.c:2169 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Espía: Drogas/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2177 msgid "%/Spy: Guns/%Tde..." msgstr "%/Espía: Armas/%Tde..." #: src/curses_client/curses_client.c:2205 msgid "No other players are currently logged on!" msgstr "¡No hay ningún otro jugador conectado en este momento!" #: src/curses_client/curses_client.c:2210 msgid "Players currently logged on:-" msgstr "Jugadores conectados en este momento:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2386 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Eh, tío. Los precios de las %tde aquí son:" #. List of individual drug names for selection (%tde="Opium" etc. #. by default) #: src/curses_client/curses_client.c:2397 msgid "%/Drug Select/%c. %tde" msgstr "%c. %tde" #: src/curses_client/curses_client.c:2443 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGWINCH!" #: src/curses_client/curses_client.c:2460 msgid "Hey dude, what's your name? " msgstr "Eh tío, ¿cómo te llamas? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2504 msgid "Will you B>uy" msgstr "¿Quieres C>omprar" #: src/curses_client/curses_client.c:2506 msgid ", S>ell" msgstr ", P>ulir" #: src/curses_client/curses_client.c:2508 msgid ", D>rop" msgstr ", T>irar" #: src/curses_client/curses_client.c:2510 msgid ", T>alk, P>age" msgstr ", H>ablar a todos, hablar a un J>ugador" #: src/curses_client/curses_client.c:2511 msgid ", L>ist" msgstr ", L>istar" #: src/curses_client/curses_client.c:2514 msgid ", G>ive" msgstr ", M>andar recado" #: src/curses_client/curses_client.c:2517 msgid ", F>ight" msgstr ", E>nfrentarte" #: src/curses_client/curses_client.c:2519 msgid ", J>et" msgstr ", D>arte el piro" #: src/curses_client/curses_client.c:2521 msgid ", or Q>uit? " msgstr ", o S>alir? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2530 msgid "Do you " msgstr "¿Quieres " #: src/curses_client/curses_client.c:2533 msgid "F>ight, " msgstr "L>uchar, " #: src/curses_client/curses_client.c:2535 msgid "S>tand, " msgstr "E>sperar, " #: src/curses_client/curses_client.c:2539 msgid "R>un, " msgstr "C>orrer, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2542 #, c-format msgid "D>eal %tde, " msgstr "P>ulir %tde, " #: src/curses_client/curses_client.c:2543 msgid "or Q>uit? " msgstr "o S>alir? " #: src/curses_client/curses_client.c:2608 msgid "Connection to server lost! Reverting to single player mode" msgstr "Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador." #. N.B. You must keep the order of these keys the same as the #. original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2633 msgid "BSDTPLGFJQ" msgstr "CPTHJLMEDS" #. N.B. You must keep the order of these keys the same as the #. original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. Q>uit) #: src/curses_client/curses_client.c:2639 msgid "DRFSQ" msgstr "PCLES" #: src/curses_client/curses_client.c:2671 msgid "List what? P>layers or S>cores? " msgstr "¿Qué lista quieres? ¿J>ugadores o P>untuaciones? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2673 msgid "PS" msgstr "JP" #: src/curses_client/curses_client.c:2686 msgid "Whom do you want to page (talk privately to) ? " msgstr "¿Con quién quieres hablar en privado?" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2692 #: src/curses_client/curses_client.c:2706 msgid "Talk: " msgstr "Decir: " #: src/curses_client/curses_client.c:2832 msgid "Play again? " msgstr "¿Jugar otra vez? " #. The names of the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:162 msgid "/_Game" msgstr "/_Juego" #: src/gui_client/gtk_client.c:163 msgid "/Game/_New..." msgstr "/Juego/_Nueva partida..." #: src/gui_client/gtk_client.c:164 msgid "/Game/_Abandon..." msgstr "/Juego/_Abandonar partida..." #: src/gui_client/gtk_client.c:165 msgid "/Game/_Options..." msgstr "/Juego/_Opciones..." #: src/gui_client/gtk_client.c:166 msgid "/Game/Enable _sound" msgstr "/Juego/Habilitar _sonido" #: src/gui_client/gtk_client.c:167 msgid "/Game/_Quit..." msgstr "/Juego/_Salir..." #: src/gui_client/gtk_client.c:168 msgid "/_Talk" msgstr "/_Hablar" #: src/gui_client/gtk_client.c:169 msgid "/Talk/To _All..." msgstr "/Hablar/_Hablar a todos..." #: src/gui_client/gtk_client.c:170 msgid "/Talk/To _Player..." msgstr "/Hablar/Hablar al _Jugador..." #: src/gui_client/gtk_client.c:171 msgid "/_List" msgstr "/_Listar" #: src/gui_client/gtk_client.c:172 msgid "/List/_Players..." msgstr "/Listar/_Jugadores..." #: src/gui_client/gtk_client.c:173 msgid "/List/_Scores..." msgstr "/Listar/_Puntuaciones..." #: src/gui_client/gtk_client.c:174 msgid "/List/_Inventory..." msgstr "/Listar/_Inventario..." #: src/gui_client/gtk_client.c:175 msgid "/_Errands" msgstr "/_Recados" #: src/gui_client/gtk_client.c:176 msgid "/Errands/_Spy..." msgstr "/Recados/_Espiar..." #: src/gui_client/gtk_client.c:177 msgid "/Errands/_Tipoff..." msgstr "/Recados/_Chivarse a la policía..." #: src/gui_client/gtk_client.c:181 msgid "/Errands/_Get spy reports..." msgstr "/Recados/_Obtener información de las espías..." #: src/gui_client/gtk_client.c:182 msgid "/_Help" msgstr "/_Ayuda" #: src/gui_client/gtk_client.c:183 msgid "/Help/_About..." msgstr "/Ayuda/_Acerca de..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:197 msgid "Warning" msgstr "Advertencia" #: src/gui_client/gtk_client.c:198 msgid "Error" msgstr "Error" #: src/gui_client/gtk_client.c:199 msgid "Message" msgstr "Mensaje" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:241 src/gui_client/gtk_client.c:257 #: src/gui_client/gtk_client.c:266 src/gui_client/gtk_client.c:288 msgid "Abandon current game?" msgstr "¿Abandonar esta partida?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:243 src/gui_client/gtk_client.c:258 msgid "Quit Game" msgstr "Salir del juego" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:268 msgid "Start new game" msgstr "Empezar nueva partida" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:290 msgid "Abandon game" msgstr "Abandonar esta partida" #. Title of inventory window #: src/gui_client/gtk_client.c:330 msgid "Inventory" msgstr "Inventario" #: src/gui_client/gtk_client.c:353 src/gui_client/gtk_client.c:764 #: src/gui_client/gtk_client.c:2684 src/gui_client/gtk_client.c:2824 #: src/gui_client/gtk_client.c:3267 src/gui_client/gtk_client.c:3327 msgid "_Close" msgstr "Cerrar _Ventana" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:409 msgid "Connection to server lost - switching to single player mode" msgstr "Se ha perdido la conexión con el servidor - pasando al modo 1 jugador" #. The server admin has asked us to leave - so warn the user, and do #. so #: src/gui_client/gtk_client.c:478 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Has sido expulsado del servidor.\n" "Pasando al modo 1 jugador." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:486 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "El servidor se ha apagado.\n" "Pasando al modo 1 jugador." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:545 #, c-format msgid "Jetting to %tde" msgstr "Yendo %tal" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:556 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Elemento de menú echar a una puta/E_char a una %Tde..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:565 msgid "_Spy (%P)" msgstr "_Espiar (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. tipoff #: src/gui_client/gtk_client.c:571 msgid "_Tipoff (%P)" msgstr "_Chivarse (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:629 msgid "High Scores" msgstr "Puntuaciones" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:681 src/gui_client/gtk_client.c:697 msgid "Corrupt high score!" msgstr "El fichero de puntuaciones está corrupto :-(" #: src/gui_client/gtk_client.c:892 msgid "Fight" msgstr "Enfrentarse" #. Button for closing the "Fight" dialog and going back to dealing drugs #. (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:933 msgid "_Deal %Tde" msgstr "¡A _Trapichear!" #. Button for shooting at other players in the "Fight" dialog, or for #. popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:940 src/gui_client/gtk_client.c:1883 #: src/gui_client/gtk_client.c:2140 msgid "_Fight" msgstr "_Luchar" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:944 msgid "_Stand" msgstr "_Esperar" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:948 src/gui_client/gtk_client.c:1882 msgid "_Run" msgstr "_Correr" #. Display of number of bitches or deputies during combat #. (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1014 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Enfrentamiento: Putas/%d %tde" #: src/gui_client/gtk_client.c:1019 msgid "(Left)" msgstr "(Quedan)" #: src/gui_client/gtk_client.c:1021 msgid "(Dead)" msgstr "(Muertas)" #: src/gui_client/gtk_client.c:1023 #, c-format msgid "Health: %d" msgstr "Salud: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1040 msgid "You" msgstr "Tú" #. Display of number of bitches in GTK+ client status window #. (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1232 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Putas/%Tde" #: src/gui_client/gtk_client.c:1344 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1447 msgid "Jet to location" msgstr "Ir al barrio:" #: src/gui_client/gtk_client.c:1490 msgid "%/Location to jet to/%tde" msgstr "%/Lugar al que pirarse/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. default) #: src/gui_client/gtk_client.c:1499 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1534 msgid "at %P" msgstr "a %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1541 #, c-format msgid "You are currently carrying %d %tde" msgstr "Ahora llevas %d dosis de %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1548 #, c-format msgid "Available space: %d" msgstr "Espacio disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. dialog #: src/gui_client/gtk_client.c:1561 #, c-format msgid "You can afford %d" msgstr "Tienes dinero para comprar %d" #: src/gui_client/gtk_client.c:1634 msgid "Buy" msgstr "Comprar" #: src/gui_client/gtk_client.c:1636 msgid "Sell" msgstr "Pulir" #: src/gui_client/gtk_client.c:1638 msgid "Drop" msgstr "Tirar" #: src/gui_client/gtk_client.c:1707 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1744 msgid "Buy how many?" msgstr "¿Cuánto quieres comprar?" #: src/gui_client/gtk_client.c:1746 msgid "Sell how many?" msgstr "¿Cuánto quieres pulir?" #: src/gui_client/gtk_client.c:1748 msgid "Drop how many?" msgstr "¿Cuánto quieres tirar?" #: src/gui_client/gtk_client.c:1764 src/gui_client/gtk_client.c:2456 #: src/gui_client/gtk_client.c:2625 src/gui_client/gtk_client.c:2984 #: src/gui_client/gtk_client.c:3213 src/gui_client/optdialog.c:1050 #: src/gui_client/newgamedia.c:774 src/gtkport/gtkport.c:5358 msgid "_OK" msgstr "_Aceptar" #: src/gui_client/gtk_client.c:1771 src/gui_client/gtk_client.c:2637 #: src/gui_client/gtk_client.c:2991 src/gui_client/optdialog.c:1060 #: src/gui_client/newgamedia.c:779 src/gtkport/gtkport.c:5358 #: src/gtkport/gtkport.c:5484 msgid "_Cancel" msgstr "_Cancelar" #: src/gui_client/gtk_client.c:1814 #, c-format msgid "Buy %tde" msgstr "Comprar %tde" #: src/gui_client/gtk_client.c:1816 #, c-format msgid "Sell %tde" msgstr "Pulir %tde" #: src/gui_client/gtk_client.c:1818 #, c-format msgid "Drop %tde" msgstr "Tirar %tde" #. Button titles that correspond to the single-keypress options provided #. by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1929 #: src/gtkport/gtkport.c:5358 msgid "_Yes" msgstr "_Sí" #: src/gui_client/gtk_client.c:1882 src/gui_client/gtk_client.c:1932 #: src/gtkport/gtkport.c:5358 msgid "_No" msgstr "_No" #: src/gui_client/gtk_client.c:1883 msgid "_Attack" msgstr "_Atacar" #: src/gui_client/gtk_client.c:1883 msgid "_Evade" msgstr "_Huir" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1906 msgid "Question" msgstr "Pregunta" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2080 msgid "Space" msgstr "Espacio" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2143 msgid "_Jet!" msgstr "¡_Darse el piro!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2234 src/winmain.c:381 src/winmain.c:390 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2369 msgid "English Translation" msgstr "Traducción al español" #: src/gui_client/gtk_client.c:2369 msgid "Ben Webb" msgstr "Quique" #: src/gui_client/gtk_client.c:2370 msgid "Icons and graphics" msgstr "Iconos y gráficos" #: src/gui_client/gtk_client.c:2371 src/gui_client/optdialog.c:1038 msgid "Sounds" msgstr "Sonidos" #: src/gui_client/gtk_client.c:2372 msgid "Drug Dealing and Research" msgstr "Compraventa de drogas e investigación" #: src/gui_client/gtk_client.c:2373 msgid "Play Testing" msgstr "Testeo del juego" #: src/gui_client/gtk_client.c:2374 msgid "Extensive Play Testing" msgstr "Testeo intensivo del juego" #: src/gui_client/gtk_client.c:2376 msgid "Constructive Criticism" msgstr "Críticas constructivas" #: src/gui_client/gtk_client.c:2378 msgid "Unconstructive Criticism" msgstr "Críticas destructivas" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2386 msgid "About dopewars" msgstr "Acerca de Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2397 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una \n" "simulación de un mercado de la droga imaginario. Dopewars es un juego \n" "para toda la familia que consiste en la compraventa de droga y en intentar \n" "evitar a la policía.\n" "\n" "Lo primero que tienes que hacer es saldar la deuda con tu usurero. \n" "Después, tu objetivo es hacer tanto dinero como sea posible (¡y seguir \n" "vivo!) Tienes un mes de tiempo de juego para amasar tu fortuna.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2410 #, c-format msgid "" "Version %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public License\n" msgstr "" "Versión %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net\n" "dopewars está publicado bajo la GNU General Public License\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2439 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Para obtener información sobre las opciones en la línea de órdenes,\n" "escribe dopewars -h en tu terminal Unix. Esto mostrará una pantalla\n" "de ayuda con las opciones disponibles.\n" #: src/gui_client/gtk_client.c:2446 msgid "Local HTML documentation" msgstr "Documentación local en HTML " #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2502 src/gui_client/gtk_client.c:2554 msgid "%/LoanShark window title/%Tde" msgstr "%/Título de la ventana del usurero/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2509 src/gui_client/gtk_client.c:2558 msgid "%/BankName window title/%Tde" msgstr "%/Título de la ventana del banco/%Tde" #: src/gui_client/gtk_client.c:2518 msgid "You must enter a positive amount of money!" msgstr "¡Tienes que introducir una cantidad positiva de dinero!" #: src/gui_client/gtk_client.c:2521 msgid "There isn't that much money available..." msgstr "No tienes tantos dineros en el banco..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2574 msgid "Cash: %P" msgstr "Pasta en efectivo: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2580 msgid "Debt: %P" msgstr "Pufo: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2583 msgid "Bank: %P" msgstr "Banco: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2591 msgid "Pay back:" msgstr "Saldar:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2595 msgid "Deposit" msgstr "Ingresar" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2601 msgid "Withdraw" msgstr "Sacar" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2632 msgid "Pay all" msgstr "Pagar todo" #. Title of player list dialog #: src/gui_client/gtk_client.c:2663 msgid "Player List" msgstr "Lista de jugadores" #. Title of talk dialog #: src/gui_client/gtk_client.c:2775 msgid "Talk to player(s)" msgstr "Hablar al jugador (o jugadores)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2797 msgid "Talk to all players" msgstr "Hablar a todos los jugadores" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2803 msgid "Message:-" msgstr "Mensaje:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2818 msgid "Send" msgstr "Enviar" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2937 msgid "Spy On Player" msgstr "Espiar al jugador" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2941 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elige al jugador al quieres espiar. Tu %tde ofrecerá\n" "sus servicios a ese jugador, y si tiene éxito, podrás ver la\n" "situación del jugador con el menú \"Obtener informes de las\n" "espías\" Recuerda que la %tde se va, así que puedes perder\n" "todas las %tde o %tde que te esté guardando." #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2956 msgid "Tip Off The Cops" msgstr "Chivarse a la pasma" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2960 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elige al jugador del que quieres chivarte a la pasma. Tu\n" "%tde ayudará a los maderos a atacar a ese jugador, y te informará\n" "del resultado cuando os encontreis. Recuerda que la %tde se va\n" "a ir temporalmente, así que puedes perder todas las %tde o %tde\n" "que te esté guardando." #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3011 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Título del diálogo Echar a una puta/Echar a una %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3016 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "¿Estás seguro? (Perderás todas las %tde y %tde\n" "que te esté guardando esta %tde!)" #. Column titles for display of drugs/guns carried or available for #. purchase #: src/gui_client/gtk_client.c:3047 src/gui_client/optdialog.c:677 msgid "Name" msgstr "Nombre" #: src/gui_client/gtk_client.c:3048 src/gui_client/optdialog.c:827 msgid "Price" msgstr "Precio" #: src/gui_client/gtk_client.c:3049 msgid "Number" msgstr "Número" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3052 msgid "_Buy ->" msgstr "_Comprar ->" #: src/gui_client/gtk_client.c:3053 msgid "<- _Sell" msgstr "<- _Pulir" #: src/gui_client/gtk_client.c:3054 msgid "_Drop <-" msgstr "_Tirar <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. "Drugs" by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde here" msgstr "%Tde aquí" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. by default) #: src/gui_client/gtk_client.c:3067 msgid "%Tde carried" msgstr "%Tde que tienes" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3186 msgid "Change Name" msgstr "Cambiar nombre" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3199 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Desgraciadamente ya hay otro jugador usando «tu» nombre. Elije otro" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. by default) #: src/gui_client/gtk_client.c:3244 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Ventana de la armería/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3311 msgid "Spy reports" msgstr "Información de las espías" #: src/gui_client/optdialog.c:420 #, c-format msgid "New %s" msgstr "Nuevo %s" #: src/gui_client/optdialog.c:603 msgid "Select sound file" msgstr "Seleccionar fichero de sonido" #: src/gui_client/optdialog.c:728 msgid "New" msgstr "Nuevo" #: src/gui_client/optdialog.c:734 msgid "Delete" msgstr "Borrar" #: src/gui_client/optdialog.c:744 msgid "Up" msgstr "Arriba" #: src/gui_client/optdialog.c:752 msgid "Down" msgstr "Abajo" #: src/gui_client/optdialog.c:813 msgid "Police presence" msgstr "Presencia policial" #: src/gui_client/optdialog.c:814 msgid "Minimum no. of drugs" msgstr "Número mínimo de distintas clases de droga" #: src/gui_client/optdialog.c:815 msgid "Maximum no. of drugs" msgstr "Número máximo de distintos tipo de droga" #: src/gui_client/optdialog.c:819 msgid "Minimum normal price" msgstr "Mínimo precio normal" #: src/gui_client/optdialog.c:820 msgid "Maximum normal price" msgstr "Máximo precio normal" #: src/gui_client/optdialog.c:821 msgid "Can be specially cheap" msgstr "Puede ser especialmente barata" #: src/gui_client/optdialog.c:822 msgid "Cheap string" msgstr "Frase barata" #: src/gui_client/optdialog.c:823 msgid "Can be specially expensive" msgstr "Puede ser especialmente cara" #: src/gui_client/optdialog.c:828 msgid "Inventory space" msgstr "Inventario" #: src/gui_client/optdialog.c:829 msgid "Damage" msgstr "Daño" #: src/gui_client/optdialog.c:833 msgid "Name of one deputy" msgstr "Nombre de un ayudante" #: src/gui_client/optdialog.c:834 msgid "Name of several deputies" msgstr "Nombre de varios ayudantes" #: src/gui_client/optdialog.c:835 msgid "Minimum no. of deputies" msgstr "Número mínimo de ayudantes" #: src/gui_client/optdialog.c:836 msgid "Maximum no. of deputies" msgstr "Número máximo de ayudantes" #: src/gui_client/optdialog.c:837 msgid "Cop armor" msgstr "Blindaje del madero" #: src/gui_client/optdialog.c:838 msgid "Deputy armor" msgstr "Blindaje del ayudante" #: src/gui_client/optdialog.c:846 msgid "Options" msgstr "Opciones" #: src/gui_client/optdialog.c:862 msgid "Remove drug references" msgstr "Eliminar las referencias a drogas" #: src/gui_client/optdialog.c:865 msgid "Unicode config file" msgstr "Fichero de configuración de Unicode" #: src/gui_client/optdialog.c:870 msgid "Game length (turns)" msgstr "Duración de la partida (turnos)" #: src/gui_client/optdialog.c:875 msgid "Starting cash" msgstr "Capital inicial" #: src/gui_client/optdialog.c:880 msgid "Starting debt" msgstr "Deuda inicial" #: src/gui_client/optdialog.c:885 msgid "Currency symbol" msgstr "Símbolo de dinero" #: src/gui_client/optdialog.c:889 msgid "Symbol prefixes prices" msgstr "Símbolo antes del precio" #: src/gui_client/optdialog.c:892 msgid "Name of one bitch" msgstr "Nombre de una puta" #: src/gui_client/optdialog.c:897 msgid "Name of several bitches" msgstr "Nombre de varias putas" #: src/gui_client/optdialog.c:903 msgid "Web browser" msgstr "Navegador" #: src/gui_client/optdialog.c:910 msgid "General" msgstr "General" #: src/gui_client/optdialog.c:916 msgid "Locations" msgstr "Sitios" #: src/gui_client/optdialog.c:931 msgid "Expensive string 1" msgstr "Frase cara 1" #: src/gui_client/optdialog.c:936 msgid "Expensive string 2" msgstr "Frase cara 2" #: src/gui_client/optdialog.c:942 msgid "Drugs" msgstr "Drogas" #: src/gui_client/optdialog.c:947 msgid "Guns" msgstr "Armas" #: src/gui_client/optdialog.c:952 msgid "Cops" msgstr "Maderos" #: src/gui_client/optdialog.c:961 msgid "Server reports to metaserver" msgstr "El servidor informa al metaservidor" #: src/gui_client/optdialog.c:965 msgid "Minimize to System Tray" msgstr "Minimizar a la bandeja del sistema" #: src/gui_client/optdialog.c:969 #, fuzzy msgid "Metaserver URL" msgstr "Metaservidor" #: src/gui_client/optdialog.c:974 src/gui_client/newgamedia.c:438 msgid "Comment" msgstr "Comentario" #: src/gui_client/optdialog.c:979 msgid "MOTD (welcome message)" msgstr "MOTD (mensaje de bienvenida)" #. Column titles of metaserver information #: src/gui_client/optdialog.c:985 src/gui_client/newgamedia.c:434 #: src/gui_client/newgamedia.c:595 msgid "Server" msgstr "Servidor" #: src/gui_client/optdialog.c:992 msgid "Sound name" msgstr "Nombre del sonido" #: src/gui_client/optdialog.c:993 msgid "Description" msgstr "Descripción" #: src/gui_client/optdialog.c:1019 msgid "Sound file" msgstr "Fichero de sonido" #: src/gui_client/optdialog.c:1026 msgid "Browse..." msgstr "Inspeccionar..." #: src/gui_client/optdialog.c:1031 msgid "Play" msgstr "Jugar" #: src/gui_client/optdialog.c:1055 msgid "_Help" msgstr "_Ayuda" #: src/gui_client/newgamedia.c:72 msgid "You can't start the game without giving a name first!" msgstr "¡No puedes empezar la partida sin dar un nombre antes!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:73 src/gui_client/newgamedia.c:516 msgid "New Game" msgstr "Nueva partida" #: src/gui_client/newgamedia.c:81 msgid "Status: Waiting for user input" msgstr "Situación: Esperando input del usuario" #: src/gui_client/newgamedia.c:89 src/gui_client/newgamedia.c:348 #, c-format msgid "Status: ERROR: %s" msgstr "" #: src/gui_client/newgamedia.c:156 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Conexión cerrada por el servidor remoto." #. Error: GTK+ client could not connect to the given dopewars server #: src/gui_client/newgamedia.c:160 #, c-format msgid "Status: Could not connect (%s)" msgstr "Situación: No se ha podido conectar (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:188 src/gui_client/newgamedia.c:342 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Situación: Intentando contactar con %s..." #. Displayed if we don't know how many players are logged on to a #. server #: src/gui_client/newgamedia.c:264 msgid "Unknown" msgstr "Desconocido" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. a maximum of 20 #: src/gui_client/newgamedia.c:268 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:301 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Situación: Conectado al servidor SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. and password #: src/gui_client/newgamedia.c:309 msgid "Status: Authenticating with SOCKS server" msgstr "Situación: Autenticando contra servidor SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. completed, and now we're going to try to have it connect to #. the final destination #: src/gui_client/newgamedia.c:316 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Situación: Pidiendo SOCKS para conectarse a %s..." #: src/gui_client/newgamedia.c:435 src/gui_client/newgamedia.c:576 msgid "Port" msgstr "Puerto" #: src/gui_client/newgamedia.c:436 msgid "Version" msgstr "Versión" #: src/gui_client/newgamedia.c:437 msgid "Players" msgstr "Jugadores" #. Prompt for player's name in 'New #. Game' dialog #: src/gui_client/newgamedia.c:533 msgid "Hey dude, what's your _name?" msgstr "Eh tío, ¿cuál es tu _nombre?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:558 msgid "Host name" msgstr "Nombre del servidor" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:588 src/gui_client/newgamedia.c:642 msgid "_Connect" msgstr "_Conectarse" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:604 msgid "_Antique mode" msgstr "_Modo antiguo" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:612 msgid "_Start single-player game" msgstr "_Empezar partida para 1 jugador" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:619 msgid "Single player" msgstr "1 jugador" #. Button to update metaserver information #: src/gui_client/newgamedia.c:636 msgid "_Refresh" msgstr "_Refrescar" #. Title of Metaserver notebook tab in New Game dialog #: src/gui_client/newgamedia.c:654 msgid "Metaserver" msgstr "Metaservidor" #: src/gui_client/newgamedia.c:733 msgid "SOCKS Authentication Required" msgstr "Se precisa autenticación SOCKS" #: src/gtkport/gtkport.c:5485 msgid "_Select" msgstr "" #. Informational comment placed at the start of the Windows log file #. (this is used for messages printed during processing of the config #. files - under Unix these are just printed to stdout) #: src/winmain.c:307 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "Éste es el registro de arranque de dopewars,\n" "que contiene todos los mensajes de información resultantes\n" "de procesar el fichero de configuración, etc.\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:348 src/serverside.c:1670 msgid "dopewars server" msgstr "servidor dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:369 msgid "dopewars AI" msgstr "Jugador automático de dopewars" #. Things that can "happen" to your spies - look for strings containing #. "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "se escapó" #: src/serverside.c:73 msgid "defected" msgstr "desertó" #: src/serverside.c:73 msgid "was shot" msgstr "fue disparada" #. The two keys that are valid answers to the Attack/Evade question. If #. you wish to translate them, do so in the same order as they given here. #. You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AH" #. Help on various general server commands #: src/serverside.c:129 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "ordenes y preferencias del servidor dopewars versión %s\n" "\n" "help Muestra esta pantalla de ayuda\n" "list Lista todos los jugadores conectados\n" "push Le pide educadamente al jugador nombrado que se " "vaya\n" "kill Rompe repentinamente la conexión con el jugador " "nombrado\n" "msg: Envía un mensaje a todos los jugadores\n" "save Guardar la configuración actual en el fichero " "nombrado\n" "quit Salir elegantemente, tras avisar a todos los " "jugadores\n" "= Establece la variable nombrada al valor dado\n" " Muestra el valor de la variable nombrada\n" "[x].= Establece la variable nombrada en la lista dada,\n" " index x, al valor proporcionado\n" "[x]. Muestra el valor de la variable de la lista " "nombrada\n" "\n" "Las variables válidas son:-\n" "\n" #: src/serverside.c:160 #, c-format msgid "Failed to connect to metaserver at %s (%s)" msgstr "No se ha podido conectar al metaservidor en %s (%s)" #: src/serverside.c:168 src/serverside.c:1102 #, c-format msgid "MetaServer: %s" msgstr "Metaservidor: %s" #: src/serverside.c:198 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" "Intentos para conectarse al metaservidor demasiado frecuentes - esperando al " "siguiente turno" #: src/serverside.c:240 #, c-format msgid "Waiting for connect to metaserver at %s..." msgstr "Esperando para conectarse al metaservidor en %s..." #: src/serverside.c:298 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, https://dopewars.sourceforge.io/." msgstr "" "Parece que estás usando un cliente tremendamente viejo (versión 1.4.x)^ " "Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no " "estarán soportadas. Obtén la última versión del sitio web de dopewars,^ " "https://dopewars.sourceforge.io/." #: src/serverside.c:307 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, https://dopewars.sourceforge.io/." msgstr "" "Advertencia: tu cliente es demasiado viejo para soportar todas las^ " "funcionalidades de este servidor. Para «vivir la experiencia» completa,^ " "obtén la última versión de dopewars del servidor web,^ http://dopewars." "sourceforge.net/." #: src/serverside.c:393 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" "Alcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexión" #. Message sent to a player if the #. server is full #: src/serverside.c:399 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Lo siento, pero este servidor tiene un límite de 1 jugador, que ya ha sido " "alcanzado. ^Prueba más tarde a conectarte de nuevo." #. Message sent to a player if the #. server is full #: src/serverside.c:406 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Lo siento, pero este servidor tiene un límite de %d jugadores, que ya ha " "sido alcanzado. ^Prueba a conectarte de nuevo más tarde." #. A player changed their name during the game (unusual, and not #. really properly supported anyway) - notify all players of the #. change #: src/serverside.c:422 #, c-format msgid "%s will now be known as %s" msgstr "%s es ahora conocido como %s" #: src/serverside.c:437 #, fuzzy, c-format msgid "%s: DENIED jet to invalid location %s" msgstr "%s: DENEGADO largarse a %s" #. Message displayed when a player reaches their maximum number of #. turns #: src/serverside.c:456 msgid "Your dealing time is up..." msgstr "Se acabó tu tiempo para trapichear..." #. A player has tried to jet to a new location, but we don't allow #. them to. (e.g. they're still fighting someone, or they're #. supposed to be dead) #: src/serverside.c:475 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: DENEGADO largarse a %s" #: src/serverside.c:532 #, c-format msgid "%s now spying on %s" msgstr "%s espía ahora a %s" #: src/serverside.c:541 #, c-format msgid "%s spy on %s: DENIED" msgstr "espionaje de %s a %s: DENEGADO" #: src/serverside.c:547 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s se chivó a la poli de %s" #: src/serverside.c:556 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "Chivatazo de %s sobre %s: DENEGADO" #: src/serverside.c:572 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Mensaje desconocido: %s:%c:%s:%s" #: src/serverside.c:734 #, c-format msgid "Maintaining pid file %s" msgstr "Manteniendo el fichero pid %s" #: src/serverside.c:740 #, c-format msgid "Cannot create pid file %s: %s" msgstr "No se puede crear el fichero pid %s: %s" #: src/serverside.c:788 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" "No se puede crear el socket (%s) (a la escucha) del servidor. Cancelando." #: src/serverside.c:806 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "No se puede conectar al puerto %u (%s). Cancelando." #: src/serverside.c:814 msgid "Cannot listen to network socket. Aborting." msgstr "No se puede escuchar el socket de red. Cancelando." #: src/serverside.c:820 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "servidor dopewars versión %s listo y esperando conexiones por el puerto %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:833 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGUSR1!" #: src/serverside.c:839 msgid "Cannot install SIGHUP interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGHUP!" #: src/serverside.c:845 msgid "Cannot install SIGINT interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGINT!" #: src/serverside.c:848 msgid "Cannot install SIGTERM interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGTERM!" #: src/serverside.c:853 msgid "Cannot install pipe handler!" msgstr "¡No se puede instalar el gestor de tuberías!" #: src/serverside.c:917 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "El fichero de configuración se ha guardado con éxito como %s\n" #: src/serverside.c:951 msgid "Users currently logged on:-\n" msgstr "Usuarios conectados:-\n" #: src/serverside.c:959 msgid "No users currently logged on!\n" msgstr "No hay ningún usuario conectado.\n" #: src/serverside.c:963 #, c-format msgid "Pushing %s\n" msgstr "Echando a %s\n" #: src/serverside.c:966 src/serverside.c:977 msgid "No such user!\n" msgstr "¡No existe ese usuario!\n" #. The named user has been removed from the server following #. a "kill" command #: src/serverside.c:972 #, c-format msgid "%s killed\n" msgstr "%s asesinado\n" #: src/serverside.c:979 msgid "Unknown command - try \"help\" for help...\n" msgstr "Orden desconocida - usa «help» para obtener ayuda\n" #: src/serverside.c:998 #, c-format msgid "got connection from %s" msgstr "recibida una conexión de %s" #: src/serverside.c:1011 msgid "dopewars server terminating." msgstr "cerrando el servidor dopewars." #: src/serverside.c:1020 #, c-format msgid "%s leaves the server!" msgstr "¡%s deja el servidor!" #: src/serverside.c:1105 msgid "MetaServer: (closed)" msgstr "" #: src/serverside.c:1204 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "No se ha podido establecer el socket de dominio Unix para conexiones de " "administración - comprueba los permisos en /tmp." #: src/serverside.c:1284 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "el servidor de dopewars versión %s está listo para recibir órdenes de " "administración; usa «help» para obtener ayuda" #: src/serverside.c:1287 msgid "New admin connection" msgstr "Nueva conexión de administración" #: src/serverside.c:1298 #, c-format msgid "Admin command: %s" msgstr "Orden de administración: %s" #: src/serverside.c:1304 msgid "Admin connection closed" msgstr "Conexión de administración cerrada" #: src/serverside.c:1553 src/serverside.c:1572 src/serverside.c:1579 #: src/serverside.c:1717 msgid "Failed to set NT Service status" msgstr "No se ha podido establecer el estado del Servicio NT" #: src/serverside.c:1559 msgid "Failed to post service notification message" msgstr "No se ha podido enviar el mensaje de notificación de servicio" #: src/serverside.c:1568 msgid "Failed to register service handler" msgstr "No se ha podido registrar el gestor de servicio" #: src/serverside.c:1594 msgid "Failed to start NT Service" msgstr "No se ha podido iniciar el Servicio NT" #: src/serverside.c:1681 msgid "Command:" msgstr "Orden:" #: src/serverside.c:1900 #, c-format msgid "Error reading scores from %s." msgstr "No se ha podido leer la tabla de puntuaciones del fichero %s" #: src/serverside.c:1905 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "El fichero %s de la tabla de puntuaciones se ha convertido\n" "al nuevo formato. Se ha creado una copia de respaldo del\n" "fichero antiguo, que se ha llamado %s.\n" #: src/serverside.c:1913 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "No se ha podido crear la copia de respaldo(%s) del\n" "fichero de máximas puntuaciones %s." #: src/serverside.c:1922 #, c-format msgid "Cannot open high score file %s: %s." msgstr "No se ha podido abrir el fichero de puntuaciones %s: %s." #: src/serverside.c:2027 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "No se puede abrir el fichero de máximas puntuaciones %s.\n" "(%s.) Asegúrate de que tienes permisos para acceder\n" "a este fichero o directorio, o bien indica otro fichero de\n" "puntuaciones con la opción -f en la línea de órdenes." #: src/serverside.c:2041 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s no parece ser un fichero de puntuaciones válido - \n" "por favor, compruébalo. Si es un fichero de puntuaciones\n" "de una versión antigua de dopewars, conviértela al nuevo\n" "formato ejecutando la orden «dopewars -C %s» en la\n" "línea de órdenes." #: src/serverside.c:2051 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, algunas preferencias podrían no funcionar de\n" "la manera esperada. Puedes consultar el fichero «dopewars-log.txt»\n" "para conocer los detalles." #: src/serverside.c:2056 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, puede que algunas preferencias no funcionen\n" "de la manera esperada. Puedes mirar los mensajes en la\n" "salida estándar para conocer más detalles." #: src/serverside.c:2133 #, c-format msgid "Unable to read high score file %s" msgstr "No se puede leer el fichero de máximas puntuaciones %s." #: src/serverside.c:2163 msgid "Congratulations! You made the high scores!" msgstr "¡Enhorabuena! ¡Has conseguido una de las máximas puntuaciones!" #: src/serverside.c:2176 msgid "You didn't even make the high score table..." msgstr "Ni siquiera has conseguido entrar en la tabla de puntuaciones..." #: src/serverside.c:2197 #, c-format msgid "Unable to write high score file %s" msgstr "No se ha podido escribir en el fichero de puntuaciones %s" #: src/serverside.c:2224 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2267 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Chivatazo de %s" #: src/serverside.c:2275 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Oferta de espionaje de %s" #: src/serverside.c:2289 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Una de tus %tde estaba espiando para %s. ^¡La espía %s!" #: src/serverside.c:2298 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "¡Tu espía trabajando con %s ha sido descubierta!^¡La espía %s!" #: src/serverside.c:2332 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La chavala que está junto a ti en el metro dice:^ «%s»%s" #: src/serverside.c:2336 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (al menos, eso es lo que *piensas* que ha dicho)" #: src/serverside.c:2339 #, c-format msgid "You hear someone playing %s" msgstr "Oyes a alguien poner %s" #: src/serverside.c:2348 src/serverside.c:2357 src/serverside.c:2366 #: src/serverside.c:2375 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^¿Quieres visitar %tal?" #: src/serverside.c:2387 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^¿Quieres contratar a una %tde por %P?" #: src/serverside.c:2400 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^¡%s ya está aquí!^¿Quieres Atacar o Huir?" #: src/serverside.c:2469 msgid "No cops or guns!" msgstr "¡No hay armas ni maderos!" #: src/serverside.c:2475 msgid "Cops cannot attack other cops!" msgstr "¡Los maderos no pueden atacar a otros maderos!" #: src/serverside.c:2517 msgid "Players are already in a fight!" msgstr "¡Los jugadores ya están en una pelea!" #: src/serverside.c:2519 msgid "Players are already in separate fights!" msgstr "¡Los jugadores ya están en sus propias peleas!" #: src/serverside.c:2524 msgid "Cannot start fight - no guns to use!" msgstr "No se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!" #: src/serverside.c:2753 src/serverside.c:3016 msgid "You're dead! Game over." msgstr "Estás criando malvas. Sayonara, baby." #: src/serverside.c:2948 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: el chivatazo de %s acabó bien." #: src/serverside.c:2954 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Siguiendo tu chivatazo, la bofia va a por %s, ¡le disparan y la palma!" #: src/serverside.c:2958 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "Siguiendo tu chivatazo, la pasma va a por %s, que escapa con %d %tde. " #: src/serverside.c:3024 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^¿Quieres pagar %P a un médico para que te cure?" #: src/serverside.c:3053 msgid "You were mugged in the subway!" msgstr "¡Te atracan en el metro!" #: src/serverside.c:3065 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "¡Te encuentras con un amigo! Te da %d %tde." #: src/serverside.c:3071 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "¡Te encuentras con un amigo! Le das %d %tde." #. Debugging message: we would normally have a random drug-related #. event here, but "Sanitized" mode is turned on #: src/serverside.c:3084 msgid "Sanitized away a RandomOffer" msgstr "Pasando de una oferta aleatoria" #: src/serverside.c:3089 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "¡Los perros de la bofia te persiguen durante %d manzanas! ¡Pierdes algo de " "%tde! Vaya mierda, macho." #: src/serverside.c:3106 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Encuentras %d %tde en el cuerpo de un tío tirado en el metro!" #: src/serverside.c:3121 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "¡Tu mami ha hecho galletas con algo de tu %tde! ¡Estaban geniales!" #: src/serverside.c:3131 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^¡Aquí hay algo de maría que huele a herbicida!^¡Tiene buena pinta! " "^¿Quieres fumarla? " #: src/serverside.c:3138 #, c-format msgid "You stopped to %s." msgstr "Te has parado para %s." #: src/serverside.c:3163 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^¿Quieres comprar una gabardina más grande por %P?" #: src/serverside.c:3170 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^¡Eh, tío! Te ayudo a llevar tus %tde por sólo %P. ¿Sí o no?" #: src/serverside.c:3183 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^¿Quieres comprar un %tde por %P?" #: src/serverside.c:3326 src/serverside.c:3436 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: la oferta era en nombre de %s" #: src/serverside.c:3329 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "¡%s ha aceptado tu %tde!^Usa la tecla G para contactar con tu espía." #: src/serverside.c:3381 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "¡Estuviste flipando durante tres días en el cuelgue más salvaje que hayas " "imaginado nunca!^Y entonces la palmaste debido a que tu cerebro se derritió." #: src/serverside.c:3407 #, c-format msgid "Too late - %s has just left!" msgstr "Demasiado tarde. %s se acaba de ir." #: src/serverside.c:3439 #, c-format msgid "%s has rejected your %tde!" msgstr "¡%s ha rechazado tu %tde!" #: src/serverside.c:3494 #, c-format msgid "The cops spot you dropping %tde!" msgstr "¡La bofia te ve tirando %tde!" #: src/serverside.c:3730 msgid "Sending pending updates to the metaserver..." msgstr "Enviando actualizaciones pendientes al metaservidor..." #: src/serverside.c:3735 msgid "Sending reminder message to the metaserver..." msgstr "Enviando mensaje recordatorio al metaservidor..." #: src/serverside.c:3744 msgid "Player removed due to idle timeout" msgstr "Jugador eliminado: demasiado tiempo inactivo" #: src/serverside.c:3757 msgid "Player removed due to connect timeout" msgstr "Jugador eliminado debido a que se agotó el tiempo para la conexión" #: src/error.c:67 msgid "(Error cannot be displayed in UTF-8)" msgstr "(No se puede mostrar el error en UTF-8)" #: src/error.c:122 msgid "Connection dropped due to full buffer" msgstr "" "Se ha roto la conexión debido a que se ha llenado la memoria intermedia " "(full buffer)." #: src/error.c:129 #, c-format msgid "Internal error code %d" msgstr "Código de error interno %d" #. These are the explanations of the various #. Windows Sockets error codes #: src/error.c:154 msgid "WinSock has not been properly initialized" msgstr "WinSock no ha sido inicializado correctamente." #: src/error.c:155 msgid "Network subsystem is not ready" msgstr "El subsistema de red no está preparado." #: src/error.c:156 msgid "WinSock version not supported" msgstr "Versión de WinSock no soportada" #: src/error.c:157 msgid "The network subsystem has failed" msgstr "El subsistema de red ha fallado" #: src/error.c:158 msgid "Address already in use" msgstr "La dirección ya está en uso" #: src/error.c:159 msgid "Cannot reach the network" msgstr "No se puede alcanzar la red" #: src/error.c:160 msgid "The connection timed out" msgstr "La conexión excedió el tiempo límite" #: src/error.c:161 msgid "Out of file descriptors" msgstr "Ya no quedan descriptores de fichero" #: src/error.c:162 msgid "Out of buffer space" msgstr "Ya no queda memoria intermedia (buffer)" #: src/error.c:163 msgid "Operation not supported" msgstr "Operación no soportada" #: src/error.c:164 msgid "Connection aborted due to failure" msgstr "La conexión se ha roto debido a un fallo" #: src/error.c:165 msgid "Connection reset by remote host" msgstr "Conexión rota por el servidor remoto" #: src/error.c:166 msgid "Connection refused" msgstr "Conexión rechazada" #: src/error.c:167 msgid "Address family not supported" msgstr "Familia de direcciones no soportada" #: src/error.c:168 msgid "Protocol not supported" msgstr "Protocolo no soportado" #: src/error.c:169 msgid "Socket type not supported" msgstr "Tipo de socket no soportado" #. These are the explanations of the various name server error codes #: src/error.c:170 src/error.c:208 msgid "Host not found" msgstr "Servidor no encontrado" #: src/error.c:171 src/error.c:209 msgid "Temporary name server error - try again later" msgstr "Error temporal con el nombre del servidor - prueba de nuevo más tarde" #: src/error.c:172 msgid "Failed to contact nameserver" msgstr "No se ha podido contactar con el servidor de nombres" #: src/error.c:173 msgid "Valid name, but no DNS data record present" msgstr "Nombre válido, pero ahora no tiene ningún registro DNS" #: src/error.c:179 #, c-format msgid "Network error code %d" msgstr "Error de red código %d" #: src/error.c:216 #, c-format msgid "Name server error code %d" msgstr "Error del servidor de nombres código %d" #: src/message.c:437 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Error interno del metaservidor «%s»" #: src/message.c:441 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Respuesta del metaservidor incorrecta «%s»" #: src/message.c:473 msgid "No servers listed on metaserver" msgstr "" #: src/message.c:1135 msgid "Do you run?" msgstr "¿Echas a correr?" #: src/message.c:1138 msgid "Do you run, or fight?" msgstr "¿Huyes o te enfrentas?" #: src/message.c:1337 msgid "pitifully armed" msgstr "armados de pena" #: src/message.c:1338 msgid "lightly armed" msgstr "poco armados" #: src/message.c:1339 msgid "moderately well armed" msgstr "armados" #: src/message.c:1340 msgid "heavily armed" msgstr "muy armados" #: src/message.c:1340 msgid "armed to the teeth" msgstr "armados hasta los dientes" #: src/message.c:1344 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "¡%s - %s - te está dando caza, colega!" #: src/message.c:1348 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "¡%s y %d %tde - %s - te están persiguiendo, colega!" #: src/message.c:1352 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "¡%s llega con %d %tde, %s!" #: src/message.c:1359 #, c-format msgid "%s stands and takes it" msgstr "%s se levanta y lo coge" #: src/message.c:1361 msgid "You stand there like a dummy." msgstr "Te quedas ahí como un tonto." #: src/message.c:1366 #, c-format msgid "%s tries to get away, but fails." msgstr "%s intenta huir, pero no lo consigue." #: src/message.c:1369 msgid "Panic! You can't get away!" msgstr "¡Pánico! ¡No puedes escapar!" #: src/message.c:1378 #, c-format msgid "%s has got away to %tde!" msgstr "¡%s ha conseguido escapar %tal!" #: src/message.c:1381 #, c-format msgid "%s has got away!" msgstr "¡%s ha conseguido escapar!" #: src/message.c:1384 msgid "You got away!" msgstr "¡Has conseguido escapar!" #: src/message.c:1390 msgid "Guns reloaded..." msgstr "Armas recargadas..." #: src/message.c:1395 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s dispara a %s... ¡y falla!" #: src/message.c:1398 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s te dispara... ¡y falla!" #: src/message.c:1401 #, c-format msgid "You missed %s!" msgstr "¡No le has dado a %s!" #: src/message.c:1407 #, c-format msgid "%s shoots %s dead." msgstr "%s mata a %s." #: src/message.c:1410 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s dispara a %s ¡y mata a una %tde!" #: src/message.c:1413 #, c-format msgid "%s shoots at %s." msgstr "%s dispara a %s." #: src/message.c:1418 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "¡%s se te ha picado, tío! Descansa en paz..." #: src/message.c:1422 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s te dispara... ¡y se carga a una %tde!" #: src/message.c:1425 #, c-format msgid "%s hits you, man!" msgstr "¡%s te ha dado, co!" #: src/message.c:1429 #, c-format msgid "You killed %s!" msgstr "¡Has matado a %s!" #: src/message.c:1431 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Le das a %s, y matas a un %tde!" #: src/message.c:1434 #, c-format msgid "You hit %s!" msgstr "¡Le das a %s!" #: src/message.c:1437 msgid " You find %P on the body!" msgstr " ¡Te encuentras %P en el cuerpo!" #: src/message.c:1439 msgid " You loot the body!" msgstr " ¡Le robas al cadaver!" #: src/network.c:90 #, c-format msgid "Cannot initialize WinSock (%s)!" msgstr "¡No se puede inicializar WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:381 msgid "SOCKS server general failure" msgstr "Error general del servidor SOCKS" #: src/network.c:382 msgid "Connection denied by SOCKS ruleset" msgstr "Conexión rechazada por las reglas de SOCKS" #: src/network.c:383 msgid "SOCKS: Network unreachable" msgstr "SOCKS: No se llega a la red" #: src/network.c:384 msgid "SOCKS: Host unreachable" msgstr "SOCKS: No se llega al servidor" #: src/network.c:385 msgid "SOCKS: Connection refused" msgstr "SOCKS: Conexión rechazada" #: src/network.c:386 msgid "SOCKS: TTL expired" msgstr "SOCKS: se agotó el tiempo" #: src/network.c:387 msgid "SOCKS: Command not supported" msgstr "SOCKS: Orden no soportada" #: src/network.c:388 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Tipo de dirección no soportado" #: src/network.c:389 msgid "SOCKS server rejected all offered methods" msgstr "El servidor SOCKS rechazó todos los métodos ofrecidos" #: src/network.c:390 msgid "Unknown SOCKS address type returned" msgstr "Devuelto tipo de dirección SOCKS desconocido" #: src/network.c:391 msgid "SOCKS authentication failed" msgstr "Error de autenticación SOCKS" #: src/network.c:392 msgid "SOCKS authentication canceled by user" msgstr "Autenticación SOCKS cancelada por el usuario" #. SOCKS version 4 error messages #: src/network.c:395 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Solicitud rechazada o sin éxito" #: src/network.c:396 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Rechazada - no se ha podido contactar identd" #: src/network.c:398 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Rechazada - identd informa de diferentes ID de usuario" #. SOCKS errors due to protocol violations #: src/network.c:401 msgid "Unknown SOCKS reply code" msgstr "Código de respuesta de SOCKS desconocida" #: src/network.c:402 msgid "Unknown SOCKS reply version code" msgstr "Código de respuesta de versión de SOCKS desconocida." #: src/network.c:403 msgid "Unknown SOCKS server version" msgstr "Versión de servidor SOCKS desconocida" #: src/network.c:409 #, c-format msgid "SOCKS error code %d" msgstr "Código de error de SOCKS %d" #: src/network.c:1274 msgid "Could not init curl" msgstr "" #: src/admin.c:52 #, fuzzy, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Probando a conectar con el servidor dopewars local vía sockets de\n" "dominio Unix %s...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Conexión establecida. Usa Ctrl-D para cerrar la sesión.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" "No se ha podido determinar el fichero de configuración local en que escribir" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "No se ha podido abrir el fichero %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "No se ha podido conectar al servidor dopewars\n" "(%s)\n" "El jugador automático se suicida." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Se ha establecido la conexión\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Conectado al servidor SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autenticándose con el servidor SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Pidiendo SOCKS para conectarse a %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" "Iniciado el jugador automático; intentando conectarse al servidor en %s:%d." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Jugador automático suicidado con éxito.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "¡Se ha roto la conexión con el servidor!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Usando el nombre %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Jugadores en esta partida:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s se une a la partida.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s ha dejado el juego.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Yendo %tal con %P en efectivo y %P de deuda\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Jugador automático asesinado. Cerrando de manera normal.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Se ha agotado el tiempo de juego. Saliendo.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "El jugador automático ha sido expulsado del servidor.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "El servidor se ha apagado.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendiendo %d %tde a %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Comprando %d %tde a %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Comprando un %tde por %P en la armería\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Deuda de %P pagada al usurero\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "El usurero está en %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "La armería está en %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "El bar está en %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "El banco está en %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "¿Y tú te haces llamar camello?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un mono amaestrado lo haría mejor..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" "¿Crees que eres lo suficientemente duro como para manejar a tipos como yo?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... ¿estás traficando con caramelos o qué?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Voy a tener que dispararte por tu propio bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto no puede actuar " "como un jugador automático.\n" "Recompila pasando la opción --enable-networking al script configure" #: src/sound.c:196 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Seleccionado módulo «%s» no válido.\n" "(%s disponible, ahora usando «%s».)" #~ msgid "Cash %17P" #~ msgstr "Pasta %16P" #~ msgid "%-19Tde%3d" #~ msgstr "%-18Tde%3d" #, c-format #~ msgid "Health %3d" #~ msgstr "Salud %3d" #~ msgid "Bank %17P" #~ msgstr "Banco %16P" #~ msgid "Debt %17P" #~ msgstr "Pufo %17P" #~ msgid "Port for metaserver communication" #~ msgstr "Puerto para la comunicación con el metaservidor" #~ msgid "Name of a proxy for metaserver communication" #~ msgstr "Nombre del proxy para la comunicación con el metaservidor" #~ msgid "Port for communicating with the proxy server" #~ msgstr "Puerto para comunicarse con el servidor proxy" #~ msgid "Path of the script on the metaserver" #~ msgstr "Ruta del script en el metaservidor" #~ msgid "If TRUE, use SOCKS for metaserver communication" #~ msgstr "Si TRUE, usar SOCKS para la comunicación con el metaservidor" #~ msgid "Username for HTTP Basic authentication" #~ msgstr "Nombre de usuario para la autenticación HTTP básica" #~ msgid "Password for HTTP Basic authentication" #~ msgstr "Contraseña para la autenticación HTTP básica" #~ msgid "Username for HTTP Basic proxy authentication" #~ msgstr "Nombre de usuario para la autenticación HTTP básica con el proxy" #~ msgid "Password for HTTP Basic proxy authentication" #~ msgstr "Contraseña para la autenticación HTTP básica con el proxy" #, c-format #~ msgid "Proxy authentication required for realm %s" #~ msgstr "Se requiere autenticación proxy para la zona %s" #, c-format #~ msgid "Authentication required for realm %s" #~ msgstr "Se requiere autenticación para la zona %s" #~ msgid "(Enter a blank username to cancel)" #~ msgstr "(Introduce un nombre de usuario en blanco para cancelar" #~ msgid "Web proxy hostname" #~ msgstr "Nombre del proxy web" #~ msgid "Script path" #~ msgstr "Ruta del script" #, c-format #~ msgid "Status: Could not connect to metaserver (%s)" #~ msgstr "Situación: No se ha podido conectar al metaservidor (%s)" #~ msgid "Status: Obtaining server information from metaserver..." #~ msgstr "Situación: Obtener información de servidores del metaservidor..." #~ msgid "Proxy Authentication Required" #~ msgstr "Se precisa autenticación con el Proxy" #~ msgid "Authentication Required" #~ msgstr "Se precisa autenticación" #~ msgid "" #~ "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " #~ "authentication" #~ msgstr "" #~ "Usando metaservidor. Proxy. Usuario y metaservidor. Proxy. Contraseña " #~ "para la autenticación con el proxy HTTP" #~ msgid "" #~ "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User " #~ "and MetaServer.Proxy.Password variables" #~ msgstr "" #~ "No se ha podido autenticar con proxy HTTP; por favor, establece las " #~ "variablesMetaServer.Proxy.User y MetaServer.Proxy.Password" #~ msgid "" #~ "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " #~ "authentication" #~ msgstr "" #~ "Usando MetaServer.Auth.User y MetaServer.Auth.Password para la " #~ "autenticación HTTP" #~ msgid "" #~ "Unable to authenticate with HTTP server; please set MetaServer.Auth.User " #~ "and MetaServer.Auth.Password variables" #~ msgstr "" #~ "No se ha podido autenticar con el servidor HTTP; por favor, establece las " #~ "variables MetaServer.Auth.User y MetaServer.Auth.Password" #~ msgid "" #~ "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" #~ msgstr "" #~ "Usando Socks.Auth.Usuario y Socks.Auth.Contraseña para autenticación " #~ "SOCKS5" #, c-format #~ msgid "Unknown metaserver error code %d" #~ msgstr "Error del metaservidor desconocido código %d" #~ msgid "Number of tries exceeded" #~ msgstr "Se ha excedido el número de intentos" #, c-format #~ msgid "Bad auth header: %s" #~ msgstr "Cabecera de autenticación no válida: %s" #, c-format #~ msgid "Bad redirect: %s" #~ msgstr "Redirección no válida: %s" #, c-format #~ msgid "Invalid HTTP status line: %s" #~ msgstr "Línea de estado de HTTP no válida: %s" #~ msgid "403: forbidden" #~ msgstr "403: prohibido" #~ msgid "404: page not found" #~ msgstr "404: página no encontrada" #~ msgid "401: HTTP authentication failed" #~ msgstr "401: la autenticación HTTP ha fallado" #~ msgid "407: HTTP proxy authentication failed" #~ msgstr "407: la autenticación con el proxy HTTP ha fallado" #~ msgid "Bad redirect message from server" #~ msgstr "Mensaje de redirección no válido recibido del servidor" #, c-format #~ msgid "Unknown HTTP error %d" #~ msgstr "Error HTTP desconocido %d" #, c-format #~ msgid "%d: redirect error" #~ msgstr "%d: error de redirección" #, c-format #~ msgid "%d: HTTP client error" #~ msgstr "%d: error del cliente HTTP" #, c-format #~ msgid "%d: HTTP server error" #~ msgstr "%d: error del servidor HTTP" dopewars-1.6.2/po/Rules-quot000644 000765 000024 00000004533 14256000065 015677 0ustar00benstaff000000 000000 # Special Makefile rules for English message catalogs with quotation marks. # # Copyright (C) 2001-2017 Free Software Foundation, Inc. # This file, Rules-quot, and its auxiliary files (listed under # DISTFILES.common.extra1) are free software; the Free Software Foundation # gives unlimited permission to use, copy, distribute, and modify them. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \ | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \ { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \ $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \ ;; \ *) \ $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \ ;; \ esac } 2>/dev/null > $$tmpdir/$$lang.new.po \ ; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header dopewars-1.6.2/po/nn.gmo000644 000765 000024 00000235031 14256243623 015023 0ustar00benstaff000000 000000 7I3DD?FEHE"EE5F58FnFGG.>HNmHHHHHI&I$I'I'I !J -J9JJJgJJJJJJK K:KXKpK#K$KKKKL#L 7L DLNLWL`LiL+LL'L(L"M=M=NVNgN}NNN N N N NNNO O&OtVtkt!t't(ttu.0u_u7duuuuuuuuv%v7vJvbv{vvvvv vw+wKwaw|wwwww wwwzx)y>yMy)ly&yyyy$y' zHzhzz)z"z zz{/"{R{j{p{x{{{{{"{ {{ {| | |=| ]| j|%v|"|||'|0}@}^}v}}}~9720Oc$À )*;ASj } 5́&A@ %@>R)o!؃ 2%*X!ۄ#( -7F],b- ą.Ѕ#@ H+Vlj($ (Ç*!"9/\./<;(4d:6ԉ6 (B4k%.Ɗ2 (37:r x ͋ ܋ ) #6(Z'ʌ425,h 1(,>Rd-k""*ߎ #DLan%0C0t (Ɛ; ;G1(*ޑ) 63j4ۓ 0+!\"~,LM4L# (I)fҜ u"H *DLC\*!LT)@: { ȧ/?)\ !/)(.W$`/.)%$4Y:v(@X$'}4 ګ)%CG"*M%_75, A,]/.ڮ v FF5*` |(Ѱ(#*2]{-۱@9O4*1  %3;CKR [fov}  ʳ׳,ܳ% /*K#v$ٴ#("%Kq,"е"$;NTZ1b 9˶U2HHѺ/4:3Bv G *G Xcs  5+FYbqd4~>6 5Wh,aL r!!*#  *6Gf|"  %%?#e &F-c,C"9Ul   $DT#q-"Ad|   9)cv!} #$ 8!Df|*<Q hry(1(!@J , %FY n(z'#DIh'GC<Y+w DiJ&  %7+O{*.&7D"|"--..M/|%,%)  & 4? H)V? "))E o(: )7>v><2Pe0l>/7)La3S'S{  &#,2K'Z( ) Bai 4 'BFaj1z!} * 8FAZ -#''('P!x'KE:Z+$ '.=Q%V|   +'Dl~;1H$g-)@-%+S.0.:-Y? !0@1P1)*&#'Jr!!%5 G+R ~%#" ")C%m9  1#Pt!'"A.p/v'$(>Qbw%7%Nt#  %{ 82BIe"}%&'!Fhw.  !7;> ^  = +'=e!n$/ 7 Xe3E3y-J& 5V [g+m  $ -78U5: ,5&PwF)$."S v>+++Wkq %  $,$Q W*c#$ )&/`V^8O&V'}&'/3$4X36:@3BtH(5)&_2878 >Hag{  #$#?"c343$ X 3q , *   + 53 i " &    >$ rc  ( 2  P q  0 . 7 '?  g ' 3  2C v( &6,KIxAH`"g+!%7  # C GY  3   C C!/! !!,"J#M# k# u#######$#$"2$,U$&$"$3$%%1#%-U%!% %%%B%@&E&:H&E&W&!!'*C'n'''''((%(- )28)'k) ))/),*-*-L*z*|* +9+9N+6++ ++ ,,)1,([,,+,#,,,+-@-]-Ar-2-6-..6. e.o.. ... . .. ...... .. ./ / '/2/,6/%c//*/#//0$30#X0(|0%000,0"*1"M1$p11111.1 2 2"2 +252=2F29`2222D6b6>7S7g7 z71777!7 8 8A&8 h8 t8.8888889#9159,g9R99 9 9: :/]/_7N[TX&>isrLzV Hd gls =*ol:!M-X Ko \ON\R# zjZ+-MV,:%jH*3%v2FbgF$a8t8af`8)4jQ]2P/<;NU/?*QT4"X=t`n"M"+c!F:pmnbID ui0L,WYyg'K7R6wLb04s v'u@\,$WY'Y9k]@2h0&zW(e9 'w r# m#|6 r,A| Bq&iT^VynZ(>o4 u$(K7B~d`U5ewD{ ~C 13yq >1 }}Zx)Ph[3J<S#pp5fHG2IS(D;&q<[E?3{5_5^|0E + {e?fJC-GGa=).9d!!JR%OS~Ac_16B )%+k.P6m;I x.QC-@* EA$ ^1tOcv7hx.k"lU} For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2022, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/DealDrugs drug name/%tde%/Drug Select/%c. %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/Inventory drug name/%tde%/Inventory gun name/%tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%d. %tde%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no larger than %d - ignoring!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAttempting to connect to local dopewars server via Unix domain socket %s... Authenticating with SOCKS serverAuthenticating with SOCKS server Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBad metaserver reply "%s"BankBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialize WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armorCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armorDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaServer: %sMetaserverMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for SOCKS5 authenticationPassword: Pay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication canceled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colors (by default colors are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colors --no-colour (by default colors are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for SOCKS5 authenticationUsers currently logged on:- Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public License Waiting for connect to metaserver at %s...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, https://dopewars.sourceforge.io/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initializedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, https://dopewars.sourceforge.io/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licensedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: nn_new Report-Msgid-Bugs-To: benwebb@users.sf.net PO-Revision-Date: 2003-08-31 22:58+0200 Last-Translator: Åsmund Skjæveland Language-Team: Norsk nynorsk Language: nn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 For informasjon om kommandolinevala, skriv dopewars -h på unix-kommandolinja. Det viser ein hjelpetekst med dei tilgjengelege vala. L>ista tenarane på metatenaren, og velga ein A>vslutta (du kan starta ein tenar med «dopewars -s») eller S>pela åleine? H>a seg vekk S>pionér på ein annan pushar (pris: %P) T>ipsa politiet om ein annan pushar (pris: %P) -h, vis denne hjelpeteksten -v, vis versjonsinformasjon og avslutt dopewars er Copyright (C) Ben Webb 1998-2022, og er tilgjengeleg under GNU GPL Rapportér feil til forfattaren på benwebb@users.sf.net -h, --help vis denne hjelpeteksten -v, --version vis versjonsinformasjon og avslutt dopewars er Copyright (C) Ben Webb 1998-2022, og er tilgjengeleg under GNU GPL Rapportér feil til forfattaren på benwebb@users.sf.net -u fil bruk lydmodul «fil» -u, --plugin=FIL bruk lydmodul «FIL» Er du sikker? Du finn %P på liket!Du plyndrar liket!# Dette er oppstartsloggen for dopewars. Her kjem # nyttige meldingar frå tolkinga av # oppsettfilene og slikt. Kr. % motstand mot skot for kvar hore% motstand mot skot for kvar purk% motstand mot skot for kvar politibetjent% motstand mot skot for kvar spelar%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/Banknamn vindaugstittel/%Tde%/Kamp: Horer/%d %tuf%/Staden du er no/%tde%tuf%c. %tde%/GTK Våpenforretning-tittel/%Tde%/GTK Stats: Horer/%TufNarkotikaVåpen%/Lånehai vindagustittel/%Tde%/Liste over stader/%tde%/Plass å reisa til/%tde%/Spark hore dialog-tittel/Spark %tde%/Spark hore menyval/S_park %tue...%/Spion: Dop/%Tde...%/Spion: Våpen/%Tde...%Tde%Tuf%Tde %3d plass %6d%Tuf du har%Tuf her%d av %d%d. %tde%d-%m/%Y%s - %s - spring etter deg!%s og %d %tuf - %s - spring etter deg!%s kjem hit med %d %tuf, %s!%s kan ikkje vera større enn %d - ignorerer!%s kan ikkje vera mindre enn %d - ignorerer!%s ser ikkje ut til å vera ei gyldig poengtavlefil. Sjekk om fila er i orden. Viss det er ei poengtavlefil frå ein gamal versjon av dopewars, må du fyrst konvertera henne til det nye formatet ved å køyra «dopewars -C %s» frå kommandolina.%s har godteke %tbe di! Bruk G-knappen for å kontakta spionen din.%s har rømt til %tde!%s kom seg unna!%s har forlatt spelet.%s har gått ut av spelet. %s har avvist di %tde!%s treff deg, mann!%s er «%s» %s er %P %s er %d %s er %s %s er { %s blir med i spelet!%s blir med i runden. %s drepen %s forlét tenaren!%s spionerer no på %s%s drep %s.%s skyt på %s og drep ei %tue!%s skyt på %s.%s skyt på %s... og bommar!%s skyt på deg... og drep ei %tue!%s skyt på deg... og bommar!%s spionéra på %s: NEKTA%s står og tek imot%s tysta på %s: NEKTA%s tipsa politiet om %s%s prøver å rømma, men får det ikkje til.%s kverka deg, mann! Søren også!%s kallar seg no for %s%s er no kjend som %s.%s: NEKTA reise til %s%s: Fekk tilbod om spion frå %s%s: Tips frå %s%s: Tilbodet var på vegne av %s%s: Tips frå %s avslutta OK.%s[%d] er %s %s^%s er alt her!^Vil du gå til Angrep, eller Stikka av?(%s tilgjengeleg) (Daud)(Feilen kan ikkje visast i UTF-8)(Ute av spelet)(Kvil i fred.), H>iva, kJ>empa, G>je oppdrag, R>eisa, sjå L>ister, S>elja, sN>akka med alle, snakka med E>in, eller A>vslutta? .38 Spesial/Oppdrag/_Hent spionrapportar .../Oppdrag/_Spioner .../Oppdrag/_Tips politiet .../Spel/Slå på _lyd/Spel/_Gje opp/Spel/_Nytt .../Game/_Innstillingar/Spel/_Avslutt/Hjelp/_Om .../Lister/_Eignelutar.../Lister/_Spelarar.../Lister/_Poeng.../Snakk/Til _alle .../Snakk/Til _spelar .../_Oppdrag/_Spel/_Hjelp/_Lister/_Snakk<- _SelEin dag utan dop er som ei nattEin trent apekatt kunne gjort det betre.A:AngripADDatastyrt spelar vart drepen. Avsluttar normalt. Datastyrt spelar vart dytta av tenaren. Datastyrt spelar starta. Prøver å kopla til tenaren på %s:%d.Datastyrt spelar avslutta OK. Gje opp denne runden?Gje opp dette speletOm DopewarsSyreNarkomane kjøper %tde til avsindige prisar!Adressa er i brukAdressefamilien er ikkje støttaAdmin-kommando: %sAdmin-samband stengtAgent SmithKor mykje pengar kvar spelar startar medKor mykje gjeld kvar spelar startar medEr du høg på noko?Er du viss på at du vil avslutta? Er du sikker? (%Tuf eller %tuf denne %tbe har på seg kan gå tapt!)Ber SOCKS om samband til %s...Ber SOCKS om samband til %s... Åtaks-handikap relativt til ein spelarPrøver for ofte å kopla til metatenaren - venter på neste tidsavbrotPrøver å kopla til lokal dopewars-tenar via Unix-domenesokkel %s Autentiserer mot SOCKS-tenarAutentiserer med SOCKS-tenar Autentisering for LocalName med metatenarenLedig plass: %dKSHNELGJRAKSGFeil metatenar-svar «%s»BankBanken er på %s Bank: %PBerettadopewars er tufta på Drug Wars av John E. Dell, og er ei simuleringdopewars er tufta på Drug Wars av John E. Dell, og er ei simulering av ein oppdikta narkotikamarknad. I dopewars må du kjøpa, selja og koma unna politiet. Det fyrste du må gjera er å betala gjelda di til lånehaien. Etter det, er målet ditt å tena så mykje pengar som råd (og halda deg i live)! Du har ein månad i speletid på å skapa formuen din. Vér ordrik når oppsettfila blir lestÅsmund SkjævelandGrünerløkkaOslo SBla gjennom...KjøpKjøpa %tufKjøpa kor mange?Kjøper %d %tde for %P Kjøper ein %tde for %P på våpenbutikken KLASOg de kallar drykk dopseljarar?Kan vera ekstra billegKan vera ekstra dyrtKan ikkje kopla til port %u (%s). Bryt av.Kan ikkje laga kopi (%s) av poengtavlefila %s.Kan ikkje laga pid-fil %s: %sKan ikkje laga (lytte-)sokkel (%s) til tenaren. Avbryt.Kan ikkje henta metatenar-detaljarKan ikkje starta opp WinSock (%s)!Kan ikkje installera SIGHUP-avbrotshandsamar!Kan ikkje installera SIGINT-avbrotshandsamar!Kan ikkje installera SIGTERM-avbrotshandsamar!Kan ikkje installera SIGUSR1-avbrotshandsamar!Kan ikkje installera SIGWINCH-avbrotshandsamar!Kan ikkje installera røyr-handsamar!Kan ikkje lytta til nettverkssokkel. Avbryt.Kan ikkje opna poengtavlefila %s. (%s.) Du må anten vera sikker på at du har løyve til å bruka denne fila, eller spesifisera ei anna poengtavlefil med kommandolineopsjonen -f.Kan ikkje opna poengtavlefila %s: %s.Kan ikkje nå nettverketKan ikkje starta kamp - har ingen våpen!KontantarKontantar: %PMajorstuenByt namnBilleg-strengVel eit ærend å gje ei av %tbf dine ...KokainColumbiansk lasteskip lurte kystvakta! Jazztobakkprisen stuper!Kommando:KommentarKommentar: %sSageneOppsettet kan berre endrast interaktivt når ingen spelarar er logga på. Vent til alle spelarane har logga av, eller fjern dei med dytt- eller-drep-kommandoane, og prøv igjen.Oppsettfil lagra OK som %s Gratulerar! Du kom på poengtavla!Kopla til SOCKS-tenar %s...Kopla til SOCKS-tenar %s... Sambandet vart avbrote på grunn av feil.Sambandet vart stengd av nettverksverten.Samband nekta av SOCKS-regelsettSambandet vart avbrote pga. fullt bufferSamband oppretta Samband oppretta. Bruk Ctrl-D for å stenga tilkoplinga. Samband nektaSambandet vart stengd av nettverksverten.Mista sambandet til tenaren - byter til einspelar-modusSambandet vart brote! Mista sambandet til tenaren! Går tilbake til einspelar-modus.Konstruktiv kritikkKonstruktiv kritikk Andrea Elliot-Smith Pete WinnKontrollerer talet på loggmeldingar som blir lagaPansring av politietPolitiPoliti kan ikkje gå til åtak på andre politi!Politiet gjorde eit kjempebeslag av %tde! Prisane er skyhøge!Poengtavlefila er øydelagt!Prisen for at ei hore skal spionera på fiendenPrisen for at ei hore skal tipsa politiet om ein fiendeKunne ikkje kopla til dopewars-tenar (%s) Den datastyrte spelaren avsluttar.Kunne ikkje finna ei lokal oppsettfil å skriva tilKunne ikkje opna file %s: %sKunne ikkje laga unix domenesokkel til admin-samband - sjekk skriveløyva på /tmp!Kunne ikkje starta fleirspelar dopewarsHa mot! Bush er ein nuddel!ValutasymbolCurrency.Prefix=TRUED O P E W A R SS>elja %tuf, SRKVASTGDagleg rente på gjelda til lånehaienDagleg rente på innskotet i bankenSkadeSkaden kvart våpen gjerVidar's VåpenDagen i månaden som spelet startar påGjeldGjeld på %P vart betalt til lånehaien Gjeld: %PForsvars-handikap relativt til ein spelarSlettSett innPansring av lensmannsbetjentaneSkildringTal som prisen på dopet skal delast på når det er ekstra billegVil du Stikk du av, eller slåst du?Stikk du av?Vil du S>etja inn pengar, T>a ut pengar, eller G>å?Veit mora di at du sel dop?NedHivHiva %tufHiva kor mange?Dopsal og researchDopsal og research Dan Wolf DopDopet kan vera vennen din!U:UnngåNorsk omsetjingNorsk omsetjing Åsmund SkjævelandFeilFeil ved lesing av poeng frå %s.Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon av innstillingane ikkje vil virka som venta. Sjå på meldingane på standard-ut for fleire detaljar.Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon av innstillingane ikkje vil virka som venta. Sjå på loggfila «dopewars-log.txt» for fleire detaljar.Dyrt streng 1Dyrt streng 2Grundig speltestingGrundig speltesting Katherine Holt Caroline MooreK:KjempK>jempa, Kunne ikkje kopla til metatenaren på %s (%s)Fekk ikkje kontakt med namnetenarenKunne ikkje posta tenestevarselsmeldingKunne ikkje registrera tenestehandsamarKlarte ikkje å setja NT teneste-statusKlarte ikkje å starta NT-tenesteKjempFil som loggmeldingar skal skrivast tilUt frå tipset ditt rykka politiet ut mot %s, som kom seg unna med %d %tde.Ut frå tipset ditt gjekk politiet mot %s, som vart skoten og drepen!For informasjon om kommandolinevala, skriv dopewars -h påFormatstreng brukt for dyrt dop 50% av tidaSpellengde (rundar)Speletida er ute. Avsluttar spelet. ÅlmenntTøyenVåpenforretninga er på %s VåpenVåpna lada...P O E N G L I S T EHasjHar eg ikkje sett deg på fjernsynet?HelseHelse: %dHeroinHei du. Her kostar %tbe:Namnet ditt:Namnet ditt:PoengtavleVertsnamnFann ikkje vertenVertsnamn:Kor mange vil du kjøpa? Kor mange vil du kasta? Kor mange vil du selja? Kor mykje pengar vil du betala tilbake?Kor mykje pengar?Eg er kvalrossen!Eg trur ikkje på Ronald ReaganEg har slik ei voldsom lyst til å farga håret mitt blåttEg synest hemorroidereklamar er ordentleg flotte!Eg synest det er fantastisk kva dei får til med røykjelse no til dags.Eg var hippie sjølv ein gong i tidaEg har ikkje vore kvinne heile livet, veit duEg vil gjerne selja deg ein etande puddelEg er sikker på at du har nokon ordentleg interessante draumar.Eg samlar inn pengar til Zomibiar for KristusIkon og grafikk Ocelot MantisIkon og grafikkViss TRUE, går valutasymbolet framfor prisaneViss TRUE, vil tenaren minimera til systemtrauetViss TRUE, så vil tenaren køyra i bakgrunnenViss ikkje blank, brukarnamnet som skal brukast til SOCKS4Indeks til %s array burde vore mellom 1 og %dIntern feilkode %dIntern metatenar-feil «%s»Ugyldig modul «%s» vald. (%s tilgjengeleg, brukar «%s» no.)EignelutarPlass kravdJesus elskar deg meir enn du veitReis til plass:Reiser til %tdeReiser til %tde med %P i kontantar og %P i gjeld Berre sei nei! Eller, kanskje... ok, faen heller!Kverk ein purk for Jesus!Liste over songar du kan høyra bli speltListe over ting du kan stoppa for å gjeraListe over ting du høyrer på T-banenLista opp kva? S>pelarar eller P>oeng? Lånehaien er på %s Lokal dokumentasjon i HTML-formatStaden Lånehaien held tilStaden banken held tilStaden våpenbutikken held tilStaden puben held tilStaderHyppararMDAVelkomstmeldingBruker pid-fil %sKarl JohanGjekk over MaxClients (%d) - bryt sambandetStørste tal på politibetjentarStørste tal på ulike slag narkotikaStørste vanlege prisStørste vanlege pris på kvart dopMaksimalt tal på TCP/IP-sambandarStørste tal på politibetjentarStørste tal på dopsortar på kvar plassHøgaste pris for å tilsetja ei horeMeldingMelding som skal visast når dette dopet er ekstra billegMelding:-Meldingar (-/+ rullar opp/ned)Metatenar : %sMetatenarMinimer til systemtrauetMinste tal på politibetjentarMinste tal på ulike slag narkotikaMinste vanlege prisMinste vanlege pris på kvart dopMinste tal på politibetjentarMinste tal på dopsortar på kvar plassMinstepris for å tilsetja ei horeMånaden spelet startar iTal som prisen på dopet skal gangast med når det er ekstra dyrtN:NeiN>este tenar: F>ørre tenar: V>el denne tenarenNFVNamnNamn på kvar politimannNamn på kvar politimann sine betjentarNamn på kvar politimann sin betjentNamn på kvart dopNamn på kvart våpenNamn på kvar stadNamn på ei horeNamn på ein betjentNamn på fleire horerNamn på fleire betjentarNamnet på bankenNamnet på våpenforretningenNamn på poengfilaNamnet på lånehaienNamnet på pubenNamn på tenaren du vil kopla deg tilNamnetenarfeil kode %dNetverkadressa tenaren skal lytta påNettverksfeil kode %dNettverksport å kopla tilNettverk-delsystemet er ikkje klartNyNy %sNytt spelNytt admin-sambandNytt namn:Ingen politi eller våpen!Curses-klient er ikkje tilgjengeleg. Kompilér opp binærfila på nytt, med valet --enable-curses-client til configure, eller bruk ein grafisk klient (viss tilgjengeleg) i staden. Ingen grafisk klient tilgjengeleg. Kompilér opp binærfila på nytt, med valet --enable-gui-client til configure, eller bruk tekstmodus-klienten (viss tilgjengeleg) i staden. Ingen andre spelarar er logga på no.Ingen slik brukar! Ingen brukarar er logga på no. Tal på rundar i spelet (viss 0 vil spelet aldri slutta)Tal på sekund du har på deg til å skyta tilbakeMengdeTal på sortar dop i speletTal på våpen i speletTal på våpen kvar politimann harTal på våpen kvar politibetjent harTal på stader i speletTal på sogar som spelarTal på ting som blir sagt på T-banenTal på ting du kan stoppa for å gjeraTal på typar politimenn i speletLensmann PederPolitimeister BastianÅ, du må vera frå CaliforniaEi av %tbf dine spionerte for %s. ^Spionen %s!Operasjonen er ikkje støttaOpiumInnstillingarTom for bufferplassTom for filskildrararPCPSPPanikk! Du kjem deg ikkje vekk!Passord for SOCKS5-autentiseringPassord:Betal altBetal tilbake:PeyoteSpelSpeltestingSpeltesting Phil Davis Owen WalshSpela igjen? SpelarlisteSpelaren fjerna pga. tidsavbrot i sambandetSpelaren fjerna: Han/ho var ikkje aktivSpelararSpelarane er allereie i ein kamp!Spelarane er alt i kvar sine kampar!Spelarar blir kopla frå etter så mange sekundSpelarar som er logga på:-Spelarar i denne runden:- Spelarar: %d (maksimum %d)Spelarar: -ukjent- (maksimum %d)Vel ein spelar du vil spionera på. %Tbe di vil så tilby tenestane sine til spelarane, og viss ho lukkast, vil du kunna sjå den spelaren sin status med «Hent spionrapportar»-menyen. Hugs at %tbe vil forlata deg, så %tuf eller %tuf som ho har på seg kan gå tapt!Vel spelaren du vil tipsa politiet om. %Tbe di vil hjelpa politiet med å angripa den spelaren, og så rapportera tilbake til deg. Hugs at %tbe bil forlata deg ei kort stund, så %tuf eller %tuf ho har på seg kan gå tapt!Skriv vertsnamnet og porten på ein dopewars-tenar:Vent litt... prøver å kopla til dopewars-tenar...Vent litt... prøver å kontakta metatenar...Politihundar jagar deg %d kvartal! Du mista litt %tde. Det er hardt, mann.PolitinærværPolitinærleik på kvar stad (%)PortPort : %dPort:Føretrukke vertsnamn på tenarmaskinen dinTrykk ein tast...PrisPrisen på kvart våpenProtokollen er ikkje støttaPuben er på %s Dyttar %s BjølsenSpørsmålAvslutt speletS:SpringR>ømma, Tilfeldige hendingar er rensaEg blir vel nøydd til å skyta deg til ditt eige beste.Fjern narkotika-referansarForandra storleiken på strukturlista til %d element Andre pusharar plyndra eit apotek og sel billege hypparar!RugerT - B A N EV>enta, Må ha SOCKS-autentiseringSOCKS-autentisering avbroten av brukarSOCKS-autentiserer feilaTreng SOCKS-autentisering (skriv eit blankt brukarnamn for å avbryta)SOCKS feilkode %dSOCKS server generell feilSOCKS-tenar avviste alle tilbudte metodarSOCKS: Adressetypen er ikkje støttaSOCKS: Kommandoen er ikkje støttaSamband nektaSOCKS: Kan ikkje nå vertenSOCKS: Kan ikkje nå nettverketSOCKS: Avslått - identd rapporterer ein annan brukaridentitetSOCKS: Avslått - kan ikkje kontakta identdSOCKS: Førespurnad vart avvist eller feilaSOCKS: TTL gjekk utSTHKILuka vekk eit RandomOfferSprettertSekund mellom rundane for AI-spelararVel lydfilSelSelja %tufSelja kor mange?Sel %d %tde for %P SendSender oppdateringar til metatenarenSender påminningsmelding til metatenaren...TenarTenar : %sTenarskildring, rapportert til metatenarenTenaren rapporterer til metatenarenTenaren si velkomsthelsing for dagenFleinEin spelarEg trur eg skal reisa til Amsterdam i årSokkeltypen er ikkje støttaGuten min, du treng ein gul hårklipp.Denne tenaren har ei grense på %d spelarar, og denne grensa har blitt^nådd. Prøv att seinare.Denne tenaren har ei grense på 1 spelar, og denne grensa har blitt nådd. ^Prøv att seinare.Sorteringsnøkkel for lista over det tilgjengelege dopetLydfilLyd som blir spelt i slutten av speletLyd som blir spelt i byrjinga av speletLyd som blir spelt når eit skot treffLyd som blir spelt når eit skot bommarLyd som blir spelt når du kjem til ein ny stadLyd som blir spelt når ein annan blir med i speletLyd som blir spelt når ein spelar går ut av speletLyd som blir spelt når du sender ei privat meldingLyd som blir spelt når du sender ei offentleg meldingLyd som blir spelt når ein spelar klarer å koma seg unnaLyd som blir spelt når ein spelar ikkje klarer å koma seg unnaLyd som blir spelt når ei fientleg hore eller betjent blir drepenLyd som blir spelt når ein annan spelar eller ei politimann blir drepenLyd som blir spelt når våpna blir ladaLyd som blir spelt når ei av horene dine blir drepenLyd som blir spelt når du blir drepenLyd som blir spelt når du klarer å koma deg unnaLyd som blir spelt når du ikkje klarer å koma deg unnaLydnamnLydarLydar Robin Kohli, 19.5degs.comPlassPlass %6dPlassen kvart våpen tekSpeedSpionér på spelarSpionrapportarSpionrapportar for %sStart nytt spelStartkapitalStartgjeldFrognerStatusBer SOCKS om samband til %s...Status: Freistar å kopla til %s...Status: Autentiserer mot SOCKS-tenarStatus: Kopla til SOCKS-tenar %s...Status: Kunne ikkje kopla til (%s)Status: Ventar på brukarenSymbol står før prisenTRUE viss ein SOCKS-tenar skal brukast i nettverketTRUE viss numerisk brukar-ID skal brukast for SOCKS4TRUE viss tenaren skal rapportera til ein metatenarSANN for å slå på lydTRUE viss verdien av det kjøpte dopet skal hugsastTRUE viss dette dopet kan vera ekstra billegTRUE viss dette dopet kan vera ekstra dyrtSnakk med alle spelaraneSnakk med spelar(ar)Snakk: Mellombels feil med namnetenaren -- prøv att seinareMarrakesh-ekspressen er her!Paven var jøde ein gong, veit du.Kommandoen som startar nettlesaren dinSambandet vart tidsutkopla.Politiet ser at du kastar %tde!Valutasymbolet (t.d. $)Det fyrste du må gjera er å betala gjelda di til lånehaien.Den gamle poengfila %s har blitt konvertert til det nye formatet. Ein kopi av den gamle fila har fått namnet %s. Vertsnamnet på SOCKS-tenarenDama attmed deg på t-banen sa^ «%s»%sMarknaden er oversvømt med billeg heimelaga syre!Nettverks-delsystemet mislukkastPortnummeret på SOCKS-tenarenTenaren har avslutta. Tenaren har avslutta. Byter til einspelar-modus.Tenaren har stengt. Byter til einspelar-modus.Versjonen av SOCKS-protokollen du vil bruka (4 eller 5)Du har ikkje så mykje pengar i banken.Du har ikkje så mykje i banken.Det er ingenting som å ha mykje pengarTrur du du er tøff nok til å takla slike som meg?Denne binærfila har blitt kompilert utan nettverksstøtte, og kan dermed ikkje fungera som ein nettverksspelar. Kompiler på nytt med opsjonen --enable-networking til configure.Denne binærfila har blitt kompilert utan støtte for nettverk, og kan ikkje køyra som tenar. Kompilér på nytt, og gi valet --enable-networking til configure-skriptet. Tida i sekund for å kopla til eller bryta sambandTips politietFor seint. %s har nett gått.FrakkKlarte ikkje å opna fila %sKan ikkje tolka oppsettfila %s, linje %dKan ikkje lesa poengtavlefila %sKan ikkje skriva til poengtavlefila %sUkonstruktiv kritikkUkonstruktiv kritikk James MatthewsDiverre er det alt nokon som brukar «ditt» namn. Vér snill og byt det.Diverre, nokon andre bruker «ditt» namn. Ver snill og byt det:-Unicode oppsettfilUnix-kommandolina. Det viser ein hjelpetekst med dei tilgjengelege vala.UkjendUkjend SOCKS-adressetype returnertUkjend SOCKS svarkodeUkjend SOCKS svar-versjon-kodeUkjend SOCKS tenarversjonUkjend kommando - prøv «help» for hjelp Ukjend melding: %s:%c:%s:%sOppOppe sidan : %sBruk: dopewars [VAL]... Dop-pushe-spel tufta på «Drug Wars» av John E. Dell -b «svart-kvitt» - mao. ikkje bruk fine fargar (fargar blir normalt brukt viss terminalen støttar det) -n vér kjedeleg og ikkje kopla til nokon tilgjengelege dopewars-vertar (mao. ein-spelar-modus) -a, «antikk» dopewars - gjer spelet så likt den opprinnelege versjonen som råd er (utan nettverksspel) -f fil sei kva for ei fil som skal brukast som poengtavle (normalt blir %s/dopewars.sco brukt) -o adr sei kva for ein vertmaskin som skal koplast til for fleirspelar-modus -s køyr i vertsmodus (merk: sjå -A-opsjonen for å stilla inn tenaren når han er i gang) -S køyr ein «privat» tenar (ikkje sei ifrå til metatenaren) -p port nettverksporten som skal brukast (normalt: 7902) -g fil bane til ei oppsettfil for dopewars denne fila blir lest med ein gong -g-opsjonen blir lest -r fil bruk denne pid-fila når tenaren køyrer -l fil skriv logg til denne fila -c skap og køyr ein datastyrt spelar -w tving bruk av grafisk klient (GTK+ eller Win32) -t tving bruk av tekstklient (curses) (standard er å bruka ein grafisk klient når mogleg) -P namn Sett namnet på spelaren -C fil konverter ei poengfil i gamalt format til det nye formatet -A kopla til ein lokalt køyrande tenar for administrasjon Bruk: dopewars [VAL]... Dop-pushe-spel tufta på «Drug Wars» av John E. Dell -b, --no-color, «svart-kvitt» - mao. ikkje bruk fine fargar --no-colour (fargar blir normalt brukt viss mogleg) -n, --single-player vér kjedeleg og ikkje kopla til nokon tilgjengelege dopewars-vertar (mao. ein-spelar-modus) -a, --antique «antikk» dopewars - gjer spelet så likt den opprinnelege versjonen som råd er (utan nettverksspel) -f, --scorefile=FIL sei kva for ei fil som skal brukast som poengtavle (normalt blir %s/dopewars.sco brukt) -o, --hostname=ADR sei kva for ein vertmaskin som skal koplast til for fleirspelar-modus -s, --public-server køyr i vertsmodus (merk: sjå -A-opsjonen for å stilla inn tenaren når han er i gang) -S, --private-server køyr ein «privat» tenar (ikkje sei ifrå til metatenaren) -p, --port=PORT nettverksporten som skal brukast (normalt: 7902) -g, --config-file=FIL bane til ei oppsettfil for dopewars denne fila blir lest med ein gong -g-opsjonen blir lest -r, --pidfile=FIL bruk denne pid-fila når tenaren køyrer -l, --logfile=FIL skriv logg til denne fila -A, --admin kopla til ein lokalt køyrande tenar for administrasjon -c, --ai-player skap og køyr ein datastyrt spelar -w, --windowed-client tving bruk av grafisk klient (GTK+ eller Win32) -t, --text-client tving bruk av tekstklient (curses) (standard er å bruka ein grafisk klient når mogleg) -P, --player=NAMN Sett namnet på spelaren -C, --convert=FIL konverter ei poengfil i gamalt format til det nye formatet Brukarnamn:Brukarnamn for SOCKS5-autentiseringBrukarar logga på:- Bruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentisering Bruker namnet %s Gyldig namn, men det er ingen DNS-data tilgjengelegVersjonVersjon : %sVersjon %-8s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2022 Ben Webb benwebb@users.sf.net dopewars er tilgjengeleg under GNU General Public License Ventar på tilkopling til metatenaren på %s...ÅtvaringÅtvaring: Klienten din er for gamal til å støtta alle^ eigenskapane ved denne tenaren. For den fulle^ «opplevinga» bør du henta den siste versjonen av ^ dopewars frå vevsida: https://dopewars.sourceforge.io/Var ikkje Jane Fonda fantastisk i BarbarellaMe bruker berre 20% av hjernane våre, så kvifor ikkje øydeleggja restenMe vinn krigen mot narkotika!NettlesarJazztobakkKva vil du kasta? Kva vil du kjøpa? Kva vil du selja? Kor til, kompis? Kven vil du snakka privat med? Kven vil du spionera på?Kven vil du tipsa purken om?Vil du K>jøpaVil du K>jøpa, S>elja eller G>å?Vil du K>opla til ein bestemt dopewars-tenarWinSock har ikkje starta opp ordentlegWinSock-versjonen er ikkje støttaVinnarar dopar seg ikkje... viss ikkje dei gjer detTa utOrd for ei einskild «hore»Ord for eit einskild narkotikum eller tilsvarandeOrd for eit einskild våpen eller tilsvarandeOrd for to eller fleire «horer»Ord for to eller fleire slag dopOrd for to eller fleire våpenVil du ha ein seigmann?Ville det ikkje vore festleg viss alle plutseleg kvekkte samtidig?J:JaJNYN^vil du betala %P til ein doktor for å lappa deg saman?YN^Hei du! Eg kan hjelpa deg å bera %tde for berre %P. Ja eller nei?YN^Det er litt jazztobakk som luktar ugraskverk her.^Det ser bra ut! Vil du røyka det?YN^Vil du kjøpa ein %tue for %P?YN^Vil du kjøpa ein større frakk for %P?YN^Vil du vitja %tde?YN^^Vil du hyra ei %tue for %P?Året spelet startar iDuDet ser ut til at du bruker ein svært gamal (versjon 1.4.x)-klient.^Dette vil truleg fungera, men mange av dei nye eigenskapane til^dopewars vil ikkje vera støtta. Hent den nyaste versjonen frå^dopewars-vevsida, http://dopewars.sourceforge.net/.No har du på deg %d %tdeDu har råd til %dDu har råd til %d, og kan béra %d. Du kan ikkje få nokon pengar for desse %tbf:Du kan ikkje starta spelet utan å velja eit namn!Du kom ikkje ein gong på poengtavla...Du har ikkje noko %tde å selja!Du har ikkje noko å selja!Du har ikkje nok pengar til å kjøpa det %tde!Du har ikkje nok plass til å bera det %tde!Du har ikkje så mykje pengar!Du finn %d %tde på ein daud kar på t-banen!Du kom deg unna!Du hallusinerte i tre dagar på den villaste trippen du kunne^ forestilla deg! Så døydde du fordi hjernen din smuldra opp!Du har %d. Du har blitt dytta av tenaren. Byter til einspelar-modus.Du har blitt dytta av tenaren. Byter til einspelar-modus.Du har ein månad i speletid på å skapa formuen din.Du høyrer nokon som speler %sDu traff %s!Du traff %s, og drap ei %tue!Du drap %s!Du ser ut som eit beltedyr!Du møter ein venn! Han gjev deg %d %tde.Du møter ein venn, og gjev han %d %tde.Du bomma på %s!Du må skriva inn ei positiv mengde pengar!Du står der som ein annan tulling.Du stoppa for å %s.Du vart rana på t-banen!Du treng fleire %tde for å bera meir %tde!Du er daud! Spelet er slutt.Pushetida di er ute.Mora di laga sjokoladekjeks med litt av %tbe. Dei var kjempegode!Spionen din hjå %s har blitt oppdaga!^Spionen %s!Null-basert indeks på våpenet politiet er væpna medSel du snop, eller kva?^ (i det minste er det det du -trur- ho sa)_%c. %tde_Gamaldags modus_Angrip_Kjøp ->_Avbryt_Steng_Kopla til_Sel %tuf_Hiv <-_Dukk unna_Kjemp_Hjelp_Reis!_Nei_OK_Frisk opp_Røm_Spioner (%P)_Vent_Start spel for ein spelar_Tips (%P)_Ja`Acapulco Gold` av Riders of the Purple Sage`Are you Experienced` av Jimi Hendrix`Cheeba Cheeba` av Tone Loc`Comin' in to Los Angeles` av Arlo Guthrie`Commercial` av Spanky and Our Gang`Eight Miles High` av the Byrds`Itchycoo Park` av Small Faces`Kicks` av Paul Revere & the Raiders`Late in the Evening` av Paul Simon`Legalize It` av Mojo Nixon & Skid Roper`Legend of a Mind` av the Moody Blues`Light Up` av Styx`Mexico` av Jefferson Airplane`One toke over the line` av Brewer & Shipley`The Smokeout` av Shel Silverstein`White Punks on Dope` av the Tubes`White Rabbit` av Jefferson Airplanevæpna til tennenefor %Phore_ue_hore_be_horahorer_uf_horer_bf_horeneog selja narkotika. Ikkje lat politiet ta deg!politimannpolitimennhoppa avbetjentarbetjentdopewarsDatastyrt dopewars-spelardopewars er tilgjengeleg under GNU General Public Licensedopewars-tenardopewars-tenaren avsluttar.dopewars-tenar versjon %s kommandoar og innstillingar help Viser denne hjelpeteksten list Viser alle spelarane som er logga på push Ber spelaren høfleg om å logga av kill Bryt sambandet til spelaren utan varsel msg: Send ei melding til alle spelarane save Lagrar det gjeldande oppsettet til den gjevne fila quit Stopp tenaren ordentleg, etter å ha sagt ifrå til alle spelarane = Set den gjevne variabelen til den gjevne verdien viser verdien av den gjevne variabelen [x].= Set den gjevne variabelen i den gjevne lista, indeks x, til den gjevne verdien [x]. Viser verdien til den gjevne listevariabelen Lovlege variablar er lista under:- dopewars-tenar versjon %s er klar og ventar på samband på port %d.dopewars-tenar versjon %s er klar til å ta imot admin-kommandoar, prøv «help» for å få hjelpdopewars versjon %s dop_ue_dop_be_dopetdop_uf_dop_bf_dopaslapp unnaVenta ein boolsk verdi (ein av 0, FALSE, 1, TRUE)Vart kopla til frå %svåpen_ue_våpen_be_våpenetpistolar_uf_pistolar_bf_pistolanetar ein øltungt væpnaav ein oppdikta narkotikamarknad. Skap rikdomen din ved å kjøpalett væpnagodt væpnaeller K>ontakta spionane dine og få rapportareller I>ngenting?eller A>vslutta?Latterleg dårleg væpnarøyker ein bongrøyker ein sigarrøyker ein sigarettrøyker ei bønnestrftime() formatstreng for å visa tida i speletstrftime()-format-streng for logg-tidsmerkerEtter det, er målet ditt å tena så mykje pengar som råd (og halda deg i live)!BankenLånehaienNixon-opptakapubenvart skotendopewars-1.6.2/po/en@quot.header000644 000765 000024 00000002264 14256000065 016460 0ustar00benstaff000000 000000 # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # dopewars-1.6.2/sounds/19.5degs/000755 000765 000024 00000000000 14256243623 016034 5ustar00benstaff000000 000000 dopewars-1.6.2/sounds/Makefile.am000644 000765 000024 00000000116 14256000065 016616 0ustar00benstaff000000 000000 ## Process this file with automake to produce Makefile.in SUBDIRS = 19.5degs dopewars-1.6.2/sounds/Makefile.in000644 000765 000024 00000050111 14256243572 016643 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = sounds ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = 19.5degs all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sounds/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign sounds/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # 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. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ 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; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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 clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: dopewars-1.6.2/sounds/19.5degs/murmur.wav000644 000765 000024 00000041014 14256000065 020071 0ustar00benstaff000000 000000 RIFFBWAVEfmt **dataA~~~}~}~}}}~~}~~~~~~~~~~~~~~~~}}||||{{{{zzzz{{{|}}~~~~~~~~~~~}||||{{{{||}}}}}~~~}|{{{||}~~~~~~}||{zzyyzz{||||||}}}}}}~~~~~~~~|{yyyyz{{||{{zyxxwwwvvwxxyyz{|}~~~}|{{zzzzzzzzzz{|}~~~~|{zywusqsuvxz|~~~~~zwtrpnmllkklnoppqrtuwxz|}~|zxusqqrstvwz|}~~}|{zywwwxyyz{|~~}|{zyxxxxwwwxxxyyz{|~|zwtrqpoonmmmmmmnoqrsuxz|}~~~}}}||||{{zzzyyxwwvvvvvvvwxyz{}~~~}{zyxwvvuuvvwxxy{|}~}|{{zyyxxxwwwwwwwwwwwxxxxyyzzz{{|}~}}||{zyyxwwvvvvwwwxzz{|}}~~}}||{zyyyyyxxwwwxxxyyz{{|}~~}}|{zyyxwwwwwvvvvvvwxxyz{|}~~}||{zyyxxxxwwwwxxxxyz{||}}~~}|{zyxxwwwwxxxyyz{{|}~~~}{zywvutsrssssstuuvwxyz{}~}|{ywwvvuuuuuuvwxxyyzzz{|}}~|{zyxxwwwxxyyyzzz{{|||}~~~~~~}|zywwwwwxxxyzzzz{{{|}}~~~}||{{{zyxxxxxwwxyyz{||}~~~~}}|}}}|}~~~~~~~~~~~}}}||{|}~~~~~~}}~~~~~~~~~~~~~~~}}|}}}}}}}}}}}}}}||}}}}}}~}|zyxxxxxxyyzzzzyyzz{{||}~~~~}||}}~~~}||{{z{{{{|}~~~~~~}}}~~~~}}~}}}}}|}}~~}||||}}|||{{{{{{{|||{{{{zzzzzz{}~{yxxwvvvwwxyyzz{|}~}zwtqonnnnmmmnprtvx{~~~~~}|{ywurqqrrrrsuwyz{{||||||||||||}}}}~}{zyyxxxxwvvvwxz{|}{wtrqqrrrrtuwy|~|zyxvutsssuwz}}zxusrrqqrstuuvxy{|}~~~~~}}|{zz{{zzzzz{|}~}yvsqomllllnqswz}~~~|zyxxxyyyyyyyzz{||}~~~~|xspligfhjmortwz}}zxwvvvwyz{|}~|{yxwwwwxxxxvutttuuwy{~~zwusqooprtvy}~}{ywuuuvx{~~}}}}}}~~~|zwusrrrrrtwz}zvromkighikmpsvz~~{yxwwxz{}~~}}||{|||{zyxxxxxyyyz|}|xtqmkhffgjnqtwz}}{yxwwwwxz|}~}}|{|{{zzzyxwvvvwwwy{}~|{xtpligfdcdglqvz~~|zxwvvvwxy{|~~~~|zywvvuuvwxz{}~~}|zxvsplheba``bfkqx}~zwutssrsstvy{}~~~|{ywvwyz{|}~~|zzz||{yvqmjihhhkqx~~}|ywuttuvy|~~|zwvuuuvxy{}}}|}}~|{{{|}{vpjgefgjot{}||}~~}|}~}|zyxwxy{}~}{yxwwwx{}~~~}{xvtrmhb_]^`diqy}ywwxz}~{xvsrrrsuwy{~~{xvtsrrrtuwz|~zwvwwwwvsokihikouz}zyy{~~|{yxxxxwwvtqonmmopruwyz{{{{{{{|}~}{xvtssstvwxz|}}|zxvvvwz~}{yyyzzzyyxxxy{|}~}{|~~}|}~~}}}|||}~}zvttuutqprtwyzzz{{xvuvxyyyyz|}}~~~}|{{|}~{ywtplknrtwy}}zxvtsuvxz{~~~~~~~}}|}~}|zywwxyz{{{zzywsommoqsw{yrmjhilqv{~}}~|yyyyzzz{|||{zzzzzz{zywuromllnorv{~|{{{|{zwsojgefhkpuz~}{zyxwwwy{~}zvqmkjjknrw||zxwx{~|xtokihikosy~{zyy{}~}|{{{zywvvuuuvwxz|~}}~}zvttttuvwy|~{zxuqnljkmorsuw{~}{zzzz|~~|zxwvutuwy|~~zvsqrsuxz|~~~}}|||~~|{{|||||zwurqqrstuvutqommnpsw{}|zyxxyz{|}|{zyyyyxvtsstuuvvwx{~|xusstwy{}~~|zyxyz|~}zvrolkklnqtwz|~~~~|xussrstvwyz{||{zz{|~~}||}}ywtqonmllkkjijkmpswz}~zwuttuwyz{{{yxwwxy{|~~|{ywuuvx{~~}|{{zzz{zzzzzzzzyxvutssrrssuwz|~~|{{zyyz{{|||}~}{zzyyyz{{|||{{{{{{{||||}~~~~}}}~~}||||}}~~}|||}}}}|||}~~}|{{yxxxyyz{{||}~~~~~~~~~}|{{{{{||}~~~~}}|{zxxwvvvvvwyz{|||~~~~}}}}}}}}~~~~}}|{yxvsrokihhjlnpsuxz{{zz{|~~~~}||}}}}|||||}}}~~~~}|zywvusrqpopooooqsuvy{}~}|{{|~zwwz}~~{yyz{}}zxvvwxxwussvxz|}~}{yxwvuuttuxz|}}}}~|xvuwz{yurpqsuutssuy}~||~~}}}}~}|{{|||zyyyzz{z{|~~~}}||}~}|||}~~}{zyxvvuuvy{~~~~}}||||{zzz{|||}~~}||}~}{zyxwvutuvxxxxyxvspoooqrsttvy|}|{zzz{|}}}|}~}|{zyyyyxwusrssrqrsuwxy||zxvtrqpqrqrstvwxz|}{zxxxxwwvwxxyzz{||~|yxxvttvwwwxyz|}}|{zyyz{{||||{zyzzz{|~~}|{{||~~|zxwvvuvxz}}xtqonmnqtwy}~{zyxwxyz{}~~}}||||{{|}~|zzywvuutsrqpnmmmmnqtwz}~ysnkfb___achlqtx}~zuqnlkklnqtwz}~}|{{|}}{xusqonlkklnpruxz|}~~~|zxuroljhhhjnrv{|zzz{|~{xussstuvyz|}~~}~~~}|||~|xusqpoooqsvy|~~}}~}ywusrrsuwy{||{zyxwuttttvwy{}~{yxvtttttvwxy{}}~~~~~|{zzyxwvvvuuuvwxy{|~~|zwtrqppqsuwy{}~|zxxyzyyz|~{vqmjhhijknquz~}{ywurqonnnoprtvwxz{|}~~~yusrsstvx{~|zxtnifefhkou{yqkijklmosy{wvwy|}~~}zwtssuvwy{~}xsokgc_\\_chntx~~zvsonnqsvy{|~|xspoopqruy|~|{{{||}~~}}~~~~~~~~}}{wtqoonooqsuy~}{zxxwvtrstvwyz{||ywwxz~~}|||{zxwwy{{xtqmkjjlnptx}}zwtrrsvz}}{yyyyyxxxyz{{zxvuutttuvxyyxwwxy{~}zyyz{|}~~}}|{{|~|xspnmmorw}|yvutux{}~||}zrlihimpsuvxz{{zzyxwy{}}|ywvvwwwvsojgffimqv{|ywwwxz}~{wtrqqsx}}{zxwx{~~~~~~}|{|}|zxuqkfca`bflqx{vsrrux|~}|zy{~|yxyz{{{||{z{{|}~}|}}~{wrmhda`bfmt|zwvwy{~}zxvwy{}~~|yxyz}~~~|ywutuvxz{{{zzyywslcZSPQXdrzvv{}yxwy|}zywvuvy~{z{}~~~|yurtx}~{zz{|~{tkc]Z]ckt|}zxwxyz{}}{yyz{~~}||{|}}|zxurpoomkkmrw|}zzz|zsmgdcejr{}{ywwwxyz{{{zywurpmllllifeefimqvz~~yvuwz|umga^]_dks{~~}||}~~|xusrrsux{|xuttstvy{||xvtsrstuuspkgeehmt|~~{wrnlkjjlnqstuvwxz}~zvspnlkjkmpsvx{}vohaYRLIHJNT\dlsy}{wsqpprux{~~}}}~|zxvutsstuwyz{||{zyyyz{}{wspnmmopsuwyz{zxwvwy|~{ywusqpppqqqpolklptwyz|~|zz|~}xusqpopqsuwxyyyz{}}~~}|zxvtsrsuwy|}}}|zxxxxxyyxxwxxyzzzyy{}|ytpkhfeegiknrwz{{xvsqpprtvxz|}~~{zywusqmhda`^^_adgkqw|~}||~|{{}~~{vplighhjkmosx}}|||{zyxwy|~~|zwtpmljihhgghiiijjkklmortwy{~~}{yxwutsrqqqpooprsuvwxyzz{{||}~~}~~}}}}}}|}}}}|{zz{{{|}~~|zyxwwwwwxyz{|~|yvtrrrssssrrplifddeimqty}~}}}}}}}~~~~}|||||||||}~{tlfbadhlorv{|zz{|}~~~}}|{zyxwwvvvvvvvvvvwxyyz{|~~~}}}~~wpjghkosw{|||||{|}zyz|}|{yy{}}||~~}||~~{tka[XX[_cfkqx~~yustwyzz}~~|{|}}|zxvvvxyyxxy{}~~~|zxwxy{}yrlihjnquz~|||||}~}}~~}|zyyz|||{zz{{{zyxwwwxwvuuwyz{|}~~~~~zpf_ZYZ[]`dkqvxvsqooqtwy{}{zyyzzyxwtqmkhedcehlpty}zrkhhjmpty~~{zz{}~zvsqnkhgghknrvz|~{ywvwxz{}xtqqsuy}~yuqnkighjlnpqrsux{|{xvuvttuustutsuwy{~zrjc`]^adgkorvyzxurpqtwz~~|yyxwvvwy|}{yurnljihhgijklnpruwy{~~zwuuwz}{xvvwxz|~}zwtrqrrstuuvwwxxxyyz{|||||||}~|unjijlpswz}~{wustvy|}{ywwxz}~}|zywvtsstuwy{{{zz{{|}~unkjmqvz~||~~}}|{{{{{||||}}~}zwusrqppqsuwyz{{zxwwwwxz|~vokjnszztnifddglrx{vqnlmnpsuy|}{{{|}~|skfcdglqv{~{z{}~}{xwvwz|~~}|{zxwvuuvwxyyz{|~~~~}xsmheehmsy~}zwuuw{|xutuwz}}{xvtsssuxz}~~~~}}||||||||||}~}{yxwvvvxy{|zwsnkhffgjns{~}}}~|{{||||{zywwvvwwxy{|~~~~~~}yvtsssrqonmlmmnpruy|~~}~~}zxvttuwxyzzzyyyyyzz{{|~~~}}|{ywusqommoqtwy{}~~~}|||||||{{{zyyzz{|}~}|{{{{{{{zzz{|}~~|{yvtrqppprtvy{}~}|{{zzyyxxxyzz{{{{{{|~~}{zxwvuuuuutrqonllkklmprux{~}|{{zzzzyxusrrrrrtuuvwxxyyz{}~~~}|{{{{|~~|zxvtqpnnoprtvxyz{}~~}|{zxvsqolkjjklnoqsuvwxyz{|~}{zxvtsrqrrstuuvvvwy{~~}}}}||{{{{{{||||}}~~~}||}~|zxwvvvwxxyz{{||{{{{|}~}|{zzyxwwvvwxxxwvvuuvwy|~~}||||}}}}}}~~~~~}}}~~~~}}~~~~~~}{zxxwwwyz{}~~}|||}~~~}|{zzzyxwvutttuwxz{{{zywutssuwy}}|zywwwxy{}}{zxutsrrqqpqsvxz|}~}zxusqqqqrtuvvutsstux{~{xvtttvx{}~{ywutrpnkihgedefilptx{~|zyxxyyz{|zwsqommlmpuz~}|{{zyxxwwvvwwyzzyyz{|}~|yusqpnmkjjlouz~~}{yvtrrrrpommortvy}~|zzz{|}~~~|xrmhda_^^_`bdinsy~~~~}|{yxvspnlkjjknqsuwz{||||}~|yurppomllmptx{~~~}||}}}~~~}|zxvsqoopqtuvxyyxutsrrsvy}}{yxwwxy{||{{zywtrqopqsuwyz|~}zyxwwvwy{|}~~}}~}|{{|{zzyxwutrqpqstvy}~~~}|zyyyxwvwyyyz}~~~}}~~}}|zxxxyzzz{~}||zxwxz|}~~~|ywvvuvxz}~||||{{{{{{{{{zyxyz|~}|zywwxyzz{}~|{z{|}}~~}|zxxxyz{|}~}zwtqopsvx{~~}{zyyz{|~|zyxvvvxz|~|{zzz{}~}{|}~~}}{ywvuutqpopruwy{~|yvuuuvwy{~~|zywvutsstwz}~}||zyyz|~}||||{yxxwutstuvxyz}}|zwvttux{|}~|zxvtuuuwwwxz{~}zxvutuuvwwy{}}~~{xwurqrrrsvy{}}}}}{yyz{{{|}~~}zyxwwxyz|~~|zyxxxyz{}~{yusqpoprrrrsttttuwyz|}|{{|~}zxvtsrrstvx{}~}|{{{|~~~~~}zxusqpppruwz{}~}zyxxxxz|~~||{{|~~~}|{zyyyyz{}~|zwuttuwy{}~~|zxvvuuwxz|~}}||}~~~}|||||}}~~~~~~|zxwwxyz|}}|}~~~~}}}~}zxvuuuuuuuwyz|}~~~~}||}}}~~~~~~|zyxvutuuvxyyy{|||}}}|}}~~}||}}||{{zzz{|}~}~~~}}~~~}}||}~||{zyyyyyyyyyyyyz{{}~~~~}||}}~~}|zzzzz{|}}~~}||}~~|zxvutsstuvvx{|{{|}||||}|||||}||~~~~~}||{zzz{}}}}~~~|||}~}}}~~~~|{zzyxxwwvvvvvwyz{zzz{|}}||{{{|||}}~}}||{{|}}}~}zwtpmjihhhimrvxy{}~}}}}}}}~~}{yxwwy|zwtroljhikry}~zvrppruwxxxwvw{~|zwuutsqpqrtvxyzzyxxz{|}~|xvusrpoooqux{}~~~}{zxussssstuwy|~|yxvusqomlmoqtwxyz}zuqppomlkjjmrw{}{zyxyyzyyyyz{}}vqopswyzwtqopty|~~~}}{yvtsrqponorvz}}yuqommoprtwy{|~}|{{{yvtqpprsuvvvvvxy{{{{z{}}vqliijmqtx}~{yvutttux{~}|yvsolkjklmlmorux{~~|{|~|ywvvwz|~}{zzzzyzz{z{{{}~~|zwuttsrpnkjklmmnoquy}}{{{{zyyz{|}~~~}}~}||{||||}~}|zyzz{}~~}|||{{yxvutsstwz}~}}~~}}||}}}|{ywvtsrppppqrrrqrsuvxz||}~~}{{zxwvvvwxyyyyz{|}}}~~|zyxwvtrqqqqrrsrqqrrrstvwxz{{|||}~}}}}}}}}}~~~~~}|{{{zyyzyxwwwwwxy{||~~|{zzzyyxxyz{|}~~}{yxwuuutssrrsssstttuwxyz{|}~}}|{zzzyxxwwwvutrqqqqqqrtuwxz}~~}}}||zyxxwwwwxxxyz|}}~~~~}|{{zyyyyyxy{||}}|zyxwwwwwwwwvvwwxxyz{|}~~}{zxvtrqppppqrtuvxyyz{{{{|||}~~~}|{zxxwwvvwwwwxyz{{|}}~~~~~~~~~~}}}}|||{{zzzzzzzzzzz{{{||}~~~~}}|{zzyyyxxxxxxyyyzz{{{{{{{{|}}~~~}}}}}}}}}|{{{{zzzzzzz{{{{|}}~~~}||}|||||}}}}}}}}|{zzzzyyyyzz{{{|}}}}}~~~~~~~~~~~~~~~}}|||||||}}}~~~~~~~~~~~~~~~}}}}}}}}}}|{{{{{{{{{|{||}}}~~}}}~~~~~~}}}}||{{{{{{{{{{{{|||}}}}}}~~~~~~~~~~~}}}}}}}}}}}}}}}}}~~~~~~~~}}}}|||||||||}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~dopewars-1.6.2/sounds/19.5degs/die.wav000644 000765 000024 00000072544 14256000065 017317 0ustar00benstaff000000 000000 RIFF\uWAVEfmt *Udata8uC_sXjUR bw7U8v&Kmpxa,dbTSqCz=Xr 'gcKwus=g~Nu e< RB7A]g<T+W ?!~0}2Tox"-M<< P"fl  ClJo~2SIl"_# ,4 u)aOyr}$y CJHC..C@  xC=TC3 GM#D|  jX>; Sm4$P( lmJdK(\I*a6bo Niw_h+TC`ImN( $^3TQ5"XgFi  h2 xb"3\hhO2z@04bhTE] cYP.? 1H1g5}O/Erod[2% *t M_s : J-_;@L2! [uI`L55<JR+I mEV]rln avL5G  , 'Q +m!'G?d P{0;/82q 7.qt{ &~U 9h7X=}XQu> /s ? 0=>"qvnj$BUwYp]JV>UW59Tf}VrHH(Rb7Mh8NFo)3HBP6pd ?_ JIvM|/=% C *)'9 n %5Q~Af 9 @O w@.=l |k4Qbs} ; G_z22^~vu _ E'TRJor3 _ 24d=g>/>6*<qKE30iO `y/k } /S#T5K :al;TfrNUQmAA~,P&0/  tX[1[ 6E k) MMWD"+XF<-h?}/6_]D]CxCR + ~$i ]Ch*i8h #Ki,6z|$j]sM~|d$pf|BlJ-sq+$]+aOgG'C7=V`n9ry =4p`i@eH[dd(*]" Iaji+h~u;g]6a!PgCQ.\${qw$4[!J5Ir0cg|[^6 A:4!^@QkH{.UB*4B6YRqR,_O7sit=RU8ZbJ 2]|l#gOxA9A9]uaVJTj%Jt~ vyv u~u0 k|ZgxGQ!JyR_$+`6I?c'<"{qL[ !|S^7%&nB%G-pg9$]@Sta3A:'`4tV9|%>z ;nKq8;Z<%X.Pa{?_ u!ZHE&q&`0~/+([(+1<|z%r/n -mbk@K<m9<=}Gc&Lz=o2D EG'\>NZ__EMi#WICx} |rR1U U!i``x ri e[S#wb:cs/1#-W\a ,0WNZ]9`aT^K)uZ5@u Vn|iI#k9<>Y\/2/#(y6WB`@k>*xS[+_#i UX5/@t9Vf{Q?=&-`]@os"12Mm1D f%Y&>=dH|48c8mL+ieAa.UQmBCJ (O0)_brH h  pw v nw#~aw aNb f!2pd|e.;3zHy0EuU?L8FAik yhW?2ivN T&|iU"9]du;kl/o>VwQF2|U]9WVlI*2?TM, cwTPz% sWYH_\k,c-N2z\_Csydl s7 V?{v 452\|"V6qfO<-q2FsOsc65*6=!r?\.`W:Da4L\'G0:pM0Ngdusrzh|VvMfjj-/Pn< 7amEb a7v}Y{".H4Hy)rR~G1g3 j_q]vD,E>OKe6`*qMIWCf4Ynlq:8qi kFN{|rkMj9*Peah^a|k$=R}}iv}~ywwvzt~}xtt~z|cw gxlo epmp~)!_jRl3$l=chI &U0OT#p6 .{{v3qxR,*.[FDB##~h 2r,35BW jE,e! 3MI6q"0jj'};S)wrmM83mM& @ G g3 swKC$,PFkOAGN0M[Ejbo iAjGw;# Da2I`vjz}h)=|;s V.Q{fx*uv,|Kp v)W B4{fg}!xzJ|}h{|Ryhp*sk^`c||~o~rtj" k} wzb t~nZ{' sz-OsO8m!k spL "q9o,6\gXN/-=D YvV=y,U7n8' {Xh=KP(5=m&<)5~1 @`V%*@ewOKT|@OL>QHpoT2J(Ht[0hB5Lqgtw{*!g "fe,+2B[|w!npKz z{Jd-rntsqy!yjt}~oqmagsy {~{lsau ||{u}yu~{$bq{|#v#SK/`4HWq 1gM,cf xC@%{P&y6{+6@:F]'"tFB#09s 4}c7(fTV];ePL~Va4X? sF?< H;GJyg=N]^z#X]?aR%;.I){b2'Lj2h3]1 #Y)Q$ys8`[atzHis`zWjwq yig}rm{xhx} {vtx | zifa{kqy[\x )tps{ T. |g=MW ~;*{ml;0ysI+il%2!M#d(!.M\L,J2I~QhB/c !=FIstBIwY}/AIn,.BCAH4b=X}YP#!%Y#L0-bZePWQHfvvx*AA^ UG2ZG]k ire~S%uCuuz ~k| zv |~~ vt x mxpe$ttn fsPuw3 }sS~xk=O1-k3\E  1h= u.{)'Da y)$@d92tzc40zFud?(]y_7e$]v   [zL^iPC%#|Xpss ~Xyk   vp ykg {x| { !v^_\]Wo{, v|Q0A f_~i2o$" :@4@+]|vGjJ W[:@y #2%<Ls//.uhyL}<JE9vs]9GPP pb4?V|w\|`tx)gk8z_MI.abyEtz]wDMJhpt3)N#^[CKo} OWy+^}}j :MnwSyJwQ vyidu%|+  vxl|rkw~yzxpz{ vbvyuacW{'a?zQ25)u AJQ1H!?Icyl'M(OJM.GmQ6 3)@*a1 [x *U~\ot5Gd1kIbRkrR \vR{$ekKV  Xn5HX=-KhfQA'xu!9,Q>o tw<_m tv.GaG/oKtnI&l=R:}}u!vZ\,:"cytoS}$s wlx ~lx|f{w rlq r}n#qBVR~r"6(&pDz}z $o6D 3 v|wpy-D^1B(J n  yi"Cuzd+COXtRFsdN3EO2\ Ij Gtm}Nyij96E#i-+gPm_.r GJu%ca zGy}\[qEFQib-D;\< uzddpP-wzigMVWYD#*$}oyU,y}tSsk #{yb z |{ pm}~~suovqsg}  ldlOz) &'qReS'2$OC|z; /U e!#?GJ-o'Uu]F:/-M}xw/%"1vyx3/)4IYjmiByR[])"/?1nn.lP-BnYB )Ut8 ^shC|HM|wKyA=b~ryRs5U~}}=N;} `2IuVh`4[QDOhfW2zq|f"$$ wyz}"n pns rnulw { ji&FvZ]Tgb0eT8?dw;+c"qu&CAP'  uZ}xZZCnX[VhQZA;]fCh2O}rG/-,JXI*B9 /5K * WB"7E@S+_HnYFb$}rA$U.]||hM0L3(=Ng:]iP1["t|5]x`gdbW3*szqq_#}y|zg}{u wxtvik ~y s}r yyxeYr3 v^!r4@,``WVj/G>|.ux{?U;sMp#+"F=A`;nc.A&[kaE.;l:Vz&vbJ&( ~TJV6e3mQN:h +Hu1]nQNaX%z8+mVTD-&sR yS'TgvtjJJ]9iVk?q &UX9";mTZ+C20-$[mO+*Lu^54\ ^X:0XV2n(m#M.; "yd I$yk!s#R% 9w16vfEc>jK%y 08&yvy*%&:cZWRI>(*9Mv,[S!F:!k,2ZzJ1m `z%l.cywiRil%t}rt~U[-[{ X>|`n$X>A /\&\.:& #Q.L7iq1^IJI;qvK92ga<mm-\b`\8/g[`JQEl^7g\ 8WNwM' ,q$@Sxl9a+~jva9?^)# &y:#JMcx6Vl]TS .AC|Oy5~lFZ"tQ@@5l*gZUKv9Pa65~u_-3Q2#DEve*X1OceIrneYm#?<./?L,hr-]G  0Vb"p3J<:Rh2Op o?LEA|{IVDNXJqNAZC.4Fj9o~\pC<4TLiGs x'2@x$D|_;\L)V XA?v4Ic['UB4+;#8EK.+s$3:u].^ 'XX_ihZF,a qu-Q87U$h.-8sA4xa9p5?'_d0ybNx8mhCa_MO^{q)"oq(II!@4@-v27VYE&J 0Jb.Hd5?GU>A1S iJ(2f]$>:}h%3M[vnsG)Gd%vXb'_][#3yYFRgWAZ%$,7?S$r#S+)).XW+Y+,YT-6R 7*.`[.0qlZ'cQK0 i^i4M&i[7 *jvFr\6&=Ldyk_; &St_gD|+FEHx qrso1ybFV".v;(Ce}Y8s #i!)T"ZR38Joz~hW_G7Kh\K' 4Sb]`^^o $AA=YN@-% 8YykdffOB]qbiNFG^~U#0,-,...]8%o;/K8;:;"@4:Pp9RXT;vU"!:Ws86yYA@>&$%&B[_y{w^C&(/EGDK^h461~ybB3Ni~!.^TdJ-;QMTgn^:8BUTTUS[p 5)iJ"0AA>I] tmSCFDO]d~yn_cYGVbjyuXSCDPZo{}siklivwmqbc}|dku~dopewars-1.6.2/sounds/19.5degs/shotdown.wav000644 000765 000024 00000022210 14256000065 020404 0ustar00benstaff000000 000000 RIFF$WAVEfmt **data[$~~~~}{~}}|yyrxt~swykfnw}p]rkxtlwu}wu_v~tcpkjqt|TmjhcWo||rx|q[s}w~sky__x{of]vemkuzjmvekqpvr{xx}xzpmnpx~pldok}zuspwyz|uqsvnqpszqs|kn~rt~zz}qk~~ji{zz~}yvu{|yxz~{x{u|mgukqsmgsjXUp~}}|r|wxyumkhnssxuqxox{szxzx{|hdt}h}py`h_Ya}}fqw{ztfm~f]xw~xZemvf_{{jyymjiiflb||}{vstlkx|pyuhuvqwtekk}||~wxhnrstu{wpy|yumlllsoz~~uqwip{|qqzkcf|xtq|ssszpsxvtpddqdXiyz|}|eozypu{y~yzqstys|xxyvwvvnv}{zt}zqgimq}vzykumak{y|~}xyzyuvzj[eijV_meo}xi]^bdiuz~iWecmpbyt^uvliv{es~{t~mU`oqjt}xx|tuwxtwpwemo~qnurnvszv}pivpvzpoyrq~}fntzyyoXZv{z}ds{z~tuu~x~w{ip{||p{rr~zqmmm~ytovjexsswwvehplzxy{{hldjyxxu~}~lnyrxzwX[px^m~|gjry}{ljm{}x{~yvrxzy~zrtor~vzx|zy}}{j]q|wpngrpu}u{{}~tr{z|wtvpu}spgf~vyrzw~srr|og\u~ujw|mq{}}ympjty~ymotwx{}yo{{uwyylk|zyqwyidox}zqlny}uv~|l~vzxrt|zvldn~|vrtmz|yuqp~zowzjo}~w~us|wilx}~}zk|zpuwxzxsnw{z{ytx{xzwwzpnt{qsp~}|y~|{||yv|}vsxx|zwsyx~yvl|smr~~z{zyxw|y{~~|tu|vsux{yiryv}yqvy~urs~~{|zxuvy~~|tvmrtlr{||syytv}}sos|}qww|{uwu{}}{wssxtmqw|xqmoquworw~w|wtstxzohn|hju|oy}|ylqytiisz|sntz|vzz{||z~}{y~tmx~}}ttw|~||uooywsqqvw~ywsszulpyuppyzwyxzu}xvlv~vrwz||xv|w|}yxtvnqzq|pqqwzwwyacrv~yntuu~~ox~u}si~vozs{zotwxdq{xu~s~wyfgtpzlo}|wvyssjuyxy|sukhtuppgspqw}{}pw{qolovfWWsoyqsoyredbWbvt|z}{~vwtus{|~zqpiqz|~~pi~ftrk|xropls}vosx{zpipqy{w|nlkwqlsn}u~}~km}vvw{lstsk{|vf|uz}xttluwrz}hy}zqmx{ix{xvo~|q~{otjvty}s~}sgnwyqy|qrqor}shpy}zytwy}}|{spy}r~urguzxw~lwygjpsxvx}skd}z~q~yly}jor}v{w{z~w~vv~xzy|rw|xuwy~~y||z|z}}zy|xwzu~zxx|~yy~|{}xr}zy~z{}|v~}z||~~|{||}||~~~~~~~|z||~~xx}yzy|}}|zyz{{}}~|~~~}|xi]gut|qtn`fvyq|z}wzy{}~szt}}||z|||~~|z|}}y}~uy|~y}tww}v~v~x~y}|}{|||z|{u~wp}yy|~|z{}}}p\[fwx{x{qnpps{y|{z}w|~{{{~~|~{~}|~~~|{w|{|}~~}}~~|}z}||~y{~z|z{~{}z|}{~}{z}}}~}~|~{|}~|~|}|}}~~}~}~|~~~~}}}~~|~~}~}|}~}~|~~~~}}|}}~~~~|}~}}~~~~}~~~~~~~~}~~~~~}}~~~~~}}~~}~~}}z~~~}~}}~|~~}z~~~}}~~~~~}~~}~tw{{~~z~~~{|~y}~|}}{}~~~}~|~~~|}~}}}~~~~}~~~~~~~~~~~}}}}~~~~~~}}~|~~|}||}~}~~}~~~~~~~~~~~~~~~}|~|}~~~}}}~|~~~~~}~}~~~~~~~~~~~~~~~~|~}}|}~z|}|}~~}~~~~~~~}}~~~~~~~~~~}~}~~~~~~~~}~~~|}~}~~~~~~}x|||~}}~~~~|}|}~~~~~~}~~~~~~}}{}~}|}~~{~}}}~~~~~~~~}~~|~~~~}}~~}~}~~~~~~|~~|{~|~~~|~~}~}|~~~}~~}~}~~~~~~~~~~~~~}~~|}|}~~~~~~~~~~~~~~~zpbfloqv~rlrrrsrqw}yvxz}}}v~}~|z|}z{~y|{z{z}{|~}xq~wzzz~{{{}|{{}~}~~}}~}|{|}~~~~}~}~}~~~~}~}~|}~~~~~~}}~}~~}}~}}~}~~~}~~~}}|}}~|~}~~~~|~~{~}}}~~}}~}~~}}~~~~~~~~~~~~~~~~~~~~~}~~~~~}~~~~~~~~~~~~~~~~~~~~}~~~}}~~{~z}|}}}||}zy|~~~||~~~~~~}~~~~}~}~~|}~}}}~}~{~~~|~||~}}o~|{z~{~~~|x}{v{z{{xz{||}|~|~}~~~~~~~~}~~wwy|}~|~y{~||||}~~|}}}~~~}|}|~}~}}{~~~~~~}~~~}}~~~~~}~~~}}~~~~~~~~~~~~~~~|}~~}~~}~~}~~~~~~~}~|}t{z}}{}}~|~~~~~~}~~~~~~~~~~~~}~~~~~}}}}~~~~{j}s~||x~xz~~~}~|}|~~}}~~}~~~~~~~~}~~~~~~~~~~~~~~~~~~~~~~~~~~~}~~}~~~~~~~~~~~~~~~~~~~~~}~|}~|~}~~~~}~}~}~|~~~~~~}~~~~}~}~~~~}~~~~~~~~~~~~~~~~~~~~~~~~~~~~}~~~~~~~~~~}~|~|{|z}~}~~z{{}~~~}}~}~~{}}~~~~~}}}~}}~~~}}~~~~~~~}~~}~}~|x~}~}}}{}~~}~~}~~~~~~~~~~~~~~~~~~~~~~||~}~~~~~~}~~~~~~~~~~~~~~~~~~|}|z}}{{}~~~~~~~~~~}}~|~|}||}}|~x}|w|}v{{}{|{~~}{{||}}~~~}~~|~~}}~~}~~}~}~~}~}}}z|}~}}~}}}~~~~~~{}~{|~yz|}}~}~~~}~}~~}{~}}}~|~}}~~~~~~||}~{~~}}~~~~~w~{|}|~}}~~~}~~~}~~~~~~~}~~{z}}}{|~~{y}~zz||~}~}}{}}}~|}~~|~~||}|||~}}}||}|~~~}~||{~~~}~~~~~~~}~~~~~~~~~~~~~|{|}~|~}~~}~}}~~}}~~~~~~~~~~~||}}~~~~~~~~~~~~~~~~~~~~~}~}~~zwwu}}~}|~~}}~~|}~}~~~~~~~~~~~~~~~~~~~~~~~~~dopewars-1.6.2/sounds/19.5degs/gun.wav000644 000765 000024 00000036312 14256000065 017340 0ustar00benstaff000000 000000 RIFF<WAVEfmt **data<~~~}|}|}}{z||zyyzyz{|||~~}|~~~|~~~{zzywvx}~|{{{~}~~}}~z~}~|}~wywvyxvuzz~~~{|utxzyz}yy{y{y{|~~~}|{||{{~yz}|w}xy|y{yx~}{~~{vw}||z}|||~|zv{w}wzv}{~~{z{{ursx{~}{z|}}{~y}~|}}{zyuzx}yyz|~}~}}~~~{}w{{|~}|{vy{|ytvy|ywy{~~~~}}}~~z}{|z{|xwwtxrxuz~uxyzw{}}{{|}{z}twz{y~|}}y{y{xtzzyy{{~}|}~}~|~x{yxxsxxvvuvvyx{~|{{uxutz{{y}}xw||~~y|z}}~}}|{||z}|}|~~||~|}|w|z||}zs{xw||rrx}}~wzxz}|{}}|{}|x{wy{xtt|{t~vxjn|vosjt}zxy}|qs~wz}z}ztw|zyzxrzyw~z|vqrzywijbqxaSUUX_r|`^cViùzkcUMHEFFR\q}nu||ti{yvϮkPiZLLO=?UUud|wktum}t~ftc[[^U\qvpjnl}}}jyS55JV4+.Hu]OK\`Ʊи~jhnv[B`^SkrX3- BdjfqvnvƵƧ}eqeNXk|s~}v}vrur}zzjX^ffnelxnux{xlks`J:ML@CRnkZ[bQTfl`Ycs}ijɵ~xst^NHD639J^JBHJXolk}|tgq}~gGswh|Ǽq}wlxyz}}reWWMY`f92AXe]S9?Op||~p~g[ekfQRwo\PiN"8I;@;908+.`SU`ivjufb}yrtlluĹϾñgajcR<=Y~lZiubXZhhn^}zWhrlUNWnyeeumsf\ctd9:MeumXJqmh[MQRi\Pk`gwzodRS{~yir|lȻŵxQF?En{izv~qm`GM\_QQN>Jba@R\D]inM46F]dcDFblrygzz_``VTg~ljvservl|}i=R|R9gk[Mmb~pͬղ࿥{÷y{zustuqlinx~pejkjQJ[E1=j^ERhpgn|eT_\Zdlif[JDKZg_KR;$$+40' +@Wbrh_^WMSVOWy~tntoyyqr}wiaNXizpyzwn|κ֧vwpx~uxwxnosqmd_`k}}m{{uuqgfjmoldb`c\]d]QD5>06P\mactkYPGJGO\OJF?@mqdlwvzyvytmjaYMO]jrnwtUemahcIWs_o{p~ynXrq|ufğƬƩ̊|o~OqdPg|ϿӨΤqi\Kduvw~x~vi~`^{pMYvjbofxZyeyǼ~pFOvgFOVdUK9=U:W{\`~h}^ay}Xm||x|zu|^zK軶̊rn7BRG_=7YnhFSjuYZ[fkytz}\szUrcutoǸusxrx|twrRD\j:"`_A[x}N]fViu}kTv~p_e`VXOngLxzm]{`hqm{{}jrhb[Zhkxogwzco~{y}zj`XV[jzwkmpt|lkhYRt}wtkw~pil}ywyrip}{m}}}x|j\VGB;5EEIPIJM^dhvozsUcm=5C&2QY||~wwbOH;Pgfah~|}vrT@Wwyy{vXZaMKa]UPk|{oszqpmcl{ʾ{ikfb_^LJMAO[oiZ{iZOhwv}}dlm\nppristwkg_NNMLNRft{}{c[WGV[GMch\gmheVm}`dgryoc{sWWMPxrRNSnk`Vdo{vwowzgtssuyoiaryh^`µx|xlplrsdilaM@A3)% "Aluspryzswuu~gYa]GLfn~vXdttbNE/LeV2Ho^kZly`\vvd\prnoκģѻweqv~nluutd`a{UOR[ryjM*Adg~V}mnwtvudk{}t}mL|o`y~϶rC:VYN[Z>MtuY0DZ:LncIOb\OжrhwzlmwfYYZ8?]WMr^YxokxkC^T?fs@AprI?ebWz{~tsfeziT^WPD>Onzf_kܾ~ytl\OYWZ`X[i{sKHe{{vdrcmpg~s{{xljvdLJRL?M\I/MS9Lh_Yt~fmwldezhWr~]q|fXnetuE)EY;(KT95mjZ~×~zk}ktBXpmQTkv:6\lxg}un}n|~ȓ㲕ľ}l|pxkHLzeowҮǩqdxc7CZZ+%[b:Nwֱʳwlhb|f#J2 >[:0Vxu;8f[6GpuvZp`>H\@8^Zf_j}Nc^g^fn}_9\{iN\ow}ssz|EbU`pQWRaʰբ|YzILb}ͣx{±xoeCOt{rmyh1:l}[0OmyV_PSuqD?jY6L_8BsrE6Xrm}}tih{TPr`1Huodo`_ǜkf}f|_O[qbokÓǗulNaaqdA{U>ajZ\Wa|mUͧ{}{ɘq{xxq]^sowshZ`wGntIkrl`}i_{yvocpgucXkcŰĔq~qt~dlum{peZqzeb{nnrdtjmyo}rbvm~yrw`fXRu~dWptvntuxzoupv_ipkiQcXROAZVLZJWU?PFCWLPXBYX@JBNJ-CGSk\sxv{má|tvq_Rf~d`whwүĮ~İ¿˻|qs{}mY_mk]\ZUff]WKDDQ\Wfs_F>MJCLTPEAMinsw|x\QUajfVRZXYh\AU_EFA]guucQVx{tjyuvpc{mUSskK^oTrxqsstkmeqr}ebxmtxRUdZLbv~np~i{|hUX\`mdZ}uEEyoTwb_unbpxfapz||nnqv~}x|{~lZo\:VW97Tjz|k_nux}yrw[hlg~yrmakZq[NVhckoA 7vis}K\Uvtj_Jymx}wV~~u]yz{Zro~}Zb|rlho^rybr~ylyv{qfh]dz`qTOhR[lZLKbbmbKER[a~ȱl~htzvbFKa~tw_ryUvq\yWiskxYChU\}lls~^jF'esA@n~\N{khmϜÙ̞|k^e[wwI;UAGu`quma{yl}mgl?Mho5*``*i|^m}θ`~~Sf}RFldkfDO|pKmesdyudfsZb{xtz`MVbOh_kpnviC?eNxɾqxvqMcmchVzioRltQ[_7!6HVE8g2+evDKqjwmpu`ːnzcqKQoie`jxxOSsx\bwZf~sHOy@Ulۼċ{ccG@jzxo[zmYb]NdoO]zq@8j{ebNFlcthrwR`ZFrSnȵȄtnJEcU5AsqGd|aPN}QsX[r{9-WegGeb~ts}ypANxx_T|VI[poloz{sapux~ot}qerje~uYuu^^z\qzgswvd}yAI{J*Bsb:@{rLFlfXfxsĨtsƨkwmns\\jfszx|VseQR[wx}u[lPETk]~?-o^@Yw`\i\rjJQwqquxwkx}ZQ`YsyJ]ztnlYQlxbfN}~ɻgab_fimnl]ciQAqXdaR}qɚvZzzTL^ui`wzkNT~u~kjvY~xy}tcN\\TiQSewzji~YbuTZotgmzzowtkYWee`|k\\~}R\~w\gnfnkgNTgrqpz`KZx~xER}}p_`gsàknzjq[iZHsqksgT@VoxfCdX<]k?2~YNnv[\ǧ{Š__i^tUGxtxvi[LpgXnpptzbQ^zptzx^f{vxnWtbYtsW{|bW~|}tXj|q{lbcyvbQRkoqtVDTsvzSIh|paY{}qt|ubMYml`bzf?Ynizzyw{ljy[Vw{}gby^sfdy}rh_hyVtymTixWtP^pxjiy}gYuij|kSRg^jveajzoq`Tp{q{~mlsud\h}gw|bS[Q\~zhx}mxxk|yXbi`peUr}wt[Saycibtxv|hbn{j]URfuo^xn\Yp{vbv`kyoqlz|t}nuOK`\SohUIk{kzlxw]hw`ihTjfPGP_q{nNR_^k}tzjrdWiZJWtnXhid_edexvuzkV[w{fut\Liguqokwtsj~q{~otl~y~raUfpbfn}je{m{qyxsotaU\qwjqp`TV`p{xiW]~rhojfp{mceu|fT=:Xwt_~z__ygsw}wpimwhx{hWMCWwYA`qW\upkwgbjs\z|b^}oeolyxu`kth}lnukVe^]i^VYYSdwg]wlXczfdmn_gyvkskwrwe{dTmlTYtsdH6UZCKf~{`jtnctcQ_o~lc]fye[ouo{lu}tz\ewttzmdqyvjr{mvï||somxqv{~vmny\ILOUE?\kqyfUceZ`s~~{x|w~p^hievwzz{n{zvjls~yuy`SLD:Dcpd}׺~hY[cb[^~~a^filft{eRUp|YFMX][`n}oRru|lqso}vzvtvV@Ylmge^`srgwfn|nt{vc_|p^q}e\m~j^eo}ycqtz}g^s}uvt`[]_Ziyieh]\s~ZLVoiXS`||aLXqrpo[HZodfywy}~|aSemtzpcitw`Rbjvɫvrn[g~qYE2F`FB]h}iLbmen}xojwƸ{]X=);RYiugt{gbgalr{tqnfb_]bega]fdktojok`gz|qqp`uscU_nūpXkwas|}ogij`o|ӰiTXtxw~xqeUNJ]rw~wk_`QTgohgb6DgdP\|qqls~rz}~_C+9ruP`mmrrtkfikethjiVZjgpuqfSjqzȺx|mcP67N\j|eejSrxiwy~gGFITZhuvyuSReysXpY9:Vhqkpyysqi_ile{\Mtnembhi_f~}a\sspv}qxr_QE]q~|gHJnvoиqk^Ym~saoi\lxvwY@AV||sljqtvgk{lJM_rtq|h^xlXOVn}peXIP^aVWm|juqs|kxUCBbdORxjh~ytkf|}v}~tzyysk_ig\{sk|t~ul__~rngWy}}aYsuiZH^fMqq}bKw~eNokf|{[FH_wpmkyzn^Tcuvwtwy_jhvtl~bk{tjfjhspaa~`\eaQ]x|uqiozhfgmzk`lm}}|ve|xlgklezrh`jvvvopwt]Zyqvqx|{nnphnwr{yuajX=;X~r[Ibu`~~z{tmrtzwmcrppuf`qmz{yocs|uknvwpxouV;;Mfrz|~ymgclnfXRng}~tY{|~t}y_[mtg|wwunaa|vw~|__o{snwt||rdyyfhy\\b`cshv~wtfg}ak}{q|pstnqxt{mco|w{|t{wqzmcn|xWHJFZsrea`kvtpaTcqn|~b}{|ifxzslvkieoulrwzf\m|ztgck^Zv}u~~}xsvvqt~uojZWas}TLdm||wghpTNnvbWduykvt[dyqlutwndtsaE]oxtvx|~vzs||vyfsuz~a[be~uPLr|tlszxrcbs{uwnWYdi~vstpucmwtjSYrxgSQ`]O]pqrtrvzgfpiVYuy|xngxydntu}|enìnV~­w]}vro|jjVil|cl}}~pgmyzlvxltyjcbim`omvo^n{MDkrXLex^J_pEKr^Eoi[Zk`HciXu|vqfes}rR5Nivinetsxqwv}{n|^m}]{`Pg{ct~xXUlI;ab9]rvt]ck_L?Qlheeedjy{dWQp_NfvNNrlm}~{xyzzdkvRVi}b=Gncomjus|s|oxx^ppm~z}zcYr{fhyzn^\tkw~h[xmkos|xr~ndikqg`mvuvu[SivzkZnygVdbVvchnoljjmvjsyym\je]pjpvih}jdtpw{jtwox|yosoa|wu}tzwu|{`dxyml~sd~xozu{z}zv~}~yegyzzk}{qv{tcnvtyzuqdysgdkq\Yvrgtjzs{|lxvxwwv{u}utp~x~risdZnu`Y}|USn|[inxotuykk~to{nw}nbuxf{}|{vvgj{w|zvshnhq{z~{vs||uz{wnq{|jzvejzxqz}uryzsyjj|pmszxlifiqvllh`rroqiw}{{ymqujp}wyykvrn{cdv~vq}{}{}w}|}q}}~~}v|}ujn~vrtmjfy{wqywx}noqo}ufry}u}uqzztpovvxwz}}}xuyurqut{sv||{x|rvpo}ruty}wmztyyy}vy|z|{y|txw||}~~~~y{~}r}x{y}{szyuz}z~xtu{}~tx{z||wvyr}|xx|uvwz}z}w~|~rz~z|zyy|}|w{}up{z~zxx{z}ot~}|~~zt{|xrrwyvx~xvuw||rp}|~}wrvxu{wwwz}{y{~yzy{~~~~{}~zy{{|~~{ru||yy~}ztsw}~{|}~|}~xuw{wtvuv~rsxrko|{z{w{~}}~}yw{y~~z~zuy|ww}}}|{||yx~z}}yzz}}{}}}}}|~}~~zx~|{~}}~|}}{xwxyzyxyyyz{|yurruyyz|~}z|~|zzz||z{{zx{}|}|}||~~{yz||z~{~~}~~~}|}~~~||~~~}~~~|y|}y{{z{|||}||}~~}~|}~}||{z{|}~|{}{{}}|}~~}~~}||}~||~~~~~~~~~~~~|~~~~}|{}~~~~~~~~~~~~~~~~}}~~~~~~~}~~~~~~~~~~dopewars-1.6.2/sounds/19.5degs/train.wav000644 000765 000024 00000052434 14256000065 017667 0ustar00benstaff000000 000000 RIFFUWAVEfmt **dataT~~~~~}~}}~~~~~~}~~~~~~~~~~~~}|}}}}}~~~}~}||}~~~}}}}||}}|}}}|}|}}}~~~~~}|}}}~}}}}}}}}}~~}}|~~~~~~}~~~~~~~~~~~~}}}}||||}}~}}~~~~~}}{}}|||}|}}}~~~~~~~~~~}|||{|{||||||}~}}~~~~~~~}||||}|||}~~~~~~}}~~~}~~~}}~~}~~~~}}}|}}}}~}}}}~~~~~~~~}~}~~}|||||||}}||}|||||{{{{|{||||||}}~}}~~~~}}~~~}}}~~~~~~~~~}~~~~~~~~}~~~~~~}}~~~~}}~~~~~}~~}}~}~}}|}}}}}~~~~~~~~~~}}~}||}}}}}~~~~}}~~~}~~~~~~~}|||}}~~~~~~}~~~}}}~~}~}~~~~~}}}|||||{{zyyz{{{{||}}~~~~~~~~~~~~~~~~}||{}|}~~~~~~}}}~~}~~{y}z{}yz{{|yvvwy{yy}}}}{|||{xwyzy{wvwy}{{|}~~|~|~}zy|{}|z|}{{|{}}}~~~~~~~}}~~}{||}|y{xzzzyzyz|z|{y{zz|zzyy{|z|y|~}|}~~~~~~~}}~~}}}~}}||{}||}~~~~}|{|{{{|}}~~~~~~~~~~}}~||zxxyzyyyyzzz{|{|~}|~~~~~~~~~~~~~}~~~}}}}~}|}}}~}}}~~~}~}~|}~~~}}}}~}|{||}~}}~}}~}|||{zz{{zxwyyxyz{{{{|}~~~~~~~}~~~}}}}{zz{{|}|{z|}||}}~}~~~~~}~~}~~~~}|}~}}}|||}}||}|{||}}}}~~~~}|{{zyzzzz{|{zyyz{{{{{{{||}|}}}~~~~~}}~~~~~~~~}|z{~}{{y{{||}||~{}xwyyyxtuuvttx}~|}}z||~~|}|{{|yyxxxuzxxvvvvuttwvwz}~{|~|}|}}~}}~|}}z|}|{|}~}|}}}|~~||z{}~~||{{~~}z{{~}}~}{}||}}}{{~}{zxy{|{|z{}|}|}~~~}~zyy{zxvuwxyz|||{|}}~||}~~~~~|{~~||{}~~}}~~~}}~}}}}~}}~}}}~}{}~~}~~~}|~~~~~~~}}|}~~~}}|zz{{zyxvxxxyxwuuwvxyyz|}|}|}|||{{{|~~}}~~~~~}~}||}||}~}}|}}}~}}}}}}{z||}|}}}~~}~~~}~~}|}|}}~}}}~~}~~|}~~~~}|{{|}|{||}|~}}}~~~~}~|~~~~~|||}}}~~~||}||{{z{{||{{|{}}|}|}~~}||}~}}}}}}~}}~}{|||}}~~~}||}}|{{z{{z||{|}}~}}~~~~~~~}|}|||||z{zzz{|}~|~~~~~~~~~~~~~}}}~}}~~~~~}}|}}}}}|||}~~~~~~}~~~~~}|{zzzy{y{{{{{z{||}~~~}||}}~}~~~~~~~~||}~}|||{z{{|}}}}}~}~~~~~~~~~~~~}}}~~~~~~~}~~~~~~}~~~~~~~~}|{{|{{z{zz{{{zzzzzz{{|}}}~}|{{{{||{{|}||}}~~~~~~~~~~~~~~~~~~~|{{z{||}~{{||~}|{{yyyz|}}~}|}}}~}}|}}}~~~~~~~~~~}|||||~~}~~}||{|}|{z|~~~~~~~~~~~~~~}}}|{}}||||{|~}}|{z|~}{||}}}}~~~~~~~}}~~~~|}|{{|}}}~~}}}}||}}}~~~}||}~|{zzyyzz{z{zyzyyyyyyxy{{||{||{|||{{z{||}}|}}~~}|}~~~~~~~~~~}}}~~~~~~}}}||}}|}}}}||}}|}}~~}~}}}~|yzxuuywxzy{zz|~}{zz|}}}~}|}~|{{{{||}}}}yx}|}}|{~~}}{}|~{||zzzz{z{{}{||~~~~~~||~}~~~}|}~}~~~~~~|||~}}|{{y{|~}}~|}|}}~~~~~}}|{}}||}~~}~~~~~~}{zyzxyzxyy{}|{yxyyyzyyzy}|}}|~~}~|{~~|z{|{yyxyzzyxxxxz{zzzzyyyz{{yz|}||}{z||{zyz{||{}}~}}|{{{{}|||}}|{}}|}}~~~~~}|~}~~|~~}~~}~}}~~~|}}}~~}~~~~}~~~~~}~~~~}}|||||}}}}~~~}~}~~~~~~~~~~}}}~~~~~~~}}~~~}}~~~}~}}|}~}}~~}}}~}}}~~|}}}}~~~||}}}}}}}~~~}~~||}~~~~~~~~~~~~~~~~~~~~}|{zy{|{z{||{|}~||}~|}~~}}~~~~~~~}~~|}}~~~~~~~~}}~}~~}|~|~}|{}~wtwz|{urv|y{{yuxzzyzz||~~|yxy{~~~~|}}~~}~~{|~~|~~}}{{yy{{{y{{~}{}~}~}}}}|z{}}}z|{{{{yx|~|{z|z{~|~~~~}}~|{{z{}|zzzzz{z|}~~~~~~~}~}}~}~|}~|}}~}~~}~||}|zz{z|zyyzyyyz{{{|}}~~~~}||}~~~}}~}~~}~}~{{z{{zz{||||{}}~~~~~~~~~~~~~~~~~}~|~~~~~~~}}~~~|{z{{{z{z{|||{{{{{||}~}}}}~~~~~~}||||~~~~~~~~~~~~~~~~|~~}~||}}}|}}}}}}}}~~~~~~}~~~~~~~~}~|||}}~~~~~~~~}}|}~~~}|}}{}}|}}||}~}|{{{{{||z{{zz{{zzz}}||}}}||||}}}}~~~~~~~~~~~}|}}}}}}}}~}}}~}}~}|~}}~~~~~~~~~~~~}}~~}}~~~}~~~~}}~|{|||}}~}~~}}~~~~~}||||z{{{||}~~~}~~~}}~~~}}~~~~~~~|||||{|}||||||}|}}~}~}~~~~~~~~~|}~~~}~}}}|}}||}|}~~~~~~}}}~}|}}}}}||{|}}~~}~~||}{{|{|}}}}~~~~~~~}}}}~~}}||}||}}~~~}}~~~~~~~~~~~}|}}~~~~~~~~~~}~~~~~}}}~~~}}~~~~~~~}}~~~~}}}~~~~~~~~~~~~~~~~~}||{|}}}}|}}~~~~|}~}||}~}}||||||}~}~}}}~}~~~}}}|||{{{|}{|zz||}}~~~~~~|~}}|}}|~~~~}}}~~~}~~}~~}~~~}~}~}~~~~~~~~}|}}}|||||{|||}}}|{{{||}~~~~}}~}|}|}~~~~~~~}}}}~~~~}}~}~~~~~|{|}}||}}}|}|{{}~~~~~}||||{{|{{||{|{{}}}}}~~}~||{||}}|}||||||}~~}||{}~~~~~~~|}~~~~~~~~~~~}~~~~}||||{{{{|}}|}~~~~~}|{z||{{{|{||}~~~~}~~~~}}}}|{{{{{z|{{{{{|}}}}~~~~~~~}~~}|{|{{|{|{|~}}~~~~~~~~}|}~~~~}~}~~}}~~}~~}}}~~~}||{|||}}|}|}}~~~~~~~~~~~}}}}~}}||{||||||{{|{{z{zz{z{{{|{{{{|||}}}~~~}}}|}}}}}|}~}~~~~}~~~}}}}}}~~~~}}}~}}~}||~~~~~}}~~~~~~~~}}}}|}}}}|||}|}}}~~~~~~}~~~}|}~}{|}}}}}}}~}}}~~}~~~~~~}}}||{|}}~~~~~~~~}~~}}|}~~}}}}~~~}}}}}}|{|{{zzyyyzzzz{|||}~~~~~~~~~~~~~~~~~~~~~~~||{{}{}~}}~~}}|}|~~xy}y|{xzz{{xtuvyzxy~}}}}z|||ywvyyyzuuvz|zz|~~}|~}|~~|xy{{}zz||z{{{}}}~}~~~~~}}}~~}{||~zyzxzzzyzxz{z|zy{y{{zzyy|zz|x}~||~~}~~~}|}~~~|}}}}||{|}{}}~~~}|{{{z{}}}~~~~~~~~~~~}}}|{yxxyyxxyyzyz{|{}~}}~~~~~~~~~~}~}~~~~|}|~~||}}}}}|~~~~~}~}|~~~~}}}}~|{||}~}}}}}~~~}|||{zzzzywwyxwyz{{z{|}}~~~~~~~~~~~}}|}{zz{{|||{{||{|}}~~~~~~~}}~~}~~~}}~~}}|||}}}|}||{||}}}}~~~~~}|z{zyzzzz{}zzyyz{{{{{{{}}}|}}}~~~~}~~~~~~~}{z||{{z|{||}||}{~~xxzyzwuvvvuuz~~|~|{|}~}|~{|||yzwzwwzxxvvvvutvxwx|}~~z}~~|||~}|~~|}|{}}|{|}}}}~|}~||z{~}~||{}~~|z{|}~~||}||}}|{}~|{zyz{|||z||}}|~~~~~}zyy|zxvwxyz{|||{|}~~||~~~~~~||}|||}}}~~~~}}~}}}~~~~~~}~~}{}~~~~~}}~~~~~~~~}||~~~}}}{zz{{yywvxxxxwvuvwwxyyz|}}}}}{||{{{}~~}}~~~~~~~~}||}||~}}}|}}~}~}}~}|zz|}}|~}}}}~~~~~~}|||}}~}}}~~~}}}~~~}~}|{{|}|{|}}}~}}}}~~~~}}|~~~~~~|||~}}~~}|}|||{{{{{||z|||}}|||}~~}||~~~}~}}~}~}~~|{|||}~~~~}|}}}|{{z{{{|{||}~~~~}~~~~~~~~~~~|}}|}|||zzzzz{|~}}~~~~~~~~~~~~~~}}}~}}~~~~}}||}}}}}||}~~~~~~}~~~~~}|{zzyzzz{{{{{z{|}~~~~~}|}|~~}~~~~~~}||}~}|||{z{||}}}}}~~~~~~~~~~~}}}~~~~~}~~}~~~}~}}~~~~~~~~~}|{{|{z{{zzz{zyzzzzz{{|}}}~~||{z{{||{{}}|}}}~~~~~~~~~~~~~~~}|{{z{||~~}{|||~||{zyyy{|}}~}}~|}~}}|}}}~~~~~~~~~~~}}||{|}~}~|||{|}|{z}~~~~~~~~~~~~~~}}}||}}|||{|}~}}|z{}~|{||~~}}}~~~~~~~~~}}~~~~}||{{{|}}~~}}}}|||}|~~~~}}|}~}|{zzyyzz{z{zzzxyyyyxxz{{||{||{||{{{z{||}}|}}~~}|}~~~~~~~}}}~~~~~}}}}||}|}}}~}|}}}}}}~~}~~}~~~{zzwvvywyzz{z{|~}{zz}~}}|}}~~{{{|{}|~}}}xz}|~}{}~~~~~~{}}}{}{{zzz{z{||||~~~~~~~|}}}~}}~~~~~~~}|}}~}}|{{z{||~~}~|}~~~~}}||~}}}~~~~~~~~~{zzzxzzyzz{}~|{yzzzz{y{z{~|}}}~~~}||~{z||{zzyz{{yyyyy{{{{{zzzz{|{z{}}}}}{{||{{z{|}||}}~}}|||{}}||}~}||~}}}~~~~}}~}~~}~~~~~~~~~~~~~}}}}~}}~~~~~}~~~}}}}|}~~~~~~~}~~~~~~~~}~~~~~~~~~~~~~~~~}}~~}~~}~}~~~~~}~~~~~~~|}~~~~~~~~~~}~~}}~~~~~~~~~~}||{{}}||}}}|}~~}}~~}~~}~~~~~~}~~~~~~}~~~~}~~}~|}~}ywz|~{wvz}{|}yx{|{{{}~}~}{z{}~}~~~~~|~~}~}||z||}||}}~}}~~}~}~||}~~}|}|||}{{~~}||}{}~}~~~}|||}~}{||{|}|}~~~~~~~~}~}~~~~~}}~}|||}}|{{|{|||}}}}~~~~}~~~~~~~~~~|}|}}||}}}~}}~~~~~~~}~~~~}}|}}}}||}}~}}}}|}}~~~~~~~~~~~~~~~~~}~~~}~~~~~~~~~~~~~~~~~~~~~~~}~~~~~~~~~}}}}}~}}}}|}}}}|}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~dopewars-1.6.2/sounds/19.5degs/README000644 000765 000024 00000000137 14256000065 016704 0ustar00benstaff000000 000000 The sounds in this directory are provided by Robin Kohli of 19.5degs.com, dopewars-1.6.2/sounds/19.5degs/Makefile.am000644 000765 000024 00000000362 14256000065 020060 0ustar00benstaff000000 000000 ## Process this file with automake to produce Makefile.in pkgdata_DATA = \ colt.wav gun.wav losebitch.wav \ murmur.wav run.wav train.wav bye.wav \ die.wav jet.wav message.wav punch.wav shotdown.wav EXTRA_DIST = README $(pkgdata_DATA) dopewars-1.6.2/sounds/19.5degs/punch.wav000644 000765 000024 00000010534 14256000065 017662 0ustar00benstaff000000 000000 RIFFTWAVEfmt **data/}~~~}~}~|xvusqssprtuuxvplkinutqknrroghkkifikjffhghlonjhegrwqjgkppjozzyxtw|~|xvuqov|ywuvz}uxzu{ystx||yvslhffsxdhzzcasxwvdILfhhrmaacgz|y~ycUktsy[>Krz{ja\]DEvytg}a^qq_q~xyrZ\bVC>@MPD>????@??????@>?@??@@?@??@???????>?>?>?????@??>????>?????>?>???>??????@???A?@=@?@=FZWI=?>Ig]@????@Q]oyj^^jeVH9f|{lBQglq_SZyO;YzN_ZOxhr~i[[`QBJRMLMG??>??@>?>BEKXcr|ww\zu_r~Wn{zrycdrcVM@EVN]L>@?>VaD>?>CLM^b>@?>FJ>@????>@??>DA?@SXC>CF>AP@>@>E[M=A=CUCB?@u|FLAGkX@?A[lL>BbbBUd`gesvriXmo[Z|zmnkxyphmyp[p}en}nVU|~PCl|{w~kk|}}mzng[p|pvk`o}j}y~us}|ttuxyrmkP|wurzzvgquPX~v}~|lbq{usn}o{{}osm{zu\n~{oqk{{¥w}|xz}{hg|vhx|x}yn~}zhí~mg}~{|vp}xkx}up~{{wlwu}~y]`y~vwjmtjwsypx~{`~yxtxxu_MguUg}tz}ov|zz|{wr~ziswntncyxd~n{q}~z|exsrvrw~nxoozsrhfyl|xy{vuz~kmn]oy\d]py}lsxxyzx|x}xoaswqy\yzuw}}zwstojyzw{wtru{yur{|~}o~nxf{~yv}u}~}wvpnzx|w~{~|}o{pihl~na{p`zyw~o~w}~|z~~}{zyxmyox|q{outnw}ys~{~hwsy~qttyvuyq|ur|{prx{ntz}}zu~yxsu}~v|yy~~xx~y~urx{t{{~zlytqun}}{|~ql{m||v~|yuz|~~}xt}|imxs{{~wyvt~{tv~wyvzikxrux~s~||{qq~r}}vp~}y~~y|}vw{z}y~~|~zxy~t}}~xx{{z~q~|}vo|~}rvztz}{||xzu{xz{}sww~xxw~wu~~{||xyry~~{}~zmtyzng}{vy}vz}}~~{x}zx~}p~yt}sl~oz~~~y{{zzswmt~}y{{{xv~rxzxuyz~~{|v|}z}v{~~}zv}~xzzquqy}x|v}~~wx~y~}|sxw|{||~|y~~wx~{y|}~}tx~}}x}~z{z|z{}y}u~y}{|}u}w|y|~~~}~wwx}{|z|}}~}~{~~}~{x}z|{{~~|~}~~~xx}}~}~}}~}~~~~{|{}wx}z~}~||{~~{~~~||z|}}{~~||~|}}{~~}y|~|}{zy|z|~~~~|}~|~~z}}x}|{~}z~~{~~}}~~}}~~}~~|~~}~~~~~}}||~~||}}~~~~}~}}~~}}~~~~~~~}~}}~~~}~~~~}~~~~~~~~~~~~~~~~~~~~~~~~~|}~}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~dopewars-1.6.2/sounds/19.5degs/bye.wav000644 000765 000024 00000072354 14256000065 017334 0ustar00benstaff000000 000000 RIFFtWAVEfmt *datat +5GE'=LxJ,Ow"P[};zc n !]HANwK0#k&w/9b<:.q=V}<.FIQK>Z-fNGivzC%QSp]$x?7E9pUoNTA Ab4Xwil.&MDC"lnVuJ ]9X5Zc) D(U_=MN!_PJL d4s]2g9a *gZMVD DIdDa4c~4_ |#*9+qR%@EFU4  P G @  `[  k ; efekszb!My&"gGC`> WI(4 5ls~OW0w[w5?L&Kl'oUVQ5pOzQAw\SmFjw(=T8"9 B   [%63DPd{sv6E@3^1%4d2-.UG=\if4wPh/'sbx8*^@ I "JKb` 2)NfQF}`rgs 4,dO-$4h O{TI _Q"A,B{8  gzO)'p=WRp&1dNZ*K(:(dKU;14V%3=Dov+fB^yO% XtxY_cD T)Z:jX  WP~}Yf{1w9' $vO^HVt  eL.:ctn QyFv}]I!Jx*ybkZ5c'o{If4DCu[/UDkm}"lig NXIY0-e$^8&78XK[?Cr9>}"yTj8ha^ ,DJ"Zr:6Tm uf;JCG,yKON5 SyqG )H?/2?W4GyBzw/\X +U; ABh@;^> ve}}!B_Aj i^W9zn?X1u}aeLN18 ^aU;_l 2'HDVQfeCQ$ `f{ub@s D6:EcnCIi]|4xqtwyslsRV#-&%x\]w}y#4"m\~R_'." +$$ ]UJU*<;!(>2_\LV.)! QL=F - [T8DfYXe)_Udh7A,kcmlmklpY]WTY[*8tus[y<F"$#!3/!)" Ws61|5'c[ANL?xP\ K,`} WNX]#:/5:M9u<Hag@< +:4FDSN_\@K uw7->@7,486,]VSX"-0.fg8)nd}}_f29%!96 ) %1.%& %B<:A @7HL!  (('&**80CB# !LEJO#+"11 !    !"k^qv7B*&9746 [KtsW^49')%  '"C<TRBJ )%  ""(SLVW&4 KCSS7<&&#$'HB5= YO[`#/,$#) <3OKGI"+D7lg`e<C#'  (";9$)  2-56+- %TM9D %DD#-,!%  NFLN+1   !")&"#4)VOPS(3nsurs_U[EE69%(  YL}qx4@4*:;$ # +#C@9=#  PBzuntAL  $! ?7AE    SD|JWF;`_QT6< $:9""./ )&!.-  /*76%) QGUZ-1"_XPX"2-88/1$( .(6783:966', !"74*..(@<?@2599#) "-+)+)87  (& /![TTX%/ "    \Ost;K  %"0.43+.-"MI9@  'D>CE).  (#,/.&:;%' C?6=    >8CB77?<AC)  L=idklLW A;5;   -$=;36(+ :2FEAB57" )(  '&!$#G>XX>E ")83%aPMHxKpZnI~U[p_*fxv)w6MS'):5v>lV ~?  {/~baw]So7;xCQZfS()X|8-* []0y&dB> >]$s5;),/.=>/cq^TbF x<}f+]:;x9h$jl4MR%{3V[o-,&5@d)i/eH{wU:Q}%APP)s _  q=k7AR+,  n  }' #R80DcuUIm0 X ujwh {6/eD  +h\~ce: 1Py#~t\T[n 1 IJ*0GE7.Y2y2Xqho0xP.< BoWS|+}3bs=6JQg M}:8uQB&K-Dl : p ]K@? Q Nu  m [OCu@53  _JYBW01 l/Yi-el9V _m~FY;AEc,H] sT4 >IW[K  $Ke8Gi#Dx J* w5@mxR B:C'{r1-]tl^  8k!w"0 9`\L.8b [[ h _xJu&8\3Xu R  w0YH ,= 7N`uTgTz c>+ @+U8eJ ^( a %^07dYX,yt  3 O^IU0  yki_}v a " H4mi]Du  %7^xFZp3 ? B LS-}uq6 fv W#k^L'   )e- aBv ^#" | ]~ra5;=$ejfI_\d5ed, a/ C aD3//! z '&)R.6& m  =YX8D d~a߈RPy* n nSewo p;]=VD3;o.i)r bf dQ'XQY {s-w9GC=K{w^tS=75Z cF.d eO @mzlz[-&k"%#!|#I{ *|Yvq\d , nM3lTz :MsP &DZ+@Rm  b Y @<\$-  YxOj<e$! .V{ޜގjW < cce/`*?js v93 ] QxE~ '  T  ~`kQ#":;#P5"6XSat(Nyi  !W`e*AN[Z.kB` ux?C57Jy C v # DI,O6(! E! +"Zqݓ,? <81##jDE}&!E_ u \ !A!L{MF{ , /wEoS{\~) $ 5]&Ic" "uyF*uSe~b8l2'\&"3$=nDlmܕ) ek P R  ncE  Pp]$gXO/ ?Yt L [fFm]*_# !c&&}! ZT<U2pak  9 , SbA[ \E sKEsxX y !r= - tv, _7  CG3 G )eOS  q4l=(~<_u_#S+%qB t^\9 ? m . ~}oE7{LU[DM1D:M"# $q_sl  G v @n@JgceR;% 4 " Tive- b 'm t X 0 ) PX@~"i \#1}~ YVVRQQe] [ F bl 2'Q| ^  c]-ft*E  S67f.t8~ I` A/ S3)k V}_} @ gcW~ `R.XFan  % {%p].8f Sm % p!'- / ?mA|u?j8<](m   '<6 X WW n retu4caAM; .? " ] g~tVY QE%4  `r fQg ! Zq  Q B C T  '5-ߟ"9. QjRni y  ![wv ex 8gMvb(+F>V :  SzN]2SB6`f`)iDR 6 #7#1qb 7 /Hz ]' C"hk5:  $-nyjMZC:O.U (wBCAogIeDhise D#GXQ 0 F o 0dm" U $SJo6 {o  }n9V  ~D *3hzHC %t%+Vc1 T  T]1K[ E a/RIe i7\2 E ~Mji _ h{ N`F.w@-}BS+Riu , V&)*F;_C]C 4 8 Je9+"C|Bu`  !F B2*4zFUv5=Y;   ZiIVmW 7 O |tls&4 J x_nh&w&pB r Q}Nb O`9B $%2 N s @}J/=% =  %{<[-'( #@X b% ~ FMG"+_*9"qM[9  4  R_xE t? W[8i?Y% ^ 8ZQCtSOfi ^ ePTT6VfwB|`Z x+U= < -_tw& /G / )X=P 3 kKD| cf $ L  R5 y`tTT)PM*?mqq/2/bQ0CN |'  `  = M  *   $S:vF()2px5]=\nbI"#+v ^hR]It N O"Eg  ?.(r3 %+ J cF)xjUjr ; hB~?XJqiNDF >HpLI " *C "u4 Ss@hZ%Pao G &p_ P)=Z ! % nx^HN|i2O "[w\Uf^lA5k;v>f2g2^L"~YAa6Z  s H5   a zk8u2\]"w[' i# e Slyw2Aaea7P+St)syI{p x7=RUt4 W +   C+r5NY|rI?%rASltw7~D k\ X:s 6|?0s[bTVyCJH3 h I  o f VK*zKP02&)WjZvV{<:9@),X|2gxCsrVeL9" 6 e j 34ITr2p_LhlW>:9g8<z9/.5RuT^BA jVgrmL W8  ^p|hz46;x4zfG E/s$j5emQ/6=zuk{ R#$@X25mD A  K5^>3B!J.daXP!-Dikl)C+fy$$VU?njOFMw wH@; 07 #X^ psGw$KG`Gb('=j1;kcG0p(dl"P'eC%1T7B0,bv2ZDbRw-1WH\};;/5ug <<7==O|Xx+FJ~`XvsifX8&;< b> (lzKzl?UINy s T#p>l`o.Z9nmx{:N\q$GgHKr'`[rd"hd /cEoDq8? $,;.3uQr  +79 htko9/ ge+~ HzJM T 7&+/ <[XcP_0\.?T2q(N"?%*vDEDBQvp=mGE/=H# aCO>=1fk"H5dR^s}QHNs{lAO8q^c  }93t" z8^sLT:i 4@rAy-P%y:2_l g`Sk"Eu64 Ycs?{/Y^bx+1F$hG?=l[La!}s`b \2KjPY}<=_f=&Zr3qnS 5^G" / ) +0hR3'{s5SQbn|ZC{ SU 3>y /:/*fc&~fE%7LGo9'pSBZeKO)BnBwGgk+s`4% o2=|. g!zF0]E_Ur+2V(%12oJ(\V O~ &l=S*VdVs"DjN3oTYiEB=sp}CiPJg Jn ]6Zr-FO+-%sN?HN/,}ub &s(+hOOg$dwCrB-n&>)cRX{>d_Q<6rAk38a>""r)CT)5ZQ|y|d'8txb->]6yCG ;LUVJBh^*I!\LWSWbE9"k5V}eUkab}*<rl`CNW_O8m>Dx&pWz]^?T`&*0*lK[}* lU/8sH.I\>| #1;01HATT0{?X) Q$Xz>Gl8e\N7hk,l1dj,L4o_Xi!K#GCn//rj;"$1<dA? "KcjHH~b9?WdSsszqlscM"JP_>DI 0,8EmmH@q9T~"28W@H~bj`tA0w<IBA'JVNPS#1O^ `u.^a(M'==`v^z<~RuCqe &e !TBHFrfI.J <-eiRYhdq=g<w7Y= JFC+@dQ;RpXlGKfzGERP\~#h#CbAS>5Tzd%]1>7F 'B {' i>ht gd"yg =E+ oo%9;$dcsW gqB"?WF"Zg-2n_ BtmP_b /jXsMjnx'1/'udck? 04RpC.Y?*]*I6HYH.gRHiQox)5&!*08*(57!rm4LO?:J,$01-(vKLu=-|}ohT]\On NnwXsSPjP4qqn,HH()' +&!@/JUg_.$KEd_P\ :_XbaYXfqa%~kn8z:8) -6+2bb%7o@Q 8 gVUq~t"c5)_T>I#"72IDhbWc&0YX A0yTd /0 F=)48(yms{/~/,  (D@+4>1VY-7!I@IM30yw VKefIMTM\a /#ud.E \?DP 0jbT\+3 5133 1*#,41&+ /," vklu+ 9: *& &$ H9]`07)$45!%$2-,/ 3( A2SU9?  @#x @;) 33B:.8 " #77'& ?<27%QMGNdopewars-1.6.2/sounds/19.5degs/message.wav000644 000765 000024 00000016170 14256000065 020173 0ustar00benstaff000000 000000 RIFFpWAVEfmt **data~~~~}}}}}}}}}}~~~~~}|{zyxwvutssrqppooonooprrssuvwz{}}~}|{{{{{{{zz{{{}}}}~~~~~~~~~~~~~~}{{zyxxwvvuuuttsssrrrqrqqqrssuwwxxyz|~~}|{{|||||}}~~~|{zyxwvuttsrrttuttuuvy{{{}~}{zxwvuttrqqponnmmlkkkkkmortttvwy~~|{yxwvvvvwwxxxyyz{}~~~}|{zyxxwwwvvvuutttuuuvvvvwyz|~~|ywtrqonmkigfeddddefhnstttvw{}{yxvuuvvwxyyyz{|}~~~}~}|zwz{xvwvtttsqppoooprtwwwwy{~{xvtrppnmlkjihfeeefhjnprssttwz}{z|}|{zxvronnopsvxxwvuuw|~{xwwy{|}|ywuttuwyzywusstvy{{||}~~}~zupmmllkgb_]ZYZ\^^bt{u}}unpvvojjiinsvz{yxz||}~}}}|xvvvsqpruuuwvtuwxx{}{x}{wuqllmnoproidefdbbglko}tmqprru~~|sosvqqy~||z{~zuttqoonjgghijkpqot}zvv|~xsrtwurrstw}~}xsolihhf`[Z[\ZZ_a^^cz}{vy|uw}||vnjiousr|~~|zz{yvuvuohfgea_^^cem~}~}z}~}xqlpspqx{{|~}zxwsqolihhgfggedeihefhj{xvw}zs{yust{yw~z{}zxwuttsqmjikjeceeaafz~z{|{uroqsrpuxx}zvtqnljhddecaadeb``ehk~{z~~ty{ustw|uy}z{ywvvsrpoomlijjjgfhhm{~z~}ursv~~xw}zwwwvspmlkhfhlha]`fedaefr~}|}~~zxvy||}~~}}}}zxvtrqqqrqojjklkijlmn}y}}}~~{}}zxywtrrqomlkkjjifegiifhiln}~}|z|~~||~|yyywwuspolorvuolmrpqnpqz}}~}|}}|{zyxxwyxvutstutuutsrstuuwvuqrstsw}~yw}{~~~z|}}}}}|{|}|zzzyywwwvtsqrqrroqqtw~~~}~{{yxwxxwywuuvuwvxvwvtvwvvwxwvvxxyz~}|}}~~~}}}}}|~~~}}~~z{~|~|z|x{yyz|~|zyx}~w{zx{yvwvu{zvvvrvut{yt}xtyzx~|z}~||}}{~|w|~zzzz}zw||w}w}}uz{{|~{}~}|}zy{~~|}z~|}~}|u{}x{zu|}ytz}yyzwzw~xys{us{y{q{}x|}{{|~y~x||~}{~~}|y|zzvwwy}z~z{}z~}{zz}{}|}wy|y}|}~~}xv{|{psyw|vr~s}}}}}~z|yoy{|~|}w{||yz|zwuzy}{w{}z{tzxy}yz|w|w}|ty}uy}w}}|~~{}{~t~vz}~~~|z|~zvty||}zy{{}|~v|}}{}yy{}|xz}|xzvxyu}}z|xy|{}x|~~|~}t{{}~}zs||{w~~{{uuw{z~~x{|xuy}~~}{w}t}~{{~{{}}~y{~~~~}~~yzzuy{|}z~zzz~}{{~}x|}wy~{sv}|~{|}|z}|y}{~~|~v~~y~{}}{}|{z|}yv~xx~{wz||}~|wty}|u|~|x}zxv~{~}{{y~w||w~}xxyz}}zxw|||yq{x||t{|y}|zx{wxzx~~~~}{{z}~|~{|~|}~~~}~{|~{~~|~~|}|}}|}}|}|}|~}~~~|}{z}}{}|}~~~~}}|{||{y|}}~~|}}{}{|||}~~~~}~|~||~|~z~}|~}z{zzz{{xx|ywxzxvvsrssy~|vvx|}~|}~~~~~~~}}}}{{}||{||{z{|{zyxvvvusrqpmovzvoptuy~{z}~}}~}}|{{{yz~~}|{|~~~}{{{zyxwwvuutstwyxwxz{|~}||}|||||||}~~~~~~|}}~~~~}}}~~~~}{|~~~}|}{|}|zxxxx|~zuw{|{||{~~}}{yxyxtrrpoqvwsnquvx{|zy|~||}}||~}{z{|}~~~}|~~~~~~~~~~}}~~~~~~}}}~}ywz{{z{{zy}~{|~~|}{zzyyzyxwvxzzxx{{z{~~~~}}~~|{{zywwwxz{wtvyz{||{{|~~~~~~~}|{|}}}}||}}~~~{y{}|zz{zyy{{z{{{yy{}|{{{||}}~}}}}|~}|}~}||~~~~}}~}|{zzzzyzzyxwvtrqpoptvrmovyxx{{{|~~~}|{{|}}}}}}~}}~~}~~}||}}}~~}||~~}~~~~~~~~~~}}|{{|||||||{zyxxwvwz{xuw{}}}~~~~~~~~}}|}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}~~}}~zz~{}}}~}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{}z|~~~}~yy|z~}x|zw~~z|}z|~~||}{~~zyyyvs}}x}}~}{||~|y{~|w}|~yy{}z}zz|{zz|zy|vy}xxx|wyxv}u~uwyst{qww{yww}xq~wy}zv{{~~wzw|t{xz|{{|wu~{}||~{{|~{{|~|}{y}}~{~{||}z}|~|}y|}}|}|||}}~x{{~}xw|ntusyrq~{wz{|~{x{ws}{zvu{y{}uvrp~tv~xy~xy|}|xx||v~vrzrq{qpqp}xsvwntolzwqyr}oo{l~pvxwyt|vz}{|zyvxyw}vy}{{y~{~|{~x~u~}wz~vz}{}}~|}||~~~w}w|~}|u~}{}z}yv{tx|z~||}y|LISTBINFOICRD 2002-08-03IENGRobinISFTSound Forge XP 4.5dopewars-1.6.2/sounds/19.5degs/losebitch.wav000644 000765 000024 00000034114 14256000065 020521 0ustar00benstaff000000 000000 RIFFD8WAVEfmt **data 8~~|~~|{~~~~~}y~|~{}~~|{|yy{|~z}}{wx|}w~{{}zx{v||w{z|}~~~}~yxut{u}|rwuyxyy~z{|}|~y{y{vvx~pvt{yx|y~~}~|~~{wtyvvus|x~~y}|~~{z~w|xww~}tztx{uz~|}~{}~~y}{w~}}|wzwyu{zuyzz}}|}~~}|}ztwq|yrv}rrtqxwqw~styuzuuyv{zrxwv|~}}~}zxxqvur}tr}suqwzu~x~z}}y}z~}~|y}~y|}zy||uw{wz~~|}}~|x{zruzur|~rs}zrrxrrtrrqrxvqr{tux~zzz}~yxvzv{}}{x|xxx~zwz~yy~{{~xswzrt}ssuqtuzrqrrytqxuqzyxy|v}|{yxtvurvyu|~|y{wswxsv|tv{ysw}rswqsv|qsyusqqrzsruwqwwpzvp{xrwvs}xqvsqw|qq}urrrrrqst}qryyrq{urqrsrqrxxrqpsxtsryrq|qq~qrprpsotpssrsrptpvyps|ot{nwymzvm|sn}so|qqtupu{rqy}vpusq~vqtzqpqqzsqytp|sqoyyv{|{}xyv{vqy|qsqqpr{qrvtrsxqs{psouypu|{qy|wty}ssvqyxrr}qqrqztqxupytppuyoy{q||z~x|vr~yquqqqrs|qq}srvwptypuyowwn{uospsqzxvq~yvrz|tquqwzqspr|ssr{rprpqqprnu|mztsv~{{t{}yxs~}sruq|yrssst{rqqrysruvqtxpvyowwn|sops|nwxm{un}tpztpuxpq~pqpqzrqvtquwqtxqryqp~qpqp~qqosnv{myvm}rpnvxm~qrmzwmor}lzumppmtzlyumpqmvzlzvl~rnpqmt{lyumoszl}qpmvyl|snoqmt{mxvmqqmwym}rpmvyl}snor~mxxmpq}lyvmpq}mvyl|tnpqmvym~qq~mxvmor|myvmpq~mwwm~rpmvxm}rpmvxm|soos{myunps|mztnotym}qq~mxvmpr}mxvmpr{l{somvwm~pq|mxunpr|mxvnos{myunpr|mxunouymps|mztnos{mytnntym|qp}mytnnuxm|qp~mwvmpr|mytnoszmzrp~mytomxvnntyl}qpmvwl}pp~mxummuvmnsxm}przm|qq}mytnnuym}qq|lzrp~lzso~lysolytnmwvmnszl|qp}lzso~lysolytnmvvmntxl~orzl|pq{l|qp|lzrp|mzrp|myrp|mxsp|nxsp|nxsp|nysp~nxtpnwup~nysq|m|qrzm}psxn~ouvnouvnotwm~osxm~osxmnuvnnvuo~mxsp|myqqym|otvnnwtomysp}m{qr{m}prym}osyl~osym~osyl~osxlnswmntvmmvun~mwso|myqp{m{qq{mzqq{mzqqzm|psxmnuvnnvvnnuvnnvunmxsp|m{prym}oswm~otxm}osxm}otwn~ouvnnvuo~nwsp|myrq{m{qrym|psxn}ptwn~ouvoovuoovvonvto}nyrqzm|psxn~otwn~otxn}otwnnvuonwto~mxsp|myrp{myrp|myrp|myrp{mzqrym|psvnnvsp|nxsp|nyrqyn{ptvnovuo~nwsp{n{pswnnwtp}mzqq{m|prym}oswmnwto}myqq{l|prym~ntvmmwso|lzpqym~ntvmmwso}mxsp|mzprxm~nuto|myqqym}otvnnvto|nyqqyn|ptvo}ovsqyozptup{oxrrwp|pvtq{pyqtwp~~pxssyp|puvq}~pwsr{pyrswp|pvtrzpzqtvp~}pyrtwpozquxpoytr~ozrsyo}owup}nzqsyn}ouuo~nxqrxn}nxrrxnmyqsymnwsp|m|ouvomzqszn|ouvp~nyrszo}owuq}n|quxon{rs{nnyuqm|rs{n~pwvpn|qtyonzss{nnztr|mnyvplqs|lovxnmytp~m|ptxnnxsrznmzrsynm}ptyml}qsyml|qszml|rr{lmysp|lmxsp|lmwsp{kmxqpyllyqqyllxrpzkmwso{lmwrpyllyqrxll{pswmlzqqyllyrpzlmwso|l~nvto}l~nuto|lnvsp{lmxrqzlmyqqyllzpswml|nuun}lnvto}knvun}l~mvto|lmyqqxml|otvn~knvto}kmxsp|lmyrq{llzpsxml~nvvn~knvvolpuzml{sq}lnvvnl}ptxml|ptwnl~nvvnknvuo}lmyrrymk~nvto{llzqryml|psyml|rq|lmyup~kmwuo}kmxsp{llzrryll{psxmk|otvn~k~nuun~k}otvnk}nuuo|lmyqrymk}ouvn~knvuo}knvvnk~ptxml}ptxml}ouvn~l~mvto{llyqqyml|otvn~kmwsp{llzrryml{psxml|psxml|pswnk~nvuo}kmxsp{lmyrqzll{qrzllzrqzlmysp|lmwsp|lmxrqyml|ouuo|lmyrq{llzrq{lmyvolpuyml}qs{ml|qszml|psymlnwtp{ll|otvn}lmxsp{lmysp}kmwtp}lmysqzll{qsyml|qs{lm{tq~lnxvolpvynmztq}m~owvqmowvpmnyuq~mm{tr~mnzvpmqv{onzuso~pywsopzvsoo|ut~nn}st|nm~rt{mm{tqm|rr}nyrq|nyqryn|ouuo|nyqswn~nyqsvo}m}nxsqzmm{qsxml|otvn}k~mvso|klxso{klwso|kmuumk{pqzlmvun~l{psxmmxsp{m}ovtp|m}ovuo}m~ovuo~l~ouvnl|otwml|psxml{qsyml{qrzmmxsr{mmzss{nnztr~mpwwpn}quyon|qtxon{qsynmzrsynmzqsxnm{ptwnl{prymmyrp{l~nvtp|m}nvup}m|ovup}m~nwtq|mmysr{mm{qszmmzsq}movwonysr|n{puvp}~oxrtxp}pyruyppystypo{quxpn|qtyonyss|n}oxur}n~oxur~n~oyur~noxuqnoxuq~mnytr~mnztr~mnxup~mnwup~mnwup~m}ovvpm|ptynovvp~ovup}~ovsq{oyqswo}ovsqzo{puup|ozptup|ozquvq}o{pvvq~ozqtwp~oyrsyo}pxtr|o{qsyo{ptwo~owtq{n{ptvp}nzqsxo~nxsrzn~nxsq|n~nxup~m|pvvp~moxuq}mnxvpl}puxnmzsq~m|ptyn~owupn{qtyonysr|nnytr}nn{ss{nm}rs{ml|sr|lmyuoknvvnk~otxml|prylmxto~l|prym}otwnnwsq|m|puvonzqtxon{qtxom}ptxnl}ouwnl~ouwml|qr{lnuxmmwuomyrq{m{psxnnxsrynm|quwom~puxnm|rs}lovymovyo|qtzo{puxooxsr|n~pvvp}n}pwvqn~pwwqo~rxzqo|uup~~rx~{r}ry~ys|rxzr{suyq{rvvs}|qzrxuu~{s|rztv~{s}rz~uv}}s|rz}wu|r{{uvzsw}wswst~xryrvvs}}qxssyqzquur}{pyrtvr{|qwqv~tt{yszqy|sw{yt|~q{{tw{}s{|sxzytzsy{vuysy~sw{yt{rz~tw|zs{rx~uu|}r{ry~vu}q{~sw|zrzrv|xrxrt}vry}ruts{xswsw~tw{xu{s{sy}wvrr{wvpq{zso}utp{}tt}pz~sv|zq{qx}ut||q{qw~vt}~q|qxwsp~ryyro~sw}ppzwsp~qyyspqzxtpq|ysnsw~oqy{ppyyrp{utp|rvzq|pxvs~p|qyvtpqzxtpry|qp{xsqz~wt~qzuu~~r|ryxsq{tu|q|rxws~q}q{vvqrzxtq|}uw}r|}tw|}s{sw|zszsw~wt{ryuu||rysw~vt|rysw|yt{sz|uw{}sz~tw{{sytu|zsxsu~ysysuws{rwus~|qystyp{qvvq}}pxrsypzquuq||pwssypzquuq|}pwsrzoyqsvp|pvsq~zoxqsvpz}pvsr}ypxqtur{}pvss~{pxssypyrtxp{quvp~~pxsrzo|puup~|oxqswp{pvss}ypypvts{|qyrv~wr{qwus|~qwts}{qysuxq|qwur}pystyp{qvvq}pwtr|pyrsyo|pvtq{oyqswp|puup~}owsq{oyrsyozptwp}ovsq{ozptvp}}owrsxp{pvtq~|pyqtvq}pxsszpzquxp{qtxp{qtxp}pvup}oyrryn|ptvp}owrryo{putq~{oyqtvp|pwsrzpzqtwp|pvtr~|pyrtwq|pwts~{pyquvr|pxst~zqzruxr{qvvr~}pxssyp|qvur|pyquvq}}pyqvvr|pzrvyr|qytt~|q|qxwt}qztu~|qzruzqzruyp|pvvpoxsqzo{ptup|nyqsvo}~owrswp|owssyp{pvur|p{qvxq}pwvr~pxtr~oysszo{puvp~oxsszo|pvup}oyrsyo{ptvo}ovtp|oxrryn|puvo~nyrrzn|ptwo}ovtp~nxsqzozptvp~oyqsxp}owsq{n{ptup|ozptvp~oxsrzozqtwp|pvuq~}pxrsxp{pvsrzpyqtvq|~pwssxq|pysvvt~q~q{tv}qqzxsp{uu~p}qywsp}qzuv}qpzxrpxxppwvqozst{o~oxtr|n}puxoovzn~qr{m|ptwnmwsp{m|nvsq{mpt~mywm}qpmwvmnuwmnsylntvmlxso|k|orylmvumlyqpzl~nuvml{prxmlxrp{l|prylntwmmxsp|l}otvnmyrq|lotymotzlps{lpszlnuvmlyrp|l}osylnuwmnvwmmwtn~lyrp{l|oswmmwunmwwmotzmpszlotxmmvvmlyso~k{qp}k|rplztnmxunlytnk{rp|k~oszkns|k~vmpslzym|sqouynzspouyn|sqnvxn~qs|m{tonvxmqq~myunot{m|rpmwxmpq~lyunos{l|somvylqpmvzk}snns}lyvm|qpntzmzumor~mxwmrpmu|lywmsnpqmuky|k~wlsnppoqmt}lx{lyymxxnvxnvxnxxmzwnzvnyvnxwnyzny|mxnuoqso}yov~pr}qqztqxxptprsqy|psrp|zouqqy{osrqw|ps|vptssrrstqsw|qs}|qsy{qszxrs~}rsx{qswqsw~qtssssyqts}zx{wx}stvstsz|rtszsstwxsts|ssuusttytsut|rusz~qusxsttt|rttvystu}~ysvuxtwww}~yuu{ttuwxwvuwxsvx{}vy|}{zv~~z{{|}yx}{v{zw|}{tuy|{vx~}zz}}zz{|}~}y{~y|zvx|}yw{~}}}xwxz}~xvx|{{vvy~}|{|}~yvx}}zxz}|{y|~}|~|z{|~~z}|yy|~~}yx|~~}xx|~}zwy~~||~|}~~}~{y|}}~~}|}~~}}~~~~|{|~}}}||}~~}|{}~~|}}||~~~~~~~~~~~~||~~~~}~~~~~~~~~}}~~~~~~~~~~~~~~~~~~dopewars-1.6.2/sounds/19.5degs/jet.wav000644 000765 000024 00000042376 14256000065 017340 0ustar00benstaff000000 000000 RIFFDWAVEfmt **dataD~~~}~~}~~~~~~~~}}~~~~~~~~}}~~~~~~~}~}~~}~}~~~~~~}~}~~~}|{||}}~~~~~}~}~~~~~}~~~}~}}|{{z{{|{|}}|}|{|{||}~~~~}}}|}|}|}}~~}{yxwvvwwy{|}~~~~~~~~}~}~~~~~~}~}~~}~}~}~~~~~}|{||}~~}~}~~|zyxwxxyzyyz{{|~~~~~}~~}~}~~~~}~}{zyyyzyzyxwvuututuvwxz{}~|ywvuuvwxyz{|}}~}}~~~}~}|}}|}}{zyz{~~}||{{z{zzyz{z{{||}zwutrstuwy|}~~}|}|}|}|}~~~~}}|{zyyyyzz|~~{yxwxz}}zvtrssvx|~zxvuwz}}yvsqpqruy}|zxwvvuutsrrstwz~~xsolkjklpsvy|~}{yxwwvuutuwy|~~|zyxy{}~{wusrrqruy~|xtrpqrtx{~}|}~|zwvwxz}}|{yxwvuvuvwy{}{wtrqrswyzzyzzyz{}}zvsolkjikmprtuwz}}{xutrsrsvz}}{{z{|}}~}|{|}~|xuuwz}ztnljjloty|yvssrrux{}zvromnprvyzzwtqmmmpsw{~}xtqpoonmnoqtx|~wpkhffgfgijkmosy~tlfbabehmu~xogb^]]`djpv|voiikpv~{zyxupkf_ZVUUWZ_dkrx~}{zxvuwy|{xwxyz||}|{y{|}}~{vtux|~yussstvxz|{{zyvsqolihhihilmnpsvx{||xuuvx{{vsojc```_adipuz|wrmjjlotx|}{xwwz|{|}}yurstvvwvusonqstv{{xx{{xvuvtqqsvz~xsojfcbbfiloppoonlhffint{~~}zyz{}xuqonoppswzz{}ywussrsstsqnljhjnrtw{}wusttux|{xspruwy|zwvtstx}xpmmlklmotxyx{}wtrokjijklmprv{|yyz|{ywurlhipvy|~~||}~{unigfc_]`djqy|z{{xtsuwyxvuxxvqpswyy}}zuux{}~{{ywy{wttpnmry~|}zyzyvrrsttuy}~|{wvxzxtoliiovwtu{~~}|}zqpuzwqqv{}}{xwwtpjfb`ZUOJKQX]`chp{zrg]WV]iv}}~xlhikmoqru}~zvqjebcbdfhknsxy{|{ytpmmnoruzwnkigghmnmnsy|yuqotxyrkijnqv||wy}uux~~}~yxvrha_cjpvzyyxqpqrlfdbgo{vw{spvwry}|xz~vx|x{}yxzwpiks}~|wqpvyxwuropw}|sjhmnmikmjdcjrvrns~|zyx~~|{xqu}wptzrmou{|txyf^gvtb_eqxyxzzps~uyuty}zmkt|saW]o~xdY_rzpwx}xnkn||dY[fkpxyzshht}~{z|m`ahqvqjeouklv}ynqvvwsq{}szzw}znn|xjgoxrx}|yxreeoz{{qrpq{zz~z}{svreXSXaidTB57@QWXVTVV_du~}y{vu{mmqty|ulg[fnooknjx{xmr}|zqumdkpnz~ssvciy~odgstqnp{xqw}sv}|{v{zt|uv}ysonv{ttwzrnt|~okr|pe]iyw{xsou}v|vj{|t}uz{mgit}|wurrvz|ynd`ondZF:7@VrhZQB:>Ro~r^bznvx~ysuyx`JMYbyvzs_SfkWpm_afodXOcyomn\\p|}x}yzu_d{|hWh|ukhjomgap~wbcx}pwoa\|xxhevznhvluXglgt}smq{fl~wrjqt{u{v|sd|h{ufldar~ukeoyxfo}|ururQJbyuprt}rvnvms}w{wtj~witxg{fxwcr|q|Įlmxx~nx~hreXXTpq{gW^ld|o|rifu|qouQayn`z{g}Zh_QotbokqaJ`\njSmxͯ{xfrr{pNW{{~xxyuoVpiqoT?MOP}eamZLhk~rs{hzl{e]\vhrqi{slzrvvXxk\toxvWfp~]GrkY|yiUmvmvkx~|yu|rrwlox[jyjU_v~zuqvyr{quXb_TdcYqttwqpwwqh}iVc|^qk~Th}\yg^^Tg|ev~rsegXQYSV}zkJXsNTz̈́շxzz{eYwjR`g\sssn~wvfuwd}bhz_T^ef|pp{qJNvHn|s}g`llj~mfmh}f}tbWucxgtt8[vlqljtlitdwlwxuszZvb3\qjxY{ILu~_OmilUVG}Ŝhox`IiikthdzY\;Q{oLap8bzl_cjs\VndnҢjj_ZXSTFm^^HTkzcNckmfozushy|nhg^4Anu}Z|cuws|tya`fZ]shtqkhYvl|zubxyqVeRSUdo}ztiv?8jzixjnuxo~^t]~|ur}pvnqoyfREffpdvefxoq}oCCqٶo}|m-brww]jHdtgwWpeKZyszvhi|bJ`|SwhymnMxplTQV`dbDŽf[Ub3cQjG?lz|ytFSNĺƝ~w|ybeWqay`f>=yHJo`xMWQd>SfBs[TWz}Wd[etpEguXn|7tu\ptP{[kڔbzhvtNyWPRs}OyKmCepynIRme`>uy弾yva`aejHL7`^r|}j`irwtppg]pvpval0~s\X.eU{]^R}cc^J]Ә75P!CgiT^jد{Mnrrq{PMn`V_tavmQs|x<@ctCgsn|hp_||v_F)fXe)|hu=iujnhrn|mhfsZvcv\Zth}jtNj~Ȏ~TiylbxĖ}u@\Vg_WqzėRqlggcȖJgVUyiuM}t\gLěIPohV._WmSsomv`}C`c^W@jJYqQaqk}jU{z[bi{w|m]vzwu(\|tOvlxhaluebdyunevgfp]l²lbNbi|Ckdpa@k5}xHccJUYd^i;tWeiΓpcrƠvƨvjez`~@dvce6`Mpg7Fp_qzJ]OHXeuZxr\VytbevuyvgY]agj쏚aWhktYa6xQ]niv;^{QxHwe]Yf^I\hhqUwkyW_wɣ|[u䮭{frqkz>sip:Avbttx}AfblmLbhrS~gb_ql~|bUpmvMi~|{orwiN~v|vd[a9L|fa]xbgdfpon[lj|zan|r~\z~[{Zcy;syi|j}۞o:Of/hU^ٛ,|~yh]nSb\cqyFb=^mltSOXkgt~qoLqWrbJ9ptmƂrx~k`|vy^Z^M^_rrjwukweTpt{f^gskpGunp[yk}vdnbsuusr\FUh]y}_nQde`OvmnnzauQafvtivtg_\nxlvu}ǫe{]|_phkgkyYOzTa:nVrd=tQwxp~tagNjYKW`xubkpw}veuiwhKH1sZphoZN^+;zŔlweh~dvrxpgz{yxMq{gX_KsbYinbvii^tQ}YHQ2tmvrzLd>omcednsLws`cpQpRd^oÄGppPy}>yH{ǎ,tb=tycgDUlCwxf|qpmhZSyi|{a}dG]Gjwu{[x{o}rwoh{|aoalxnl_~];UXv{_mvs~BTxV|fah_WMd?Qr]Rrw}m^o|e}Pwsw|ntn|Wf^z}a}sy\wgmm9v[5zhdnw?IT>nf{kMJ}whlxjXzbQ}nƢioS:kde`cycrqcLzy~G^VOnwmhfCCFVlzI^60~Ͻ\eCiD^wSn|noh{na}gbOoyR~9S`LtK[yswVAChnmw`mv^pGDufpk|uhWQ[qlfyob}nzxtU^Zt~ěvvUV{Z}|}osxR}hsPe~c}SSKo|KUX`UzX[N`|Uzqf`YQwYErQadkUt}{ksfqwÄoXVkhsmiU}|Xmh~acg\NblNQ|H'~vGbzV~fmkm~ncXx}j{zgik\uevzaOo~J`siSqomdnSww^_lr~t}ynZwhvh^_}wgNqz}jLxEldzmXys\r|stwUcshiXmwtoQc~d8wfp]atpGqQg|y/\pbd|o}Ry_[jvm_qcwm_`etc`dSocerx]`Xxqq\`kEae{r~umkorzynf~efjtptm^g{qa{jfa~rkSM|m\g=U|WUR2kMoVYc?}x&x`}Tpw~pYwx{~Uj=tnbzlp_ru|x|pkqXs]smiXetdv~`slar`SqVzr{cWnW`Qzw^trzwr]zs^d~kgoId[}Rycot}mk~rrM{dx}`{q|nsX~cvqyyi|m\pSmZ}sgqIpopi~|z~exrrz}[o|wWnfurhySiyavrt}WFtpV^srhZvgtGOqrospUc{evzs{Rztu`i]iTeo{P\{n~x~c}^ytz}qhRZtj_vo_rEZaZSDt|Xmmxq~[zr}|~Íd{`wnծ}EǕekKZ^ʃaP`kOiuQ]rQXpgviZve{Myvyz~{opZvf]|vXhB~ezMoc¢tyznuxznjjs^VBUGihNXz7c\iyZqtpg~|vW{rlftrt_nxRqqxtpjrmE{bfwnv^s~yvgxmOpvXobxnsSBt_tamxRQR“[t|xrwg|fbrxvr\Yq~y\uGws_Nit~kqYi\]imvcjodR|qzhnmvxswoucM{TpofӤmfsyp_}tsqn{l_wllxVhqaus~k|Rb{br~lYu}cggTzrOIgiyzPubzxrEj}guqX`q=`{nw_ŁFSsv^o|fWgrVqvtv_{l~fcx`zxb{vtynn]idfydckgz~o^|x`~lzdqlqrvyUhdzzOgo|a}vx{i~czRUwdygvqeKSwB+,w2!e( KEf g>0)<gdD_JrP  E ^ kU\ m } (  R 2./+ ! |ZvXWY"|Uj7~=(L1tCy%YvSyyy[dTqy ?oZ3cf?d!\9.v6HSlHwvvK<5i,_jN5\LJil=Y K E )  8  z N 5 w & r  L 5 S  3 s [ b y  E J d ( a .`D}gX/aE+p^tA>? 20"S6? Ps*him$tj@Q\\+ ;thaa.< 2Y c h i o &  ! k V [ a  J F T X W l g % ^ _ O ] ! >  L l h E c  ! E  m w " O #  xPa7AW$@Sff grRz`^n+0ZC5@{=H*A+ jUC ..s$Ir55ZC$kBT WAHtHVt#<wm I4}Eopsvp4HXdz_mcQiC*auS}J)z"DPg~     %   i   $ k u   Y ~ r 0 j =j@62Xvpr43Ku\^@ `?6YQuAT K;{RrnVO0N5({d\S$Vu5bEJ)e@R4>>c'*+#'[m?]1mlI/VgdO # Q | = } ~ u  & W x E H C H y c Z s 5 " r S   b c S k :  v   KKJvW\5v>: -Y M,p)r-|!m2SKUS;aR,- 6QWHpPaHFZg}"|ZQ O?stn`p*Ncep)7y00\6$ A 6 g   R j Z u Y J A S u u b z s # s  4  RqGdH6`89'R*R2(CEx0reO(l]Yl=^@1Ri:Sg_:8^1\i>AVFE1:QhzBk&HI6*NNf \ YJ8iVSAJG}e&I  /oZ8P }f^| |\exPrZ}qi!N=@7z=;*Y%=Eg?O =gc$2pU6R6mAci 26VQ]aB*:7`@yf/*%ZLb}#%OOePY^RT>^{uhZH'MS4vdLP <%~0H%*z3Mw_'-)- ",Q# 8ojJ4PV7( />%'?,WCW = C!Nf[ze~ Kk`n~ NG|!H6dyx "7FUUq?Byixanm|M rwy\|_831K*OSZ]@; !}NS& \LqLw]{{zqadp1ui?tmfWnqjb6.mP[te`2/6EQ9kE_W}1IH1\ejxWx ! ++2FSQ]dswLOmTuB'1->9vkdjYlfjCKdkgvXaBNr|iuz]1>Ysz'3$! 2;>>1-<!1%#=Y}\PFKepunSjQkYh^ps|i9@mmj3n^yRA\77$. 1 A#LFA:#KO? QTO-2BE;FC{ &iggTSVC>I8=NQ\SINKqNCA@VZP3A\sv?Eo\W6 32  +%  zll0?# _pokq||[(8o #>]P_EUni9KI44EWH7kD3/?`Tj214LU?N gkiO (&8Ch\occ`cdrej_WtpcAZB7 ~nK;'S)ud-! ( 3uwbtw|otQKqp\:P:Pvovzf0 zR1T \pk8=o2Ե, ӳi ۺ݀߅1'`Pl6 b bJ5z7"3,{?~wTSjA !"$%&Q()[+e-5/0235X67t8a99:?: :99}98A75R32%3.+'$" 9( RHUq6RA>~R]VbQ#dJn4cZ_X s2p:7fL #!B0LAPx8 , QX'k!<jRp0O3&>f5cv+[kUdLZQ56d=G)A@Pfb{-6- n    Y ? `  5  a b ^ 4 x*3ANaO@iZ# BZRs/A>2^ (9X'J-bB1:eIs3/3YXn0|F/zSX\  A ) r  {  3 B w ) - : Q `  { Z J T #  . K  S+ C"pvn0tbo6NBZC(4S$0g W$+JLyO_n1wn_Mn}}j][?@ =LVQ48xM<+KY35o ?J: { *1vugTCB*^/&\S"Le893 W<g`{C e K v 6 F a   v s { & 8  | =   qX4R2Tsi^J{- UL#5m$^z?y/?SYL>ir&zS~.h;\K9 8.B*$K{n ;nx]cW1a#ZYLU BA}}|  nG'6uKYD W  ( l R \ t D 5 @ k ! 7 &   E F V > n , # i J V + %  E*~{"s^*Was& rZ0eO~#TW0S x(HZfbV+5:qT( NIXI D c!w_JgV"HQs#?Sz]'oUs.D4() q:OuR&ic NNbI /5KXwetC E0yOa 5. `hj g>0@?m1|6huA5EHk;={t4IMJ\zilp $N }eS_MRs{vvgZS5@WvG|13]V_'AH[GQ=9 3)XF< *E@CLKNYf[jajbzrxhc=i9Cr\`v@ x|tJKijaH2EHSmCqk<;/:0*%@QYsYZ9:'<YZi[QpqxgagqwqJU^aNb/N8Z  '(YqdSBYeBFI     7PulqbbDC1# -' - ' BVY<M7pK7$73POO)((Lw=?!H(+LF 0 pzlcUCMQ,AOa2N='M) ++>)P>U_]jwZYSi>,* $ 2#= '>('1]yt 2-"M3.[f+>l_grxZM[jJ.ZS]<E`Lxv4569`lw{kxsH]kwQdkb9bw{mYG.q0 ,|Ig{swvi}X)` }/_, ;a_f*F5m^ bKjphh:U9K2*&*.MyjxWSvyz_lxoW8Guo5hR. KT !dqk6@]i'S2-dUZ`a<GI+B(   f]Ln;8ST= huMk]s|"12?esuLUmum}P R!)TgSS-<< %Z%#-cR`r|p:$3zOWciW&(P9%(8j;. G=2*'J&: ^~t|xBXzy`CLH(P^N ;0Z& 8A.e8qeM"HLBiGaWHjQt+  `e>bT|rCTY@&~\kK\vb%lcy;uibssmqL)U T"[%;@`Rk_J8GA7h`Z}tGKJ>_8WK-bb/\@ "a26N-=EK\kWZyZaV>"HZ0hb*^ezDST!-Dzo@Y.YoL8RX~i6hvr~I4y5dhk)`y5A;ZN10;Z&}w9 Bs^B%A Fs. Oge"b1;.niuTSH.eu_.(}yzp'58.A\r2!9d%&E&5,zFa~H)zM oR^ : 3>5XNJ_KJnKa/X>UC +}#<}D;7EN;1kv>A4[XIEW#62Au\>mwX<WQ^H cgx)k6T?>. 8 ! 6 g \ x%'5y60 E g N c  J eg +z.qqr^IS"BET y{]5k|B|TJM| ; zk~bnDZ\ky|EehH!U> h0yP? + " | ` 1 M r   a  1 O B  i h f L y k 9 S'^ ;K.<ShMx?)+W<*NvV8h)5FMY*Xrj[Ofphj | |'-SVviGkM3y;;>}#KUF:7zk 6?Eb;Q`vx\0K@% dqA5e-S5+K/((|d`F&M(,TF. Edf QZ42 U%GC a-BY-5 #Xhp?>( !yKRd![TJ [kS[B&A\S~;[, :8Y^c_7K'r)gdu#7$Ox/oKF**2y!9WHZhQC" \jO]OO,?cN|$9N4p[reI&@9SL n,WAPik2"+Wf;V(Qt77J)D94Z#M+*2rt_J:.4bEW9<07$J84!w/qJj#ErgB)~cB 2 o|BFA% }V77nXYa~UtsNMtr(:v 4 %V/W*GD_n@PJgr)H(+JfVdR60): }Um`TC   Y'NU{_OFO2wEN_5I1ZDC /LQYO^lrvH=b~j !;#2' 2 b!\oqTO<>'C8>n[Ru6("4LozEwrgv"L3VYUSC E%F@UBPv:glkqQ^3mWQIJ;27'*%`H dn2%vk`gvMCD%(..]b''( </D)M5ilbanp~pQdUI C#$ 3%$ .]l]TjyP : ++8 6O]`#G4UDeK-=4(#wtgP(psbOzU8@F1( q"+36J/*UYDG<4?5oe[5033"2#Y]}u\]$nfao|XNTQoxtQj=6^e`}>9EBZd}?4K0  !,,.-EKck(1c4yk{o?[.3=vbuxz ,TxzLB(0#$zLUlfdST[[81&&cnU^J1X+tmXG,4933Q(Y%+7CN "."MHH/DWngVmfeqdm?1`Q #)E3B3PZ`uZa+%fVfME|~J50vrOXC`b_V7,95' wiNX:~h' }mUP;U( tkIltU%EQk+:/DX=9VKiTwivx"+FOX@Ss]=kiaKlMA4'>2S;J<@JV]cJmp{LN<)$:}|Td`Vqq=K2.7( {R~T/-/" } 2;JOD_WyrxQDPFR98+G=nIoZsBQM74rGzC#-"-G PF7 ;DGpxfr|wr| 84-Vg0B'-Qxiy^\ey|uZ3}\dZkoW\[X\klF6->/BGXKYA|PO)$tpqb{_aIML@R:052 % KE?-Z=wa`M2+Naal|#)2B3!#.E&3/%Bchdb9vvY%]Da@XH4RkpJdvvm%RtoXzl][`o_eCPPJ1#&=12:.>)pX@) }anLR'9TX ! b[~yMQ\OlCUhtXHZQ^cf|('!02:DSSg`mXdk!!0L%&W}| )%>AI5;V=xXr]E:RLdopewars-1.6.2/sounds/19.5degs/colt.wav000644 000765 000024 00000063354 14256000065 017516 0ustar00benstaff000000 000000 RIFFfWAVEfmt >}dataf           "#'CQ,Y6YN^87QD:Ejh(\px]<CG[z/u f&p)"Q?, <V ՠd"qAݔk |v!)Tw m >  F "l3uF f>`p+tW eZu -1 DZ,|DyoGlnr E:.  }450\ gA w6ᅩj'W c$%v!y*]^ @ " Y ru R &.+   $ 6C-o*o8^?$.0Y?8aH?2>"*=)?1v*f-lsSuB [ǿ6C޾2(A4%/տοԿsgÓǧlϕiZ >\Z!2T?8,0  d 2? +5x4# ӍQߟr_S 7C #`I!%X/8881>?/7 *4&!(0-'='*$y/~2&  TdF*G r ls :r" X-9{>6(# $k'12D #n( !̡5ڻG*Lܖӑ)k) ~=4/? MvCp"!&i#C/sT ~gK%[w3zu7 =  '  U   t "HVPv^S+Svi[&1 ! e qx#  )4p  g hyvBexJl%g7oedb>mT z TDnbqg U]  Ml kWoq[j=k4|]GlR1x Sco|XXM+m  JH  n \mGeL\pnpm}S/qKb  IT p X ,k{s  t >% 'kto(zxg ,z K M L Jzy8}~ghvZ1y~>| 2t  } {u  $5l )j isd0%? r l P Y n <t'{!'q|"i~5}hQwNl/ ly qXn v: ,p${y Vh}|x :k| /&ls]j,W *^[  |~3}P|dxxy${l uJ Xyy\   M e p qh??hnes~sD j{gzf-Qo  1  F k : | ,@ i}jY)/p"bn5 O,!& x}f 0[ahy\~gE}x om-Mq} ,} t H  %q`~w5Lt1e qSIU]%M \ q =   C    WZqbK FL>s`u8L  lJ p_"x2a V n2vV|}[ k qNu |y   q r O k = xclq *>B Z RLv  ? z  Biy|m w- hzBVsl{5x n'(s O e \ a ^lysc  ~ 1 N sd ?u[ u  6w& 2{e2v+    s !  e rv6  _ k' k3Nzbp}5p`ycq" L_|& rum.rr|lw |tM f  {g w  v| l ^k@L {rUJ2[xjqZh`l  md!9 ^zz_ CuxTy(8|3f|m*D4  N L 1a bk_vEFw 9z@  t p   $wOpywz0 u 5]  qW \ r&+zd{nGr2 JQ~g7}o ?=  .F}ycNN x>}xup)~K@F%hz%w Zr e    i VxmN#tM-!]7M}L} m  gV =d {wd&*si]'~w{~Kp}j  M} 7q1um` )  z q W ^6 e uO:hJ//_0g TuAzIہ.uT(x { q)0ZO r4 F~2  s a}8ls" w%(py  uvp]5ys[ %Oh[|CfY}r Pa q`GE G9    o/sueI  Y|f # F0 | ztgt"i!;# {X!+{.'" e   tsyD3T}d C1m_؍f y 3r w0 O}  6~"cgzi- .ۉJMu  c EpWFjU*wf r#sv%o|M~?Fp  rMvnam}p_~ Pm)~{t m$Ovykz 1_5-] -{ZnT| {9Xz ) |si u/f Z Jz y J p4bFe|Dy"t  8{)}Uj[V^1"W{.{|6%yIRnJoZ'kuR|BN p|- L   ,zd m }}s #^~d.QgJ 3 7fui _n?mfF' qWw%lU o p}#q} w jov9IzD_~|ZhY :&fxrcoy[pV''_ t{ oxDY{w  /u/& * ^ o w-}6 k  +/Y ig,ZctlCvcw q z~  2 /   v }T2 X~{Qbb 8d h Vba 9 l  d Mxuo RxWm}k/ {3g u <q Pv xZvsyXzzw|o<|0j <{b K | rz   pPr{7lv n}+t( 8 9t c~j ?:,louSED/*   w TqXo s>" 9r o&tq0~/F 1p;vs2~v f TNK 0t| }z%IX{y%zuYy 5eysz}l'}k-t*QPn q |  :[qpg7  tT TtD"YyP{uwRBv { qr  m   _   q qjrdZ,6v j 5p|}t _"x~ d cuD{?| FHyz~l-h5| VCv { ;iCa+@ww#. 81 {JY{d fVb%qt [f yO b ^Dy s1u xtyz2azoM-L/l3s&q-SBxjxkp1{ t % T { @ x3y\ (y*r1={kDk}|{M|?o}\o5l&Dy2|  sxty L{/n ,y:]: DuK v r p$ao E z *[=dv K{Jt a J"Y{lu} H "y.w s K k fwJ ?ll,m~] Pp~gz` jv_9~9ksRx : v 3"_~ hxwk7kz\}z  V"yO)~U( 0}W -gro` 2 s  }; }ans3'>;) C%U{)  w' t7"n|2OTF?[s6vl 8   xi|Lu ] y {x]=u'YJ\`Nk&~8Df3G5Ba shPxvi H|ks~ Ifu~' zF> ! Al| g y|&ws;v!|m,svI| 8t-yZ5}U{:"+x{[Jw ~qzYPS)}y[fhGoxNWyOCI'c~ 7qu~ n~s.|0  5 [j *}I@}(bz+qor~Y|Kp `]}u 00'v{4}R W 6"6~F}q.h~+$ a z *pM// {lyx# uL {ppkxL<s|!HxvQxr}*+y&l [zm* ]Oy }]ug3 m{M }t  {Toy)&7 YZGc9}Hf#{/^ 5 w||-F^E|PU{y~}||yd "|u`n x<y ww6&(f{  `+   { d w6}'Xss ~C{byxtP7y +tGDt{_CE~ ,"*%~u|"{ krw9~C s9,s0} |uz*- | m  2;_} }t $dt):Sc|GrP}{*|7Q|6W|fQ8ueyz{wt{ze } 'W}n7]z; @um;?"hybai|@^ sA0y%Lg]{B P Wz$U |}S~l; q`3Q~j~{X~[P5n,{ZIOTe8r|~. 27uF OHhRB+~W (/~\ PV"}|^/||~01+DL|u{Cc})SvLX|:]}qxvfL}CFTymy IM |p}lrc|p>}~_|IzxzH|~o~j~ ~D~Acw~_>(9m{2~8} w|J}R{fC}uh.x[{!2`|Vzh}B0^{u1~k|-l 8tbQ[v}r=}in> y}' nMlV| fmjM;}oVu|0B``Nw$Sb}>xv5a0?*W|| =~X`E}UVt*|;%g{)GhZb|~_~8"AwsT{U'0T |2ix}s ~[$"z3}RzQIxR{{?n7I h!{F|lt~ }Ng}Yo}~q^x@*%Q]G?9VB!7}A)d\~ |[>Bi6q%([|?)I8<4x8|G>3 |O~~@Uh/~/{B//S7EF[f,\wz8 GO3Z+(Q}Y;-wz~` T u'Pzk"/e0~e}X+)BeiA q_~}fhy~j!!+Il*)'.B{|Z0)x~=&,}xZn,6b[%,RmiM+hr R~~~F~}H1IRkf~jC~bC{A3^U4A(!*~* lt'}h>p G+o 3' Vz)5. LN=K+>f~8Y5~ RVP CP}>/L>@}>~z.%)B4 ?SC/>~0~<T-{b}xo@h}5Y3 >>}qsq},y}0/8Y}1z~d)(|i}}6I[\8EIu|}VK''({I[%i||ei}zNW||/Bg}|zz}O1R&X~~|d@ -w =}~zR{+B|NQA2C@{cV|?[}~7OqE0(vOF{s184w}K)?z>>]ee>:Hg_*/ f~W|~!~>@hj@.Kw~rZ ~vL{ |\zV|(9xG~W5&Yi",}H]z|5f~Y:B}p~&~y[ xI6!CfQ 6z>j \~}/fY34 t~~Q m}kr]~}$(<{isbw)SlsU'BgXt+yQ~sZ /e pj m La0Tc|T" y|bZk(vH^0\O~52U){p{,(~tS?tw})KENYur0oxz _~E{* {4v/|(7Owqj=B*cM}/~(|} ~o{caG:~j?!7aP){|MW@{+3L~xD;r~}R Z<ymSR{$-v{v~X} :j~k~~!?g|e0+v~)}_t2 +9 #Gi~D9~~z'^C~c~V[Ajr|NB&Xg?w}U'~@?}0y{|?(VhiAAR}G@1F;2kl/ ~|* bv> 2}p~3.g~s|_'},Zotxp~x|3RY>jZS/0nkqVn}M2*56#y}_y}=?WrG<}jsYCS`kBnf[YRB~ip/'@}O[++ ,|A,"{"w3Y~@W%47~BWji! +x1py|>*(BP}? ~ RQP@hZsK~4p]>kY( QQ@j}~l>.Ak|iC:AXZQA@}fiWV|j~0hfZij41xi6*1)y[ZP>0@fhA3*(*UfB-Ah3!1O@7?#(p 'AC1Q?.?w~)A<I~`Oi~~O]~mB@RZh~^~iYQYZN}>/($(0?f~fY[f~g~>OxB@kl0))*BghCDg~}`dopewars-1.6.2/sounds/19.5degs/Makefile.in000644 000765 000024 00000040362 14256243572 020111 0ustar00benstaff000000 000000 # Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 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 = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = sounds/19.5degs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/dp_expand_dir.m4 \ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ $(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/sdl.m4 $(top_srcdir)/m4/sdl2.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_LIBS = @ESD_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ GTKPORTLIB = @GTKPORTLIB@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJC = @OBJC@ OBJCDEPMODE = @OBJCDEPMODE@ OBJCFLAGS = @OBJCFLAGS@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL2_CONFIG = @SDL2_CONFIG@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_LIBS = @SDL_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ _libcurl_config = @_libcurl_config@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_OBJC = @ac_ct_OBJC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ 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@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ pkgdata_DATA = \ colt.wav gun.wav losebitch.wav \ murmur.wav run.wav train.wav bye.wav \ die.wav jet.wav message.wav punch.wav shotdown.wav EXTRA_DIST = README $(pkgdata_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sounds/19.5degs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign sounds/19.5degs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(pkgdatadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgdataDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgdataDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkgdataDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-pkgdataDATA .PRECIOUS: Makefile # 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: